Warning:
This wiki has been archived and is now read-only.
R2RML Schema in Turtle
From RDB2RDF
This is a Turtle translation of the XML Schema in [1].
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . @prefix rr: <http://www.w3.org/ns/r2rml#> .
# ------------------ # the RDF term Map classes (for objects that describe mapping to RDF terms) # ------------------
rr:IRIMap a rdfs:Class . rr:bNodeMap a rdfs:Class . rr:LiteralMap a rdfs:Class .
# ------------------ # the superclasses for RDF term types # ------------------
rr:RDFTermMap a rdfs:Class . rr:RDFSubjectTermMap rdfs:subClassOf rr:RDFTermMap .
rr:LiteralMap rdfs:subClassOf rr:RDFTermMap . rr:IRIMap rdfs:subClassOf rr:RDFSubjectTermMap . rr:bNodeMap rdfs:subClassOf rr:RDFSubjectTermMap .
# ------------------ # the ClassMap class # ------------------
rr:ClassMap a rdfs:Class .
rr:class rdfs:domain rr:ClassMap; rdfs:range rdf:Resource . rr:graph rdfs:domain rr:ClassMap; rdfs:range rdf:Resource .
rr:sqlDefString rdfs:domain rr:ClassMap; rdfs:range xsd:string .
rr:instanceIdMap rdfs:domain rr:ClassMap; rdfs:range rr:RDFSubjectTermMap . rr:propertyMap rdfs:domain rr:ClassMap; rdfs:range rr:RDFTermMap . rr:ComputedPropertyMap rdfs:domain rr:ClassMap; rdfs:range rr:IRIMap .
rr:RDFTypeURIPropertyMap rdfs:domain rr:ClassMap; rdfs:range rr:IRIMap . rr:GraphURIPropertyMap rdfs:domain rr:ClassMap; rdfs:range rr:IRIMap .
rr:foreignKeyMap rdfs:domain rr:ClassMap; rdfs:range rr:ForeignKeyClass .
# ------------------ # property definitions for the RDFTermMap class # ------------------
rr:column rdfs:domain rr:RDFTermMap; rdfs:range xsd:String . rr:property rdfs:domain rr:RDFTermMap; rdfs:range rdf:Resource . rr:inverseExpr rdfs:domain rr:RDFTermMap; rdfs:range xsd:String .
rr:Datatype rdfs:domain rr:RDFTermMap; rdfs:range rdf:Resource . rr:Language rdfs:domain rr:RDFTermMap; rdfs:range xsd:String .
rr:GraphURI rdfs:domain rr:RDFTermMap; rdfs:range rdf:Resource .
rr:constantValue rdfs:domain rr:RDFTermMap; rdfs:range xsd:String .
# ------------------ # property definitions for the ForeignKeyClass class # ------------------
rr:key rdfs:domain rr:ForeignKeyClass ; rdfs:range rdf:Resource . rr:parentClass rdfs:domain rr:ForeignKeyClass ; rdfs:range rdf:Resource . rr:joinCondition rdfs:domain rr:ForeignKeyClass ; rdfs:range xsd:String .