Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

shapes: replace sh:name and sh:description with RDFS #28

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading