Skip to content

Commit

Permalink
fix: Rate multiple distribution formats
Browse files Browse the repository at this point in the history
  • Loading branch information
ddeboer committed Nov 18, 2023
1 parent 556d5f2 commit f3808f2
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions shacl/register.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -459,12 +459,10 @@ dcat:DistributionShape
sh:or (
[ sh:property [
sh:minCount 1 ;
sh:maxCount 1 ;
sh:path dcat:mediaType
] ]
[ sh:property [
sh:minCount 1 ;
sh:maxCount 1 ;
sh:path dc:format
] ]
) .
Expand Down
2 changes: 1 addition & 1 deletion test/datasets/dataset-dcat-valid.jsonld
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"dcat:distribution": [
{
"@type": "dcat:Distribution",
"dcat:mediaType": "application/rdf+xml",
"dct:format": ["application/rdf+xml", "text/turtle"],
"dcat:accessURL": "http://data.bibliotheken.nl/id/dataset/rise-alba.rdf"
}
]
Expand Down
2 changes: 1 addition & 1 deletion test/fetch.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ describe('Fetch', () => {
dataset.has(
factory.quad(
distributions[0].object as BlankNode,
dcat('mediaType'),
dct('format'),
factory.literal('application/rdf+xml'),
datasetUri
)
Expand Down

0 comments on commit f3808f2

Please sign in to comment.