-
Notifications
You must be signed in to change notification settings - Fork 4
Description
Could not complete the distribution level metadata population because of some rendering mistakes, based on the advice from Dennis I edited the shacl for distribution which fixed the issue.
I added
dash:editor dash:URIEditor ;
dash:viewer dash:LabelViewer
at the end of sh:property [] for sh:name "Access URL (the URL for a direct download of the data)", sh:name "Data Format" and sh:name "Rights (the URL to the description of what you are allowed to do with this data download)" ;
and
dash:editor dash:TextFieldEditor ;
dash:viewer dash:LiteralViewer ;
at the end of sh:property [] for "Byte Size as an Integer (about how large is the download? 1Meg = 1000000)"
I post the full shacl which does the work now.
@Prefix : http://fairdatapoint.org/ .
@Prefix sh: http://www.w3.org/ns/shacl# .
@Prefix rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns# .
@Prefix rdfs: http://www.w3.org/2000/01/rdf-schema# .
@Prefix dcat: http://www.w3.org/ns/dcat# .
@Prefix dct: http://purl.org/dc/terms/ .
@Prefix foaf: http://xmlns.com/foaf/0.1/ .
@Prefix xsd: http://www.w3.org/2001/XMLSchema# .
@Prefix dcatap: http://data.europa.eu/r5r/ .
@Prefix healthdcatap: http://data.europa.eu/healthdcat-ap# .
@Prefix adms: http://www.w3.org/ns/adms# .
@Prefix vcard: http://www.w3.org/2006/vcard/ns# .
@Prefix skos: http://www.w3.org/2004/02/skos/core# .
@Prefix dpv: https://w3id.org/dpv# .
@Prefix eli: http://data.europa.eu/eli/ontology# .
@Prefix dash: http://datashapes.org/dash# .
@Prefix ejp: https://w3id.org/ejp-rd/vocabulary# .
@Prefix odrl: http://www.w3.org/ns/odrl/2/ .
:DistributionShape a sh:NodeShape ;
sh:targetClass dcat:Distribution ;
sh:property [
sh:name "Access URL (the URL for a direct download of the data)" ;
sh:path dcat:accessURL ;
sh:minCount 1 ;
sh:nodeKind sh:IRI ;
sh:severity sh:Violation ;
sh:message "Distribution must have at least one dcat:accessURL as an IRI (Health Data Access Body landing page)" ;
dash:editor dash:URIEditor ;
dash:viewer dash:LabelViewer ;
] ;
sh:property [
sh:name "Data Format" ;
sh:path dct:format ;
sh:minCount 1 ;
sh:maxCount 1 ;
sh:nodeKind sh:IRI ;
sh:severity sh:Violation ;
sh:message "Distribution must have exactly one dct:format as an IRI" ;
dash:editor dash:URIEditor ;
dash:viewer dash:LabelViewer ;
] ;
sh:property [
sh:name "Rights (the URL to the description of what you are allowed to do with this data download)" ;
sh:path dct:rights ;
sh:minCount 1 ;
sh:maxCount 1 ;
sh:nodeKind sh:IRI ;
sh:severity sh:Violation ;
sh:message "Distribution must have exactly one dct:rights statement" ;
dash:editor dash:URIEditor ;
dash:viewer dash:LabelViewer ;
] ;
sh:property [
sh:name "Byte Size as an Integer (about how large is the download? 1Meg = 1000000)" ;
sh:path dcat:byteSize ;
sh:minCount 1 ;
sh:maxCount 1 ;
sh:datatype xsd:nonNegativeInteger ;
sh:severity sh:Violation ;
sh:message "Distribution must have exactly one dcat:byteSize" ;
dash:editor dash:TextFieldEditor ;
dash:viewer dash:LiteralViewer ;
] .