Skip to content

Commit

Permalink
Validate contentUrl (#867)
Browse files Browse the repository at this point in the history
  • Loading branch information
coret committed Feb 16, 2024
1 parent 92915d8 commit 3a203ea
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion shacl/register.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ reg:DistributionShape
sh:property
# Required properties
reg:DistributionContentUrlProperty,
reg:DistributionContentUrlIriProperty,
reg:DistributionEncodingFormatProperty,
# Recommended properties
reg:SchemaDistributionNameProperty,
Expand Down Expand Up @@ -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 ;
Expand Down

0 comments on commit 3a203ea

Please sign in to comment.