Skip to content

Commit 99d568e

Browse files
authored
Merge pull request #50 from kg-construct/rml-core-github-139
shapes: replace sh:name and sh:description with RDFS
2 parents 90ab040 + 03333ba commit 99d568e

File tree

2 files changed

+22
-21
lines changed

2 files changed

+22
-21
lines changed

shapes/cc.ttl

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
3131

3232
<http://w3id.org/rml/shapes/RMLGatherMapShape> a sh:NodeShape ;
33-
sh:and ( <http://w3id.org/rml/shapes/RMLTermMapShape> <http://w3id.org/rml/shapes/RMLLogicalTargetPropertiesShape> [ sh:description """
33+
sh:and ( <http://w3id.org/rml/shapes/RMLTermMapShape> <http://w3id.org/rml/shapes/RMLLogicalTargetPropertiesShape> [ rdfs:comment """
3434
rml:strategy specifies the collection strategy to use: rml:append
3535
or rml:cartesianProduct. rml:append is the default strategy.
3636
""" ;
@@ -39,10 +39,10 @@
3939
Zero or one rml:strategy is required.
4040
""" ;
4141
sh:minCount 0 ;
42-
sh:name "strategy" ;
42+
rdfs:label "strategy" ;
4343
sh:node <http://w3id.org/rml/shapes/RMLStrategyAppendShape> ;
4444
sh:nodeKind sh:IRI ;
45-
sh:path rml:strategy ] [ sh:description """
45+
sh:path rml:strategy ] [ rdfs:comment """
4646
rml:gatherAs specifies how to gather the collection e.g. a rdf:Alt,
4747
rdf:List, rdf:Bag, or rdf:Seq.
4848
""" ;
@@ -52,10 +52,10 @@
5252
One rml:gatherAs is required.
5353
""" ;
5454
sh:minCount 1 ;
55-
sh:name "gatherAs" ;
55+
rdfs:label "gatherAs" ;
5656
sh:nodeKind sh:IRI ;
5757
sh:path rml:gatherAs ] [ sh:datatype xsd:boolean ;
58-
sh:description """
58+
rdfs:comment """
5959
Defines the behavior when the collection is empty. True will generate
6060
a rdf:nil for a RDF collection or a resource with no members for an RDF
6161
container. False will not generate any collection or container.
@@ -67,27 +67,27 @@
6767
xsd:boolean.
6868
""" ;
6969
sh:minCount 0 ;
70-
sh:name "allowEmptyListAndContainer" ;
70+
rdfs:label "allowEmptyListAndContainer" ;
7171
sh:nodeKind sh:Literal ;
72-
sh:path rml:allowEmptyListAndContainer ] [ sh:description """
72+
sh:path rml:allowEmptyListAndContainer ] [ rdfs:comment """
7373
RML Term Maps to gather in the collection or container.
7474
""" ;
7575
sh:message """
7676
one or more rml:gather properties are needed, each pointing to a
7777
RML Term Map.
7878
""" ;
7979
sh:minCount 1 ;
80-
sh:name "gather" ;
80+
rdfs:label "gather" ;
8181
sh:nodeKind sh:BlankNodeOrIRI ;
8282
sh:path rml:gather ] ) ;
83-
sh:description """
83+
rdfs:comment """
8484
Represents a Gather Map.
8585
""" ;
8686
sh:message """
8787
Gather Map requires one rml:strategy, one rml:gatherAs, and a list of
8888
Term Map with rml:gather.
8989
""" ;
90-
sh:name "GatherMap" .
90+
rdfs:label "GatherMap" .
9191

9292
<http://w3id.org/rml/shapes/RMLLogicalTargetPropertiesShape> a sh:NodeShape .
9393

shapes/gather_map.ttl

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
11
###############################################################################
22
# RMLCC Gather Map shape #
3-
# Copyright Dylan Van Assche, IDLab - UGent - imec (2023) #
3+
# Copyright Dylan Van Assche, IDLab - UGent - imec (2023 - 2024) #
44
###############################################################################
55
@prefix sh: <http://www.w3.org/ns/shacl#> .
6+
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
67
@prefix : <http://w3id.org/rml/shapes/> .
78
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
89
@prefix rml: <http://w3id.org/rml/> .
910
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
1011

1112
:RMLGatherMapShape
1213
a sh:NodeShape ;
13-
sh:name "GatherMap" ;
14-
sh:description """
14+
rdfs:label "GatherMap" ;
15+
rdfs:comment """
1516
Represents a Gather Map.
1617
""" ;
1718
sh:message """
@@ -26,8 +27,8 @@
2627
# Gather Map specific shapes
2728
[
2829
sh:path rml:strategy ;
29-
sh:name "strategy" ;
30-
sh:description """
30+
rdfs:label "strategy" ;
31+
rdfs:comment """
3132
rml:strategy specifies the collection strategy to use: rml:append
3233
or rml:cartesianProduct. rml:append is the default strategy.
3334
""" ;
@@ -41,8 +42,8 @@
4142
]
4243
[
4344
sh:path rml:gatherAs ;
44-
sh:name "gatherAs" ;
45-
sh:description """
45+
rdfs:label "gatherAs" ;
46+
rdfs:comment """
4647
rml:gatherAs specifies how to gather the collection e.g. a rdf:Alt,
4748
rdf:List, rdf:Bag, or rdf:Seq.
4849
""" ;
@@ -56,8 +57,8 @@
5657
]
5758
[
5859
sh:path rml:allowEmptyListAndContainer ;
59-
sh:name "allowEmptyListAndContainer" ;
60-
sh:description """
60+
rdfs:label "allowEmptyListAndContainer" ;
61+
rdfs:comment """
6162
Defines the behavior when the collection is empty. True will generate
6263
a rdf:nil for a RDF collection or a resource with no members for an RDF
6364
container. False will not generate any collection or container.
@@ -74,8 +75,8 @@
7475
]
7576
[
7677
sh:path rml:gather ;
77-
sh:name "gather" ;
78-
sh:description """
78+
rdfs:label "gather" ;
79+
rdfs:comment """
7980
RML Term Maps to gather in the collection or container.
8081
""" ;
8182
sh:message """

0 commit comments

Comments
 (0)