Skip to content

Commit

Permalink
shapes: replace sh:name and sh:description with RDFS
Browse files Browse the repository at this point in the history
  • Loading branch information
DylanVanAssche committed Aug 1, 2024
1 parent 35f5888 commit b222c6d
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 15 deletions.
5 changes: 3 additions & 2 deletions shapes/assertedtriples_map.ttl
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
###############################################################################
# RML Asserted Triples Map shape #
# Copyright Dylan Van Assche, IDLab - UGent - imec (2023) #
# Copyright Dylan Van Assche, IDLab - UGent - imec (2023 - 2024) #
###############################################################################
@prefix : <http://w3id.org/rml/shapes/> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rml: <http://w3id.org/rml/> .
Expand All @@ -13,7 +14,7 @@
a sh:NodeShape ;
sh:targetClass rml:AssertedTriplesMap ;
sh:message "AssertedTriplesMap" ;
sh:description """
rdfs:comment """
Represents a Asserted Triples Map.
""" ;
sh:message """
Expand Down
5 changes: 3 additions & 2 deletions shapes/nonassertedtriples_map.ttl
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
###############################################################################
# RML Non Asserted Triples Map shape #
# Copyright Dylan Van Assche, IDLab - UGent - imec (2023) #
# Copyright Dylan Van Assche, IDLab - UGent - imec (2023 - 2024) #
###############################################################################
@prefix : <http://w3id.org/rml/shapes/> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rml: <http://w3id.org/rml/> .
Expand All @@ -13,7 +14,7 @@
a sh:NodeShape ;
sh:targetClass rml:NonAssertedTriplesMap ;
sh:message "NonAssertedTriplesMap" ;
sh:description """
rdfs:comment """
Represents a Non Asserted Triples Map.
""" ;
sh:message """
Expand Down
12 changes: 6 additions & 6 deletions shapes/star.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
sh:targetObjectsOf rml:quotedTriplesMap .

<http://w3id.org/rml/shapes/RMLStarMapShape> a sh:NodeShape ;
sh:and ( <http://w3id.org/rml/shapes/RMLJoinConditionPropertiesShape> [ sh:description """
sh:and ( <http://w3id.org/rml/shapes/RMLJoinConditionPropertiesShape> [ rdfs:comment """
An Quoted Triples Map element to generate a RDF-star triple as
subject or object or another triple from a logical source record.
""" ;
Expand All @@ -63,17 +63,17 @@
Exactly one rml:quotedTriplesMap is required.
""" ;
sh:minCount 1 ;
sh:name "quotedTriplesMap" ;
rdfs:label "quotedTriplesMap" ;
sh:nodeKind sh:BlankNodeOrIRI ;
sh:path rml:quotedTriplesMap ] [ sh:message """
An Quoted Triples Map may never be used for generating a predicate.
""" ;
sh:name "PredicateMap" ;
rdfs:label "PredicateMap" ;
sh:targetObjectsOf rml:predicateObjectMap ;
sh:xone ( [ sh:minCount 1 ;
sh:path rml:predicate ] [ sh:minCount 1 ;
sh:path rml:predicateMap ] ) ] ) ;
sh:description """
rdfs:comment """
Represents a Star Map.
""" ;
sh:message """
Expand All @@ -89,7 +89,7 @@
""" ;
sh:path rdf:type ;
sh:value rml:AssertedTriplesMap ] ) ;
sh:description """
rdfs:comment """
Represents a Asserted Triples Map.
""" ;
sh:message """
Expand All @@ -108,7 +108,7 @@
""" ;
sh:path rdf:type ;
sh:value rml:NonAssertedTriplesMap ] ) ;
sh:description """
rdfs:comment """
Represents a Non Asserted Triples Map.
""" ;
sh:message """
Expand Down
11 changes: 6 additions & 5 deletions shapes/star_map.ttl
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
###############################################################################
# RML Star Map shape #
# Copyright Dylan Van Assche, IDLab - UGent - imec (2023) #
# Copyright Dylan Van Assche, IDLab - UGent - imec (2023 - 2024) #
###############################################################################
@prefix : <http://w3id.org/rml/shapes/> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rml: <http://w3id.org/rml/> .
Expand All @@ -13,7 +14,7 @@
a sh:NodeShape ;
sh:targetClass rml:StarMap ;
sh:message "StarMap" ;
sh:description """
rdfs:comment """
Represents a Star Map.
""" ;
sh:message """
Expand All @@ -27,8 +28,8 @@
# Star Map specific shapes
[
sh:path rml:quotedTriplesMap ;
sh:name "quotedTriplesMap" ;
sh:description """
rdfs:label "quotedTriplesMap" ;
rdfs:comment """
An Quoted Triples Map element to generate a RDF-star triple as
subject or object or another triple from a logical source record.
""" ;
Expand All @@ -41,7 +42,7 @@
]
[
sh:targetObjectsOf rml:predicateObjectMap ;
sh:name "PredicateMap" ;
rdfs:label "PredicateMap" ;
sh:message """
An Quoted Triples Map may never be used for generating a predicate.
""" ;
Expand Down

0 comments on commit b222c6d

Please sign in to comment.