diff --git a/shapes/child_map.ttl b/shapes/child_map.ttl index b56d5392..a867cea4 100644 --- a/shapes/child_map.ttl +++ b/shapes/child_map.ttl @@ -1,8 +1,9 @@ ############################################################################### # RML Child Map shape # -# Copyright Dylan Van Assche, IDLab - UGent - imec (2023) # +# Copyright Dylan Van Assche, IDLab - UGent - imec (2023 - 2024) # ############################################################################### @prefix sh: . +@prefix rdfs: . @prefix : . @prefix rdf: . @prefix rml: . @@ -12,8 +13,8 @@ a sh:NodeShape ; sh:targetClass rml:ChildMap ; sh:targetObjectsOf rml:childMap ; - sh:name "ChildMap" ; - sh:description """ + rdfs:label "ChildMap" ; + rdfs:comment """ Represents a Child Map. """ ; sh:message """ @@ -33,8 +34,8 @@ :RMLchildShape a sh:NodeShape ; sh:targetObjectsOf rml:child ; - sh:name "child" ; - sh:description """ + rdfs:label "child" ; + rdfs:comment """ A Literal reference to use as reference to the child data source. """ ; sh:message """ diff --git a/shapes/core.ttl b/shapes/core.ttl index be092155..02f1e410 100644 --- a/shapes/core.ttl +++ b/shapes/core.ttl @@ -31,27 +31,27 @@ a sh:NodeShape ; sh:and ( [ ] ) ; - sh:description """ + rdfs:comment """ Represents a Child Map. """ ; sh:message """ rml:ChildMap must specify a literal referencing data in the child data source. """ ; - sh:name "ChildMap" ; + rdfs:label "ChildMap" ; sh:targetClass ; sh:targetObjectsOf . a sh:NodeShape ; sh:and ( [ ] ) ; - sh:description """ + rdfs:comment """ Represents a Datatype Map. """ ; sh:message """ rml:DatatypeMap must specify an rml:template, rml:reference, or rml:constant with the IRI of the datatype. """ ; - sh:name "DatatypeMap" ; + rdfs:label "DatatypeMap" ; sh:targetClass rml:DatatypeMap ; sh:targetObjectsOf rml:datatypeMap . @@ -61,77 +61,77 @@ rml:termType must be an IRI or blank node for a Graph Map. """ ; sh:path rml:termType ] ) ; - sh:description """ + rdfs:comment """ Represents a Graph Map. """ ; sh:message """ rml:GraphMap must specify an rml:template, rml:reference or rml:constant with the IRI of the Named Graph. """ ; - sh:name "GraphMap" ; + rdfs:label "GraphMap" ; sh:targetClass rml:GraphMap ; sh:targetObjectsOf rml:graphMap . a sh:NodeShape ; - sh:description """ + rdfs:comment """ Represents a Join. """ ; sh:message """ rml:Join must specify exactly one rml:parent/rml:parentMap and rml:child/rml:childMap. """ ; - sh:name "Join" ; - sh:property [ sh:description """ + rdfs:label "Join" ; + sh:property [ rdfs:comment """ rml:parent/rml:parentMap may only be provided once and not at the same time. """ ; sh:maxCount 1 ; sh:minCount 1 ; - sh:name "parentMap/parent" ; + rdfs:label "parentMap/parent" ; sh:path [ sh:alternativePath ( rml:parentMap rml:parent ) ] ], - [ sh:description """ + [ rdfs:comment """ Specifies the child of the object component for joining. """ ; sh:message """ rml:childMap must point to a rml:ChildMap specifying the child of the Literal. """ ; - sh:name "childMap" ; + rdfs:label "childMap" ; sh:nodeKind sh:BlankNodeOrIRI ; sh:path rml:childMap ; sh:targetSubjectsOf rml:childMap ], - [ sh:description """ + [ rdfs:comment """ Specifies the child of the object component for joining. """ ; - sh:name "child" ; + rdfs:label "child" ; sh:nodeKind sh:Literal ; sh:path rml:child ; sh:targetSubjectsOf rml:child ], - [ sh:description """ + [ rdfs:comment """ Specifies the parent of the object component for joining. """ ; sh:message """ rml:parentMap must point to a rml:ParentMap specifying the parent tag of the string Literal. """ ; - sh:name "parentMap" ; + rdfs:label "parentMap" ; sh:nodeKind sh:BlankNodeOrIRI ; sh:path rml:parentMap ; sh:targetSubjectsOf rml:parentMap ], - [ sh:description """ + [ rdfs:comment """ Specifies the parent of the object component for joining. """ ; - sh:name "parent" ; + rdfs:label "parent" ; sh:nodeKind sh:Literal ; sh:path rml:parent ; sh:targetSubjectsOf rml:parent ], - [ sh:description """ + [ rdfs:comment """ rml:child/rml:childMap may only be provided once and not at the same time. """ ; sh:maxCount 1 ; sh:minCount 1 ; - sh:name "childMap/child" ; + rdfs:label "childMap/child" ; sh:path [ sh:alternativePath ( rml:childMap rml:child ) ] ] ; sh:targetClass rml:Join ; sh:targetObjectsOf rml:joinCondition . @@ -139,27 +139,27 @@ a sh:NodeShape ; sh:and ( [ sh:path rml:constant ; sh:pattern "^((?:(en-GB-oed|i-ami|i-bnn|i-default|i-enochian|i-hak|i-klingon|i-lux|i-mingo|i-navajo|i-pwn|i-tao|i-tay|i-tsu|sgn-BE-FR|sgn-BE-NL|sgn-CH-DE)|(art-lojban|cel-gaulish|no-bok|no-nyn|zh-guoyu|zh-hakka|zh-min|zh-min-nan|zh-xiang))|((?:([A-Za-z]{2,3}(-(?:[A-Za-z]{3}(-[A-Za-z]{3}){0,2}))?)|[A-Za-z]{4})(-(?:[A-Za-z]{4}))?(-(?:[A-Za-z]{2}|[0-9]{3}))?(-(?:[A-Za-z0-9]{5,8}|[0-9][A-Za-z0-9]{3}))*(-(?:[0-9A-WY-Za-wy-z](-[A-Za-z0-9]{2,8})+))*(-(?:x(-[A-Za-z0-9]{1,8})+))?)|(?:x(-[A-Za-z0-9]{1,8})+))$" ] ) ; - sh:description """ + rdfs:comment """ Represents a Language Map. """ ; sh:message """ rml:LanguageMap must specify an rml:template, rml:reference, or rml:constant with the BCP47 name of the language as string. """ ; - sh:name "LanguageMap" ; + rdfs:label "LanguageMap" ; sh:targetClass rml:LanguageMap ; sh:targetObjectsOf rml:languageMap . a sh:NodeShape ; sh:and ( [ ] ) ; - sh:description """ + rdfs:comment """ Represents a Parent Map. """ ; sh:message """ rml:ParentMap must specify a literal referencing data in the parent data source. """ ; - sh:name "ParentMap" ; + rdfs:label "ParentMap" ; sh:targetClass rml:ParentMap ; sh:targetObjectsOf rml:parentMap . @@ -169,226 +169,226 @@ rml:termType for Predicate Map can only be a rml:IRI; """ ; sh:path rml:termType ] ) ; - sh:description """ + rdfs:comment """ Represents a Predicate Map. """ ; sh:message """ Predicate Object Map must generate an IRI representing the predicate of an RDF triple. """ ; - sh:name "PredicateMap" ; + rdfs:label "PredicateMap" ; sh:targetClass rml:PredicateMap ; sh:targetObjectsOf rml:predicateMap . a sh:NodeShape ; - sh:and ( [ sh:description """ + sh:and ( [ rdfs:comment """ At least one rml:predicate or rml:predicateMap must be provided. """ ; sh:message """ At least one rml:predicate or rml:predicateMap must be provided. """ ; sh:minCount 1 ; - sh:name "predicate/predicateMap" ; + rdfs:label "predicate/predicateMap" ; sh:path [ sh:alternativePath ( rml:predicate rml:predicateMap ) ] ; sh:targetSubjectsOf rml:predicate, - rml:predicateMap ] [ sh:description """ + rml:predicateMap ] [ rdfs:comment """ A PredicateMap element to generate the predicate component of the (predicate, object) pair from a logical table row or iterator. """ ; sh:message """ rml:predicateMap must be an IRI or blank node and be provided once. """ ; - sh:name "predicateMap" ; + rdfs:label "predicateMap" ; sh:nodeKind sh:BlankNodeOrIRI ; sh:path rml:predicateMap ; - sh:targetSubjectsOf rml:predicateMap ] [ sh:description """ + sh:targetSubjectsOf rml:predicateMap ] [ rdfs:comment """ Specifies the predicate for the generated triple from the logical table row or iterator. """ ; sh:message """ rml:predicate must be an IRI and be provided once. """ ; - sh:name "predicate" ; + rdfs:label "predicate" ; sh:nodeKind sh:IRI ; sh:path rml:predicate ; - sh:targetSubjectsOf rml:predicate ] [ sh:description """ + sh:targetSubjectsOf rml:predicate ] [ rdfs:comment """ Either an rml:object, rml:objectMap, or rml:quotedTriplesMap must be provided, not multiple. """ ; sh:message """ Either an rml:object, rml:objectMap, or rml:quotedTriplesMap must be provided, not multiple """ ; sh:minCount 1 ; - sh:name "object/objectMap/quotedTriplesMap" ; + rdfs:label "object/objectMap/quotedTriplesMap" ; sh:path [ sh:alternativePath ( rml:object rml:objectMap rml:quotedTriplesMap ) ] ; sh:targetSubjectsOf rml:object, rml:objectMap, - rml:quotedTriplesMap ] [ sh:description """ + rml:quotedTriplesMap ] [ rdfs:comment """ An ObjectMap element to generate the object component of the (predicate, object) pair from a logical table row or iterator. """ ; sh:message """ rml:objectMap must be an IRI or blank node and be provided once. """ ; - sh:name "objectMap" ; + rdfs:label "objectMap" ; sh:nodeKind sh:BlankNodeOrIRI ; sh:or ( [ sh:node ] [ sh:node ] [ sh:node ] ) ; sh:path rml:objectMap ; - sh:targetSubjectsOf rml:objectMap ] [ sh:description """ + sh:targetSubjectsOf rml:objectMap ] [ rdfs:comment """ Specifies the object for the generated RDF triples. """ ; sh:message """ rml:object must be an IRI and be provided once. """ ; - sh:name "object" ; + rdfs:label "object" ; sh:path rml:object ; sh:targetSubjectsOf rml:object ] ) ; - sh:description """ + rdfs:comment """ Represents a Predicate Object Map. """ ; - sh:name "PredicateObjectMap" ; + rdfs:label "PredicateObjectMap" ; sh:targetClass rml:PredicateObjectMap ; sh:targetObjectsOf rml:predicateObjectMap . a sh:NodeShape ; - sh:description """ + rdfs:comment """ Strategy to follow when generating RDF triples. """ ; sh:in ( rml:append rml:cartesianProduct ) ; sh:message """ Strategy must be either rml:append or rml:cartesianProduct. """ ; - sh:name "Strategy" ; + rdfs:label "Strategy" ; sh:targetObjectsOf rml:strategy . a sh:NodeShape ; sh:and ( [ ] ) ; - sh:description """ + rdfs:comment """ Represents a Triples Map. """ ; sh:message """ Triples Map requires exactly one rml:subject or one rml:subjectMap and zero or more rml:predicateObjectMaps. """ ; - sh:name "TriplesMap" ; + rdfs:label "TriplesMap" ; sh:targetClass rml:TriplesMap ; sh:targetObjectsOf rml:parentTriplesMap . a sh:NodeShape ; sh:datatype xsd:string ; - sh:description """ + rdfs:comment """ A Literal reference to use as reference to the child data source. """ ; sh:message """ rml:child shortcut for rml:ChildMap must be a Literal. """ ; - sh:name "child" ; + rdfs:label "child" ; sh:nodeKind sh:Literal ; sh:targetObjectsOf . a sh:NodeShape ; - sh:description """ + rdfs:comment """ An IRI reference for use as the graph name of all triples generated with the datatype. """ ; sh:message """ rml:datatype must be an IRI. """ ; - sh:name "datatype" ; + rdfs:label "datatype" ; sh:nodeKind sh:IRI ; sh:targetObjectsOf rml:datatype . a sh:NodeShape ; - sh:description """ + rdfs:comment """ An IRI reference for use as the graph name of all triples generated with the Graph Map. """ ; sh:message """ rml:graph must be an IRI or blank node. """ ; - sh:name "graph" ; + rdfs:label "graph" ; sh:nodeKind sh:BlankNodeOrIRI ; sh:targetObjectsOf rml:graph . a sh:NodeShape ; - sh:description """ + rdfs:comment """ Specified the language for the generated Literal. """ ; sh:message """ rml:language must be a valid language tag according to BCP47 and may only be provided once as string. """ ; - sh:name "language" ; + rdfs:label "language" ; sh:nodeKind sh:Literal ; sh:pattern "^((?:(en-GB-oed|i-ami|i-bnn|i-default|i-enochian|i-hak|i-klingon|i-lux|i-mingo|i-navajo|i-pwn|i-tao|i-tay|i-tsu|sgn-BE-FR|sgn-BE-NL|sgn-CH-DE)|(art-lojban|cel-gaulish|no-bok|no-nyn|zh-guoyu|zh-hakka|zh-min|zh-min-nan|zh-xiang))|((?:([A-Za-z]{2,3}(-(?:[A-Za-z]{3}(-[A-Za-z]{3}){0,2}))?)|[A-Za-z]{4})(-(?:[A-Za-z]{4}))?(-(?:[A-Za-z]{2}|[0-9]{3}))?(-(?:[A-Za-z0-9]{5,8}|[0-9][A-Za-z0-9]{3}))*(-(?:[0-9A-WY-Za-wy-z](-[A-Za-z0-9]{2,8})+))*(-(?:x(-[A-Za-z0-9]{1,8})+))?)|(?:x(-[A-Za-z0-9]{1,8})+))$" ; sh:targetObjectsOf rml:language . a sh:NodeShape ; - sh:description """ + rdfs:comment """ An IRI, Blank Node, or Literal to use as object for all the RDF triples. """ ; sh:message """ rml:object shortcut for rml:objectMap must be an IRI, Blank Node, or Literal. """ ; - sh:name "object" ; + rdfs:label "object" ; sh:targetObjectsOf rml:object . a sh:NodeShape ; sh:datatype xsd:string ; - sh:description """ + rdfs:comment """ A Literal reference to use as reference to the parent data source. """ ; sh:message """ rml:parent shortcut for rml:ParentMap must be a Literal. """ ; - sh:name "parent" ; + rdfs:label "parent" ; sh:nodeKind sh:Literal ; sh:targetObjectsOf rml:parent . a sh:NodeShape ; - sh:description """ + rdfs:comment """ Specifies the predicate for the generated triple. """ ; sh:message """ rml:predicate must be an IRI. """ ; - sh:name "predicate" ; + rdfs:label "predicate" ; sh:nodeKind sh:IRI ; sh:targetObjectsOf rml:predicate . a sh:NodeShape ; - sh:description """ + rdfs:comment """ An IRI reference to use as subject for all the RDF triples. """ ; sh:message """ rml:subject shortcut for rml:SubjectMap must be a IRI or BlankNode. """ ; - sh:name "subject" ; + rdfs:label "subject" ; sh:nodeKind sh:BlankNodeOrIRI ; sh:targetObjectsOf rml:subject . a sh:PropertyShape ; - sh:description """ + rdfs:comment """ Specifies the join condition for joining a child data source with a parent data source of the foreign key constraint. """ ; sh:message """ rml:joinCondition must specify an rml:parent and rml:child. """ ; - sh:name "joinCondition" ; + rdfs:label "joinCondition" ; sh:nodeKind sh:BlankNodeOrIRI ; sh:path rml:joinCondition ; sh:targetSubjectsOf rml:joinCondition . a sh:NodeShape ; - sh:and ( [ sh:description """ + sh:and ( [ rdfs:comment """ rml:language/rml:languageMap and rml:datatype/rml:datatypeMap may only be provided once and not at the same time. """ ; sh:maxCount 1 ; sh:minCount 0 ; - sh:name "languageMap/datatypeMap/language/datatype" ; - sh:path [ sh:alternativePath ( rml:languageMap rml:datatypeMap rml:language rml:datatype ) ] ] [ sh:description """ + rdfs:label "languageMap/datatypeMap/language/datatype" ; + sh:path [ sh:alternativePath ( rml:languageMap rml:datatypeMap rml:language rml:datatype ) ] ] [ rdfs:comment """ Specified the language map for the object component for the generated RDF triples. """ ; @@ -396,10 +396,10 @@ rml:languageMap must point to a rml:LanguageMap specifying the language tag of the string Literal. """ ; - sh:name "languageMap" ; + rdfs:label "languageMap" ; sh:nodeKind sh:BlankNodeOrIRI ; sh:path rml:languageMap ; - sh:targetSubjectsOf rml:languageMap ] [ sh:description """ + sh:targetSubjectsOf rml:languageMap ] [ rdfs:comment """ Specifies the datatype of the object component for the generated RDF triples. """ ; @@ -407,34 +407,34 @@ rml:datatypeMap must point to a rml:DatatypeMap specifying the datatype of the Literal. """ ; - sh:name "datatypeMap" ; + rdfs:label "datatypeMap" ; sh:nodeKind sh:BlankNodeOrIRI ; sh:path rml:datatypeMap ; - sh:targetSubjectsOf rml:datatypeMap ] [ sh:description """ + sh:targetSubjectsOf rml:datatypeMap ] [ rdfs:comment """ Language tag for the object. """ ; - sh:name "language" ; + rdfs:label "language" ; sh:nodeKind sh:Literal ; - sh:path rml:language ] [ sh:description """ + sh:path rml:language ] [ rdfs:comment """ Datatype for the object. """ ; - sh:name "datatype" ; + rdfs:label "datatype" ; sh:nodeKind sh:IRI ; sh:path rml:datatype ; sh:targetSubjectsOf rml:datatype ] ) ; - sh:description """ + rdfs:comment """ Represents an Object Map. """ ; sh:message """ Object Map must generate a IRI, Blank Node, or Literal which has optionally a language tag or datatype. """ ; - sh:name "ObjectMap" ; + rdfs:label "ObjectMap" ; sh:targetClass rml:ObjectMap . a sh:NodeShape ; sh:and ( [ sh:class rml:TriplesMap ; - sh:description """ + rdfs:comment """ Specifies the Triples Map element corresponding to the parent data source of the foreign key constraint. """ ; @@ -444,29 +444,29 @@ or Blank Node referring to a Triples Map. """ ; sh:minCount 1 ; - sh:name "parentTriplesMap" ; + rdfs:label "parentTriplesMap" ; sh:nodeKind sh:BlankNodeOrIRI ; sh:path rml:parentTriplesMap ; sh:targetSubjectsOf rml:parentTriplesMap ] ) ; - sh:description """ + rdfs:comment """ Represents a Reference Object Map. """ ; sh:message """ rml:RefObjectMap must specify a rml:parentTriplesMap and zero or more rml:joinConditions. """ ; - sh:name "RefObjectMap" ; + rdfs:label "RefObjectMap" ; sh:targetClass rml:RefObjectMap . a sh:NodeShape ; - sh:and ( [ sh:description """ + sh:and ( [ rdfs:comment """ The subject value generated will be asserted as an instance of this RDFS class. """ ; sh:message """ rml:class must be an IRI and may be specified multiple times. """ ; - sh:name "class" ; + rdfs:label "class" ; sh:nodeKind sh:IRI ; sh:path rml:class ; sh:targetSubjectsOf rml:class ] [ sh:in ( rml:IRI rml:BlankNode ) ; @@ -474,18 +474,18 @@ rml:termType must be a rml:IRI or rml:BlankNode for Subject Map. """ ; sh:path rml:termType ] ) ; - sh:description """ + rdfs:comment """ Represents a Subject Map. """ ; sh:message """ Subject Map must generate an IRI representing the subject of an RDF triple. """ ; - sh:name "SubjectMap" ; + rdfs:label "SubjectMap" ; sh:targetClass rml:SubjectMap ; sh:targetObjectsOf rml:subjectMap . a sh:NodeShape ; - sh:property [ sh:description """ + sh:property [ rdfs:comment """ A logical source is any source that is mapped to RDF triples. """ ; sh:maxCount 1 ; @@ -493,32 +493,32 @@ Exactly one rml:logicalSource is required to access the data source. """ ; sh:minCount 1 ; - sh:name "logicalSource" ; + rdfs:label "logicalSource" ; sh:nodeKind sh:BlankNodeOrIRI ; sh:path rml:logicalSource ; sh:targetSubjectsOf rml:logicalSource ], - [ sh:description """ + [ rdfs:comment """ An IRI reference for use as subject for all generated RDF triples. """ ; sh:message """ rml:subject must be an IRI or blank node. """ ; - sh:name "subject" ; + rdfs:label "subject" ; sh:nodeKind sh:BlankNodeOrIRI ; sh:path rml:subject ; sh:targetSubjectsOf rml:subject ], - [ sh:description """ + [ rdfs:comment """ A Predicate Object Map element to generate a (predicate, object) pair. """ ; sh:message """ rml:PredicateObjectMap must be an IRI or blank node. """ ; sh:minCount 0 ; - sh:name "predicateObjectMap" ; + rdfs:label "predicateObjectMap" ; sh:nodeKind sh:BlankNodeOrIRI ; sh:path rml:predicateObjectMap ; sh:targetSubjectsOf rml:predicateObjectMap ], - [ sh:description """ + [ rdfs:comment """ Either a rml:subject, rml:subjectMap or a rml:quotedTriplesMap is required, not multiple. """ ; sh:maxCount 1 ; @@ -526,18 +526,18 @@ Either a rml:subject, rml:subjectMap or a rml:quotedTriplesMap is required, not multiple. """ ; sh:minCount 1 ; - sh:name "subjectMap/subject/quotedTriplesMap" ; + rdfs:label "subjectMap/subject/quotedTriplesMap" ; sh:path [ sh:alternativePath ( rml:subjectMap rml:subject rml:quotedTriplesMap ) ] ; sh:targetSubjectsOf rml:quotedTriplesMap, rml:subject, rml:subjectMap ], - [ sh:description """ + [ rdfs:comment """ A Subject Map element to generate a subject for generated RDF triples. """ ; sh:message """ rml:SubjectMap must be an IRI or blank node. """ ; - sh:name "subjectMap" ; + rdfs:label "subjectMap" ; sh:nodeKind sh:BlankNodeOrIRI ; sh:or ( [ sh:node ] [ sh:node ] ) ; sh:path rml:subjectMap ; @@ -546,7 +546,7 @@ rml:TriplesMap . a sh:NodeShape ; - sh:property [ sh:description """ + sh:property [ rdfs:comment """ Either an rml:graph or rml:graphMap may be optionally be provided, but not both. """ ; @@ -556,9 +556,9 @@ but not both. """ ; sh:minCount 0 ; - sh:name "graph/graphMap" ; + rdfs:label "graph/graphMap" ; sh:path [ sh:alternativePath ( rml:graph rml:graphMap ) ] ], - [ sh:description """ + [ rdfs:comment """ Specifies a Graph Map. When used with a Subject Map element, all the RDF triples generated will be stored in the specified named graph. Otherwise, the RDF triple generated using the (predicate, object) @@ -567,16 +567,16 @@ sh:message """ rml:graphMap must be either an IRI or blank node. """ ; - sh:name "graphMap" ; + rdfs:label "graphMap" ; sh:nodeKind sh:BlankNodeOrIRI ; sh:path rml:graphMap ], - [ sh:description """ + [ rdfs:comment """ An IRI reference to use as the named graph of all generated triples. """ ; sh:message """ rml:graphMap must be an IRI. """ ; - sh:name "graph" ; + rdfs:label "graph" ; sh:nodeKind sh:IRI ; sh:path rml:graph ] ; sh:targetSubjectsOf rml:graph, @@ -585,7 +585,7 @@ a sh:NodeShape . a sh:NodeShape ; - sh:and ( [ sh:description """ + sh:and ( [ rdfs:comment """ An IRI indicating whether a generated term should be an IRI, Blank Node, or a Literal. """ ; @@ -595,28 +595,28 @@ rml:termType must be either rml:IRI, rml:Literal, or rml:BlankNode for a Term Map. May only be provided once. """ ; - sh:name "termType" ; + rdfs:label "termType" ; sh:nodeKind sh:IRI ; sh:path rml:termType ; sh:targetSubjectsOf rml:termType ] ) ; - sh:description """ + rdfs:comment """ Represents a Term Map. """ ; sh:message """ Term Map is an Expression Map with optionally a term type specified. """ ; - sh:name "TermMap" . + rdfs:label "TermMap" . a sh:NodeShape ; - sh:description """ + rdfs:comment """ Represents a Expression Map. """ ; sh:message """ Expression Map requires one rml:template or one rml:constant or one rml:reference. """ ; - sh:name "ExpressionMap" ; - sh:property [ sh:description """ + rdfs:label "ExpressionMap" ; + sh:property [ rdfs:comment """ Exactly one rml:template, one rml:constant, one rml:reference, one rml:returnMap, or one rml:functionExecution is required. """ ; @@ -626,7 +626,7 @@ one rml:returnMap, or one rml:functionExecution is required. """ ; sh:minCount 1 ; - sh:name "template/constant/reference/returnMap/functionExecution" ; + rdfs:label "template/constant/reference/returnMap/functionExecution" ; sh:path [ sh:alternativePath ( rml:template rml:constant rml:reference rml:returnMap rml:functionExecution ) ] ; sh:targetSubjectsOf rml:constant, rml:functionExecution, @@ -634,7 +634,7 @@ rml:returnMap, rml:template ], [ sh:datatype xsd:string ; - sh:description """ + rdfs:comment """ A reference rml:reference is used to refer to a column in case of databases, a record in case of CSV or TSV data source, an element in case of XML data source, an object in case of a JSON data source, etc. @@ -647,11 +647,11 @@ sh:message """ rml:reference must be a string. """ ; - sh:name "reference" ; + rdfs:label "reference" ; sh:nodeKind sh:Literal ; sh:path rml:reference ; sh:targetSubjectsOf rml:reference ], - [ sh:description """ + [ rdfs:comment """ A Return Map rml:returnMap is used to define the return values of a FnO function from the RML-FNML specification. RML Core only validates if the property is present and has the right node kind. The actual validation @@ -660,11 +660,11 @@ sh:message """ rml:returnMap must be an IRI; """ ; - sh:name "returnMap" ; + rdfs:label "returnMap" ; sh:nodeKind sh:BlankNodeOrIRI ; sh:path rml:returnMap ; sh:targetSubjectsOf rml:returnMap ], - [ sh:description """ + [ rdfs:comment """ A Function Execution rml:functionExecution is used to define the FnO function to execute from the RML-FNML specification. RML Core only validates if the property is present and has the right node kind. @@ -673,12 +673,12 @@ sh:message """ rml:functionExecution must be an IRI; """ ; - sh:name "functionExecution" ; + rdfs:label "functionExecution" ; sh:nodeKind sh:BlankNodeOrIRI ; sh:path rml:functionExecution ; sh:targetSubjectsOf rml:functionExecution ], [ sh:datatype xsd:string ; - sh:description """ + rdfs:comment """ A template (format string) to specify how to generate a value for a subject, predicate, or object, using one or more columns from a logical table row or iterator. @@ -686,22 +686,22 @@ sh:message """ rml:template must be a string. """ ; - sh:name "template" ; + rdfs:label "template" ; sh:nodeKind sh:Literal ; sh:path rml:template ], - [ sh:description """ + [ rdfs:comment """ A property for indicating whether a term map is a constant-valued term map. """ ; sh:message """ rml:constant must be an IRI or Literal. """ ; - sh:name "constant" ; + rdfs:label "constant" ; sh:path rml:constant ; sh:targetSubjectsOf rml:constant ] . a sh:PropertyShape ; - sh:description """ + rdfs:comment """ A logical target is any target to where generated RDF triples are exported to. """ ; @@ -710,7 +710,7 @@ Zero or one rml:logicalTarget is required to export RDF triples. """ ; sh:minCount 0 ; - sh:name "logicalTarget" ; + rdfs:label "logicalTarget" ; sh:nodeKind sh:BlankNodeOrIRI ; sh:path rml:logicalTarget ; sh:targetSubjectsOf rml:logicalTarget . diff --git a/shapes/datatype_map.ttl b/shapes/datatype_map.ttl index 30940bfa..b56da668 100644 --- a/shapes/datatype_map.ttl +++ b/shapes/datatype_map.ttl @@ -1,8 +1,9 @@ ############################################################################### # RML Datatype Map and datatype shortcut shape # -# Copyright Dylan Van Assche, IDLab - UGent - imec (2023) # +# Copyright Dylan Van Assche, IDLab - UGent - imec (2023 - 2024) # ############################################################################### @prefix sh: . +@prefix rdfs: . @prefix : . @prefix rdf: . @prefix rml: . @@ -12,8 +13,8 @@ a sh:NodeShape ; sh:targetClass rml:DatatypeMap ; sh:targetObjectsOf rml:datatypeMap ; - sh:name "DatatypeMap" ; - sh:description """ + rdfs:label "DatatypeMap" ; + rdfs:comment """ Represents a Datatype Map. """ ; sh:message """ @@ -34,8 +35,8 @@ :RMLdatatypeShape a sh:NodeShape ; sh:targetObjectsOf rml:datatype ; - sh:name "datatype" ; - sh:description """ + rdfs:label "datatype" ; + rdfs:comment """ An IRI reference for use as the graph name of all triples generated with the datatype. """ ; diff --git a/shapes/expression_map.ttl b/shapes/expression_map.ttl index ca84391b..fc10303b 100644 --- a/shapes/expression_map.ttl +++ b/shapes/expression_map.ttl @@ -1,8 +1,9 @@ ############################################################################### # RML Expression Map shape # -# Copyright Dylan Van Assche, IDLab - UGent - imec (2023) # +# Copyright Dylan Van Assche, IDLab - UGent - imec (2023 - 2024) # ############################################################################### @prefix sh: . +@prefix rdfs: . @prefix : . @prefix rdf: . @prefix rml: . @@ -10,8 +11,8 @@ :RMLExpressionMapShape a sh:NodeShape ; - sh:name "ExpressionMap" ; - sh:description """ + rdfs:label "ExpressionMap" ; + rdfs:comment """ Represents a Expression Map. """ ; sh:message """ @@ -32,8 +33,8 @@ rml:reference rml:returnMap rml:functionExecution)] ; - sh:name "template/constant/reference/returnMap/functionExecution" ; - sh:description """ + rdfs:label "template/constant/reference/returnMap/functionExecution" ; + rdfs:comment """ Exactly one rml:template, one rml:constant, one rml:reference, one rml:returnMap, or one rml:functionExecution is required. """ ; @@ -48,8 +49,8 @@ # rml:template sh:property [ sh:path rml:template ; - sh:name "template" ; - sh:description """ + rdfs:label "template" ; + rdfs:comment """ A template (format string) to specify how to generate a value for a subject, predicate, or object, using one or more columns from a logical table row or iterator. @@ -65,8 +66,8 @@ sh:property [ sh:targetSubjectsOf rml:constant ; sh:path rml:constant ; - sh:name "constant" ; - sh:description """ + rdfs:label "constant" ; + rdfs:comment """ A property for indicating whether a term map is a constant-valued term map. """ ; @@ -80,8 +81,8 @@ sh:property [ sh:targetSubjectsOf rml:reference ; sh:path rml:reference ; - sh:name "reference" ; - sh:description """ + rdfs:label "reference" ; + rdfs:comment """ A reference rml:reference is used to refer to a column in case of databases, a record in case of CSV or TSV data source, an element in case of XML data source, an object in case of a JSON data source, etc. @@ -102,8 +103,8 @@ sh:property [ sh:targetSubjectsOf rml:returnMap ; sh:path rml:returnMap ; - sh:name "returnMap" ; - sh:description """ + rdfs:label "returnMap" ; + rdfs:comment """ A Return Map rml:returnMap is used to define the return values of a FnO function from the RML-FNML specification. RML Core only validates if the property is present and has the right node kind. The actual validation @@ -120,8 +121,8 @@ sh:property [ sh:targetSubjectsOf rml:functionExecution ; sh:path rml:functionExecution ; - sh:name "functionExecution" ; - sh:description """ + rdfs:label "functionExecution" ; + rdfs:comment """ A Function Execution rml:functionExecution is used to define the FnO function to execute from the RML-FNML specification. RML Core only validates if the property is present and has the right node kind. diff --git a/shapes/graph_map.ttl b/shapes/graph_map.ttl index 4f5b8ea3..96ffa6b9 100644 --- a/shapes/graph_map.ttl +++ b/shapes/graph_map.ttl @@ -1,8 +1,9 @@ ############################################################################### # RML Graph Map and graph shortcut shape # -# Copyright Dylan Van Assche, IDLab - UGent - imec (2020 - 2023) # +# Copyright Dylan Van Assche, IDLab - UGent - imec (2020 - 2024) # ############################################################################### @prefix sh: . +@prefix rdfs: . @prefix : . @prefix rdf: . @prefix rml: . @@ -12,8 +13,8 @@ a sh:NodeShape ; sh:targetClass rml:GraphMap ; sh:targetObjectsOf rml:graphMap ; - sh:name "GraphMap" ; - sh:description """ + rdfs:label "GraphMap" ; + rdfs:comment """ Represents a Graph Map. """ ; sh:message """ @@ -40,8 +41,8 @@ :RMLgraphShape a sh:NodeShape ; sh:targetObjectsOf rml:graph ; - sh:name "graph" ; - sh:description """ + rdfs:label "graph" ; + rdfs:comment """ An IRI reference for use as the graph name of all triples generated with the Graph Map. """ ; diff --git a/shapes/join.ttl b/shapes/join.ttl index 910cf096..4e2dbf85 100644 --- a/shapes/join.ttl +++ b/shapes/join.ttl @@ -1,8 +1,9 @@ ############################################################################### # RML Join shape # -# Copyright Dylan Van Assche, IDLab - UGent - imec (2023) # +# Copyright Dylan Van Assche, IDLab - UGent - imec (2023i - 2024) # ############################################################################### @prefix sh: . +@prefix rdfs: . @prefix : . @prefix rdf: . @prefix rml: . @@ -12,8 +13,8 @@ a sh:NodeShape ; sh:targetClass rml:Join ; sh:targetObjectsOf rml:joinCondition ; - sh:name "Join" ; - sh:description """ + rdfs:label "Join" ; + rdfs:comment """ Represents a Join. """ ; sh:message """ @@ -23,8 +24,8 @@ sh:property [ sh:path [ sh:alternativePath ( rml:parentMap rml:parent ) ]; - sh:name "parentMap/parent" ; - sh:description """ + rdfs:label "parentMap/parent" ; + rdfs:comment """ rml:parent/rml:parentMap may only be provided once and not at the same time. """ ; @@ -34,8 +35,8 @@ sh:property [ sh:targetSubjectsOf rml:parentMap ; sh:path rml:parentMap ; - sh:name "parentMap" ; - sh:description """ + rdfs:label "parentMap" ; + rdfs:comment """ Specifies the parent of the object component for joining. """ ; sh:message """ @@ -48,8 +49,8 @@ sh:property [ sh:targetSubjectsOf rml:parent ; sh:path rml:parent ; - sh:name "parent" ; - sh:description """ + rdfs:label "parent" ; + rdfs:comment """ Specifies the parent of the object component for joining. """ ; sh:nodeKind sh:Literal ; @@ -57,8 +58,8 @@ sh:property [ sh:path [ sh:alternativePath ( rml:childMap rml:child ) ]; - sh:name "childMap/child" ; - sh:description """ + rdfs:label "childMap/child" ; + rdfs:comment """ rml:child/rml:childMap may only be provided once and not at the same time. """ ; @@ -69,8 +70,8 @@ sh:property [ sh:targetSubjectsOf rml:childMap ; sh:path rml:childMap ; - sh:name "childMap" ; - sh:description """ + rdfs:label "childMap" ; + rdfs:comment """ Specifies the child of the object component for joining. """ ; sh:message """ @@ -83,8 +84,8 @@ sh:property [ sh:targetSubjectsOf rml:child ; sh:path rml:child ; - sh:name "child" ; - sh:description """ + rdfs:label "child" ; + rdfs:comment """ Specifies the child of the object component for joining. """ ; sh:nodeKind sh:Literal ; diff --git a/shapes/language_map.ttl b/shapes/language_map.ttl index 836c53c3..6ed2369b 100644 --- a/shapes/language_map.ttl +++ b/shapes/language_map.ttl @@ -1,8 +1,9 @@ ############################################################################### # RML Language Map and language shortcut shape # -# Copyright Dylan Van Assche, IDLab - UGent - imec (2023) # +# Copyright Dylan Van Assche, IDLab - UGent - imec (2023i - 2024) # ############################################################################### @prefix sh: . +@prefix rdfs: . @prefix : . @prefix rdf: . @prefix rml: . @@ -12,8 +13,8 @@ a sh:NodeShape ; sh:targetClass rml:LanguageMap ; sh:targetObjectsOf rml:languageMap ; - sh:name "LanguageMap" ; - sh:description """ + rdfs:label "LanguageMap" ; + rdfs:comment """ Represents a Language Map. """ ; sh:message """ @@ -36,8 +37,8 @@ :RMLlanguageShape a sh:NodeShape ; sh:targetObjectsOf rml:language ; - sh:name "language" ; - sh:description """ + rdfs:label "language" ; + rdfs:comment """ Specified the language for the generated Literal. """ ; sh:message """ diff --git a/shapes/object_map.ttl b/shapes/object_map.ttl index e83ebaa0..e10ae138 100644 --- a/shapes/object_map.ttl +++ b/shapes/object_map.ttl @@ -1,8 +1,9 @@ ############################################################################### # RML Object Map and object shortcut shape # -# Copyright Dylan Van Assche, IDLab - UGent - imec (2020 - 2023) # +# Copyright Dylan Van Assche, IDLab - UGent - imec (2020 - 2024) # ############################################################################### @prefix sh: . +@prefix rdfs: . @prefix : . @prefix rdf: . @prefix rml: . @@ -11,8 +12,8 @@ :RMLObjectMapShape a sh:NodeShape ; sh:targetClass rml:ObjectMap ; - sh:name "ObjectMap" ; - sh:description """ + rdfs:label "ObjectMap" ; + rdfs:comment """ Represents an Object Map. """ ; sh:message """ @@ -28,8 +29,8 @@ [ sh:path [ sh:alternativePath (rml:languageMap rml:datatypeMap rml:language rml:datatype) ] ; - sh:name "languageMap/datatypeMap/language/datatype" ; - sh:description """ + rdfs:label "languageMap/datatypeMap/language/datatype" ; + rdfs:comment """ rml:language/rml:languageMap and rml:datatype/rml:datatypeMap may only be provided once and not at the same time. """ ; @@ -39,8 +40,8 @@ [ sh:path rml:languageMap ; sh:targetSubjectsOf rml:languageMap ; - sh:name "languageMap" ; - sh:description """ + rdfs:label "languageMap" ; + rdfs:comment """ Specified the language map for the object component for the generated RDF triples. """ ; @@ -53,8 +54,8 @@ [ sh:path rml:datatypeMap ; sh:targetSubjectsOf rml:datatypeMap ; - sh:name "datatypeMap" ; - sh:description """ + rdfs:label "datatypeMap" ; + rdfs:comment """ Specifies the datatype of the object component for the generated RDF triples. """ ; @@ -66,8 +67,8 @@ ] [ sh:path rml:language ; - sh:name "language" ; - sh:description """ + rdfs:label "language" ; + rdfs:comment """ Language tag for the object. """ ; sh:nodeKind sh:Literal ; @@ -75,8 +76,8 @@ [ sh:path rml:datatype ; sh:targetSubjectsOf rml:datatype ; - sh:name "datatype" ; - sh:description """ + rdfs:label "datatype" ; + rdfs:comment """ Datatype for the object. """ ; sh:nodeKind sh:IRI ; @@ -88,8 +89,8 @@ :RMLobjectShape a sh:NodeShape ; sh:targetObjectsOf rml:object ; - sh:name "object" ; - sh:description """ + rdfs:label "object" ; + rdfs:comment """ An IRI, Blank Node, or Literal to use as object for all the RDF triples. """ ; sh:message """ diff --git a/shapes/parent_map.ttl b/shapes/parent_map.ttl index 89711c70..9e338ce1 100644 --- a/shapes/parent_map.ttl +++ b/shapes/parent_map.ttl @@ -1,8 +1,9 @@ ############################################################################### # RML Parent Map shape # -# Copyright Dylan Van Assche, IDLab - UGent - imec (2023) # +# Copyright Dylan Van Assche, IDLab - UGent - imec (2023 - 2024) # ############################################################################### @prefix sh: . +@prefix rdfs: . @prefix : . @prefix rdf: . @prefix rml: . @@ -12,8 +13,8 @@ a sh:NodeShape ; sh:targetClass rml:ParentMap ; sh:targetObjectsOf rml:parentMap ; - sh:name "ParentMap" ; - sh:description """ + rdfs:label "ParentMap" ; + rdfs:comment """ Represents a Parent Map. """ ; sh:message """ @@ -33,8 +34,8 @@ :RMLparentShape a sh:NodeShape ; sh:targetObjectsOf rml:parent ; - sh:name "parent" ; - sh:description """ + rdfs:label "parent" ; + rdfs:comment """ A Literal reference to use as reference to the parent data source. """ ; sh:message """ diff --git a/shapes/predicate_map.ttl b/shapes/predicate_map.ttl index 2d653b82..c8956d87 100644 --- a/shapes/predicate_map.ttl +++ b/shapes/predicate_map.ttl @@ -1,8 +1,9 @@ ############################################################################### # RML Predicate Map and predicate shortcut shape # -# Copyright Dylan Van Assche, IDLab - UGent - imec (2020 - 2023) # +# Copyright Dylan Van Assche, IDLab - UGent - imec (2020 - 2024) # ############################################################################### @prefix sh: . +@prefix rdfs: . @prefix : . @prefix rdf: . @prefix rml: . @@ -12,8 +13,8 @@ a sh:NodeShape ; sh:targetClass rml:PredicateMap ; sh:targetObjectsOf rml:predicateMap ; - sh:name "PredicateMap" ; - sh:description """ + rdfs:label "PredicateMap" ; + rdfs:comment """ Represents a Predicate Map. """ ; sh:message """ @@ -39,8 +40,8 @@ :RMLpredicateShape a sh:NodeShape ; sh:targetObjectsOf rml:predicate ; - sh:name "predicate" ; - sh:description """ + rdfs:label "predicate" ; + rdfs:comment """ Specifies the predicate for the generated triple. """ ; sh:message """ diff --git a/shapes/predicate_object_map.ttl b/shapes/predicate_object_map.ttl index e37f1bbb..56a6cfb1 100644 --- a/shapes/predicate_object_map.ttl +++ b/shapes/predicate_object_map.ttl @@ -1,8 +1,9 @@ ############################################################################### # RML Predicate Object Map shape # -# Copyright Dylan Van Assche, IDLab - UGent - imec (2020 - 2023) # +# Copyright Dylan Van Assche, IDLab - UGent - imec (2020 - 2024) # ############################################################################### @prefix sh: . +@prefix rdfs: . @prefix : . @prefix rdf: . @prefix rml: . @@ -12,8 +13,8 @@ a sh:NodeShape ; sh:targetClass rml:PredicateObjectMap ; sh:targetObjectsOf rml:predicateObjectMap ; - sh:name "PredicateObjectMap" ; - sh:description """ + rdfs:label "PredicateObjectMap" ; + rdfs:comment """ Represents a Predicate Object Map. """; @@ -26,8 +27,8 @@ sh:targetSubjectsOf rml:predicate ; sh:targetSubjectsOf rml:predicateMap ; sh:path [sh:alternativePath (rml:predicate rml:predicateMap)] ; - sh:name "predicate/predicateMap" ; - sh:description """ + rdfs:label "predicate/predicateMap" ; + rdfs:comment """ At least one rml:predicate or rml:predicateMap must be provided. """ ; sh:message """ @@ -38,8 +39,8 @@ [ sh:targetSubjectsOf rml:predicateMap ; sh:path rml:predicateMap ; - sh:name "predicateMap" ; - sh:description """ + rdfs:label "predicateMap" ; + rdfs:comment """ A PredicateMap element to generate the predicate component of the (predicate, object) pair from a logical table row or iterator. """ ; @@ -51,8 +52,8 @@ [ sh:targetSubjectsOf rml:predicate ; sh:path rml:predicate ; - sh:name "predicate" ; - sh:description """ + rdfs:label "predicate" ; + rdfs:comment """ Specifies the predicate for the generated triple from the logical table row or iterator. """ ; @@ -66,8 +67,8 @@ sh:targetSubjectsOf rml:objectMap ; sh:targetSubjectsOf rml:quotedTriplesMap ; sh:path [sh:alternativePath (rml:object rml:objectMap rml:quotedTriplesMap)] ; - sh:name "object/objectMap/quotedTriplesMap" ; - sh:description """ + rdfs:label "object/objectMap/quotedTriplesMap" ; + rdfs:comment """ Either an rml:object, rml:objectMap, or rml:quotedTriplesMap must be provided, not multiple. """ ; sh:message """ @@ -78,8 +79,8 @@ [ sh:targetSubjectsOf rml:objectMap ; sh:path rml:objectMap ; - sh:name "objectMap" ; - sh:description """ + rdfs:label "objectMap" ; + rdfs:comment """ An ObjectMap element to generate the object component of the (predicate, object) pair from a logical table row or iterator. """ ; @@ -94,8 +95,8 @@ [ sh:targetSubjectsOf rml:object ; sh:path rml:object ; - sh:name "object" ; - sh:description """ + rdfs:label "object" ; + rdfs:comment """ Specifies the object for the generated RDF triples. """ ; sh:message """ diff --git a/shapes/ref_object_map.ttl b/shapes/ref_object_map.ttl index 4e9bb909..d4086c59 100644 --- a/shapes/ref_object_map.ttl +++ b/shapes/ref_object_map.ttl @@ -1,8 +1,9 @@ ############################################################################### # RML RefObjectMap shape # -# Copyright Dylan Van Assche, IDLab - UGent - imec (2020 - 2023) # +# Copyright Dylan Van Assche, IDLab - UGent - imec (2020 - 2024) # ############################################################################### @prefix sh: . +@prefix rdfs: . @prefix : . @prefix rdf: . @prefix rml: . @@ -11,8 +12,8 @@ :RMLRefObjectMapShape a sh:NodeShape ; sh:targetClass rml:RefObjectMap ; - sh:name "RefObjectMap" ; - sh:description """ + rdfs:label "RefObjectMap" ; + rdfs:comment """ Represents a Reference Object Map. """ ; sh:message """ @@ -27,8 +28,8 @@ [ sh:targetSubjectsOf rml:parentTriplesMap ; sh:path rml:parentTriplesMap ; - sh:name "parentTriplesMap" ; - sh:description """ + rdfs:label "parentTriplesMap" ; + rdfs:comment """ Specifies the Triples Map element corresponding to the parent data source of the foreign key constraint. """ ; diff --git a/shapes/shared_properties.ttl b/shapes/shared_properties.ttl index e960665c..20246ea4 100644 --- a/shapes/shared_properties.ttl +++ b/shapes/shared_properties.ttl @@ -1,8 +1,9 @@ ############################################################################### # RML shared properties among resources shapes # -# Copyright Dylan Van Assche, IDLab - UGent - imec (2023) # +# Copyright Dylan Van Assche, IDLab - UGent - imec (2023 - 2024) # ############################################################################### @prefix sh: . +@prefix rdfs: . @prefix : . @prefix rdf: . @prefix rml: . @@ -17,8 +18,8 @@ sh:property [ sh:targetSubjectsOf rml:logicalSource ; sh:path rml:logicalSource ; - sh:name "logicalSource" ; - sh:description """ + rdfs:label "logicalSource" ; + rdfs:comment """ A logical source is any source that is mapped to RDF triples. """ ; sh:message """ @@ -34,8 +35,8 @@ sh:targetSubjectsOf rml:subject ; sh:targetSubjectsOf rml:quotedTriplesMap ; sh:path [sh:alternativePath (rml:subjectMap rml:subject rml:quotedTriplesMap)] ; - sh:name "subjectMap/subject/quotedTriplesMap" ; - sh:description """ + rdfs:label "subjectMap/subject/quotedTriplesMap" ; + rdfs:comment """ Either a rml:subject, rml:subjectMap or a rml:quotedTriplesMap is required, not multiple. """ ; sh:message """ @@ -48,8 +49,8 @@ sh:property [ sh:targetSubjectsOf rml:subjectMap ; sh:path rml:subjectMap ; - sh:name "subjectMap" ; - sh:description """ + rdfs:label "subjectMap" ; + rdfs:comment """ A Subject Map element to generate a subject for generated RDF triples. """ ; sh:message """ @@ -64,8 +65,8 @@ sh:property [ sh:targetSubjectsOf rml:subject ; sh:path rml:subject ; - sh:name "subject" ; - sh:description """ + rdfs:label "subject" ; + rdfs:comment """ An IRI reference for use as subject for all generated RDF triples. """ ; sh:message """ @@ -78,8 +79,8 @@ sh:property [ sh:targetSubjectsOf rml:predicateObjectMap ; sh:path rml:predicateObjectMap ; - sh:name "predicateObjectMap" ; - sh:description """ + rdfs:label "predicateObjectMap" ; + rdfs:comment """ A Predicate Object Map element to generate a (predicate, object) pair. """ ; sh:message """ @@ -97,8 +98,8 @@ sh:property [ sh:path [sh:alternativePath (rml:graph rml:graphMap)] ; - sh:name "graph/graphMap" ; - sh:description """ + rdfs:label "graph/graphMap" ; + rdfs:comment """ Either an rml:graph or rml:graphMap may be optionally be provided, but not both. """ ; @@ -111,8 +112,8 @@ ] ; sh:property [ sh:path rml:graphMap ; - sh:name "graphMap" ; - sh:description """ + rdfs:label "graphMap" ; + rdfs:comment """ Specifies a Graph Map. When used with a Subject Map element, all the RDF triples generated will be stored in the specified named graph. Otherwise, the RDF triple generated using the (predicate, object) @@ -125,8 +126,8 @@ ] ; sh:property [ sh:path rml:graph ; - sh:name "graph" ; - sh:description """ + rdfs:label "graph" ; + rdfs:comment """ An IRI reference to use as the named graph of all generated triples. """ ; sh:message """ @@ -140,8 +141,8 @@ a sh:PropertyShape; sh:path rml:joinCondition ; sh:targetSubjectsOf rml:joinCondition ; - sh:name "joinCondition" ; - sh:description """ + rdfs:label "joinCondition" ; + rdfs:comment """ Specifies the join condition for joining a child data source with a parent data source of the foreign key constraint. """ ; @@ -156,8 +157,8 @@ sh:path rml:logicalTarget ; sh:targetSubjectsOf rml:logicalTarget ; sh:path rml:logicalTarget ; - sh:name "logicalTarget" ; - sh:description """ + rdfs:label "logicalTarget" ; + rdfs:comment """ A logical target is any target to where generated RDF triples are exported to. """ ; @@ -171,8 +172,8 @@ :RMLStrategyAppendShape a sh:NodeShape ; sh:targetObjectsOf rml:strategy ; - sh:name "Strategy" ; - sh:description """ + rdfs:label "Strategy" ; + rdfs:comment """ Strategy to follow when generating RDF triples. """ ; sh:message """ diff --git a/shapes/subject_map.ttl b/shapes/subject_map.ttl index 9353b8f6..fa5d4301 100644 --- a/shapes/subject_map.ttl +++ b/shapes/subject_map.ttl @@ -1,8 +1,9 @@ ############################################################################### # RML Subject Map and subject shortcut shape # -# Copyright Dylan Van Assche, IDLab - UGent - imec (2020 - 2023) # +# Copyright Dylan Van Assche, IDLab - UGent - imec (2020 - 2024) # ############################################################################### @prefix sh: . +@prefix rdfs: . @prefix : . @prefix rdf: . @prefix rml: . @@ -13,8 +14,8 @@ a sh:NodeShape ; sh:targetClass rml:SubjectMap ; sh:targetObjectsOf rml:subjectMap ; - sh:name "SubjectMap" ; - sh:description """ + rdfs:label "SubjectMap" ; + rdfs:comment """ Represents a Subject Map. """ ; sh:message """ @@ -31,8 +32,8 @@ [ sh:targetSubjectsOf rml:class ; sh:path rml:class ; - sh:name "class" ; - sh:description """ + rdfs:label "class" ; + rdfs:comment """ The subject value generated will be asserted as an instance of this RDFS class. """ ; @@ -54,8 +55,8 @@ :RMLsubjectShape a sh:NodeShape ; sh:targetObjectsOf rml:subject ; - sh:name "subject" ; - sh:description """ + rdfs:label "subject" ; + rdfs:comment """ An IRI reference to use as subject for all the RDF triples. """ ; sh:message """ diff --git a/shapes/term_map.ttl b/shapes/term_map.ttl index f149b087..9db96ea6 100644 --- a/shapes/term_map.ttl +++ b/shapes/term_map.ttl @@ -1,8 +1,9 @@ ############################################################################### # RML Expression Map shape # -# Copyright Dylan Van Assche, IDLab - UGent - imec (2023) # +# Copyright Dylan Van Assche, IDLab - UGent - imec (2023 - 2024) # ############################################################################### @prefix sh: . +@prefix rdfs: . @prefix : . @prefix rdf: . @prefix rml: . @@ -10,8 +11,8 @@ :RMLTermMapShape a sh:NodeShape ; - sh:name "TermMap" ; - sh:description """ + rdfs:label "TermMap" ; + rdfs:comment """ Represents a Term Map. """ ; sh:message """ @@ -24,8 +25,8 @@ [ sh:targetSubjectsOf rml:termType ; sh:path rml:termType ; - sh:name "termType" ; - sh:description """ + rdfs:label "termType" ; + rdfs:comment """ An IRI indicating whether a generated term should be an IRI, Blank Node, or a Literal. """ ; diff --git a/shapes/triples_map.ttl b/shapes/triples_map.ttl index a7a0144e..a05bc109 100644 --- a/shapes/triples_map.ttl +++ b/shapes/triples_map.ttl @@ -1,8 +1,9 @@ ############################################################################### # RML Triples Map shape # -# Copyright Dylan Van Assche, IDLab - UGent - imec (2020 - 2023) # +# Copyright Dylan Van Assche, IDLab - UGent - imec (2020 - 2024) # ############################################################################### @prefix : . +@prefix rdfs: . @prefix sh: . @prefix rdf: . @prefix rml: . @@ -13,8 +14,8 @@ a sh:NodeShape ; sh:targetClass rml:TriplesMap ; sh:targetObjectsOf rml:parentTriplesMap ; - sh:name "TriplesMap" ; - sh:description """ + rdfs:label "TriplesMap" ; + rdfs:comment """ Represents a Triples Map. """ ; sh:message """