Skip to content

Commit

Permalink
Merge pull request #338 from colonial-heritage/fix-nde-dataset-register
Browse files Browse the repository at this point in the history
fix: update data model for NDE Dataset Register
  • Loading branch information
sdevalk authored Nov 27, 2023
2 parents fcc7171 + 991acae commit 05e1c9d
Show file tree
Hide file tree
Showing 4 changed files with 84 additions and 393 deletions.
13 changes: 5 additions & 8 deletions apps/dataset-browser/src/lib/datasets/enricher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@ export class DatasetEnricher {
// Query can be expanded to also include other properties
const query = `
PREFIX cc: <https://colonialcollections.nl/schema#>
PREFIX dcat: <http://www.w3.org/ns/dcat#>
PREFIX dqv: <http://www.w3.org/ns/dqv#>
PREFIX qb: <http://purl.org/linked-data/cube#>
PREFIX schema: <https://schema.org/>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
CONSTRUCT {
Expand All @@ -82,14 +82,11 @@ export class DatasetEnricher {
VALUES ?iri {
${irisForValues}
}
?iri a dcat:Dataset .
?iri a schema:Dataset .
{
?iri dqv:hasQualityMeasurement ?measurement .
}
UNION {
?iri dcat:distribution/dqv:hasQualityMeasurement ?measurement .
}
{ ?iri dqv:hasQualityMeasurement ?measurement }
UNION
{ ?iri schema:distribution/dqv:hasQualityMeasurement ?measurement }
?measurement dqv:value ?value ;
dqv:isMeasurementOf ?metric .
Expand Down
Loading

2 comments on commit 05e1c9d

@vercel
Copy link

@vercel vercel bot commented on 05e1c9d Nov 27, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 05e1c9d Nov 27, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.