Skip to content

Commit

Permalink
Updated shapes for dcat:Distribution
Browse files Browse the repository at this point in the history
  • Loading branch information
junrongYu committed Apr 9, 2024
1 parent 768c8c2 commit e07ef4d
Showing 1 changed file with 92 additions and 85 deletions.
177 changes: 92 additions & 85 deletions docs/dcat-shapes.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -33,43 +33,6 @@ PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
sh:path foaf:primaryTopic ;
sh:severity sh:Violation
] ,
[
sh:class skos:Concept ;
sh:maxCount 1 ;
sh:message "A `dcat:CatalogRecord` _MAY_ have a maximum of 1 `adms:status` predicate where the value node is an IRI of an individual with the type `skos:Concept`." ;
sh:path adms:status ;
sh:severity sh:Violation
] ,
[
sh:maxCount 1 ;
sh:message "A `dcat:CatalogRecord` _MAY_ have a maximum of 1 `dcterms:language` where the value node is an IRI." ;
sh:nodeKind sh:IRI ;
sh:path dcterms:language ;
sh:severity sh:Violation
] ,
[
sh:message "A `dcat:CatalogRecord` _MUST_ have at least 1 `dcat:contactPoint` where the value node is a `schema:Person` or `schema:Organization`." ;
sh:minCount 1 ;
sh:or (
[
sh:nodeKind schema:Person ;
sh:severity sh:Violation
]
[
sh:nodeKind schema:Organization ;
sh:severity sh:Violation
]
) ;
sh:path dcat:contactPoint ;
sh:severity sh:Violation
] ,
[
sh:maxCount 1 ;
sh:message "A `dcat:CatalogRecord` _MAY_ have a maximum of 1 <http://www.w3.org/2011/content#characterEncoding> predicate where the value node is a literal value." ;
sh:nodeKind sh:Literal ;
sh:path <http://www.w3.org/2011/content#characterEncoding> ;
sh:severity sh:Violation
] ,
[
sh:maxCount 1 ;
sh:message "A `dcat:CatalogRecord` _MUST_ have exactly 1 `dcterms:created` predicate where the value node is a literal with the datatype `xsd:date`, `xsd:dateTime`, `xsd:gYear` or `xsd:gYearMonth`." ;
Expand Down Expand Up @@ -136,12 +99,49 @@ PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
sh:path dcterms:identifier ;
sh:severity sh:Violation
] ,
[
sh:class skos:Concept ;
sh:maxCount 1 ;
sh:message "A `dcat:CatalogRecord` _MAY_ have a maximum of 1 `adms:status` predicate where the value node is an IRI of an individual with the type `skos:Concept`." ;
sh:path adms:status ;
sh:severity sh:Violation
] ,
[
sh:maxCount 1 ;
sh:message "A `dcat:CatalogRecord` _MAY_ have a maximum of 1 `dcterms:source` predicate where the value node is an IRI." ;
sh:nodeKind sh:IRI ;
sh:path dcterms:source ;
sh:severity sh:Violation
] ,
[
sh:maxCount 1 ;
sh:message "A `dcat:CatalogRecord` _MAY_ have a maximum of 1 `dcterms:language` where the value node is an IRI." ;
sh:nodeKind sh:IRI ;
sh:path dcterms:language ;
sh:severity sh:Violation
] ,
[
sh:message "A `dcat:CatalogRecord` _MUST_ have at least 1 `dcat:contactPoint` where the value node is a `schema:Person` or `schema:Organization`." ;
sh:minCount 1 ;
sh:or (
[
sh:nodeKind schema:Person ;
sh:severity sh:Violation
]
[
sh:nodeKind schema:Organization ;
sh:severity sh:Violation
]
) ;
sh:path dcat:contactPoint ;
sh:severity sh:Violation
] ,
[
sh:maxCount 1 ;
sh:message "A `dcat:CatalogRecord` _MAY_ have a maximum of 1 <http://www.w3.org/2011/content#characterEncoding> predicate where the value node is a literal value." ;
sh:nodeKind sh:Literal ;
sh:path <http://www.w3.org/2011/content#characterEncoding> ;
sh:severity sh:Violation
] ;
sh:targetClass dcat:CatalogRecord ;
.
Expand Down Expand Up @@ -478,6 +478,54 @@ PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
a sh:NodeShape ;
rdfs:label "Dataset"@en ;
sh:property
[
sh:maxCount 1 ;
sh:path dcterms:issued ;
sh:severity sh:Violation ;
sh:shape :DateOrDateTimeDataType_Shape
] ,
[
sh:path dcterms:language ;
sh:severity sh:Violation
] ,
[
sh:maxCount 1 ;
sh:path dcterms:modified ;
sh:severity sh:Violation ;
sh:shape :DateOrDateTimeDataType_Shape
] ,
[
sh:path dcterms:provenance ;
sh:severity sh:Violation
] ,
[
sh:nodeKind sh:BlankNodeOrIRI ;
sh:path dcterms:relation ;
sh:severity sh:Violation
] ,
[
sh:path dcterms:source ;
sh:severity sh:Violation
] ,
[
sh:path dcterms:type ;
sh:severity sh:Violation
] ,
[
sh:maxCount 1 ;
sh:nodeKind sh:Literal ;
sh:path owl:versionInfo ;
sh:severity sh:Violation
] ,
[
sh:nodeKind sh:Literal ;
sh:path adms:versionNotes ;
sh:severity sh:Violation
] ,
[
sh:path adms:identifier ;
sh:severity sh:Violation
] ,
[
sh:path adms:sample ;
sh:severity sh:Violation
Expand Down Expand Up @@ -596,54 +644,6 @@ PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
[
sh:path dcterms:isVersionOf ;
sh:severity sh:Violation
] ,
[
sh:maxCount 1 ;
sh:path dcterms:issued ;
sh:severity sh:Violation ;
sh:shape :DateOrDateTimeDataType_Shape
] ,
[
sh:path dcterms:language ;
sh:severity sh:Violation
] ,
[
sh:maxCount 1 ;
sh:path dcterms:modified ;
sh:severity sh:Violation ;
sh:shape :DateOrDateTimeDataType_Shape
] ,
[
sh:path dcterms:provenance ;
sh:severity sh:Violation
] ,
[
sh:nodeKind sh:BlankNodeOrIRI ;
sh:path dcterms:relation ;
sh:severity sh:Violation
] ,
[
sh:path dcterms:source ;
sh:severity sh:Violation
] ,
[
sh:path dcterms:type ;
sh:severity sh:Violation
] ,
[
sh:maxCount 1 ;
sh:nodeKind sh:Literal ;
sh:path owl:versionInfo ;
sh:severity sh:Violation
] ,
[
sh:nodeKind sh:Literal ;
sh:path adms:versionNotes ;
sh:severity sh:Violation
] ,
[
sh:path adms:identifier ;
sh:severity sh:Violation
] ;
sh:targetClass dcat:Dataset ;
.
Expand Down Expand Up @@ -769,6 +769,13 @@ PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
sh:path dcat:downloadURL ;
sh:severity sh:Violation
] ,
[
sh:class rdfs:Resource ;
sh:message "A `dcat:Distribution` _MUST_ have at least 1 `dcat:accessURL` predicate where the value node is `rdfs:Resource`." ;
sh:minCount 1 ;
sh:path dcat:accessURL ;
sh:severity sh:Violation
] ,
[
sh:maxCount 1 ;
sh:path dcat:mediaType ;
Expand Down

0 comments on commit e07ef4d

Please sign in to comment.