-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add Klassieke muziekwerken (#1360)
- Loading branch information
Showing
3 changed files
with
151 additions
and
1 deletion.
There are no files selected for viewing
63 changes: 63 additions & 0 deletions
63
packages/network-of-terms-catalog/catalog/datasets/muziekschatten-klassieke-werken.jsonld
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
{ | ||
"@context": "https://schema.org/docs/jsonldcontext.jsonld", | ||
"@id": "https://data.muziekschatten.nl/som/Klassiekewerken", | ||
"@type": "Dataset", | ||
"name": [ | ||
{ | ||
"@language": "nl", | ||
"@value": "Muziekschatten: klassieke muziekwerken" | ||
} | ||
], | ||
"genre": [ | ||
{ | ||
"@id": "https://data.cultureelerfgoed.nl/termennetwerk/onderwerpen/Objecten" | ||
} | ||
], | ||
"creator": [ | ||
{ | ||
"@id": "https://www.podiumkunst.net" | ||
} | ||
], | ||
"url": [ | ||
"https://data.muziekschatten.nl/som/work/" | ||
], | ||
"mainEntityOfPage": [ | ||
"https://data.muziekschatten.nl/som/" | ||
], | ||
"description": [ | ||
{ | ||
"@language": "nl", | ||
"@value": "Termen voor het beschrijven van (Nederlandse) klassieke muziekwerken" | ||
} | ||
], | ||
"inLanguage": "nl", | ||
"distribution": [ | ||
{ | ||
"@id": "https://data.muziekschatten.nl/sparql/#klassiekewerken", | ||
"@type": "DataDownload", | ||
"contentUrl": "https://data.muziekschatten.nl/sparql", | ||
"encodingFormat": "application/sparql-query", | ||
"potentialAction": [ | ||
{ | ||
"@type": "SearchAction", | ||
"query": "file://catalog/queries/search/muziekschatten-klassiekewerken.rq" | ||
}, | ||
{ | ||
"@type": "FindAction", | ||
"query": "file://catalog/queries/lookup/muziekschatten.rq" | ||
}, | ||
{ | ||
"@type": "Action", | ||
"target": { | ||
"@type": "EntryPoint", | ||
"actionApplication": { | ||
"@id": "https://reconciliation-api.github.io/specs/latest/", | ||
"@type": "SoftwareApplication" | ||
}, | ||
"urlTemplate": "https://termennetwerk-api.netwerkdigitaalerfgoed.nl/reconcile/{distribution}" | ||
} | ||
} | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
50 changes: 50 additions & 0 deletions
50
packages/network-of-terms-catalog/catalog/queries/search/muziekschatten-klassiekewerken.rq
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> | ||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> | ||
PREFIX rdaw: <http://rdaregistry.info/Elements/w/> | ||
PREFIX skos: <http://www.w3.org/2004/02/skos/core#> | ||
PREFIX schema: <http://schema.org/> | ||
PREFIX som: <https://data.muziekschatten.nl/som/> | ||
|
||
CONSTRUCT { | ||
?uri a skos:Concept; | ||
skos:prefLabel ?prefLabel ; | ||
skos:altLabel ?altLabel ; | ||
skos:scopeNote ?scopeNote ; | ||
skos:broader ?broader_uri ; | ||
skos:narrower ?narrower_uri . | ||
?broader_uri skos:prefLabel ?broader_prefLabel . | ||
?narrower_uri skos:prefLabel ?narrower_prefLabel . | ||
} | ||
WHERE { | ||
?uri ?predicate ?label. | ||
VALUES ?predicate { rdfs:label rdaw:P10086 rdaw:P10223 rdaw:P10333 rdaw:P10335 rdaw:P10047 } | ||
|
||
FILTER(CONTAINS(LCASE(?label), LCASE(?query))) | ||
|
||
?uri a <http://rdaregistry.info/Elements/c/C10001>; | ||
rdfs:label ?prefLabel . | ||
|
||
OPTIONAL { ?uri rdaw:P10086 ?altLabel } # Varianttitel | ||
OPTIONAL { ?uri rdaw:P10219 ?eerste_datum } | ||
OPTIONAL { ?uri rdaw:P10333 ?opusnummer } | ||
OPTIONAL { ?uri rdaw:P10335 ?thematisch_nummer } | ||
OPTIONAL { | ||
?uri rdaw:P10019 ?broader_uri . # Is part of work | ||
?broader_uri rdfs:label ?broader_prefLabel . | ||
} | ||
OPTIONAL { | ||
?uri rdaw:P10147 ?narrower_uri . # Has part work | ||
?narrower_uri rdfs:label ?narrower_prefLabel . | ||
} | ||
|
||
BIND( | ||
CONCAT( | ||
?prefLabel, ",", | ||
IF(BOUND(?altLabel), CONCAT(" Varianttitel: ", ?altLabel, ","), ""), | ||
IF(BOUND(?opusnummer), CONCAT(" Opusnr.: ", ?opusnummer, ","), ""), | ||
IF(BOUND(?thematisch_nummer), CONCAT(" Thematisch nr.: ", ?thematisch_nummer, ","), ""), | ||
IF(BOUND(?eerste_datum), CONCAT(" Datum: ", ?eerste_datum), "") | ||
) AS ?scopeNote | ||
) | ||
} | ||
LIMIT 1000 |