.. _output:
The RDF graph
============================
LIFT takes a TEI document and returns an RDF graph. The semantics of the RDF graph is predefined, but you can modify it to suit your needs. For example, you could choose to reuse different ontologies or create new transformation rules.
The semantics of LIFT's RDF graphs is defined by the following ontologies:
- |CIDOC Conceptual Reference Model (CRM)| for representing persons and events
- |Agent Relationship Ontology (AgRelOn)| for describing relationships between persons
- |Dublin Core (DCTERMS)| for basic information about some entities
- |Functional Requirements for Bibliographic Records object-oriented (FRBRoo)|, an extension of CIDOC CRM, for representing texts
- |Web Ontology Language (OWL)| for establishing links to external resources such as authority files
- |Publishing Roles Ontology (PRO)| for representing a person's role in the context of a specific event
- |Political Roles Ontology (PRoles)| for linking a specific place to a role
- |Time-indexed Value in Context (TVC)| for specyfing the duration of a role in the context of an event
- |PROV Ontology (PROV-O)| for linking events to sources
.. - |Critical Apparatus Ontology (CAO)| for representing critical apparatuses
This section compares the input TEI constructs with the corresponding RDF output to give you a better understanding of how LIFT creates your RDF triples. Please visit the above links to know more about each of the ontologies and properties reused in LIFT.
.. Persons
Persons
-----------
.. code-block:: xml
:linenos:
...
Socrates
...
...
...
.. code-block:: ttl
:linenos:
a crm:E53_Place ;
rdfs:label "Athens"@en ;
owl:sameAs ;
dcterms:isReferencedBy .
.. Relations (dep. Persons)
Relations
-----------
.. code-block:: xml
:linenos:
...
...
...
...
.. Unidir
.. code-block:: ttl
:linenos:
a crm:E21_Person ;
agrelon:hasStudent , , .
.. Symm
.. code-block:: ttl
:linenos:
a crm:E21_Person ;
agrelon:hasColleague .
.. Events (dep. Persons and Places)
Events
--------
.. code-block:: xml
:linenos:
...
...
The trial of Socrates for impiety and corruption of the youth took place in Athens in 399 B.C.Plato gives a contemporary account of the trial in his work titled Apology of Socrates.
...
...
.. code-block:: ttl
:linenos:
a crm:E5_Event ;
rdfs:label "Socrates trial" ;
dcterms:description "trial" ;
dcterms:subject ;
prov:hadPrimarySource .
a prov:PrimarySource ;
dcterms:creator ;
dcterms:title "Apology of Socrates" ;
owl:sameAs .
.. Roles (dep. Persons, Events and Places)
.. Same TEI input as above
.. code-block:: ttl
:linenos:
a crm:E21_Person ;
pro:holdsRoleInTime .
a pro:RoleInTime ;
pro:relatesToEntity ;
pro:withRole ;
tvc:atTime ;
proles:relatesToPlace .
a ;
ti:hasIntervalEndDate "-0399"^^xsd:date ;
ti:hasIntervalStartDate "-0399"^^xsd:date .
a pro:Role ;
rdfs:label "defendant" ;
owl:sameAs .
.. All links
.. |Agent Relationship Ontology (AgRelOn)| raw:: html
AgRelOn
.. |CIDOC Conceptual Reference Model (CRM)| raw:: html
CIDOC Conceptual Reference Model (CRM)
.. |Dublin Core (DCTERMS)| raw:: html
DCMI Metadata Terms (DCTERMS)
.. |Functional Requirements for Bibliographic Records object-oriented (FRBRoo)| raw:: html
Functional Requirements for Bibliographic Records object-oriented (FRBRoo)
.. |Web Ontology Language (OWL)| raw:: html
Web Ontology Language (OWL)
.. |Publishing Roles Ontology (PRO)| raw:: html
Publishing Roles Ontology (PRO)
.. |Political Roles Ontology (PRoles)| raw:: html
Political Roles Ontology (PRoles)
.. |PROV Ontology (PROV-O)| raw:: html
PROV Ontology (PROV-O)
.. |Schema.org| raw:: html
Schema.org
.. |Time-indexed Value in Context (TVC)| raw:: html
Time-indexed Value in Context (TVC)
.. |"Prepare your TEI XML edition for transformation"| raw:: html
"Prepare your TEI XML edition for transformation"
.. |"1. Provide all TEI elements with unique identifiers"| raw:: html
"1. Provide all TEI elements with unique identifiers"
.. |Critical Apparatus Ontology (CAO)| raw:: html
Critical Apparatus Ontology (CAO)