Skip to content

Commit

Permalink
shapes: allow rml:UnsafeIRI as term type
Browse files Browse the repository at this point in the history
Contributes to #72
  • Loading branch information
DylanVanAssche committed Jul 4, 2024
1 parent 1596724 commit 6c2adc6
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 10 deletions.
5 changes: 3 additions & 2 deletions shapes/graph_map.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,10 @@
[
sh:path rml:termType;
sh:message """
rml:termType must be an IRI, URI, or blank node for a Graph Map.
rml:termType must be an rml:IRI, rml:UnsafeIRI, rml:URI,
or rml:BlankNode for a Graph Map.
""";
sh:in (rml:IRI rml:URI rml:BlankNode);
sh:in (rml:IRI rml:URI rml:UnsafeIRI rml:BlankNode);
]
) ;
.
Expand Down
5 changes: 3 additions & 2 deletions shapes/predicate_map.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,10 @@
[
sh:path rml:termType;
sh:message """
rml:termType for Predicate Map can only be a rml:IRI or rml:URI;
rml:termType for Predicate Map can only be a rml:IRI, rml:UnsafeIRI,
or rml:URI;
""";
sh:in (rml:IRI rml:URI);
sh:in (rml:IRI rml:UnsafeIRI rml:URI);
]
) ;
.
Expand Down
6 changes: 3 additions & 3 deletions shapes/subject_map.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@
[
sh:path rml:termType ;
sh:message """
rml:termType must be a rml:IRI, rml:URI, or rml:BlankNode
for a Subject Map.
rml:termType must be a rml:IRI, rml:UnsafeIRI, rml:URI,
or rml:BlankNode for a Subject Map.
""" ;
sh:in (rml:IRI rml:URI rml:BlankNode);
sh:in (rml:IRI rml:UnsafeIRI rml:URI rml:BlankNode);
]
) ;
.
Expand Down
7 changes: 4 additions & 3 deletions shapes/term_map.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,12 @@
Blank Node, or a Literal.
""" ;
sh:message """
rml:termType must be either rml:IRI, rml:URI, rml:Literal,
or rml:BlankNode for a Term Map. May only be provided once.
rml:termType must be either rml:IRI, rml:UnsafeIRI,
rml:URI, rml:Literal, or rml:BlankNode for a Term Map.
May only be provided once.
""" ;
sh:maxCount 1 ;
sh:in (rml:IRI rml:URI rml:Literal rml:BlankNode) ;
sh:in (rml:IRI rml:UnsafeIRI rml:URI rml:Literal rml:BlankNode) ;
sh:nodeKind sh:IRI ;
]
) ;
Expand Down

0 comments on commit 6c2adc6

Please sign in to comment.