From 3a203ea892e5ed477d5e284114b3575819e92a73 Mon Sep 17 00:00:00 2001 From: Bob Coret Date: Fri, 16 Feb 2024 13:23:12 +0100 Subject: [PATCH] Validate contentUrl (#867) --- shacl/register.ttl | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/shacl/register.ttl b/shacl/register.ttl index 9d0b9819..16eae604 100644 --- a/shacl/register.ttl +++ b/shacl/register.ttl @@ -66,6 +66,7 @@ reg:DistributionShape sh:property # Required properties reg:DistributionContentUrlProperty, + reg:DistributionContentUrlIriProperty, reg:DistributionEncodingFormatProperty, # Recommended properties reg:SchemaDistributionNameProperty, @@ -168,7 +169,16 @@ reg:DistributionContentUrlProperty a sh:PropertyShape ; sh:minCount 1 ; sh:maxCount 1 ; sh:path schema:contentUrl ; - sh:message "Een dataset distributie dient een content URL te bevatten"@nl, "A dataset distribution should contain an content URL"@en ; + sh:message "Een dataset distributie dient een content URL te bevatten"@nl, "A dataset distribution should contain a content URL"@en ; +. + +reg:DistributionContentUrlIriProperty a sh:PropertyShape ; + rdfs:comment "De URL waar de distributie rechtstreeks toegankelijk is."@nl, "The URL where the distribution can be directly accessed."@en ; + sh:nodeKind sh:IRI ; + sh:pattern "^https?://" ; + sh:severity sh:Warning ; # will become a sh:Violation in near future, to be communicated + sh:path schema:contentUrl ; + sh:message "Een dataset distributie dient een content URL te bevatten in de vorm van een IRI, niet een literal."@nl, "A dataset distribution should contain a content URL, this should be an IRI, not a literal."@en ; . reg:DistributionEncodingFormatProperty a sh:PropertyShape ;