Skip to content

Instantly share code, notes, and snippets.

@hcayless
Created February 20, 2014 19:03
Show Gist options
  • Select an option

  • Save hcayless/9120829 to your computer and use it in GitHub Desktop.

Select an option

Save hcayless/9120829 to your computer and use it in GitHub Desktop.
RDF example for encoding TM data
<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF
xmlns:cito="http://purl.org/spar/cito/"
xmlns:foaf="http://xmlns.com/foaf/0.1/"
xmlns:lawd="http://lawd.info/ontology/"
xmlns:rels="http://snapdrgn.org/relationships/"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#">
<!-- Assumes:
the LAWD ontology defines the following types: Person, PersonalName,
PersonAttestation, NameAttestation, Relationship, and
the responsibility property.
The SNAPDRGN ontology defines the Relationsip type and the
following relationship roles: father, mother, child.
-->
<rdf:Description rdf:about="http://www.trismegistos.org/ref/30558#name">
<rdf:type rdf:resource="http://lawd.info/ontology/NameAttestation"/>
<cito:citesAsEvidence rdf:resource="http://papyri.info/ddbdp/bgu;3;993dupl/source"/>
<rdfs:label>Τασῆμις</rdfs:label>
<lawd:conjunctOf rdf:resource="http://www.trismegistos.org/ref/30558#person"/>
<lawd:responsibility rdf:resource="http://www.trismegistos.org"/>
</rdf:Description>
<rdf:Description rdf:about="http://www.trismegistos.org/name/1303#this">
<rdf:type rdf:resource="http://lawd.info/ontology/PersonalName"/>
<lawd:primaryExpression xml:lang="grc">Τασῆμις</lawd:primaryExpression>
<lawd:primaryExpression xml:lang="grc-Latn">Tasemis</lawd:primaryExpression>
<lawd:variantExpression>Ta-Ḏmȝ</lawd:variantExpression>
<lawd:variantExpression>Ταθημις</lawd:variantExpression>
<lawd:variantExpression>Τατημις</lawd:variantExpression>
<lawd:attestation rdf:resource="http://www.trismegistos.org/ref/30558#name"/>
</rdf:Description>
<rdf:Description rdf:about="http://www.trismegistos.org/ref/30558#person">
<rdf:type rdf:resource="http://lawd.info/ontology/PersonAttestation"/>
<cito:citesAsEvidence rdf:resource="http://papyri.info/ddbdp/bgu;3;993dupl/source"/>
<rdfs:label>Τασῆμις</rdfs:label>
<lawd:conjunctOf rdf:resource="http://www.trismegistos.org/ref/30558#name"/>
<lawd:responsibility rdf:resource="http://www.trismegistos.org"/>
</rdf:Description>
<rdf:Description rdf:about="http://www.trismegistos.org/person/13985#this">
<rdf:type rdf:resource="http://lawd.info/ontology/Person"/>
<foaf:name xml:lang="grc-Latn">Tasemis</foaf:name>
<lawd:name rdf:resource="http://www.trismegistos.org/name/1303#this"/>
<lawd:attestation rdf:resource="http://www.trismegistos.org/ref/30558#person"/>
</rdf:Description>
<rdf:Description rdf:about="urn:uuid:af7d1070-9a5a-11e3-a5e2-0800200c9a66">
<rdf:type rdf:resource="http://lawd.info/ontology/Relationship"/>
<rels:father rdf:resource="http://www.trismegistos.org/person/15047#this"/>
<rels:child rdf:resource="http://www.trismegistos.org/person/13985#this"/>
<lawd:responsibility rdf:resource="http://www.trismegistos.org"/>
</rdf:Description>
<rdf:Description rdf:about="urn:uuid:d50c7900-9a5c-11e3-a5e2-0800200c9a66">
<rdf:type rdf:resource="http://snapdrgn.org/relationships/Relationship"/>
<rels:mother rdf:resource="http://www.trismegistos.org/person/14378#this"/>
<rels:child rdf:resource="http://www.trismegistos.org/person/13985#this"/>
<lawd:responsibility rdf:resource="http://www.trismegistos.org"/>
</rdf:Description>
</rdf:RDF>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment