From 1596724309008644a68062576cf2280619aef9e0 Mon Sep 17 00:00:00 2001 From: Dylan Van Assche Date: Wed, 3 Jul 2024 12:55:01 +0200 Subject: [PATCH] shapes: allow rml:URI as term type Contributes to https://github.com/kg-construct/rml-core/issues/50 --- shapes/graph_map.ttl | 4 ++-- shapes/predicate_map.ttl | 4 ++-- shapes/subject_map.ttl | 5 +++-- shapes/term_map.ttl | 6 +++--- 4 files changed, 10 insertions(+), 9 deletions(-) diff --git a/shapes/graph_map.ttl b/shapes/graph_map.ttl index 4f5b8ea3..5270f779 100644 --- a/shapes/graph_map.ttl +++ b/shapes/graph_map.ttl @@ -29,9 +29,9 @@ [ sh:path rml:termType; sh:message """ - rml:termType must be an IRI or blank node for a Graph Map. + rml:termType must be an IRI, URI, or blank node for a Graph Map. """; - sh:in (rml:IRI rml:BlankNode); + sh:in (rml:IRI rml:URI rml:BlankNode); ] ) ; . diff --git a/shapes/predicate_map.ttl b/shapes/predicate_map.ttl index 2d653b82..a2ab6c04 100644 --- a/shapes/predicate_map.ttl +++ b/shapes/predicate_map.ttl @@ -28,9 +28,9 @@ [ sh:path rml:termType; sh:message """ - rml:termType for Predicate Map can only be a rml:IRI; + rml:termType for Predicate Map can only be a rml:IRI or rml:URI; """; - sh:in (rml:IRI); + sh:in (rml:IRI rml:URI); ] ) ; . diff --git a/shapes/subject_map.ttl b/shapes/subject_map.ttl index 9353b8f6..0b4c93bd 100644 --- a/shapes/subject_map.ttl +++ b/shapes/subject_map.ttl @@ -44,9 +44,10 @@ [ sh:path rml:termType ; sh:message """ - rml:termType must be a rml:IRI or rml:BlankNode for Subject Map. + rml:termType must be a rml:IRI, rml:URI, or rml:BlankNode + for a Subject Map. """ ; - sh:in (rml:IRI rml:BlankNode); + sh:in (rml:IRI rml:URI rml:BlankNode); ] ) ; . diff --git a/shapes/term_map.ttl b/shapes/term_map.ttl index f149b087..247158df 100644 --- a/shapes/term_map.ttl +++ b/shapes/term_map.ttl @@ -30,11 +30,11 @@ Blank Node, or a Literal. """ ; sh:message """ - rml:termType must be either rml:IRI, rml:Literal, or rml:BlankNode - for a Term Map. May only be provided once. + rml:termType must be either rml:IRI, rml:URI, rml:Literal, + or rml:BlankNode for a Term Map. May only be provided once. """ ; sh:maxCount 1 ; - sh:in (rml:IRI rml:Literal rml:BlankNode) ; + sh:in (rml:IRI rml:URI rml:Literal rml:BlankNode) ; sh:nodeKind sh:IRI ; ] ) ;