From 2880d6faea081c9ee48c020f596cee2ca21bc1a5 Mon Sep 17 00:00:00 2001 From: Willem Melder Date: Tue, 15 Feb 2022 10:42:36 +0000 Subject: [PATCH 01/13] added one GTAA dataset for testing --- .../datasets/gtaa_genres_service_layer.jsonld | 37 ++++++++++++ .../catalog/queries/lookup/gtaa-genre.rq | 58 +++++++++++++++++++ .../catalog/queries/search/gtaa-genre.rq | 58 +++++++++++++++++++ 3 files changed, 153 insertions(+) create mode 100644 packages/network-of-terms-catalog/catalog/datasets/gtaa_genres_service_layer.jsonld create mode 100644 packages/network-of-terms-catalog/catalog/queries/lookup/gtaa-genre.rq create mode 100644 packages/network-of-terms-catalog/catalog/queries/search/gtaa-genre.rq diff --git a/packages/network-of-terms-catalog/catalog/datasets/gtaa_genres_service_layer.jsonld b/packages/network-of-terms-catalog/catalog/datasets/gtaa_genres_service_layer.jsonld new file mode 100644 index 000000000..b84357bc1 --- /dev/null +++ b/packages/network-of-terms-catalog/catalog/datasets/gtaa_genres_service_layer.jsonld @@ -0,0 +1,37 @@ +{ + "@context": "https://schema.org/docs/jsonldcontext.jsonld", + "@id": "http://data.beeldengeluid.nl/gtaa/Genre", + "@type": "Dataset", + "name": [ + { + "@language": "nl", + "@value": "GTAA genres" + } + ], + "creator": [ + { + "@id": "https://www.beeldengeluid.nl/" + } + ], + "url": [ + "http://data.beeldengeluid.nl/gtaa/Genre" + ], + "distribution": [ + { + "@id": "https://data.beeldengeluid.nl/id/datadownload/0028", + "@type": "DataDownload", + "contentUrl": "https://gtaa.apis.beeldengeluid.nl/sparql", + "encodingFormat": "application/sparql-query", + "potentialAction": [ + { + "@type": "SearchAction", + "query": "file://catalog/queries/search/gtaa-genre.rq" + }, + { + "@type": "FindAction", + "query": "file://catalog/queries/lookup/gtaa-genre.rq" + } + ] + } + ] +} \ No newline at end of file diff --git a/packages/network-of-terms-catalog/catalog/queries/lookup/gtaa-genre.rq b/packages/network-of-terms-catalog/catalog/queries/lookup/gtaa-genre.rq new file mode 100644 index 000000000..1923a3fa2 --- /dev/null +++ b/packages/network-of-terms-catalog/catalog/queries/lookup/gtaa-genre.rq @@ -0,0 +1,58 @@ +PREFIX skos: + +CONSTRUCT { + ?uri a skos:Concept ; + skos:prefLabel ?prefLabel ; + skos:altLabel ?altLabel ; + skos:hiddenLabel ?hiddenLabel ; + skos:scopeNote ?scopeNote ; + skos:broader ?broader_uri ; + skos:narrower ?narrower_uri ; + skos:related ?related_uri . + ?broader_uri skos:prefLabel ?broader_prefLabel . + ?narrower_uri skos:prefLabel ?narrower_prefLabel . + ?related_uri skos:prefLabel ?related_prefLabel . +} +WHERE { + VALUES ?conceptscheme { + + } + ?uri skos:inScheme ?conceptscheme . + + VALUES ?uri { ?uris } + + ?uri a skos:Concept . + + OPTIONAL { + ?uri skos:prefLabel ?prefLabel . + FILTER(LANG(?prefLabel) = "nl" ) + } + OPTIONAL { + ?uri skos:altLabel ?altLabel . + FILTER(LANG(?altLabel) = "nl") + } + OPTIONAL { + ?uri skos:hiddenLabel ?hiddenLabel . + FILTER(LANG(?hiddenLabel) = "nl") + } + OPTIONAL { + ?uri skos:scopeNote ?scopeNote . + FILTER(LANG(?scopeNote) = "nl") + } + OPTIONAL { + ?uri skos:broader ?broader_uri . + ?broader_uri skos:prefLabel ?broader_prefLabel . + FILTER(LANG(?broader_prefLabel) = "nl") + } + OPTIONAL { + ?uri skos:narrower ?narrower_uri . + ?narrower_uri skos:prefLabel ?narrower_prefLabel . + FILTER(LANG(?narrower_prefLabel) = "nl") + } + OPTIONAL { + ?uri skos:related ?related_uri . + ?related_uri skos:prefLabel ?related_prefLabel . + FILTER(LANG(?related_prefLabel) = "nl") + } +} +LIMIT 1000 diff --git a/packages/network-of-terms-catalog/catalog/queries/search/gtaa-genre.rq b/packages/network-of-terms-catalog/catalog/queries/search/gtaa-genre.rq new file mode 100644 index 000000000..f80ec8a2d --- /dev/null +++ b/packages/network-of-terms-catalog/catalog/queries/search/gtaa-genre.rq @@ -0,0 +1,58 @@ +PREFIX skos: + +CONSTRUCT { + ?uri a skos:Concept ; + skos:prefLabel ?prefLabel ; + skos:altLabel ?altLabel ; + skos:hiddenLabel ?hiddenLabel ; + skos:scopeNote ?scopeNote ; + skos:broader ?broader_uri ; + skos:narrower ?narrower_uri ; + skos:related ?related_uri . + ?broader_uri skos:prefLabel ?broader_prefLabel . + ?narrower_uri skos:prefLabel ?narrower_prefLabel . + ?related_uri skos:prefLabel ?related_prefLabel . +} +WHERE { + VALUES ?conceptscheme { + + } + ?uri skos:inScheme ?conceptscheme . + + ?uri ?predicate ?label . + VALUES ?predicate { skos:prefLabel skos:altLabel } + FILTER(LANG(?label) = "nl") + + OPTIONAL { + ?uri skos:prefLabel ?prefLabel . + FILTER(LANG(?prefLabel) = "nl" ) + } + OPTIONAL { + ?uri skos:altLabel ?altLabel . + FILTER(LANG(?altLabel) = "nl") + } + OPTIONAL { + ?uri skos:hiddenLabel ?hiddenLabel . + FILTER(LANG(?hiddenLabel) = "nl") + } + OPTIONAL { + ?uri skos:scopeNote ?scopeNote . + FILTER(LANG(?scopeNote) = "nl") + } + OPTIONAL { + ?uri skos:broader ?broader_uri . + ?broader_uri skos:prefLabel ?broader_prefLabel . + FILTER(LANG(?broader_prefLabel) = "nl") + } + OPTIONAL { + ?uri skos:narrower ?narrower_uri . + ?narrower_uri skos:prefLabel ?narrower_prefLabel . + FILTER(LANG(?narrower_prefLabel) = "nl") + } + OPTIONAL { + ?uri skos:related ?related_uri . + ?related_uri skos:prefLabel ?related_prefLabel . + FILTER(LANG(?related_prefLabel) = "nl") + } +} +LIMIT 1000 From a275141e3948a937fedb0086edd34d159aa46e6d Mon Sep 17 00:00:00 2001 From: Willem Melder Date: Mon, 21 Feb 2022 10:26:06 +0000 Subject: [PATCH 02/13] added query variable as filter --- .../catalog/queries/lookup/gtaa-genre.rq | 5 +---- .../catalog/queries/search/gtaa-genre.rq | 1 + 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/packages/network-of-terms-catalog/catalog/queries/lookup/gtaa-genre.rq b/packages/network-of-terms-catalog/catalog/queries/lookup/gtaa-genre.rq index 1923a3fa2..d048c91b0 100644 --- a/packages/network-of-terms-catalog/catalog/queries/lookup/gtaa-genre.rq +++ b/packages/network-of-terms-catalog/catalog/queries/lookup/gtaa-genre.rq @@ -14,10 +14,7 @@ CONSTRUCT { ?related_uri skos:prefLabel ?related_prefLabel . } WHERE { - VALUES ?conceptscheme { - - } - ?uri skos:inScheme ?conceptscheme . + ?uri skos:inScheme . VALUES ?uri { ?uris } diff --git a/packages/network-of-terms-catalog/catalog/queries/search/gtaa-genre.rq b/packages/network-of-terms-catalog/catalog/queries/search/gtaa-genre.rq index f80ec8a2d..03f2f6897 100644 --- a/packages/network-of-terms-catalog/catalog/queries/search/gtaa-genre.rq +++ b/packages/network-of-terms-catalog/catalog/queries/search/gtaa-genre.rq @@ -21,6 +21,7 @@ WHERE { ?uri ?predicate ?label . VALUES ?predicate { skos:prefLabel skos:altLabel } + FILTER(CONTAINS(?label, ?query)) FILTER(LANG(?label) = "nl") OPTIONAL { From 3c06069b998f73dc9e6605b02312cab12637d62e Mon Sep 17 00:00:00 2001 From: Willem Melder Date: Thu, 24 Feb 2022 12:58:07 +0000 Subject: [PATCH 03/13] added multiple gtaa sources --- .../datasets/gtaa_classificatie.jsonld | 37 +++++++++ ...ervice_layer.jsonld => gtaa_genres.jsonld} | 72 ++++++++--------- .../datasets/gtaa_geografische_namen.jsonld | 37 +++++++++ .../catalog/datasets/gtaa_namen.jsonld | 37 +++++++++ .../catalog/datasets/gtaa_onderwerpen.jsonld | 37 +++++++++ .../datasets/gtaa_onderwerpen_beng.jsonld | 37 +++++++++ .../datasets/gtaa_persoonsnamen.jsonld | 37 +++++++++ .../queries/lookup/gtaa-classificatie.rq | 55 +++++++++++++ .../queries/lookup/gtaa-geografische-namen.rq | 55 +++++++++++++ .../catalog/queries/lookup/gtaa-namen.rq | 55 +++++++++++++ .../queries/lookup/gtaa-onderwerpen-beng.rq | 55 +++++++++++++ .../queries/lookup/gtaa-onderwerpen.rq | 55 +++++++++++++ .../queries/lookup/gtaa-persoonsnamen.rq | 55 +++++++++++++ .../queries/search/gtaa-classificatie.rq | 81 +++++++++++++++++++ .../catalog/queries/search/gtaa-genre.rq | 40 ++++++--- .../queries/search/gtaa-geografische-namen.rq | 81 +++++++++++++++++++ .../catalog/queries/search/gtaa-namen.rq | 81 +++++++++++++++++++ .../queries/search/gtaa-onderwerpen-beng.rq | 81 +++++++++++++++++++ .../queries/search/gtaa-onderwerpen.rq | 81 +++++++++++++++++++ .../queries/search/gtaa-persoonsnamen.rq | 81 +++++++++++++++++++ 20 files changed, 1105 insertions(+), 45 deletions(-) create mode 100644 packages/network-of-terms-catalog/catalog/datasets/gtaa_classificatie.jsonld rename packages/network-of-terms-catalog/catalog/datasets/{gtaa_genres_service_layer.jsonld => gtaa_genres.jsonld} (96%) create mode 100644 packages/network-of-terms-catalog/catalog/datasets/gtaa_geografische_namen.jsonld create mode 100644 packages/network-of-terms-catalog/catalog/datasets/gtaa_namen.jsonld create mode 100644 packages/network-of-terms-catalog/catalog/datasets/gtaa_onderwerpen.jsonld create mode 100644 packages/network-of-terms-catalog/catalog/datasets/gtaa_onderwerpen_beng.jsonld create mode 100644 packages/network-of-terms-catalog/catalog/datasets/gtaa_persoonsnamen.jsonld create mode 100644 packages/network-of-terms-catalog/catalog/queries/lookup/gtaa-classificatie.rq create mode 100644 packages/network-of-terms-catalog/catalog/queries/lookup/gtaa-geografische-namen.rq create mode 100644 packages/network-of-terms-catalog/catalog/queries/lookup/gtaa-namen.rq create mode 100644 packages/network-of-terms-catalog/catalog/queries/lookup/gtaa-onderwerpen-beng.rq create mode 100644 packages/network-of-terms-catalog/catalog/queries/lookup/gtaa-onderwerpen.rq create mode 100644 packages/network-of-terms-catalog/catalog/queries/lookup/gtaa-persoonsnamen.rq create mode 100644 packages/network-of-terms-catalog/catalog/queries/search/gtaa-classificatie.rq create mode 100644 packages/network-of-terms-catalog/catalog/queries/search/gtaa-geografische-namen.rq create mode 100644 packages/network-of-terms-catalog/catalog/queries/search/gtaa-namen.rq create mode 100644 packages/network-of-terms-catalog/catalog/queries/search/gtaa-onderwerpen-beng.rq create mode 100644 packages/network-of-terms-catalog/catalog/queries/search/gtaa-onderwerpen.rq create mode 100644 packages/network-of-terms-catalog/catalog/queries/search/gtaa-persoonsnamen.rq diff --git a/packages/network-of-terms-catalog/catalog/datasets/gtaa_classificatie.jsonld b/packages/network-of-terms-catalog/catalog/datasets/gtaa_classificatie.jsonld new file mode 100644 index 000000000..e477a47de --- /dev/null +++ b/packages/network-of-terms-catalog/catalog/datasets/gtaa_classificatie.jsonld @@ -0,0 +1,37 @@ +{ + "@context": "https://schema.org/docs/jsonldcontext.jsonld", + "@id": "http://data.beeldengeluid.nl/gtaa/Classificatie", + "@type": "Dataset", + "name": [ + { + "@language": "nl", + "@value": "GTAA Classificatie" + } + ], + "creator": [ + { + "@id": "https://www.beeldengeluid.nl/" + } + ], + "url": [ + "http://data.beeldengeluid.nl/gtaa/Classicatie" + ], + "distribution": [ + { + "@id": "https://data.beeldengeluid.nl/id/datadownload/0027", + "@type": "DataDownload", + "contentUrl": "https://gtaa.apis.beeldengeluid.nl/sparql", + "encodingFormat": "application/sparql-query", + "potentialAction": [ + { + "@type": "SearchAction", + "query": "file://catalog/queries/search/gtaa-classificatie.rq" + }, + { + "@type": "FindAction", + "query": "file://catalog/queries/lookup/gtaa-classificatie.rq" + } + ] + } + ] +} diff --git a/packages/network-of-terms-catalog/catalog/datasets/gtaa_genres_service_layer.jsonld b/packages/network-of-terms-catalog/catalog/datasets/gtaa_genres.jsonld similarity index 96% rename from packages/network-of-terms-catalog/catalog/datasets/gtaa_genres_service_layer.jsonld rename to packages/network-of-terms-catalog/catalog/datasets/gtaa_genres.jsonld index b84357bc1..76e246c93 100644 --- a/packages/network-of-terms-catalog/catalog/datasets/gtaa_genres_service_layer.jsonld +++ b/packages/network-of-terms-catalog/catalog/datasets/gtaa_genres.jsonld @@ -1,37 +1,37 @@ -{ - "@context": "https://schema.org/docs/jsonldcontext.jsonld", - "@id": "http://data.beeldengeluid.nl/gtaa/Genre", - "@type": "Dataset", - "name": [ - { - "@language": "nl", - "@value": "GTAA genres" - } - ], - "creator": [ - { - "@id": "https://www.beeldengeluid.nl/" - } - ], - "url": [ - "http://data.beeldengeluid.nl/gtaa/Genre" - ], - "distribution": [ - { - "@id": "https://data.beeldengeluid.nl/id/datadownload/0028", - "@type": "DataDownload", - "contentUrl": "https://gtaa.apis.beeldengeluid.nl/sparql", - "encodingFormat": "application/sparql-query", - "potentialAction": [ - { - "@type": "SearchAction", - "query": "file://catalog/queries/search/gtaa-genre.rq" - }, - { - "@type": "FindAction", - "query": "file://catalog/queries/lookup/gtaa-genre.rq" - } - ] - } - ] +{ + "@context": "https://schema.org/docs/jsonldcontext.jsonld", + "@id": "http://data.beeldengeluid.nl/gtaa/Genre", + "@type": "Dataset", + "name": [ + { + "@language": "nl", + "@value": "GTAA genres" + } + ], + "creator": [ + { + "@id": "https://www.beeldengeluid.nl/" + } + ], + "url": [ + "http://data.beeldengeluid.nl/gtaa/Genre" + ], + "distribution": [ + { + "@id": "https://data.beeldengeluid.nl/id/datadownload/0028", + "@type": "DataDownload", + "contentUrl": "https://gtaa.apis.beeldengeluid.nl/sparql", + "encodingFormat": "application/sparql-query", + "potentialAction": [ + { + "@type": "SearchAction", + "query": "file://catalog/queries/search/gtaa-genre.rq" + }, + { + "@type": "FindAction", + "query": "file://catalog/queries/lookup/gtaa-genre.rq" + } + ] + } + ] } \ No newline at end of file diff --git a/packages/network-of-terms-catalog/catalog/datasets/gtaa_geografische_namen.jsonld b/packages/network-of-terms-catalog/catalog/datasets/gtaa_geografische_namen.jsonld new file mode 100644 index 000000000..2e8973303 --- /dev/null +++ b/packages/network-of-terms-catalog/catalog/datasets/gtaa_geografische_namen.jsonld @@ -0,0 +1,37 @@ +{ + "@context": "https://schema.org/docs/jsonldcontext.jsonld", + "@id": "http://data.beeldengeluid.nl/gtaa/GeografischeNamen", + "@type": "Dataset", + "name": [ + { + "@language": "nl", + "@value": "GTAA Geografische Namen" + } + ], + "creator": [ + { + "@id": "https://www.beeldengeluid.nl/" + } + ], + "url": [ + "http://data.beeldengeluid.nl/gtaa/GeografischeNamen" + ], + "distribution": [ + { + "@id": "https://data.beeldengeluid.nl/id/datadownload/0029", + "@type": "DataDownload", + "contentUrl": "https://gtaa.apis.beeldengeluid.nl/sparql", + "encodingFormat": "application/sparql-query", + "potentialAction": [ + { + "@type": "SearchAction", + "query": "file://catalog/queries/search/gtaa-geografische-namen.rq" + }, + { + "@type": "FindAction", + "query": "file://catalog/queries/lookup/gtaa-geografische-namen.rq" + } + ] + } + ] +} diff --git a/packages/network-of-terms-catalog/catalog/datasets/gtaa_namen.jsonld b/packages/network-of-terms-catalog/catalog/datasets/gtaa_namen.jsonld new file mode 100644 index 000000000..b5ef1cb1f --- /dev/null +++ b/packages/network-of-terms-catalog/catalog/datasets/gtaa_namen.jsonld @@ -0,0 +1,37 @@ +{ + "@context": "https://schema.org/docs/jsonldcontext.jsonld", + "@id": "http://data.beeldengeluid.nl/gtaa/Namen", + "@type": "Dataset", + "name": [ + { + "@language": "nl", + "@value": "GTAA Namen" + } + ], + "creator": [ + { + "@id": "https://www.beeldengeluid.nl/" + } + ], + "url": [ + "http://data.beeldengeluid.nl/gtaa/Namen" + ], + "distribution": [ + { + "@id": "https://data.beeldengeluid.nl/id/datadownload/0030", + "@type": "DataDownload", + "contentUrl": "https://gtaa.apis.beeldengeluid.nl/sparql", + "encodingFormat": "application/sparql-query", + "potentialAction": [ + { + "@type": "SearchAction", + "query": "file://catalog/queries/search/gtaa-namen.rq" + }, + { + "@type": "FindAction", + "query": "file://catalog/queries/lookup/gtaa-namen.rq" + } + ] + } + ] +} diff --git a/packages/network-of-terms-catalog/catalog/datasets/gtaa_onderwerpen.jsonld b/packages/network-of-terms-catalog/catalog/datasets/gtaa_onderwerpen.jsonld new file mode 100644 index 000000000..cf9013301 --- /dev/null +++ b/packages/network-of-terms-catalog/catalog/datasets/gtaa_onderwerpen.jsonld @@ -0,0 +1,37 @@ +{ + "@context": "https://schema.org/docs/jsonldcontext.jsonld", + "@id": "http://data.beeldengeluid.nl/gtaa/Onderwerpen", + "@type": "Dataset", + "name": [ + { + "@language": "nl", + "@value": "GTAA Onderwerpen" + } + ], + "creator": [ + { + "@id": "https://www.beeldengeluid.nl/" + } + ], + "url": [ + "http://data.beeldengeluid.nl/gtaa/Onderwerpen" + ], + "distribution": [ + { + "@id": "https://data.beeldengeluid.nl/id/datadownload/0031", + "@type": "DataDownload", + "contentUrl": "https://gtaa.apis.beeldengeluid.nl/sparql", + "encodingFormat": "application/sparql-query", + "potentialAction": [ + { + "@type": "SearchAction", + "query": "file://catalog/queries/search/gtaa-onderwerpen.rq" + }, + { + "@type": "FindAction", + "query": "file://catalog/queries/lookup/gtaa-onderwerpen.rq" + } + ] + } + ] +} diff --git a/packages/network-of-terms-catalog/catalog/datasets/gtaa_onderwerpen_beng.jsonld b/packages/network-of-terms-catalog/catalog/datasets/gtaa_onderwerpen_beng.jsonld new file mode 100644 index 000000000..9f9277a18 --- /dev/null +++ b/packages/network-of-terms-catalog/catalog/datasets/gtaa_onderwerpen_beng.jsonld @@ -0,0 +1,37 @@ +{ + "@context": "https://schema.org/docs/jsonldcontext.jsonld", + "@id": "http://data.beeldengeluid.nl/gtaa/OnderwerpenBenG", + "@type": "Dataset", + "name": [ + { + "@language": "nl", + "@value": "GTAA Onderwerpen beeld-geluid" + } + ], + "creator": [ + { + "@id": "https://www.beeldengeluid.nl/" + } + ], + "url": [ + "http://data.beeldengeluid.nl/gtaa/OnderwerpenBenG" + ], + "distribution": [ + { + "@id": "https://data.beeldengeluid.nl/id/datadownload/0032", + "@type": "DataDownload", + "contentUrl": "https://gtaa.apis.beeldengeluid.nl/sparql", + "encodingFormat": "application/sparql-query", + "potentialAction": [ + { + "@type": "SearchAction", + "query": "file://catalog/queries/search/gtaa-onderwerpen-beng.rq" + }, + { + "@type": "FindAction", + "query": "file://catalog/queries/lookup/gtaa-onderwerpen-beng.rq" + } + ] + } + ] +} diff --git a/packages/network-of-terms-catalog/catalog/datasets/gtaa_persoonsnamen.jsonld b/packages/network-of-terms-catalog/catalog/datasets/gtaa_persoonsnamen.jsonld new file mode 100644 index 000000000..f30079367 --- /dev/null +++ b/packages/network-of-terms-catalog/catalog/datasets/gtaa_persoonsnamen.jsonld @@ -0,0 +1,37 @@ +{ + "@context": "https://schema.org/docs/jsonldcontext.jsonld", + "@id": "http://data.beeldengeluid.nl/gtaa/Persoonsnamen", + "@type": "Dataset", + "name": [ + { + "@language": "nl", + "@value": "GTAA Persoonsnamen" + } + ], + "creator": [ + { + "@id": "https://www.beeldengeluid.nl/" + } + ], + "url": [ + "http://data.beeldengeluid.nl/gtaa/Persoonsnamen" + ], + "distribution": [ + { + "@id": "https://data.beeldengeluid.nl/id/datadownload/0026", + "@type": "DataDownload", + "contentUrl": "https://gtaa.apis.beeldengeluid.nl/sparql", + "encodingFormat": "application/sparql-query", + "potentialAction": [ + { + "@type": "SearchAction", + "query": "file://catalog/queries/search/gtaa-persoonsnamen.rq" + }, + { + "@type": "FindAction", + "query": "file://catalog/queries/lookup/gtaa-persoonsnamen.rq" + } + ] + } + ] +} diff --git a/packages/network-of-terms-catalog/catalog/queries/lookup/gtaa-classificatie.rq b/packages/network-of-terms-catalog/catalog/queries/lookup/gtaa-classificatie.rq new file mode 100644 index 000000000..82ba94b85 --- /dev/null +++ b/packages/network-of-terms-catalog/catalog/queries/lookup/gtaa-classificatie.rq @@ -0,0 +1,55 @@ +PREFIX skos: + +CONSTRUCT { + ?uri a skos:Concept ; + skos:prefLabel ?prefLabel ; + skos:altLabel ?altLabel ; + skos:hiddenLabel ?hiddenLabel ; + skos:scopeNote ?scopeNote ; + skos:broader ?broader_uri ; + skos:narrower ?narrower_uri ; + skos:related ?related_uri . + ?broader_uri skos:prefLabel ?broader_prefLabel . + ?narrower_uri skos:prefLabel ?narrower_prefLabel . + ?related_uri skos:prefLabel ?related_prefLabel . +} +WHERE { + ?uri skos:inScheme . + + VALUES ?uri { ?uris } + + ?uri a skos:Concept . + + OPTIONAL { + ?uri skos:prefLabel ?prefLabel . + FILTER(LANG(?prefLabel) = "nl" ) + } + OPTIONAL { + ?uri skos:altLabel ?altLabel . + FILTER(LANG(?altLabel) = "nl") + } + OPTIONAL { + ?uri skos:hiddenLabel ?hiddenLabel . + FILTER(LANG(?hiddenLabel) = "nl") + } + OPTIONAL { + ?uri skos:scopeNote ?scopeNote . + FILTER(LANG(?scopeNote) = "nl") + } + OPTIONAL { + ?uri skos:broader ?broader_uri . + ?broader_uri skos:prefLabel ?broader_prefLabel . + FILTER(LANG(?broader_prefLabel) = "nl") + } + OPTIONAL { + ?uri skos:narrower ?narrower_uri . + ?narrower_uri skos:prefLabel ?narrower_prefLabel . + FILTER(LANG(?narrower_prefLabel) = "nl") + } + OPTIONAL { + ?uri skos:related ?related_uri . + ?related_uri skos:prefLabel ?related_prefLabel . + FILTER(LANG(?related_prefLabel) = "nl") + } +} +LIMIT 1000 diff --git a/packages/network-of-terms-catalog/catalog/queries/lookup/gtaa-geografische-namen.rq b/packages/network-of-terms-catalog/catalog/queries/lookup/gtaa-geografische-namen.rq new file mode 100644 index 000000000..4d04c1b6b --- /dev/null +++ b/packages/network-of-terms-catalog/catalog/queries/lookup/gtaa-geografische-namen.rq @@ -0,0 +1,55 @@ +PREFIX skos: + +CONSTRUCT { + ?uri a skos:Concept ; + skos:prefLabel ?prefLabel ; + skos:altLabel ?altLabel ; + skos:hiddenLabel ?hiddenLabel ; + skos:scopeNote ?scopeNote ; + skos:broader ?broader_uri ; + skos:narrower ?narrower_uri ; + skos:related ?related_uri . + ?broader_uri skos:prefLabel ?broader_prefLabel . + ?narrower_uri skos:prefLabel ?narrower_prefLabel . + ?related_uri skos:prefLabel ?related_prefLabel . +} +WHERE { + ?uri skos:inScheme . + + VALUES ?uri { ?uris } + + ?uri a skos:Concept . + + OPTIONAL { + ?uri skos:prefLabel ?prefLabel . + FILTER(LANG(?prefLabel) = "nl" ) + } + OPTIONAL { + ?uri skos:altLabel ?altLabel . + FILTER(LANG(?altLabel) = "nl") + } + OPTIONAL { + ?uri skos:hiddenLabel ?hiddenLabel . + FILTER(LANG(?hiddenLabel) = "nl") + } + OPTIONAL { + ?uri skos:scopeNote ?scopeNote . + FILTER(LANG(?scopeNote) = "nl") + } + OPTIONAL { + ?uri skos:broader ?broader_uri . + ?broader_uri skos:prefLabel ?broader_prefLabel . + FILTER(LANG(?broader_prefLabel) = "nl") + } + OPTIONAL { + ?uri skos:narrower ?narrower_uri . + ?narrower_uri skos:prefLabel ?narrower_prefLabel . + FILTER(LANG(?narrower_prefLabel) = "nl") + } + OPTIONAL { + ?uri skos:related ?related_uri . + ?related_uri skos:prefLabel ?related_prefLabel . + FILTER(LANG(?related_prefLabel) = "nl") + } +} +LIMIT 1000 diff --git a/packages/network-of-terms-catalog/catalog/queries/lookup/gtaa-namen.rq b/packages/network-of-terms-catalog/catalog/queries/lookup/gtaa-namen.rq new file mode 100644 index 000000000..1a96f1e8a --- /dev/null +++ b/packages/network-of-terms-catalog/catalog/queries/lookup/gtaa-namen.rq @@ -0,0 +1,55 @@ +PREFIX skos: + +CONSTRUCT { + ?uri a skos:Concept ; + skos:prefLabel ?prefLabel ; + skos:altLabel ?altLabel ; + skos:hiddenLabel ?hiddenLabel ; + skos:scopeNote ?scopeNote ; + skos:broader ?broader_uri ; + skos:narrower ?narrower_uri ; + skos:related ?related_uri . + ?broader_uri skos:prefLabel ?broader_prefLabel . + ?narrower_uri skos:prefLabel ?narrower_prefLabel . + ?related_uri skos:prefLabel ?related_prefLabel . +} +WHERE { + ?uri skos:inScheme . + + VALUES ?uri { ?uris } + + ?uri a skos:Concept . + + OPTIONAL { + ?uri skos:prefLabel ?prefLabel . + FILTER(LANG(?prefLabel) = "nl" ) + } + OPTIONAL { + ?uri skos:altLabel ?altLabel . + FILTER(LANG(?altLabel) = "nl") + } + OPTIONAL { + ?uri skos:hiddenLabel ?hiddenLabel . + FILTER(LANG(?hiddenLabel) = "nl") + } + OPTIONAL { + ?uri skos:scopeNote ?scopeNote . + FILTER(LANG(?scopeNote) = "nl") + } + OPTIONAL { + ?uri skos:broader ?broader_uri . + ?broader_uri skos:prefLabel ?broader_prefLabel . + FILTER(LANG(?broader_prefLabel) = "nl") + } + OPTIONAL { + ?uri skos:narrower ?narrower_uri . + ?narrower_uri skos:prefLabel ?narrower_prefLabel . + FILTER(LANG(?narrower_prefLabel) = "nl") + } + OPTIONAL { + ?uri skos:related ?related_uri . + ?related_uri skos:prefLabel ?related_prefLabel . + FILTER(LANG(?related_prefLabel) = "nl") + } +} +LIMIT 1000 diff --git a/packages/network-of-terms-catalog/catalog/queries/lookup/gtaa-onderwerpen-beng.rq b/packages/network-of-terms-catalog/catalog/queries/lookup/gtaa-onderwerpen-beng.rq new file mode 100644 index 000000000..864ca978b --- /dev/null +++ b/packages/network-of-terms-catalog/catalog/queries/lookup/gtaa-onderwerpen-beng.rq @@ -0,0 +1,55 @@ +PREFIX skos: + +CONSTRUCT { + ?uri a skos:Concept ; + skos:prefLabel ?prefLabel ; + skos:altLabel ?altLabel ; + skos:hiddenLabel ?hiddenLabel ; + skos:scopeNote ?scopeNote ; + skos:broader ?broader_uri ; + skos:narrower ?narrower_uri ; + skos:related ?related_uri . + ?broader_uri skos:prefLabel ?broader_prefLabel . + ?narrower_uri skos:prefLabel ?narrower_prefLabel . + ?related_uri skos:prefLabel ?related_prefLabel . +} +WHERE { + ?uri skos:inScheme . + + VALUES ?uri { ?uris } + + ?uri a skos:Concept . + + OPTIONAL { + ?uri skos:prefLabel ?prefLabel . + FILTER(LANG(?prefLabel) = "nl" ) + } + OPTIONAL { + ?uri skos:altLabel ?altLabel . + FILTER(LANG(?altLabel) = "nl") + } + OPTIONAL { + ?uri skos:hiddenLabel ?hiddenLabel . + FILTER(LANG(?hiddenLabel) = "nl") + } + OPTIONAL { + ?uri skos:scopeNote ?scopeNote . + FILTER(LANG(?scopeNote) = "nl") + } + OPTIONAL { + ?uri skos:broader ?broader_uri . + ?broader_uri skos:prefLabel ?broader_prefLabel . + FILTER(LANG(?broader_prefLabel) = "nl") + } + OPTIONAL { + ?uri skos:narrower ?narrower_uri . + ?narrower_uri skos:prefLabel ?narrower_prefLabel . + FILTER(LANG(?narrower_prefLabel) = "nl") + } + OPTIONAL { + ?uri skos:related ?related_uri . + ?related_uri skos:prefLabel ?related_prefLabel . + FILTER(LANG(?related_prefLabel) = "nl") + } +} +LIMIT 1000 diff --git a/packages/network-of-terms-catalog/catalog/queries/lookup/gtaa-onderwerpen.rq b/packages/network-of-terms-catalog/catalog/queries/lookup/gtaa-onderwerpen.rq new file mode 100644 index 000000000..eedabb5cf --- /dev/null +++ b/packages/network-of-terms-catalog/catalog/queries/lookup/gtaa-onderwerpen.rq @@ -0,0 +1,55 @@ +PREFIX skos: + +CONSTRUCT { + ?uri a skos:Concept ; + skos:prefLabel ?prefLabel ; + skos:altLabel ?altLabel ; + skos:hiddenLabel ?hiddenLabel ; + skos:scopeNote ?scopeNote ; + skos:broader ?broader_uri ; + skos:narrower ?narrower_uri ; + skos:related ?related_uri . + ?broader_uri skos:prefLabel ?broader_prefLabel . + ?narrower_uri skos:prefLabel ?narrower_prefLabel . + ?related_uri skos:prefLabel ?related_prefLabel . +} +WHERE { + ?uri skos:inScheme . + + VALUES ?uri { ?uris } + + ?uri a skos:Concept . + + OPTIONAL { + ?uri skos:prefLabel ?prefLabel . + FILTER(LANG(?prefLabel) = "nl" ) + } + OPTIONAL { + ?uri skos:altLabel ?altLabel . + FILTER(LANG(?altLabel) = "nl") + } + OPTIONAL { + ?uri skos:hiddenLabel ?hiddenLabel . + FILTER(LANG(?hiddenLabel) = "nl") + } + OPTIONAL { + ?uri skos:scopeNote ?scopeNote . + FILTER(LANG(?scopeNote) = "nl") + } + OPTIONAL { + ?uri skos:broader ?broader_uri . + ?broader_uri skos:prefLabel ?broader_prefLabel . + FILTER(LANG(?broader_prefLabel) = "nl") + } + OPTIONAL { + ?uri skos:narrower ?narrower_uri . + ?narrower_uri skos:prefLabel ?narrower_prefLabel . + FILTER(LANG(?narrower_prefLabel) = "nl") + } + OPTIONAL { + ?uri skos:related ?related_uri . + ?related_uri skos:prefLabel ?related_prefLabel . + FILTER(LANG(?related_prefLabel) = "nl") + } +} +LIMIT 1000 diff --git a/packages/network-of-terms-catalog/catalog/queries/lookup/gtaa-persoonsnamen.rq b/packages/network-of-terms-catalog/catalog/queries/lookup/gtaa-persoonsnamen.rq new file mode 100644 index 000000000..7d14a4b4f --- /dev/null +++ b/packages/network-of-terms-catalog/catalog/queries/lookup/gtaa-persoonsnamen.rq @@ -0,0 +1,55 @@ +PREFIX skos: + +CONSTRUCT { + ?uri a skos:Concept ; + skos:prefLabel ?prefLabel ; + skos:altLabel ?altLabel ; + skos:hiddenLabel ?hiddenLabel ; + skos:scopeNote ?scopeNote ; + skos:broader ?broader_uri ; + skos:narrower ?narrower_uri ; + skos:related ?related_uri . + ?broader_uri skos:prefLabel ?broader_prefLabel . + ?narrower_uri skos:prefLabel ?narrower_prefLabel . + ?related_uri skos:prefLabel ?related_prefLabel . +} +WHERE { + ?uri skos:inScheme . + + VALUES ?uri { ?uris } + + ?uri a skos:Concept . + + OPTIONAL { + ?uri skos:prefLabel ?prefLabel . + FILTER(LANG(?prefLabel) = "nl" ) + } + OPTIONAL { + ?uri skos:altLabel ?altLabel . + FILTER(LANG(?altLabel) = "nl") + } + OPTIONAL { + ?uri skos:hiddenLabel ?hiddenLabel . + FILTER(LANG(?hiddenLabel) = "nl") + } + OPTIONAL { + ?uri skos:scopeNote ?scopeNote . + FILTER(LANG(?scopeNote) = "nl") + } + OPTIONAL { + ?uri skos:broader ?broader_uri . + ?broader_uri skos:prefLabel ?broader_prefLabel . + FILTER(LANG(?broader_prefLabel) = "nl") + } + OPTIONAL { + ?uri skos:narrower ?narrower_uri . + ?narrower_uri skos:prefLabel ?narrower_prefLabel . + FILTER(LANG(?narrower_prefLabel) = "nl") + } + OPTIONAL { + ?uri skos:related ?related_uri . + ?related_uri skos:prefLabel ?related_prefLabel . + FILTER(LANG(?related_prefLabel) = "nl") + } +} +LIMIT 1000 diff --git a/packages/network-of-terms-catalog/catalog/queries/search/gtaa-classificatie.rq b/packages/network-of-terms-catalog/catalog/queries/search/gtaa-classificatie.rq new file mode 100644 index 000000000..7512346cd --- /dev/null +++ b/packages/network-of-terms-catalog/catalog/queries/search/gtaa-classificatie.rq @@ -0,0 +1,81 @@ +PREFIX skos: +PREFIX justskos: + +CONSTRUCT { + ?uri a skos:Concept ; + skos:prefLabel ?prefLabel ; + skos:altLabel ?altLabel ; + skos:hiddenLabel ?hiddenLabel ; + skos:scopeNote ?scopeNote ; + skos:broader ?broader_uri ; + skos:narrower ?narrower_uri ; + skos:related ?related_uri . + ?broader_uri skos:prefLabel ?broader_prefLabel . + ?narrower_uri skos:prefLabel ?narrower_prefLabel . + ?related_uri skos:prefLabel ?related_prefLabel . +} +WHERE { + { + ?uri skos:inScheme . + ?uri ?predicate ?label ; + justskos:status ?status . + VALUES ?predicate { skos:prefLabel skos:altLabel skos:hiddenLabel } + FILTER(LANG(?label) = "nl") + FILTER(?status IN ('approved', 'candidate')) + + # single word query, match case insensitive + FILTER regex(?query, "^[^ ]+$") + FILTER CONTAINS(LCASE(?label), LCASE(?query)) + } + UNION + { + ?uri skos:inScheme . + ?uri ?predicate ?label ; + justskos:status ?status . + VALUES ?predicate { skos:prefLabel skos:altLabel skos:hiddenLabel } + FILTER(LANG(?label) = "nl") + FILTER(?status IN ('approved', 'candidate')) + + # double word query, whitespace separator + FILTER REGEX(?query, "^([^ ]+)[ ]+([^ ]+)$") + + BIND(REPLACE(?query, "^([^ ]+)[ ]+([^ ]+)$", "$1") AS ?term1) + BIND(REPLACE(?query, "^([^ ]+)[ ]+([^ ]+)$", "$2") AS ?term2) + + # search case insensitive using an AND construct for the query terms + FILTER( CONTAINS(LCASE(?label), LCASE(?term1)) && CONTAINS(LCASE(?label), LCASE(?term2)) ) + } + + OPTIONAL { + ?uri skos:prefLabel ?prefLabel . + FILTER(LANG(?prefLabel) = "nl" ) + } + OPTIONAL { + ?uri skos:altLabel ?altLabel . + FILTER(LANG(?altLabel) = "nl") + } + OPTIONAL { + ?uri skos:hiddenLabel ?hiddenLabel . + FILTER(LANG(?hiddenLabel) = "nl") + } + OPTIONAL { + ?uri skos:scopeNote ?scopeNote . + FILTER(LANG(?scopeNote) = "nl") + } + OPTIONAL { + ?uri skos:broader ?broader_uri . + ?broader_uri skos:prefLabel ?broader_prefLabel . + FILTER(LANG(?broader_prefLabel) = "nl") + } + OPTIONAL { + ?uri skos:narrower ?narrower_uri . + ?narrower_uri skos:prefLabel ?narrower_prefLabel . + FILTER(LANG(?narrower_prefLabel) = "nl") + } + OPTIONAL { + ?uri skos:related ?related_uri . + ?related_uri skos:prefLabel ?related_prefLabel . + FILTER(LANG(?related_prefLabel) = "nl") + } +} +LIMIT 1000 diff --git a/packages/network-of-terms-catalog/catalog/queries/search/gtaa-genre.rq b/packages/network-of-terms-catalog/catalog/queries/search/gtaa-genre.rq index 03f2f6897..ee679c262 100644 --- a/packages/network-of-terms-catalog/catalog/queries/search/gtaa-genre.rq +++ b/packages/network-of-terms-catalog/catalog/queries/search/gtaa-genre.rq @@ -1,4 +1,5 @@ PREFIX skos: +PREFIX justskos: CONSTRUCT { ?uri a skos:Concept ; @@ -14,15 +15,36 @@ CONSTRUCT { ?related_uri skos:prefLabel ?related_prefLabel . } WHERE { - VALUES ?conceptscheme { - - } - ?uri skos:inScheme ?conceptscheme . - - ?uri ?predicate ?label . - VALUES ?predicate { skos:prefLabel skos:altLabel } - FILTER(CONTAINS(?label, ?query)) - FILTER(LANG(?label) = "nl") + { + ?uri skos:inScheme . + ?uri ?predicate ?label ; + justskos:status ?status . + VALUES ?predicate { skos:prefLabel skos:altLabel skos:hiddenLabel } + FILTER(LANG(?label) = "nl") + FILTER(?status IN ('approved', 'candidate')) + + # single word query, match case insensitive + FILTER regex(?query, "^[^ ]+$") + FILTER CONTAINS(LCASE(?label), LCASE(?query)) + } + UNION + { + ?uri skos:inScheme . + ?uri ?predicate ?label ; + justskos:status ?status . + VALUES ?predicate { skos:prefLabel skos:altLabel skos:hiddenLabel } + FILTER(LANG(?label) = "nl") + FILTER(?status IN ('approved', 'candidate')) + + # double word query, whitespace separator + FILTER REGEX(?query, "^([^ ]+)[ ]+([^ ]+)$") + + BIND(REPLACE(?query, "^([^ ]+)[ ]+([^ ]+)$", "$1") AS ?term1) + BIND(REPLACE(?query, "^([^ ]+)[ ]+([^ ]+)$", "$2") AS ?term2) + + # search case insensitive using an AND construct for the query terms + FILTER( CONTAINS(LCASE(?label), LCASE(?term1)) && CONTAINS(LCASE(?label), LCASE(?term2)) ) + } OPTIONAL { ?uri skos:prefLabel ?prefLabel . diff --git a/packages/network-of-terms-catalog/catalog/queries/search/gtaa-geografische-namen.rq b/packages/network-of-terms-catalog/catalog/queries/search/gtaa-geografische-namen.rq new file mode 100644 index 000000000..0e985f033 --- /dev/null +++ b/packages/network-of-terms-catalog/catalog/queries/search/gtaa-geografische-namen.rq @@ -0,0 +1,81 @@ +PREFIX skos: +PREFIX justskos: + +CONSTRUCT { + ?uri a skos:Concept ; + skos:prefLabel ?prefLabel ; + skos:altLabel ?altLabel ; + skos:hiddenLabel ?hiddenLabel ; + skos:scopeNote ?scopeNote ; + skos:broader ?broader_uri ; + skos:narrower ?narrower_uri ; + skos:related ?related_uri . + ?broader_uri skos:prefLabel ?broader_prefLabel . + ?narrower_uri skos:prefLabel ?narrower_prefLabel . + ?related_uri skos:prefLabel ?related_prefLabel . +} +WHERE { + { + ?uri skos:inScheme . + ?uri ?predicate ?label ; + justskos:status ?status . + VALUES ?predicate { skos:prefLabel skos:altLabel skos:hiddenLabel } + FILTER(LANG(?label) = "nl") + FILTER(?status IN ('approved', 'candidate')) + + # single word query, match case insensitive + FILTER regex(?query, "^[^ ]+$") + FILTER CONTAINS(LCASE(?label), LCASE(?query)) + } + UNION + { + ?uri skos:inScheme . + ?uri ?predicate ?label ; + justskos:status ?status . + VALUES ?predicate { skos:prefLabel skos:altLabel skos:hiddenLabel } + FILTER(LANG(?label) = "nl") + FILTER(?status IN ('approved', 'candidate')) + + # double word query, whitespace separator + FILTER REGEX(?query, "^([^ ]+)[ ]+([^ ]+)$") + + BIND(REPLACE(?query, "^([^ ]+)[ ]+([^ ]+)$", "$1") AS ?term1) + BIND(REPLACE(?query, "^([^ ]+)[ ]+([^ ]+)$", "$2") AS ?term2) + + # search case insensitive using an AND construct for the query terms + FILTER( CONTAINS(LCASE(?label), LCASE(?term1)) && CONTAINS(LCASE(?label), LCASE(?term2)) ) + } + + OPTIONAL { + ?uri skos:prefLabel ?prefLabel . + FILTER(LANG(?prefLabel) = "nl" ) + } + OPTIONAL { + ?uri skos:altLabel ?altLabel . + FILTER(LANG(?altLabel) = "nl") + } + OPTIONAL { + ?uri skos:hiddenLabel ?hiddenLabel . + FILTER(LANG(?hiddenLabel) = "nl") + } + OPTIONAL { + ?uri skos:scopeNote ?scopeNote . + FILTER(LANG(?scopeNote) = "nl") + } + OPTIONAL { + ?uri skos:broader ?broader_uri . + ?broader_uri skos:prefLabel ?broader_prefLabel . + FILTER(LANG(?broader_prefLabel) = "nl") + } + OPTIONAL { + ?uri skos:narrower ?narrower_uri . + ?narrower_uri skos:prefLabel ?narrower_prefLabel . + FILTER(LANG(?narrower_prefLabel) = "nl") + } + OPTIONAL { + ?uri skos:related ?related_uri . + ?related_uri skos:prefLabel ?related_prefLabel . + FILTER(LANG(?related_prefLabel) = "nl") + } +} +LIMIT 1000 diff --git a/packages/network-of-terms-catalog/catalog/queries/search/gtaa-namen.rq b/packages/network-of-terms-catalog/catalog/queries/search/gtaa-namen.rq new file mode 100644 index 000000000..ca49795f6 --- /dev/null +++ b/packages/network-of-terms-catalog/catalog/queries/search/gtaa-namen.rq @@ -0,0 +1,81 @@ +PREFIX skos: +PREFIX justskos: + +CONSTRUCT { + ?uri a skos:Concept ; + skos:prefLabel ?prefLabel ; + skos:altLabel ?altLabel ; + skos:hiddenLabel ?hiddenLabel ; + skos:scopeNote ?scopeNote ; + skos:broader ?broader_uri ; + skos:narrower ?narrower_uri ; + skos:related ?related_uri . + ?broader_uri skos:prefLabel ?broader_prefLabel . + ?narrower_uri skos:prefLabel ?narrower_prefLabel . + ?related_uri skos:prefLabel ?related_prefLabel . +} +WHERE { + { + ?uri skos:inScheme . + ?uri ?predicate ?label ; + justskos:status ?status . + VALUES ?predicate { skos:prefLabel skos:altLabel skos:hiddenLabel } + FILTER(LANG(?label) = "nl") + FILTER(?status IN ('approved', 'candidate')) + + # single word query, match case insensitive + FILTER regex(?query, "^[^ ]+$") + FILTER CONTAINS(LCASE(?label), LCASE(?query)) + } + UNION + { + ?uri skos:inScheme . + ?uri ?predicate ?label ; + justskos:status ?status . + VALUES ?predicate { skos:prefLabel skos:altLabel skos:hiddenLabel } + FILTER(LANG(?label) = "nl") + FILTER(?status IN ('approved', 'candidate')) + + # double word query, whitespace separator + FILTER REGEX(?query, "^([^ ]+)[ ]+([^ ]+)$") + + BIND(REPLACE(?query, "^([^ ]+)[ ]+([^ ]+)$", "$1") AS ?term1) + BIND(REPLACE(?query, "^([^ ]+)[ ]+([^ ]+)$", "$2") AS ?term2) + + # search case insensitive using an AND construct for the query terms + FILTER( CONTAINS(LCASE(?label), LCASE(?term1)) && CONTAINS(LCASE(?label), LCASE(?term2)) ) + } + + OPTIONAL { + ?uri skos:prefLabel ?prefLabel . + FILTER(LANG(?prefLabel) = "nl" ) + } + OPTIONAL { + ?uri skos:altLabel ?altLabel . + FILTER(LANG(?altLabel) = "nl") + } + OPTIONAL { + ?uri skos:hiddenLabel ?hiddenLabel . + FILTER(LANG(?hiddenLabel) = "nl") + } + OPTIONAL { + ?uri skos:scopeNote ?scopeNote . + FILTER(LANG(?scopeNote) = "nl") + } + OPTIONAL { + ?uri skos:broader ?broader_uri . + ?broader_uri skos:prefLabel ?broader_prefLabel . + FILTER(LANG(?broader_prefLabel) = "nl") + } + OPTIONAL { + ?uri skos:narrower ?narrower_uri . + ?narrower_uri skos:prefLabel ?narrower_prefLabel . + FILTER(LANG(?narrower_prefLabel) = "nl") + } + OPTIONAL { + ?uri skos:related ?related_uri . + ?related_uri skos:prefLabel ?related_prefLabel . + FILTER(LANG(?related_prefLabel) = "nl") + } +} +LIMIT 1000 diff --git a/packages/network-of-terms-catalog/catalog/queries/search/gtaa-onderwerpen-beng.rq b/packages/network-of-terms-catalog/catalog/queries/search/gtaa-onderwerpen-beng.rq new file mode 100644 index 000000000..6e5101231 --- /dev/null +++ b/packages/network-of-terms-catalog/catalog/queries/search/gtaa-onderwerpen-beng.rq @@ -0,0 +1,81 @@ +PREFIX skos: +PREFIX justskos: + +CONSTRUCT { + ?uri a skos:Concept ; + skos:prefLabel ?prefLabel ; + skos:altLabel ?altLabel ; + skos:hiddenLabel ?hiddenLabel ; + skos:scopeNote ?scopeNote ; + skos:broader ?broader_uri ; + skos:narrower ?narrower_uri ; + skos:related ?related_uri . + ?broader_uri skos:prefLabel ?broader_prefLabel . + ?narrower_uri skos:prefLabel ?narrower_prefLabel . + ?related_uri skos:prefLabel ?related_prefLabel . +} +WHERE { + { + ?uri skos:inScheme . + ?uri ?predicate ?label ; + justskos:status ?status . + VALUES ?predicate { skos:prefLabel skos:altLabel skos:hiddenLabel } + FILTER(LANG(?label) = "nl") + FILTER(?status IN ('approved', 'candidate')) + + # single word query, match case insensitive + FILTER regex(?query, "^[^ ]+$") + FILTER CONTAINS(LCASE(?label), LCASE(?query)) + } + UNION + { + ?uri skos:inScheme . + ?uri ?predicate ?label ; + justskos:status ?status . + VALUES ?predicate { skos:prefLabel skos:altLabel skos:hiddenLabel } + FILTER(LANG(?label) = "nl") + FILTER(?status IN ('approved', 'candidate')) + + # double word query, whitespace separator + FILTER REGEX(?query, "^([^ ]+)[ ]+([^ ]+)$") + + BIND(REPLACE(?query, "^([^ ]+)[ ]+([^ ]+)$", "$1") AS ?term1) + BIND(REPLACE(?query, "^([^ ]+)[ ]+([^ ]+)$", "$2") AS ?term2) + + # search case insensitive using an AND construct for the query terms + FILTER( CONTAINS(LCASE(?label), LCASE(?term1)) && CONTAINS(LCASE(?label), LCASE(?term2)) ) + } + + OPTIONAL { + ?uri skos:prefLabel ?prefLabel . + FILTER(LANG(?prefLabel) = "nl" ) + } + OPTIONAL { + ?uri skos:altLabel ?altLabel . + FILTER(LANG(?altLabel) = "nl") + } + OPTIONAL { + ?uri skos:hiddenLabel ?hiddenLabel . + FILTER(LANG(?hiddenLabel) = "nl") + } + OPTIONAL { + ?uri skos:scopeNote ?scopeNote . + FILTER(LANG(?scopeNote) = "nl") + } + OPTIONAL { + ?uri skos:broader ?broader_uri . + ?broader_uri skos:prefLabel ?broader_prefLabel . + FILTER(LANG(?broader_prefLabel) = "nl") + } + OPTIONAL { + ?uri skos:narrower ?narrower_uri . + ?narrower_uri skos:prefLabel ?narrower_prefLabel . + FILTER(LANG(?narrower_prefLabel) = "nl") + } + OPTIONAL { + ?uri skos:related ?related_uri . + ?related_uri skos:prefLabel ?related_prefLabel . + FILTER(LANG(?related_prefLabel) = "nl") + } +} +LIMIT 1000 diff --git a/packages/network-of-terms-catalog/catalog/queries/search/gtaa-onderwerpen.rq b/packages/network-of-terms-catalog/catalog/queries/search/gtaa-onderwerpen.rq new file mode 100644 index 000000000..0e07225a6 --- /dev/null +++ b/packages/network-of-terms-catalog/catalog/queries/search/gtaa-onderwerpen.rq @@ -0,0 +1,81 @@ +PREFIX skos: +PREFIX justskos: + +CONSTRUCT { + ?uri a skos:Concept ; + skos:prefLabel ?prefLabel ; + skos:altLabel ?altLabel ; + skos:hiddenLabel ?hiddenLabel ; + skos:scopeNote ?scopeNote ; + skos:broader ?broader_uri ; + skos:narrower ?narrower_uri ; + skos:related ?related_uri . + ?broader_uri skos:prefLabel ?broader_prefLabel . + ?narrower_uri skos:prefLabel ?narrower_prefLabel . + ?related_uri skos:prefLabel ?related_prefLabel . +} +WHERE { + { + ?uri skos:inScheme . + ?uri ?predicate ?label ; + justskos:status ?status . + VALUES ?predicate { skos:prefLabel skos:altLabel skos:hiddenLabel } + FILTER(LANG(?label) = "nl") + FILTER(?status IN ('approved', 'candidate')) + + # single word query, match case insensitive + FILTER regex(?query, "^[^ ]+$") + FILTER CONTAINS(LCASE(?label), LCASE(?query)) + } + UNION + { + ?uri skos:inScheme . + ?uri ?predicate ?label ; + justskos:status ?status . + VALUES ?predicate { skos:prefLabel skos:altLabel skos:hiddenLabel } + FILTER(LANG(?label) = "nl") + FILTER(?status IN ('approved', 'candidate')) + + # double word query, whitespace separator + FILTER REGEX(?query, "^([^ ]+)[ ]+([^ ]+)$") + + BIND(REPLACE(?query, "^([^ ]+)[ ]+([^ ]+)$", "$1") AS ?term1) + BIND(REPLACE(?query, "^([^ ]+)[ ]+([^ ]+)$", "$2") AS ?term2) + + # search case insensitive using an AND construct for the query terms + FILTER( CONTAINS(LCASE(?label), LCASE(?term1)) && CONTAINS(LCASE(?label), LCASE(?term2)) ) + } + + OPTIONAL { + ?uri skos:prefLabel ?prefLabel . + FILTER(LANG(?prefLabel) = "nl" ) + } + OPTIONAL { + ?uri skos:altLabel ?altLabel . + FILTER(LANG(?altLabel) = "nl") + } + OPTIONAL { + ?uri skos:hiddenLabel ?hiddenLabel . + FILTER(LANG(?hiddenLabel) = "nl") + } + OPTIONAL { + ?uri skos:scopeNote ?scopeNote . + FILTER(LANG(?scopeNote) = "nl") + } + OPTIONAL { + ?uri skos:broader ?broader_uri . + ?broader_uri skos:prefLabel ?broader_prefLabel . + FILTER(LANG(?broader_prefLabel) = "nl") + } + OPTIONAL { + ?uri skos:narrower ?narrower_uri . + ?narrower_uri skos:prefLabel ?narrower_prefLabel . + FILTER(LANG(?narrower_prefLabel) = "nl") + } + OPTIONAL { + ?uri skos:related ?related_uri . + ?related_uri skos:prefLabel ?related_prefLabel . + FILTER(LANG(?related_prefLabel) = "nl") + } +} +LIMIT 1000 diff --git a/packages/network-of-terms-catalog/catalog/queries/search/gtaa-persoonsnamen.rq b/packages/network-of-terms-catalog/catalog/queries/search/gtaa-persoonsnamen.rq new file mode 100644 index 000000000..f8993f660 --- /dev/null +++ b/packages/network-of-terms-catalog/catalog/queries/search/gtaa-persoonsnamen.rq @@ -0,0 +1,81 @@ +PREFIX skos: +PREFIX justskos: + +CONSTRUCT { + ?uri a skos:Concept ; + skos:prefLabel ?prefLabel ; + skos:altLabel ?altLabel ; + skos:hiddenLabel ?hiddenLabel ; + skos:scopeNote ?scopeNote ; + skos:broader ?broader_uri ; + skos:narrower ?narrower_uri ; + skos:related ?related_uri . + ?broader_uri skos:prefLabel ?broader_prefLabel . + ?narrower_uri skos:prefLabel ?narrower_prefLabel . + ?related_uri skos:prefLabel ?related_prefLabel . +} +WHERE { + { + ?uri skos:inScheme . + ?uri skos:prefLabel|skos:altLabel|skos:hiddenLabel ?label ; + justskos:status ?status . + FILTER(LANG(?label) = "nl") + FILTER(?status IN ('approved', 'candidate')) + + # single word query, match case insensitive + FILTER regex(?query, "^[^ ]+$") + FILTER CONTAINS(LCASE(?label), LCASE(?query)) + } +# commented because of timeouts +# UNION +# { +# ?uri skos:inScheme . +# ?uri ?predicate ?label ; +# justskos:status ?status . +# VALUES ?predicate { skos:prefLabel skos:altLabel skos:hiddenLabel } +# FILTER(LANG(?label) = "nl") +# FILTER(?status IN ('approved', 'candidate')) +# +# # double word query, whitespace separator +# FILTER REGEX(?query, "^([^ ]+)[ ]+([^ ]+)$") +# +# BIND(REPLACE(?query, "^([^ ]+)[ ]+([^ ]+)$", "$1") AS ?term1) +# BIND(REPLACE(?query, "^([^ ]+)[ ]+([^ ]+)$", "$2") AS ?term2) +# +# # search case insensitive using an AND construct for the query terms +# FILTER( CONTAINS(LCASE(?label), LCASE(?term1)) && CONTAINS(LCASE(?label), LCASE(?term2)) ) +# } + + OPTIONAL { + ?uri skos:prefLabel ?prefLabel . + FILTER(LANG(?prefLabel) = "nl" ) + } + OPTIONAL { + ?uri skos:altLabel ?altLabel . + FILTER(LANG(?altLabel) = "nl") + } + OPTIONAL { + ?uri skos:hiddenLabel ?hiddenLabel . + FILTER(LANG(?hiddenLabel) = "nl") + } + OPTIONAL { + ?uri skos:scopeNote ?scopeNote . + FILTER(LANG(?scopeNote) = "nl") + } + OPTIONAL { + ?uri skos:broader ?broader_uri . + ?broader_uri skos:prefLabel ?broader_prefLabel . + FILTER(LANG(?broader_prefLabel) = "nl") + } + OPTIONAL { + ?uri skos:narrower ?narrower_uri . + ?narrower_uri skos:prefLabel ?narrower_prefLabel . + FILTER(LANG(?narrower_prefLabel) = "nl") + } + OPTIONAL { + ?uri skos:related ?related_uri . + ?related_uri skos:prefLabel ?related_prefLabel . + FILTER(LANG(?related_prefLabel) = "nl") + } +} +LIMIT 10 From 7f6abc1b7672ce6691aa546cd3da4679cb443d5f Mon Sep 17 00:00:00 2001 From: Willem Melder Date: Thu, 24 Feb 2022 13:28:45 +0000 Subject: [PATCH 04/13] added genre filmmuseum --- .../catalog/datasets/genre_filmmuseum.jsonld | 37 +++++++++ .../catalog/datasets/gtaa_genres.jsonld | 4 +- .../queries/lookup/genre-filmmuseum.rq | 55 +++++++++++++ .../queries/search/genre-filmmuseum.rq | 81 +++++++++++++++++++ 4 files changed, 175 insertions(+), 2 deletions(-) create mode 100644 packages/network-of-terms-catalog/catalog/datasets/genre_filmmuseum.jsonld create mode 100644 packages/network-of-terms-catalog/catalog/queries/lookup/genre-filmmuseum.rq create mode 100644 packages/network-of-terms-catalog/catalog/queries/search/genre-filmmuseum.rq diff --git a/packages/network-of-terms-catalog/catalog/datasets/genre_filmmuseum.jsonld b/packages/network-of-terms-catalog/catalog/datasets/genre_filmmuseum.jsonld new file mode 100644 index 000000000..cfca21f8a --- /dev/null +++ b/packages/network-of-terms-catalog/catalog/datasets/genre_filmmuseum.jsonld @@ -0,0 +1,37 @@ +{ + "@context": "https://schema.org/docs/jsonldcontext.jsonld", + "@id": "http://data.beeldengeluid.nl/gtaa/Genre_Filmmuseum", + "@type": "Dataset", + "name": [ + { + "@language": "nl", + "@value": "Genre Filmmuseum" + } + ], + "creator": [ + { + "@id": "https://www.beeldengeluid.nl/" + } + ], + "url": [ + "http://data.beeldengeluid.nl/gtaa/Genre_Filmmuseum" + ], + "distribution": [ + { + "@id": "https://data.beeldengeluid.nl/id/datadownload/0033", + "@type": "DataDownload", + "contentUrl": "https://gtaa.apis.beeldengeluid.nl/sparql", + "encodingFormat": "application/sparql-query", + "potentialAction": [ + { + "@type": "SearchAction", + "query": "file://catalog/queries/search/genre-filmmuseum.rq" + }, + { + "@type": "FindAction", + "query": "file://catalog/queries/lookup/genre-filmmuseum.rq" + } + ] + } + ] +} diff --git a/packages/network-of-terms-catalog/catalog/datasets/gtaa_genres.jsonld b/packages/network-of-terms-catalog/catalog/datasets/gtaa_genres.jsonld index 76e246c93..baf1e46f1 100644 --- a/packages/network-of-terms-catalog/catalog/datasets/gtaa_genres.jsonld +++ b/packages/network-of-terms-catalog/catalog/datasets/gtaa_genres.jsonld @@ -5,7 +5,7 @@ "name": [ { "@language": "nl", - "@value": "GTAA genres" + "@value": "GTAA Genres" } ], "creator": [ @@ -34,4 +34,4 @@ ] } ] -} \ No newline at end of file +} diff --git a/packages/network-of-terms-catalog/catalog/queries/lookup/genre-filmmuseum.rq b/packages/network-of-terms-catalog/catalog/queries/lookup/genre-filmmuseum.rq new file mode 100644 index 000000000..e03e08dd7 --- /dev/null +++ b/packages/network-of-terms-catalog/catalog/queries/lookup/genre-filmmuseum.rq @@ -0,0 +1,55 @@ +PREFIX skos: + +CONSTRUCT { + ?uri a skos:Concept ; + skos:prefLabel ?prefLabel ; + skos:altLabel ?altLabel ; + skos:hiddenLabel ?hiddenLabel ; + skos:scopeNote ?scopeNote ; + skos:broader ?broader_uri ; + skos:narrower ?narrower_uri ; + skos:related ?related_uri . + ?broader_uri skos:prefLabel ?broader_prefLabel . + ?narrower_uri skos:prefLabel ?narrower_prefLabel . + ?related_uri skos:prefLabel ?related_prefLabel . +} +WHERE { + ?uri skos:inScheme . + + VALUES ?uri { ?uris } + + ?uri a skos:Concept . + + OPTIONAL { + ?uri skos:prefLabel ?prefLabel . + FILTER(LANG(?prefLabel) = "nl" ) + } + OPTIONAL { + ?uri skos:altLabel ?altLabel . + FILTER(LANG(?altLabel) = "nl") + } + OPTIONAL { + ?uri skos:hiddenLabel ?hiddenLabel . + FILTER(LANG(?hiddenLabel) = "nl") + } + OPTIONAL { + ?uri skos:scopeNote ?scopeNote . + FILTER(LANG(?scopeNote) = "nl") + } + OPTIONAL { + ?uri skos:broader ?broader_uri . + ?broader_uri skos:prefLabel ?broader_prefLabel . + FILTER(LANG(?broader_prefLabel) = "nl") + } + OPTIONAL { + ?uri skos:narrower ?narrower_uri . + ?narrower_uri skos:prefLabel ?narrower_prefLabel . + FILTER(LANG(?narrower_prefLabel) = "nl") + } + OPTIONAL { + ?uri skos:related ?related_uri . + ?related_uri skos:prefLabel ?related_prefLabel . + FILTER(LANG(?related_prefLabel) = "nl") + } +} +LIMIT 1000 diff --git a/packages/network-of-terms-catalog/catalog/queries/search/genre-filmmuseum.rq b/packages/network-of-terms-catalog/catalog/queries/search/genre-filmmuseum.rq new file mode 100644 index 000000000..3ab587696 --- /dev/null +++ b/packages/network-of-terms-catalog/catalog/queries/search/genre-filmmuseum.rq @@ -0,0 +1,81 @@ +PREFIX skos: +PREFIX justskos: + +CONSTRUCT { + ?uri a skos:Concept ; + skos:prefLabel ?prefLabel ; + skos:altLabel ?altLabel ; + skos:hiddenLabel ?hiddenLabel ; + skos:scopeNote ?scopeNote ; + skos:broader ?broader_uri ; + skos:narrower ?narrower_uri ; + skos:related ?related_uri . + ?broader_uri skos:prefLabel ?broader_prefLabel . + ?narrower_uri skos:prefLabel ?narrower_prefLabel . + ?related_uri skos:prefLabel ?related_prefLabel . +} +WHERE { + { + ?uri skos:inScheme . + ?uri ?predicate ?label ; + justskos:status ?status . + VALUES ?predicate { skos:prefLabel skos:altLabel skos:hiddenLabel } + FILTER(LANG(?label) = "nl") + FILTER(?status IN ('approved', 'candidate')) + + # single word query, match case insensitive + FILTER regex(?query, "^[^ ]+$") + FILTER CONTAINS(LCASE(?label), LCASE(?query)) + } + UNION + { + ?uri skos:inScheme . + ?uri ?predicate ?label ; + justskos:status ?status . + VALUES ?predicate { skos:prefLabel skos:altLabel skos:hiddenLabel } + FILTER(LANG(?label) = "nl") + FILTER(?status IN ('approved', 'candidate')) + + # double word query, whitespace separator + FILTER REGEX(?query, "^([^ ]+)[ ]+([^ ]+)$") + + BIND(REPLACE(?query, "^([^ ]+)[ ]+([^ ]+)$", "$1") AS ?term1) + BIND(REPLACE(?query, "^([^ ]+)[ ]+([^ ]+)$", "$2") AS ?term2) + + # search case insensitive using an AND construct for the query terms + FILTER( CONTAINS(LCASE(?label), LCASE(?term1)) && CONTAINS(LCASE(?label), LCASE(?term2)) ) + } + + OPTIONAL { + ?uri skos:prefLabel ?prefLabel . + FILTER(LANG(?prefLabel) = "nl" ) + } + OPTIONAL { + ?uri skos:altLabel ?altLabel . + FILTER(LANG(?altLabel) = "nl") + } + OPTIONAL { + ?uri skos:hiddenLabel ?hiddenLabel . + FILTER(LANG(?hiddenLabel) = "nl") + } + OPTIONAL { + ?uri skos:scopeNote ?scopeNote . + FILTER(LANG(?scopeNote) = "nl") + } + OPTIONAL { + ?uri skos:broader ?broader_uri . + ?broader_uri skos:prefLabel ?broader_prefLabel . + FILTER(LANG(?broader_prefLabel) = "nl") + } + OPTIONAL { + ?uri skos:narrower ?narrower_uri . + ?narrower_uri skos:prefLabel ?narrower_prefLabel . + FILTER(LANG(?narrower_prefLabel) = "nl") + } + OPTIONAL { + ?uri skos:related ?related_uri . + ?related_uri skos:prefLabel ?related_prefLabel . + FILTER(LANG(?related_prefLabel) = "nl") + } +} +LIMIT 1000 From 5eedd7aac37785c23235a61c69cb36d7b2d06cc4 Mon Sep 17 00:00:00 2001 From: Willem Melder Date: Thu, 24 Feb 2022 15:46:43 +0000 Subject: [PATCH 05/13] file names have dashes --- .../catalog/datasets/filmmuseum-genres.rq | 37 ++++++++++ .../datasets/gtaa-classificatie.jsonld | 37 ++++++++++ .../catalog/datasets/gtaa-genres.jsonld | 74 +++++++++---------- .../datasets/gtaa-geografische-namen.jsonld | 74 +++++++++---------- .../catalog/datasets/gtaa-namen.jsonld | 37 ++++++++++ .../datasets/gtaa-onderwerpen-beng.jsonld | 37 ++++++++++ .../catalog/datasets/gtaa-onderwerpen.jsonld | 74 +++++++++---------- .../datasets/gtaa-persoonsnamen.jsonld | 37 ++++++++++ 8 files changed, 296 insertions(+), 111 deletions(-) create mode 100644 packages/network-of-terms-catalog/catalog/datasets/filmmuseum-genres.rq create mode 100644 packages/network-of-terms-catalog/catalog/datasets/gtaa-classificatie.jsonld create mode 100644 packages/network-of-terms-catalog/catalog/datasets/gtaa-namen.jsonld create mode 100644 packages/network-of-terms-catalog/catalog/datasets/gtaa-onderwerpen-beng.jsonld create mode 100644 packages/network-of-terms-catalog/catalog/datasets/gtaa-persoonsnamen.jsonld diff --git a/packages/network-of-terms-catalog/catalog/datasets/filmmuseum-genres.rq b/packages/network-of-terms-catalog/catalog/datasets/filmmuseum-genres.rq new file mode 100644 index 000000000..73bc9c58a --- /dev/null +++ b/packages/network-of-terms-catalog/catalog/datasets/filmmuseum-genres.rq @@ -0,0 +1,37 @@ +{ + "@context": "https://schema.org/docs/jsonldcontext.jsonld", + "@id": "http://data.beeldengeluid.nl/gtaa/Genre_Filmmuseum", + "@type": "Dataset", + "name": [ + { + "@language": "nl", + "@value": "Filmmuseum: Genres" + } + ], + "creator": [ + { + "@id": "https://www.beeldengeluid.nl/" + } + ], + "url": [ + "http://data.beeldengeluid.nl/gtaa/Genre_Filmmuseum" + ], + "distribution": [ + { + "@id": "https://data.beeldengeluid.nl/id/datadownload/0033", + "@type": "DataDownload", + "contentUrl": "https://gtaa.apis.beeldengeluid.nl/sparql", + "encodingFormat": "application/sparql-query", + "potentialAction": [ + { + "@type": "SearchAction", + "query": "file://catalog/queries/search/genre-filmmuseum.rq" + }, + { + "@type": "FindAction", + "query": "file://catalog/queries/lookup/genre-filmmuseum.rq" + } + ] + } + ] +} diff --git a/packages/network-of-terms-catalog/catalog/datasets/gtaa-classificatie.jsonld b/packages/network-of-terms-catalog/catalog/datasets/gtaa-classificatie.jsonld new file mode 100644 index 000000000..91e9be66e --- /dev/null +++ b/packages/network-of-terms-catalog/catalog/datasets/gtaa-classificatie.jsonld @@ -0,0 +1,37 @@ +{ + "@context": "https://schema.org/docs/jsonldcontext.jsonld", + "@id": "http://data.beeldengeluid.nl/gtaa/Classificatie", + "@type": "Dataset", + "name": [ + { + "@language": "nl", + "@value": "GTAA: Classificatie" + } + ], + "creator": [ + { + "@id": "https://www.beeldengeluid.nl/" + } + ], + "url": [ + "http://data.beeldengeluid.nl/gtaa/Classicatie" + ], + "distribution": [ + { + "@id": "https://data.beeldengeluid.nl/id/datadownload/0027", + "@type": "DataDownload", + "contentUrl": "https://gtaa.apis.beeldengeluid.nl/sparql", + "encodingFormat": "application/sparql-query", + "potentialAction": [ + { + "@type": "SearchAction", + "query": "file://catalog/queries/search/gtaa-classificatie.rq" + }, + { + "@type": "FindAction", + "query": "file://catalog/queries/lookup/gtaa-classificatie.rq" + } + ] + } + ] +} diff --git a/packages/network-of-terms-catalog/catalog/datasets/gtaa-genres.jsonld b/packages/network-of-terms-catalog/catalog/datasets/gtaa-genres.jsonld index 71fabda4a..1a48d9297 100644 --- a/packages/network-of-terms-catalog/catalog/datasets/gtaa-genres.jsonld +++ b/packages/network-of-terms-catalog/catalog/datasets/gtaa-genres.jsonld @@ -1,37 +1,37 @@ -{ - "@context": "https://schema.org/docs/jsonldcontext.jsonld", - "@id": "http://data.beeldengeluid.nl/gtaa#genres", - "@type": "Dataset", - "name": [ - { - "@language": "nl", - "@value": "GTAA: genres" - } - ], - "creator": [ - { - "@id": "https://www.beeldengeluid.nl/" - } - ], - "url": [ - "http://data.beeldengeluid.nl/gtaa/" - ], - "distribution": [ - { - "@id": "https://data.netwerkdigitaalerfgoed.nl/beeldengeluid/gtaa-genres/sparql", - "@type": "DataDownload", - "contentUrl": "https://api.data.netwerkdigitaalerfgoed.nl/datasets/beeldengeluid/gtaa-genres/services/gtaa-genres/sparql", - "encodingFormat": "application/sparql-query", - "potentialAction": [ - { - "@type": "SearchAction", - "query": "file://catalog/queries/search/gtaa.rq" - }, - { - "@type": "FindAction", - "query": "file://catalog/queries/lookup/gtaa.rq" - } - ] - } - ] -} +{ + "@context": "https://schema.org/docs/jsonldcontext.jsonld", + "@id": "http://data.beeldengeluid.nl/gtaa/Genre", + "@type": "Dataset", + "name": [ + { + "@language": "nl", + "@value": "GTAA: Genres" + } + ], + "creator": [ + { + "@id": "https://www.beeldengeluid.nl/" + } + ], + "url": [ + "http://data.beeldengeluid.nl/gtaa/Genre" + ], + "distribution": [ + { + "@id": "https://data.beeldengeluid.nl/id/datadownload/0028", + "@type": "DataDownload", + "contentUrl": "https://gtaa.apis.beeldengeluid.nl/sparql", + "encodingFormat": "application/sparql-query", + "potentialAction": [ + { + "@type": "SearchAction", + "query": "file://catalog/queries/search/gtaa-genre.rq" + }, + { + "@type": "FindAction", + "query": "file://catalog/queries/lookup/gtaa-genre.rq" + } + ] + } + ] +} diff --git a/packages/network-of-terms-catalog/catalog/datasets/gtaa-geografische-namen.jsonld b/packages/network-of-terms-catalog/catalog/datasets/gtaa-geografische-namen.jsonld index e8f98a0dd..2829d3040 100644 --- a/packages/network-of-terms-catalog/catalog/datasets/gtaa-geografische-namen.jsonld +++ b/packages/network-of-terms-catalog/catalog/datasets/gtaa-geografische-namen.jsonld @@ -1,37 +1,37 @@ -{ - "@context": "https://schema.org/docs/jsonldcontext.jsonld", - "@id": "http://data.beeldengeluid.nl/gtaa#geografische-namen", - "@type": "Dataset", - "name": [ - { - "@language": "nl", - "@value": "GTAA: geografische namen" - } - ], - "creator": [ - { - "@id": "https://www.beeldengeluid.nl/" - } - ], - "url": [ - "http://data.beeldengeluid.nl/gtaa/" - ], - "distribution": [ - { - "@id": "https://data.netwerkdigitaalerfgoed.nl/beeldengeluid/gtaa-geografischenamen/sparql", - "@type": "DataDownload", - "contentUrl": "https://api.data.netwerkdigitaalerfgoed.nl/datasets/beeldengeluid/gtaa-geografischenamen/services/gtaa-geografischenamen/sparql", - "encodingFormat": "application/sparql-query", - "potentialAction": [ - { - "@type": "SearchAction", - "query": "file://catalog/queries/search/gtaa.rq" - }, - { - "@type": "FindAction", - "query": "file://catalog/queries/lookup/gtaa.rq" - } - ] - } - ] -} +{ + "@context": "https://schema.org/docs/jsonldcontext.jsonld", + "@id": "http://data.beeldengeluid.nl/gtaa/GeografischeNamen", + "@type": "Dataset", + "name": [ + { + "@language": "nl", + "@value": "GTAA: Geografische Namen" + } + ], + "creator": [ + { + "@id": "https://www.beeldengeluid.nl/" + } + ], + "url": [ + "http://data.beeldengeluid.nl/gtaa/GeografischeNamen" + ], + "distribution": [ + { + "@id": "https://data.beeldengeluid.nl/id/datadownload/0029", + "@type": "DataDownload", + "contentUrl": "https://gtaa.apis.beeldengeluid.nl/sparql", + "encodingFormat": "application/sparql-query", + "potentialAction": [ + { + "@type": "SearchAction", + "query": "file://catalog/queries/search/gtaa-geografische-namen.rq" + }, + { + "@type": "FindAction", + "query": "file://catalog/queries/lookup/gtaa-geografische-namen.rq" + } + ] + } + ] +} diff --git a/packages/network-of-terms-catalog/catalog/datasets/gtaa-namen.jsonld b/packages/network-of-terms-catalog/catalog/datasets/gtaa-namen.jsonld new file mode 100644 index 000000000..8c3b1dc41 --- /dev/null +++ b/packages/network-of-terms-catalog/catalog/datasets/gtaa-namen.jsonld @@ -0,0 +1,37 @@ +{ + "@context": "https://schema.org/docs/jsonldcontext.jsonld", + "@id": "http://data.beeldengeluid.nl/gtaa/Namen", + "@type": "Dataset", + "name": [ + { + "@language": "nl", + "@value": "GTAA: Namen" + } + ], + "creator": [ + { + "@id": "https://www.beeldengeluid.nl/" + } + ], + "url": [ + "http://data.beeldengeluid.nl/gtaa/Namen" + ], + "distribution": [ + { + "@id": "https://data.beeldengeluid.nl/id/datadownload/0030", + "@type": "DataDownload", + "contentUrl": "https://gtaa.apis.beeldengeluid.nl/sparql", + "encodingFormat": "application/sparql-query", + "potentialAction": [ + { + "@type": "SearchAction", + "query": "file://catalog/queries/search/gtaa-namen.rq" + }, + { + "@type": "FindAction", + "query": "file://catalog/queries/lookup/gtaa-namen.rq" + } + ] + } + ] +} diff --git a/packages/network-of-terms-catalog/catalog/datasets/gtaa-onderwerpen-beng.jsonld b/packages/network-of-terms-catalog/catalog/datasets/gtaa-onderwerpen-beng.jsonld new file mode 100644 index 000000000..cd7abb3a0 --- /dev/null +++ b/packages/network-of-terms-catalog/catalog/datasets/gtaa-onderwerpen-beng.jsonld @@ -0,0 +1,37 @@ +{ + "@context": "https://schema.org/docs/jsonldcontext.jsonld", + "@id": "http://data.beeldengeluid.nl/gtaa/OnderwerpenBenG", + "@type": "Dataset", + "name": [ + { + "@language": "nl", + "@value": "GTAA: Onderwerpen beeld-geluid" + } + ], + "creator": [ + { + "@id": "https://www.beeldengeluid.nl/" + } + ], + "url": [ + "http://data.beeldengeluid.nl/gtaa/OnderwerpenBenG" + ], + "distribution": [ + { + "@id": "https://data.beeldengeluid.nl/id/datadownload/0032", + "@type": "DataDownload", + "contentUrl": "https://gtaa.apis.beeldengeluid.nl/sparql", + "encodingFormat": "application/sparql-query", + "potentialAction": [ + { + "@type": "SearchAction", + "query": "file://catalog/queries/search/gtaa-onderwerpen-beng.rq" + }, + { + "@type": "FindAction", + "query": "file://catalog/queries/lookup/gtaa-onderwerpen-beng.rq" + } + ] + } + ] +} diff --git a/packages/network-of-terms-catalog/catalog/datasets/gtaa-onderwerpen.jsonld b/packages/network-of-terms-catalog/catalog/datasets/gtaa-onderwerpen.jsonld index 344a28619..60d9f817c 100644 --- a/packages/network-of-terms-catalog/catalog/datasets/gtaa-onderwerpen.jsonld +++ b/packages/network-of-terms-catalog/catalog/datasets/gtaa-onderwerpen.jsonld @@ -1,37 +1,37 @@ -{ - "@context": "https://schema.org/docs/jsonldcontext.jsonld", - "@id": "http://data.beeldengeluid.nl/gtaa#onderwerpen", - "@type": "Dataset", - "name": [ - { - "@language": "nl", - "@value": "GTAA: onderwerpen" - } - ], - "creator": [ - { - "@id": "https://www.beeldengeluid.nl/" - } - ], - "url": [ - "http://data.beeldengeluid.nl/gtaa/" - ], - "distribution": [ - { - "@id": "https://data.netwerkdigitaalerfgoed.nl/beeldengeluid/gtaa-onderwerpen/sparql", - "@type": "DataDownload", - "contentUrl": "https://api.data.netwerkdigitaalerfgoed.nl/datasets/beeldengeluid/gtaa-onderwerpen/services/gtaa-onderwerpen/sparql", - "encodingFormat": "application/sparql-query", - "potentialAction": [ - { - "@type": "SearchAction", - "query": "file://catalog/queries/search/gtaa.rq" - }, - { - "@type": "FindAction", - "query": "file://catalog/queries/lookup/gtaa.rq" - } - ] - } - ] -} +{ + "@context": "https://schema.org/docs/jsonldcontext.jsonld", + "@id": "http://data.beeldengeluid.nl/gtaa/Onderwerpen", + "@type": "Dataset", + "name": [ + { + "@language": "nl", + "@value": "GTAA: Onderwerpen" + } + ], + "creator": [ + { + "@id": "https://www.beeldengeluid.nl/" + } + ], + "url": [ + "http://data.beeldengeluid.nl/gtaa/Onderwerpen" + ], + "distribution": [ + { + "@id": "https://data.beeldengeluid.nl/id/datadownload/0031", + "@type": "DataDownload", + "contentUrl": "https://gtaa.apis.beeldengeluid.nl/sparql", + "encodingFormat": "application/sparql-query", + "potentialAction": [ + { + "@type": "SearchAction", + "query": "file://catalog/queries/search/gtaa-onderwerpen.rq" + }, + { + "@type": "FindAction", + "query": "file://catalog/queries/lookup/gtaa-onderwerpen.rq" + } + ] + } + ] +} diff --git a/packages/network-of-terms-catalog/catalog/datasets/gtaa-persoonsnamen.jsonld b/packages/network-of-terms-catalog/catalog/datasets/gtaa-persoonsnamen.jsonld new file mode 100644 index 000000000..a8b688d75 --- /dev/null +++ b/packages/network-of-terms-catalog/catalog/datasets/gtaa-persoonsnamen.jsonld @@ -0,0 +1,37 @@ +{ + "@context": "https://schema.org/docs/jsonldcontext.jsonld", + "@id": "http://data.beeldengeluid.nl/gtaa/Persoonsnamen", + "@type": "Dataset", + "name": [ + { + "@language": "nl", + "@value": "GTAA: Persoonsnamen" + } + ], + "creator": [ + { + "@id": "https://www.beeldengeluid.nl/" + } + ], + "url": [ + "http://data.beeldengeluid.nl/gtaa/Persoonsnamen" + ], + "distribution": [ + { + "@id": "https://data.beeldengeluid.nl/id/datadownload/0026", + "@type": "DataDownload", + "contentUrl": "https://gtaa.apis.beeldengeluid.nl/sparql", + "encodingFormat": "application/sparql-query", + "potentialAction": [ + { + "@type": "SearchAction", + "query": "file://catalog/queries/search/gtaa-persoonsnamen.rq" + }, + { + "@type": "FindAction", + "query": "file://catalog/queries/lookup/gtaa-persoonsnamen.rq" + } + ] + } + ] +} From 77a78df006799acdaaf23b2509f3801e9b46b9b0 Mon Sep 17 00:00:00 2001 From: Willem Melder Date: Fri, 25 Feb 2022 08:38:31 +0000 Subject: [PATCH 06/13] removed dataset files with underscores --- .../catalog/datasets/genre_filmmuseum.jsonld | 37 ------------------- .../datasets/gtaa_classificatie.jsonld | 37 ------------------- .../catalog/datasets/gtaa_genres.jsonld | 37 ------------------- .../datasets/gtaa_geografische_namen.jsonld | 37 ------------------- .../catalog/datasets/gtaa_namen.jsonld | 37 ------------------- .../catalog/datasets/gtaa_onderwerpen.jsonld | 37 ------------------- .../datasets/gtaa_onderwerpen_beng.jsonld | 37 ------------------- .../datasets/gtaa_persoonsnamen.jsonld | 37 ------------------- 8 files changed, 296 deletions(-) delete mode 100644 packages/network-of-terms-catalog/catalog/datasets/genre_filmmuseum.jsonld delete mode 100644 packages/network-of-terms-catalog/catalog/datasets/gtaa_classificatie.jsonld delete mode 100644 packages/network-of-terms-catalog/catalog/datasets/gtaa_genres.jsonld delete mode 100644 packages/network-of-terms-catalog/catalog/datasets/gtaa_geografische_namen.jsonld delete mode 100644 packages/network-of-terms-catalog/catalog/datasets/gtaa_namen.jsonld delete mode 100644 packages/network-of-terms-catalog/catalog/datasets/gtaa_onderwerpen.jsonld delete mode 100644 packages/network-of-terms-catalog/catalog/datasets/gtaa_onderwerpen_beng.jsonld delete mode 100644 packages/network-of-terms-catalog/catalog/datasets/gtaa_persoonsnamen.jsonld diff --git a/packages/network-of-terms-catalog/catalog/datasets/genre_filmmuseum.jsonld b/packages/network-of-terms-catalog/catalog/datasets/genre_filmmuseum.jsonld deleted file mode 100644 index cfca21f8a..000000000 --- a/packages/network-of-terms-catalog/catalog/datasets/genre_filmmuseum.jsonld +++ /dev/null @@ -1,37 +0,0 @@ -{ - "@context": "https://schema.org/docs/jsonldcontext.jsonld", - "@id": "http://data.beeldengeluid.nl/gtaa/Genre_Filmmuseum", - "@type": "Dataset", - "name": [ - { - "@language": "nl", - "@value": "Genre Filmmuseum" - } - ], - "creator": [ - { - "@id": "https://www.beeldengeluid.nl/" - } - ], - "url": [ - "http://data.beeldengeluid.nl/gtaa/Genre_Filmmuseum" - ], - "distribution": [ - { - "@id": "https://data.beeldengeluid.nl/id/datadownload/0033", - "@type": "DataDownload", - "contentUrl": "https://gtaa.apis.beeldengeluid.nl/sparql", - "encodingFormat": "application/sparql-query", - "potentialAction": [ - { - "@type": "SearchAction", - "query": "file://catalog/queries/search/genre-filmmuseum.rq" - }, - { - "@type": "FindAction", - "query": "file://catalog/queries/lookup/genre-filmmuseum.rq" - } - ] - } - ] -} diff --git a/packages/network-of-terms-catalog/catalog/datasets/gtaa_classificatie.jsonld b/packages/network-of-terms-catalog/catalog/datasets/gtaa_classificatie.jsonld deleted file mode 100644 index e477a47de..000000000 --- a/packages/network-of-terms-catalog/catalog/datasets/gtaa_classificatie.jsonld +++ /dev/null @@ -1,37 +0,0 @@ -{ - "@context": "https://schema.org/docs/jsonldcontext.jsonld", - "@id": "http://data.beeldengeluid.nl/gtaa/Classificatie", - "@type": "Dataset", - "name": [ - { - "@language": "nl", - "@value": "GTAA Classificatie" - } - ], - "creator": [ - { - "@id": "https://www.beeldengeluid.nl/" - } - ], - "url": [ - "http://data.beeldengeluid.nl/gtaa/Classicatie" - ], - "distribution": [ - { - "@id": "https://data.beeldengeluid.nl/id/datadownload/0027", - "@type": "DataDownload", - "contentUrl": "https://gtaa.apis.beeldengeluid.nl/sparql", - "encodingFormat": "application/sparql-query", - "potentialAction": [ - { - "@type": "SearchAction", - "query": "file://catalog/queries/search/gtaa-classificatie.rq" - }, - { - "@type": "FindAction", - "query": "file://catalog/queries/lookup/gtaa-classificatie.rq" - } - ] - } - ] -} diff --git a/packages/network-of-terms-catalog/catalog/datasets/gtaa_genres.jsonld b/packages/network-of-terms-catalog/catalog/datasets/gtaa_genres.jsonld deleted file mode 100644 index baf1e46f1..000000000 --- a/packages/network-of-terms-catalog/catalog/datasets/gtaa_genres.jsonld +++ /dev/null @@ -1,37 +0,0 @@ -{ - "@context": "https://schema.org/docs/jsonldcontext.jsonld", - "@id": "http://data.beeldengeluid.nl/gtaa/Genre", - "@type": "Dataset", - "name": [ - { - "@language": "nl", - "@value": "GTAA Genres" - } - ], - "creator": [ - { - "@id": "https://www.beeldengeluid.nl/" - } - ], - "url": [ - "http://data.beeldengeluid.nl/gtaa/Genre" - ], - "distribution": [ - { - "@id": "https://data.beeldengeluid.nl/id/datadownload/0028", - "@type": "DataDownload", - "contentUrl": "https://gtaa.apis.beeldengeluid.nl/sparql", - "encodingFormat": "application/sparql-query", - "potentialAction": [ - { - "@type": "SearchAction", - "query": "file://catalog/queries/search/gtaa-genre.rq" - }, - { - "@type": "FindAction", - "query": "file://catalog/queries/lookup/gtaa-genre.rq" - } - ] - } - ] -} diff --git a/packages/network-of-terms-catalog/catalog/datasets/gtaa_geografische_namen.jsonld b/packages/network-of-terms-catalog/catalog/datasets/gtaa_geografische_namen.jsonld deleted file mode 100644 index 2e8973303..000000000 --- a/packages/network-of-terms-catalog/catalog/datasets/gtaa_geografische_namen.jsonld +++ /dev/null @@ -1,37 +0,0 @@ -{ - "@context": "https://schema.org/docs/jsonldcontext.jsonld", - "@id": "http://data.beeldengeluid.nl/gtaa/GeografischeNamen", - "@type": "Dataset", - "name": [ - { - "@language": "nl", - "@value": "GTAA Geografische Namen" - } - ], - "creator": [ - { - "@id": "https://www.beeldengeluid.nl/" - } - ], - "url": [ - "http://data.beeldengeluid.nl/gtaa/GeografischeNamen" - ], - "distribution": [ - { - "@id": "https://data.beeldengeluid.nl/id/datadownload/0029", - "@type": "DataDownload", - "contentUrl": "https://gtaa.apis.beeldengeluid.nl/sparql", - "encodingFormat": "application/sparql-query", - "potentialAction": [ - { - "@type": "SearchAction", - "query": "file://catalog/queries/search/gtaa-geografische-namen.rq" - }, - { - "@type": "FindAction", - "query": "file://catalog/queries/lookup/gtaa-geografische-namen.rq" - } - ] - } - ] -} diff --git a/packages/network-of-terms-catalog/catalog/datasets/gtaa_namen.jsonld b/packages/network-of-terms-catalog/catalog/datasets/gtaa_namen.jsonld deleted file mode 100644 index b5ef1cb1f..000000000 --- a/packages/network-of-terms-catalog/catalog/datasets/gtaa_namen.jsonld +++ /dev/null @@ -1,37 +0,0 @@ -{ - "@context": "https://schema.org/docs/jsonldcontext.jsonld", - "@id": "http://data.beeldengeluid.nl/gtaa/Namen", - "@type": "Dataset", - "name": [ - { - "@language": "nl", - "@value": "GTAA Namen" - } - ], - "creator": [ - { - "@id": "https://www.beeldengeluid.nl/" - } - ], - "url": [ - "http://data.beeldengeluid.nl/gtaa/Namen" - ], - "distribution": [ - { - "@id": "https://data.beeldengeluid.nl/id/datadownload/0030", - "@type": "DataDownload", - "contentUrl": "https://gtaa.apis.beeldengeluid.nl/sparql", - "encodingFormat": "application/sparql-query", - "potentialAction": [ - { - "@type": "SearchAction", - "query": "file://catalog/queries/search/gtaa-namen.rq" - }, - { - "@type": "FindAction", - "query": "file://catalog/queries/lookup/gtaa-namen.rq" - } - ] - } - ] -} diff --git a/packages/network-of-terms-catalog/catalog/datasets/gtaa_onderwerpen.jsonld b/packages/network-of-terms-catalog/catalog/datasets/gtaa_onderwerpen.jsonld deleted file mode 100644 index cf9013301..000000000 --- a/packages/network-of-terms-catalog/catalog/datasets/gtaa_onderwerpen.jsonld +++ /dev/null @@ -1,37 +0,0 @@ -{ - "@context": "https://schema.org/docs/jsonldcontext.jsonld", - "@id": "http://data.beeldengeluid.nl/gtaa/Onderwerpen", - "@type": "Dataset", - "name": [ - { - "@language": "nl", - "@value": "GTAA Onderwerpen" - } - ], - "creator": [ - { - "@id": "https://www.beeldengeluid.nl/" - } - ], - "url": [ - "http://data.beeldengeluid.nl/gtaa/Onderwerpen" - ], - "distribution": [ - { - "@id": "https://data.beeldengeluid.nl/id/datadownload/0031", - "@type": "DataDownload", - "contentUrl": "https://gtaa.apis.beeldengeluid.nl/sparql", - "encodingFormat": "application/sparql-query", - "potentialAction": [ - { - "@type": "SearchAction", - "query": "file://catalog/queries/search/gtaa-onderwerpen.rq" - }, - { - "@type": "FindAction", - "query": "file://catalog/queries/lookup/gtaa-onderwerpen.rq" - } - ] - } - ] -} diff --git a/packages/network-of-terms-catalog/catalog/datasets/gtaa_onderwerpen_beng.jsonld b/packages/network-of-terms-catalog/catalog/datasets/gtaa_onderwerpen_beng.jsonld deleted file mode 100644 index 9f9277a18..000000000 --- a/packages/network-of-terms-catalog/catalog/datasets/gtaa_onderwerpen_beng.jsonld +++ /dev/null @@ -1,37 +0,0 @@ -{ - "@context": "https://schema.org/docs/jsonldcontext.jsonld", - "@id": "http://data.beeldengeluid.nl/gtaa/OnderwerpenBenG", - "@type": "Dataset", - "name": [ - { - "@language": "nl", - "@value": "GTAA Onderwerpen beeld-geluid" - } - ], - "creator": [ - { - "@id": "https://www.beeldengeluid.nl/" - } - ], - "url": [ - "http://data.beeldengeluid.nl/gtaa/OnderwerpenBenG" - ], - "distribution": [ - { - "@id": "https://data.beeldengeluid.nl/id/datadownload/0032", - "@type": "DataDownload", - "contentUrl": "https://gtaa.apis.beeldengeluid.nl/sparql", - "encodingFormat": "application/sparql-query", - "potentialAction": [ - { - "@type": "SearchAction", - "query": "file://catalog/queries/search/gtaa-onderwerpen-beng.rq" - }, - { - "@type": "FindAction", - "query": "file://catalog/queries/lookup/gtaa-onderwerpen-beng.rq" - } - ] - } - ] -} diff --git a/packages/network-of-terms-catalog/catalog/datasets/gtaa_persoonsnamen.jsonld b/packages/network-of-terms-catalog/catalog/datasets/gtaa_persoonsnamen.jsonld deleted file mode 100644 index f30079367..000000000 --- a/packages/network-of-terms-catalog/catalog/datasets/gtaa_persoonsnamen.jsonld +++ /dev/null @@ -1,37 +0,0 @@ -{ - "@context": "https://schema.org/docs/jsonldcontext.jsonld", - "@id": "http://data.beeldengeluid.nl/gtaa/Persoonsnamen", - "@type": "Dataset", - "name": [ - { - "@language": "nl", - "@value": "GTAA Persoonsnamen" - } - ], - "creator": [ - { - "@id": "https://www.beeldengeluid.nl/" - } - ], - "url": [ - "http://data.beeldengeluid.nl/gtaa/Persoonsnamen" - ], - "distribution": [ - { - "@id": "https://data.beeldengeluid.nl/id/datadownload/0026", - "@type": "DataDownload", - "contentUrl": "https://gtaa.apis.beeldengeluid.nl/sparql", - "encodingFormat": "application/sparql-query", - "potentialAction": [ - { - "@type": "SearchAction", - "query": "file://catalog/queries/search/gtaa-persoonsnamen.rq" - }, - { - "@type": "FindAction", - "query": "file://catalog/queries/lookup/gtaa-persoonsnamen.rq" - } - ] - } - ] -} From d332e8e1ba2b5bbb7387e2409e16bcfe5893dea3 Mon Sep 17 00:00:00 2001 From: Willem Melder Date: Fri, 25 Feb 2022 12:46:32 +0000 Subject: [PATCH 07/13] renamed file filmmuseum --- .../datasets/{filmmuseum-genres.rq => filmmuseum-genres.jsonld} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename packages/network-of-terms-catalog/catalog/datasets/{filmmuseum-genres.rq => filmmuseum-genres.jsonld} (100%) diff --git a/packages/network-of-terms-catalog/catalog/datasets/filmmuseum-genres.rq b/packages/network-of-terms-catalog/catalog/datasets/filmmuseum-genres.jsonld similarity index 100% rename from packages/network-of-terms-catalog/catalog/datasets/filmmuseum-genres.rq rename to packages/network-of-terms-catalog/catalog/datasets/filmmuseum-genres.jsonld From 813f29a20a9b5b3b39cd3a57821643640ebef23a Mon Sep 17 00:00:00 2001 From: Willem Melder Date: Mon, 28 Feb 2022 14:59:32 +0000 Subject: [PATCH 08/13] removed Genre_Filmmuseum from the catalog --- .../catalog/datasets/filmmuseum-genres.jsonld | 37 --------- .../queries/lookup/genre-filmmuseum.rq | 55 ------------- .../queries/search/genre-filmmuseum.rq | 81 ------------------- 3 files changed, 173 deletions(-) delete mode 100644 packages/network-of-terms-catalog/catalog/datasets/filmmuseum-genres.jsonld delete mode 100644 packages/network-of-terms-catalog/catalog/queries/lookup/genre-filmmuseum.rq delete mode 100644 packages/network-of-terms-catalog/catalog/queries/search/genre-filmmuseum.rq diff --git a/packages/network-of-terms-catalog/catalog/datasets/filmmuseum-genres.jsonld b/packages/network-of-terms-catalog/catalog/datasets/filmmuseum-genres.jsonld deleted file mode 100644 index 73bc9c58a..000000000 --- a/packages/network-of-terms-catalog/catalog/datasets/filmmuseum-genres.jsonld +++ /dev/null @@ -1,37 +0,0 @@ -{ - "@context": "https://schema.org/docs/jsonldcontext.jsonld", - "@id": "http://data.beeldengeluid.nl/gtaa/Genre_Filmmuseum", - "@type": "Dataset", - "name": [ - { - "@language": "nl", - "@value": "Filmmuseum: Genres" - } - ], - "creator": [ - { - "@id": "https://www.beeldengeluid.nl/" - } - ], - "url": [ - "http://data.beeldengeluid.nl/gtaa/Genre_Filmmuseum" - ], - "distribution": [ - { - "@id": "https://data.beeldengeluid.nl/id/datadownload/0033", - "@type": "DataDownload", - "contentUrl": "https://gtaa.apis.beeldengeluid.nl/sparql", - "encodingFormat": "application/sparql-query", - "potentialAction": [ - { - "@type": "SearchAction", - "query": "file://catalog/queries/search/genre-filmmuseum.rq" - }, - { - "@type": "FindAction", - "query": "file://catalog/queries/lookup/genre-filmmuseum.rq" - } - ] - } - ] -} diff --git a/packages/network-of-terms-catalog/catalog/queries/lookup/genre-filmmuseum.rq b/packages/network-of-terms-catalog/catalog/queries/lookup/genre-filmmuseum.rq deleted file mode 100644 index e03e08dd7..000000000 --- a/packages/network-of-terms-catalog/catalog/queries/lookup/genre-filmmuseum.rq +++ /dev/null @@ -1,55 +0,0 @@ -PREFIX skos: - -CONSTRUCT { - ?uri a skos:Concept ; - skos:prefLabel ?prefLabel ; - skos:altLabel ?altLabel ; - skos:hiddenLabel ?hiddenLabel ; - skos:scopeNote ?scopeNote ; - skos:broader ?broader_uri ; - skos:narrower ?narrower_uri ; - skos:related ?related_uri . - ?broader_uri skos:prefLabel ?broader_prefLabel . - ?narrower_uri skos:prefLabel ?narrower_prefLabel . - ?related_uri skos:prefLabel ?related_prefLabel . -} -WHERE { - ?uri skos:inScheme . - - VALUES ?uri { ?uris } - - ?uri a skos:Concept . - - OPTIONAL { - ?uri skos:prefLabel ?prefLabel . - FILTER(LANG(?prefLabel) = "nl" ) - } - OPTIONAL { - ?uri skos:altLabel ?altLabel . - FILTER(LANG(?altLabel) = "nl") - } - OPTIONAL { - ?uri skos:hiddenLabel ?hiddenLabel . - FILTER(LANG(?hiddenLabel) = "nl") - } - OPTIONAL { - ?uri skos:scopeNote ?scopeNote . - FILTER(LANG(?scopeNote) = "nl") - } - OPTIONAL { - ?uri skos:broader ?broader_uri . - ?broader_uri skos:prefLabel ?broader_prefLabel . - FILTER(LANG(?broader_prefLabel) = "nl") - } - OPTIONAL { - ?uri skos:narrower ?narrower_uri . - ?narrower_uri skos:prefLabel ?narrower_prefLabel . - FILTER(LANG(?narrower_prefLabel) = "nl") - } - OPTIONAL { - ?uri skos:related ?related_uri . - ?related_uri skos:prefLabel ?related_prefLabel . - FILTER(LANG(?related_prefLabel) = "nl") - } -} -LIMIT 1000 diff --git a/packages/network-of-terms-catalog/catalog/queries/search/genre-filmmuseum.rq b/packages/network-of-terms-catalog/catalog/queries/search/genre-filmmuseum.rq deleted file mode 100644 index 3ab587696..000000000 --- a/packages/network-of-terms-catalog/catalog/queries/search/genre-filmmuseum.rq +++ /dev/null @@ -1,81 +0,0 @@ -PREFIX skos: -PREFIX justskos: - -CONSTRUCT { - ?uri a skos:Concept ; - skos:prefLabel ?prefLabel ; - skos:altLabel ?altLabel ; - skos:hiddenLabel ?hiddenLabel ; - skos:scopeNote ?scopeNote ; - skos:broader ?broader_uri ; - skos:narrower ?narrower_uri ; - skos:related ?related_uri . - ?broader_uri skos:prefLabel ?broader_prefLabel . - ?narrower_uri skos:prefLabel ?narrower_prefLabel . - ?related_uri skos:prefLabel ?related_prefLabel . -} -WHERE { - { - ?uri skos:inScheme . - ?uri ?predicate ?label ; - justskos:status ?status . - VALUES ?predicate { skos:prefLabel skos:altLabel skos:hiddenLabel } - FILTER(LANG(?label) = "nl") - FILTER(?status IN ('approved', 'candidate')) - - # single word query, match case insensitive - FILTER regex(?query, "^[^ ]+$") - FILTER CONTAINS(LCASE(?label), LCASE(?query)) - } - UNION - { - ?uri skos:inScheme . - ?uri ?predicate ?label ; - justskos:status ?status . - VALUES ?predicate { skos:prefLabel skos:altLabel skos:hiddenLabel } - FILTER(LANG(?label) = "nl") - FILTER(?status IN ('approved', 'candidate')) - - # double word query, whitespace separator - FILTER REGEX(?query, "^([^ ]+)[ ]+([^ ]+)$") - - BIND(REPLACE(?query, "^([^ ]+)[ ]+([^ ]+)$", "$1") AS ?term1) - BIND(REPLACE(?query, "^([^ ]+)[ ]+([^ ]+)$", "$2") AS ?term2) - - # search case insensitive using an AND construct for the query terms - FILTER( CONTAINS(LCASE(?label), LCASE(?term1)) && CONTAINS(LCASE(?label), LCASE(?term2)) ) - } - - OPTIONAL { - ?uri skos:prefLabel ?prefLabel . - FILTER(LANG(?prefLabel) = "nl" ) - } - OPTIONAL { - ?uri skos:altLabel ?altLabel . - FILTER(LANG(?altLabel) = "nl") - } - OPTIONAL { - ?uri skos:hiddenLabel ?hiddenLabel . - FILTER(LANG(?hiddenLabel) = "nl") - } - OPTIONAL { - ?uri skos:scopeNote ?scopeNote . - FILTER(LANG(?scopeNote) = "nl") - } - OPTIONAL { - ?uri skos:broader ?broader_uri . - ?broader_uri skos:prefLabel ?broader_prefLabel . - FILTER(LANG(?broader_prefLabel) = "nl") - } - OPTIONAL { - ?uri skos:narrower ?narrower_uri . - ?narrower_uri skos:prefLabel ?narrower_prefLabel . - FILTER(LANG(?narrower_prefLabel) = "nl") - } - OPTIONAL { - ?uri skos:related ?related_uri . - ?related_uri skos:prefLabel ?related_prefLabel . - FILTER(LANG(?related_prefLabel) = "nl") - } -} -LIMIT 1000 From ebc84a38a92366ce1ac73879a0281396795061c5 Mon Sep 17 00:00:00 2001 From: David de Boer Date: Tue, 1 Mar 2022 15:36:18 +0100 Subject: [PATCH 09/13] Re-use query by parameterizing dataset URI --- .../datasets/gtaa-classificatie.jsonld | 2 +- .../catalog/datasets/gtaa-genres.jsonld | 2 +- .../datasets/gtaa-geografische-namen.jsonld | 2 +- .../catalog/datasets/gtaa-namen.jsonld | 2 +- .../datasets/gtaa-onderwerpen-beng.jsonld | 2 +- .../catalog/datasets/gtaa-onderwerpen.jsonld | 2 +- .../queries/search/gtaa-classificatie.rq | 81 ------------------- .../catalog/queries/search/gtaa-genre.rq | 81 ------------------- .../queries/search/gtaa-geografische-namen.rq | 81 ------------------- .../catalog/queries/search/gtaa-namen.rq | 81 ------------------- .../queries/search/gtaa-onderwerpen-beng.rq | 81 ------------------- .../queries/search/gtaa-onderwerpen.rq | 81 ------------------- .../catalog/queries/search/gtaa.rq | 41 +++++++--- 13 files changed, 34 insertions(+), 505 deletions(-) delete mode 100644 packages/network-of-terms-catalog/catalog/queries/search/gtaa-classificatie.rq delete mode 100644 packages/network-of-terms-catalog/catalog/queries/search/gtaa-genre.rq delete mode 100644 packages/network-of-terms-catalog/catalog/queries/search/gtaa-geografische-namen.rq delete mode 100644 packages/network-of-terms-catalog/catalog/queries/search/gtaa-namen.rq delete mode 100644 packages/network-of-terms-catalog/catalog/queries/search/gtaa-onderwerpen-beng.rq delete mode 100644 packages/network-of-terms-catalog/catalog/queries/search/gtaa-onderwerpen.rq diff --git a/packages/network-of-terms-catalog/catalog/datasets/gtaa-classificatie.jsonld b/packages/network-of-terms-catalog/catalog/datasets/gtaa-classificatie.jsonld index 91e9be66e..8d8f6aee1 100644 --- a/packages/network-of-terms-catalog/catalog/datasets/gtaa-classificatie.jsonld +++ b/packages/network-of-terms-catalog/catalog/datasets/gtaa-classificatie.jsonld @@ -25,7 +25,7 @@ "potentialAction": [ { "@type": "SearchAction", - "query": "file://catalog/queries/search/gtaa-classificatie.rq" + "query": "file://catalog/queries/search/gtaa.rq" }, { "@type": "FindAction", diff --git a/packages/network-of-terms-catalog/catalog/datasets/gtaa-genres.jsonld b/packages/network-of-terms-catalog/catalog/datasets/gtaa-genres.jsonld index 1a48d9297..daa6df509 100644 --- a/packages/network-of-terms-catalog/catalog/datasets/gtaa-genres.jsonld +++ b/packages/network-of-terms-catalog/catalog/datasets/gtaa-genres.jsonld @@ -25,7 +25,7 @@ "potentialAction": [ { "@type": "SearchAction", - "query": "file://catalog/queries/search/gtaa-genre.rq" + "query": "file://catalog/queries/search/gtaa.rq" }, { "@type": "FindAction", diff --git a/packages/network-of-terms-catalog/catalog/datasets/gtaa-geografische-namen.jsonld b/packages/network-of-terms-catalog/catalog/datasets/gtaa-geografische-namen.jsonld index 2829d3040..96f9a8e24 100644 --- a/packages/network-of-terms-catalog/catalog/datasets/gtaa-geografische-namen.jsonld +++ b/packages/network-of-terms-catalog/catalog/datasets/gtaa-geografische-namen.jsonld @@ -25,7 +25,7 @@ "potentialAction": [ { "@type": "SearchAction", - "query": "file://catalog/queries/search/gtaa-geografische-namen.rq" + "query": "file://catalog/queries/search/gtaa.rq" }, { "@type": "FindAction", diff --git a/packages/network-of-terms-catalog/catalog/datasets/gtaa-namen.jsonld b/packages/network-of-terms-catalog/catalog/datasets/gtaa-namen.jsonld index 8c3b1dc41..46cfe2942 100644 --- a/packages/network-of-terms-catalog/catalog/datasets/gtaa-namen.jsonld +++ b/packages/network-of-terms-catalog/catalog/datasets/gtaa-namen.jsonld @@ -25,7 +25,7 @@ "potentialAction": [ { "@type": "SearchAction", - "query": "file://catalog/queries/search/gtaa-namen.rq" + "query": "file://catalog/queries/search/gtaa.rq" }, { "@type": "FindAction", diff --git a/packages/network-of-terms-catalog/catalog/datasets/gtaa-onderwerpen-beng.jsonld b/packages/network-of-terms-catalog/catalog/datasets/gtaa-onderwerpen-beng.jsonld index cd7abb3a0..2d36b77ed 100644 --- a/packages/network-of-terms-catalog/catalog/datasets/gtaa-onderwerpen-beng.jsonld +++ b/packages/network-of-terms-catalog/catalog/datasets/gtaa-onderwerpen-beng.jsonld @@ -25,7 +25,7 @@ "potentialAction": [ { "@type": "SearchAction", - "query": "file://catalog/queries/search/gtaa-onderwerpen-beng.rq" + "query": "file://catalog/queries/search/gtaa.rq" }, { "@type": "FindAction", diff --git a/packages/network-of-terms-catalog/catalog/datasets/gtaa-onderwerpen.jsonld b/packages/network-of-terms-catalog/catalog/datasets/gtaa-onderwerpen.jsonld index 60d9f817c..623782686 100644 --- a/packages/network-of-terms-catalog/catalog/datasets/gtaa-onderwerpen.jsonld +++ b/packages/network-of-terms-catalog/catalog/datasets/gtaa-onderwerpen.jsonld @@ -25,7 +25,7 @@ "potentialAction": [ { "@type": "SearchAction", - "query": "file://catalog/queries/search/gtaa-onderwerpen.rq" + "query": "file://catalog/queries/search/gtaa.rq" }, { "@type": "FindAction", diff --git a/packages/network-of-terms-catalog/catalog/queries/search/gtaa-classificatie.rq b/packages/network-of-terms-catalog/catalog/queries/search/gtaa-classificatie.rq deleted file mode 100644 index 7512346cd..000000000 --- a/packages/network-of-terms-catalog/catalog/queries/search/gtaa-classificatie.rq +++ /dev/null @@ -1,81 +0,0 @@ -PREFIX skos: -PREFIX justskos: - -CONSTRUCT { - ?uri a skos:Concept ; - skos:prefLabel ?prefLabel ; - skos:altLabel ?altLabel ; - skos:hiddenLabel ?hiddenLabel ; - skos:scopeNote ?scopeNote ; - skos:broader ?broader_uri ; - skos:narrower ?narrower_uri ; - skos:related ?related_uri . - ?broader_uri skos:prefLabel ?broader_prefLabel . - ?narrower_uri skos:prefLabel ?narrower_prefLabel . - ?related_uri skos:prefLabel ?related_prefLabel . -} -WHERE { - { - ?uri skos:inScheme . - ?uri ?predicate ?label ; - justskos:status ?status . - VALUES ?predicate { skos:prefLabel skos:altLabel skos:hiddenLabel } - FILTER(LANG(?label) = "nl") - FILTER(?status IN ('approved', 'candidate')) - - # single word query, match case insensitive - FILTER regex(?query, "^[^ ]+$") - FILTER CONTAINS(LCASE(?label), LCASE(?query)) - } - UNION - { - ?uri skos:inScheme . - ?uri ?predicate ?label ; - justskos:status ?status . - VALUES ?predicate { skos:prefLabel skos:altLabel skos:hiddenLabel } - FILTER(LANG(?label) = "nl") - FILTER(?status IN ('approved', 'candidate')) - - # double word query, whitespace separator - FILTER REGEX(?query, "^([^ ]+)[ ]+([^ ]+)$") - - BIND(REPLACE(?query, "^([^ ]+)[ ]+([^ ]+)$", "$1") AS ?term1) - BIND(REPLACE(?query, "^([^ ]+)[ ]+([^ ]+)$", "$2") AS ?term2) - - # search case insensitive using an AND construct for the query terms - FILTER( CONTAINS(LCASE(?label), LCASE(?term1)) && CONTAINS(LCASE(?label), LCASE(?term2)) ) - } - - OPTIONAL { - ?uri skos:prefLabel ?prefLabel . - FILTER(LANG(?prefLabel) = "nl" ) - } - OPTIONAL { - ?uri skos:altLabel ?altLabel . - FILTER(LANG(?altLabel) = "nl") - } - OPTIONAL { - ?uri skos:hiddenLabel ?hiddenLabel . - FILTER(LANG(?hiddenLabel) = "nl") - } - OPTIONAL { - ?uri skos:scopeNote ?scopeNote . - FILTER(LANG(?scopeNote) = "nl") - } - OPTIONAL { - ?uri skos:broader ?broader_uri . - ?broader_uri skos:prefLabel ?broader_prefLabel . - FILTER(LANG(?broader_prefLabel) = "nl") - } - OPTIONAL { - ?uri skos:narrower ?narrower_uri . - ?narrower_uri skos:prefLabel ?narrower_prefLabel . - FILTER(LANG(?narrower_prefLabel) = "nl") - } - OPTIONAL { - ?uri skos:related ?related_uri . - ?related_uri skos:prefLabel ?related_prefLabel . - FILTER(LANG(?related_prefLabel) = "nl") - } -} -LIMIT 1000 diff --git a/packages/network-of-terms-catalog/catalog/queries/search/gtaa-genre.rq b/packages/network-of-terms-catalog/catalog/queries/search/gtaa-genre.rq deleted file mode 100644 index ee679c262..000000000 --- a/packages/network-of-terms-catalog/catalog/queries/search/gtaa-genre.rq +++ /dev/null @@ -1,81 +0,0 @@ -PREFIX skos: -PREFIX justskos: - -CONSTRUCT { - ?uri a skos:Concept ; - skos:prefLabel ?prefLabel ; - skos:altLabel ?altLabel ; - skos:hiddenLabel ?hiddenLabel ; - skos:scopeNote ?scopeNote ; - skos:broader ?broader_uri ; - skos:narrower ?narrower_uri ; - skos:related ?related_uri . - ?broader_uri skos:prefLabel ?broader_prefLabel . - ?narrower_uri skos:prefLabel ?narrower_prefLabel . - ?related_uri skos:prefLabel ?related_prefLabel . -} -WHERE { - { - ?uri skos:inScheme . - ?uri ?predicate ?label ; - justskos:status ?status . - VALUES ?predicate { skos:prefLabel skos:altLabel skos:hiddenLabel } - FILTER(LANG(?label) = "nl") - FILTER(?status IN ('approved', 'candidate')) - - # single word query, match case insensitive - FILTER regex(?query, "^[^ ]+$") - FILTER CONTAINS(LCASE(?label), LCASE(?query)) - } - UNION - { - ?uri skos:inScheme . - ?uri ?predicate ?label ; - justskos:status ?status . - VALUES ?predicate { skos:prefLabel skos:altLabel skos:hiddenLabel } - FILTER(LANG(?label) = "nl") - FILTER(?status IN ('approved', 'candidate')) - - # double word query, whitespace separator - FILTER REGEX(?query, "^([^ ]+)[ ]+([^ ]+)$") - - BIND(REPLACE(?query, "^([^ ]+)[ ]+([^ ]+)$", "$1") AS ?term1) - BIND(REPLACE(?query, "^([^ ]+)[ ]+([^ ]+)$", "$2") AS ?term2) - - # search case insensitive using an AND construct for the query terms - FILTER( CONTAINS(LCASE(?label), LCASE(?term1)) && CONTAINS(LCASE(?label), LCASE(?term2)) ) - } - - OPTIONAL { - ?uri skos:prefLabel ?prefLabel . - FILTER(LANG(?prefLabel) = "nl" ) - } - OPTIONAL { - ?uri skos:altLabel ?altLabel . - FILTER(LANG(?altLabel) = "nl") - } - OPTIONAL { - ?uri skos:hiddenLabel ?hiddenLabel . - FILTER(LANG(?hiddenLabel) = "nl") - } - OPTIONAL { - ?uri skos:scopeNote ?scopeNote . - FILTER(LANG(?scopeNote) = "nl") - } - OPTIONAL { - ?uri skos:broader ?broader_uri . - ?broader_uri skos:prefLabel ?broader_prefLabel . - FILTER(LANG(?broader_prefLabel) = "nl") - } - OPTIONAL { - ?uri skos:narrower ?narrower_uri . - ?narrower_uri skos:prefLabel ?narrower_prefLabel . - FILTER(LANG(?narrower_prefLabel) = "nl") - } - OPTIONAL { - ?uri skos:related ?related_uri . - ?related_uri skos:prefLabel ?related_prefLabel . - FILTER(LANG(?related_prefLabel) = "nl") - } -} -LIMIT 1000 diff --git a/packages/network-of-terms-catalog/catalog/queries/search/gtaa-geografische-namen.rq b/packages/network-of-terms-catalog/catalog/queries/search/gtaa-geografische-namen.rq deleted file mode 100644 index 0e985f033..000000000 --- a/packages/network-of-terms-catalog/catalog/queries/search/gtaa-geografische-namen.rq +++ /dev/null @@ -1,81 +0,0 @@ -PREFIX skos: -PREFIX justskos: - -CONSTRUCT { - ?uri a skos:Concept ; - skos:prefLabel ?prefLabel ; - skos:altLabel ?altLabel ; - skos:hiddenLabel ?hiddenLabel ; - skos:scopeNote ?scopeNote ; - skos:broader ?broader_uri ; - skos:narrower ?narrower_uri ; - skos:related ?related_uri . - ?broader_uri skos:prefLabel ?broader_prefLabel . - ?narrower_uri skos:prefLabel ?narrower_prefLabel . - ?related_uri skos:prefLabel ?related_prefLabel . -} -WHERE { - { - ?uri skos:inScheme . - ?uri ?predicate ?label ; - justskos:status ?status . - VALUES ?predicate { skos:prefLabel skos:altLabel skos:hiddenLabel } - FILTER(LANG(?label) = "nl") - FILTER(?status IN ('approved', 'candidate')) - - # single word query, match case insensitive - FILTER regex(?query, "^[^ ]+$") - FILTER CONTAINS(LCASE(?label), LCASE(?query)) - } - UNION - { - ?uri skos:inScheme . - ?uri ?predicate ?label ; - justskos:status ?status . - VALUES ?predicate { skos:prefLabel skos:altLabel skos:hiddenLabel } - FILTER(LANG(?label) = "nl") - FILTER(?status IN ('approved', 'candidate')) - - # double word query, whitespace separator - FILTER REGEX(?query, "^([^ ]+)[ ]+([^ ]+)$") - - BIND(REPLACE(?query, "^([^ ]+)[ ]+([^ ]+)$", "$1") AS ?term1) - BIND(REPLACE(?query, "^([^ ]+)[ ]+([^ ]+)$", "$2") AS ?term2) - - # search case insensitive using an AND construct for the query terms - FILTER( CONTAINS(LCASE(?label), LCASE(?term1)) && CONTAINS(LCASE(?label), LCASE(?term2)) ) - } - - OPTIONAL { - ?uri skos:prefLabel ?prefLabel . - FILTER(LANG(?prefLabel) = "nl" ) - } - OPTIONAL { - ?uri skos:altLabel ?altLabel . - FILTER(LANG(?altLabel) = "nl") - } - OPTIONAL { - ?uri skos:hiddenLabel ?hiddenLabel . - FILTER(LANG(?hiddenLabel) = "nl") - } - OPTIONAL { - ?uri skos:scopeNote ?scopeNote . - FILTER(LANG(?scopeNote) = "nl") - } - OPTIONAL { - ?uri skos:broader ?broader_uri . - ?broader_uri skos:prefLabel ?broader_prefLabel . - FILTER(LANG(?broader_prefLabel) = "nl") - } - OPTIONAL { - ?uri skos:narrower ?narrower_uri . - ?narrower_uri skos:prefLabel ?narrower_prefLabel . - FILTER(LANG(?narrower_prefLabel) = "nl") - } - OPTIONAL { - ?uri skos:related ?related_uri . - ?related_uri skos:prefLabel ?related_prefLabel . - FILTER(LANG(?related_prefLabel) = "nl") - } -} -LIMIT 1000 diff --git a/packages/network-of-terms-catalog/catalog/queries/search/gtaa-namen.rq b/packages/network-of-terms-catalog/catalog/queries/search/gtaa-namen.rq deleted file mode 100644 index ca49795f6..000000000 --- a/packages/network-of-terms-catalog/catalog/queries/search/gtaa-namen.rq +++ /dev/null @@ -1,81 +0,0 @@ -PREFIX skos: -PREFIX justskos: - -CONSTRUCT { - ?uri a skos:Concept ; - skos:prefLabel ?prefLabel ; - skos:altLabel ?altLabel ; - skos:hiddenLabel ?hiddenLabel ; - skos:scopeNote ?scopeNote ; - skos:broader ?broader_uri ; - skos:narrower ?narrower_uri ; - skos:related ?related_uri . - ?broader_uri skos:prefLabel ?broader_prefLabel . - ?narrower_uri skos:prefLabel ?narrower_prefLabel . - ?related_uri skos:prefLabel ?related_prefLabel . -} -WHERE { - { - ?uri skos:inScheme . - ?uri ?predicate ?label ; - justskos:status ?status . - VALUES ?predicate { skos:prefLabel skos:altLabel skos:hiddenLabel } - FILTER(LANG(?label) = "nl") - FILTER(?status IN ('approved', 'candidate')) - - # single word query, match case insensitive - FILTER regex(?query, "^[^ ]+$") - FILTER CONTAINS(LCASE(?label), LCASE(?query)) - } - UNION - { - ?uri skos:inScheme . - ?uri ?predicate ?label ; - justskos:status ?status . - VALUES ?predicate { skos:prefLabel skos:altLabel skos:hiddenLabel } - FILTER(LANG(?label) = "nl") - FILTER(?status IN ('approved', 'candidate')) - - # double word query, whitespace separator - FILTER REGEX(?query, "^([^ ]+)[ ]+([^ ]+)$") - - BIND(REPLACE(?query, "^([^ ]+)[ ]+([^ ]+)$", "$1") AS ?term1) - BIND(REPLACE(?query, "^([^ ]+)[ ]+([^ ]+)$", "$2") AS ?term2) - - # search case insensitive using an AND construct for the query terms - FILTER( CONTAINS(LCASE(?label), LCASE(?term1)) && CONTAINS(LCASE(?label), LCASE(?term2)) ) - } - - OPTIONAL { - ?uri skos:prefLabel ?prefLabel . - FILTER(LANG(?prefLabel) = "nl" ) - } - OPTIONAL { - ?uri skos:altLabel ?altLabel . - FILTER(LANG(?altLabel) = "nl") - } - OPTIONAL { - ?uri skos:hiddenLabel ?hiddenLabel . - FILTER(LANG(?hiddenLabel) = "nl") - } - OPTIONAL { - ?uri skos:scopeNote ?scopeNote . - FILTER(LANG(?scopeNote) = "nl") - } - OPTIONAL { - ?uri skos:broader ?broader_uri . - ?broader_uri skos:prefLabel ?broader_prefLabel . - FILTER(LANG(?broader_prefLabel) = "nl") - } - OPTIONAL { - ?uri skos:narrower ?narrower_uri . - ?narrower_uri skos:prefLabel ?narrower_prefLabel . - FILTER(LANG(?narrower_prefLabel) = "nl") - } - OPTIONAL { - ?uri skos:related ?related_uri . - ?related_uri skos:prefLabel ?related_prefLabel . - FILTER(LANG(?related_prefLabel) = "nl") - } -} -LIMIT 1000 diff --git a/packages/network-of-terms-catalog/catalog/queries/search/gtaa-onderwerpen-beng.rq b/packages/network-of-terms-catalog/catalog/queries/search/gtaa-onderwerpen-beng.rq deleted file mode 100644 index 6e5101231..000000000 --- a/packages/network-of-terms-catalog/catalog/queries/search/gtaa-onderwerpen-beng.rq +++ /dev/null @@ -1,81 +0,0 @@ -PREFIX skos: -PREFIX justskos: - -CONSTRUCT { - ?uri a skos:Concept ; - skos:prefLabel ?prefLabel ; - skos:altLabel ?altLabel ; - skos:hiddenLabel ?hiddenLabel ; - skos:scopeNote ?scopeNote ; - skos:broader ?broader_uri ; - skos:narrower ?narrower_uri ; - skos:related ?related_uri . - ?broader_uri skos:prefLabel ?broader_prefLabel . - ?narrower_uri skos:prefLabel ?narrower_prefLabel . - ?related_uri skos:prefLabel ?related_prefLabel . -} -WHERE { - { - ?uri skos:inScheme . - ?uri ?predicate ?label ; - justskos:status ?status . - VALUES ?predicate { skos:prefLabel skos:altLabel skos:hiddenLabel } - FILTER(LANG(?label) = "nl") - FILTER(?status IN ('approved', 'candidate')) - - # single word query, match case insensitive - FILTER regex(?query, "^[^ ]+$") - FILTER CONTAINS(LCASE(?label), LCASE(?query)) - } - UNION - { - ?uri skos:inScheme . - ?uri ?predicate ?label ; - justskos:status ?status . - VALUES ?predicate { skos:prefLabel skos:altLabel skos:hiddenLabel } - FILTER(LANG(?label) = "nl") - FILTER(?status IN ('approved', 'candidate')) - - # double word query, whitespace separator - FILTER REGEX(?query, "^([^ ]+)[ ]+([^ ]+)$") - - BIND(REPLACE(?query, "^([^ ]+)[ ]+([^ ]+)$", "$1") AS ?term1) - BIND(REPLACE(?query, "^([^ ]+)[ ]+([^ ]+)$", "$2") AS ?term2) - - # search case insensitive using an AND construct for the query terms - FILTER( CONTAINS(LCASE(?label), LCASE(?term1)) && CONTAINS(LCASE(?label), LCASE(?term2)) ) - } - - OPTIONAL { - ?uri skos:prefLabel ?prefLabel . - FILTER(LANG(?prefLabel) = "nl" ) - } - OPTIONAL { - ?uri skos:altLabel ?altLabel . - FILTER(LANG(?altLabel) = "nl") - } - OPTIONAL { - ?uri skos:hiddenLabel ?hiddenLabel . - FILTER(LANG(?hiddenLabel) = "nl") - } - OPTIONAL { - ?uri skos:scopeNote ?scopeNote . - FILTER(LANG(?scopeNote) = "nl") - } - OPTIONAL { - ?uri skos:broader ?broader_uri . - ?broader_uri skos:prefLabel ?broader_prefLabel . - FILTER(LANG(?broader_prefLabel) = "nl") - } - OPTIONAL { - ?uri skos:narrower ?narrower_uri . - ?narrower_uri skos:prefLabel ?narrower_prefLabel . - FILTER(LANG(?narrower_prefLabel) = "nl") - } - OPTIONAL { - ?uri skos:related ?related_uri . - ?related_uri skos:prefLabel ?related_prefLabel . - FILTER(LANG(?related_prefLabel) = "nl") - } -} -LIMIT 1000 diff --git a/packages/network-of-terms-catalog/catalog/queries/search/gtaa-onderwerpen.rq b/packages/network-of-terms-catalog/catalog/queries/search/gtaa-onderwerpen.rq deleted file mode 100644 index 0e07225a6..000000000 --- a/packages/network-of-terms-catalog/catalog/queries/search/gtaa-onderwerpen.rq +++ /dev/null @@ -1,81 +0,0 @@ -PREFIX skos: -PREFIX justskos: - -CONSTRUCT { - ?uri a skos:Concept ; - skos:prefLabel ?prefLabel ; - skos:altLabel ?altLabel ; - skos:hiddenLabel ?hiddenLabel ; - skos:scopeNote ?scopeNote ; - skos:broader ?broader_uri ; - skos:narrower ?narrower_uri ; - skos:related ?related_uri . - ?broader_uri skos:prefLabel ?broader_prefLabel . - ?narrower_uri skos:prefLabel ?narrower_prefLabel . - ?related_uri skos:prefLabel ?related_prefLabel . -} -WHERE { - { - ?uri skos:inScheme . - ?uri ?predicate ?label ; - justskos:status ?status . - VALUES ?predicate { skos:prefLabel skos:altLabel skos:hiddenLabel } - FILTER(LANG(?label) = "nl") - FILTER(?status IN ('approved', 'candidate')) - - # single word query, match case insensitive - FILTER regex(?query, "^[^ ]+$") - FILTER CONTAINS(LCASE(?label), LCASE(?query)) - } - UNION - { - ?uri skos:inScheme . - ?uri ?predicate ?label ; - justskos:status ?status . - VALUES ?predicate { skos:prefLabel skos:altLabel skos:hiddenLabel } - FILTER(LANG(?label) = "nl") - FILTER(?status IN ('approved', 'candidate')) - - # double word query, whitespace separator - FILTER REGEX(?query, "^([^ ]+)[ ]+([^ ]+)$") - - BIND(REPLACE(?query, "^([^ ]+)[ ]+([^ ]+)$", "$1") AS ?term1) - BIND(REPLACE(?query, "^([^ ]+)[ ]+([^ ]+)$", "$2") AS ?term2) - - # search case insensitive using an AND construct for the query terms - FILTER( CONTAINS(LCASE(?label), LCASE(?term1)) && CONTAINS(LCASE(?label), LCASE(?term2)) ) - } - - OPTIONAL { - ?uri skos:prefLabel ?prefLabel . - FILTER(LANG(?prefLabel) = "nl" ) - } - OPTIONAL { - ?uri skos:altLabel ?altLabel . - FILTER(LANG(?altLabel) = "nl") - } - OPTIONAL { - ?uri skos:hiddenLabel ?hiddenLabel . - FILTER(LANG(?hiddenLabel) = "nl") - } - OPTIONAL { - ?uri skos:scopeNote ?scopeNote . - FILTER(LANG(?scopeNote) = "nl") - } - OPTIONAL { - ?uri skos:broader ?broader_uri . - ?broader_uri skos:prefLabel ?broader_prefLabel . - FILTER(LANG(?broader_prefLabel) = "nl") - } - OPTIONAL { - ?uri skos:narrower ?narrower_uri . - ?narrower_uri skos:prefLabel ?narrower_prefLabel . - FILTER(LANG(?narrower_prefLabel) = "nl") - } - OPTIONAL { - ?uri skos:related ?related_uri . - ?related_uri skos:prefLabel ?related_prefLabel . - FILTER(LANG(?related_prefLabel) = "nl") - } -} -LIMIT 1000 diff --git a/packages/network-of-terms-catalog/catalog/queries/search/gtaa.rq b/packages/network-of-terms-catalog/catalog/queries/search/gtaa.rq index c6e043e37..58bac4d3d 100644 --- a/packages/network-of-terms-catalog/catalog/queries/search/gtaa.rq +++ b/packages/network-of-terms-catalog/catalog/queries/search/gtaa.rq @@ -1,4 +1,5 @@ PREFIX skos: +PREFIX justskos: CONSTRUCT { ?uri a skos:Concept ; @@ -14,21 +15,35 @@ CONSTRUCT { ?related_uri skos:prefLabel ?related_prefLabel . } WHERE { - ?uri ?predicate ?label . - VALUES ?predicate { skos:prefLabel skos:altLabel } - FILTER(LANG(?label) = "nl") + { + ?uri skos:inScheme ?datasetUri . + ?uri ?predicate ?label ; + justskos:status ?status . + VALUES ?predicate { skos:prefLabel skos:altLabel skos:hiddenLabel } + FILTER(LANG(?label) = "nl") + FILTER(?status IN ('approved', 'candidate')) + # single word query, match case insensitive + FILTER regex(?query, "^[^ ]+$") + FILTER CONTAINS(LCASE(?label), LCASE(?query)) + } + UNION { - FILTER(?virtuosoQuery) - ?uri ?predicate ?label . - ?label ?virtuosoQuery . - } UNION { - # BC support. - BIND(?virtuosoQuery as ?b) - FILTER(!BOUND(?b)) - ?uri ?predicate ?label . - # Replace query "A B" with "A AND B", leaving queries "A AND B" or "A OR B" unchanged. - FILTER ( (?label, REPLACE(?query, "(? Date: Wed, 2 Mar 2022 09:13:32 +0000 Subject: [PATCH 10/13] replaced lookup queries with one single gtaa query --- .../queries/lookup/gtaa-classificatie.rq | 55 ------------------- .../catalog/queries/lookup/gtaa-genre.rq | 55 ------------------- .../queries/lookup/gtaa-geografische-namen.rq | 55 ------------------- .../catalog/queries/lookup/gtaa-namen.rq | 55 ------------------- .../queries/lookup/gtaa-onderwerpen-beng.rq | 55 ------------------- .../queries/lookup/gtaa-onderwerpen.rq | 55 ------------------- .../queries/lookup/gtaa-persoonsnamen.rq | 55 ------------------- .../catalog/queries/lookup/gtaa.rq | 5 +- 8 files changed, 1 insertion(+), 389 deletions(-) delete mode 100644 packages/network-of-terms-catalog/catalog/queries/lookup/gtaa-classificatie.rq delete mode 100644 packages/network-of-terms-catalog/catalog/queries/lookup/gtaa-genre.rq delete mode 100644 packages/network-of-terms-catalog/catalog/queries/lookup/gtaa-geografische-namen.rq delete mode 100644 packages/network-of-terms-catalog/catalog/queries/lookup/gtaa-namen.rq delete mode 100644 packages/network-of-terms-catalog/catalog/queries/lookup/gtaa-onderwerpen-beng.rq delete mode 100644 packages/network-of-terms-catalog/catalog/queries/lookup/gtaa-onderwerpen.rq delete mode 100644 packages/network-of-terms-catalog/catalog/queries/lookup/gtaa-persoonsnamen.rq diff --git a/packages/network-of-terms-catalog/catalog/queries/lookup/gtaa-classificatie.rq b/packages/network-of-terms-catalog/catalog/queries/lookup/gtaa-classificatie.rq deleted file mode 100644 index 82ba94b85..000000000 --- a/packages/network-of-terms-catalog/catalog/queries/lookup/gtaa-classificatie.rq +++ /dev/null @@ -1,55 +0,0 @@ -PREFIX skos: - -CONSTRUCT { - ?uri a skos:Concept ; - skos:prefLabel ?prefLabel ; - skos:altLabel ?altLabel ; - skos:hiddenLabel ?hiddenLabel ; - skos:scopeNote ?scopeNote ; - skos:broader ?broader_uri ; - skos:narrower ?narrower_uri ; - skos:related ?related_uri . - ?broader_uri skos:prefLabel ?broader_prefLabel . - ?narrower_uri skos:prefLabel ?narrower_prefLabel . - ?related_uri skos:prefLabel ?related_prefLabel . -} -WHERE { - ?uri skos:inScheme . - - VALUES ?uri { ?uris } - - ?uri a skos:Concept . - - OPTIONAL { - ?uri skos:prefLabel ?prefLabel . - FILTER(LANG(?prefLabel) = "nl" ) - } - OPTIONAL { - ?uri skos:altLabel ?altLabel . - FILTER(LANG(?altLabel) = "nl") - } - OPTIONAL { - ?uri skos:hiddenLabel ?hiddenLabel . - FILTER(LANG(?hiddenLabel) = "nl") - } - OPTIONAL { - ?uri skos:scopeNote ?scopeNote . - FILTER(LANG(?scopeNote) = "nl") - } - OPTIONAL { - ?uri skos:broader ?broader_uri . - ?broader_uri skos:prefLabel ?broader_prefLabel . - FILTER(LANG(?broader_prefLabel) = "nl") - } - OPTIONAL { - ?uri skos:narrower ?narrower_uri . - ?narrower_uri skos:prefLabel ?narrower_prefLabel . - FILTER(LANG(?narrower_prefLabel) = "nl") - } - OPTIONAL { - ?uri skos:related ?related_uri . - ?related_uri skos:prefLabel ?related_prefLabel . - FILTER(LANG(?related_prefLabel) = "nl") - } -} -LIMIT 1000 diff --git a/packages/network-of-terms-catalog/catalog/queries/lookup/gtaa-genre.rq b/packages/network-of-terms-catalog/catalog/queries/lookup/gtaa-genre.rq deleted file mode 100644 index d048c91b0..000000000 --- a/packages/network-of-terms-catalog/catalog/queries/lookup/gtaa-genre.rq +++ /dev/null @@ -1,55 +0,0 @@ -PREFIX skos: - -CONSTRUCT { - ?uri a skos:Concept ; - skos:prefLabel ?prefLabel ; - skos:altLabel ?altLabel ; - skos:hiddenLabel ?hiddenLabel ; - skos:scopeNote ?scopeNote ; - skos:broader ?broader_uri ; - skos:narrower ?narrower_uri ; - skos:related ?related_uri . - ?broader_uri skos:prefLabel ?broader_prefLabel . - ?narrower_uri skos:prefLabel ?narrower_prefLabel . - ?related_uri skos:prefLabel ?related_prefLabel . -} -WHERE { - ?uri skos:inScheme . - - VALUES ?uri { ?uris } - - ?uri a skos:Concept . - - OPTIONAL { - ?uri skos:prefLabel ?prefLabel . - FILTER(LANG(?prefLabel) = "nl" ) - } - OPTIONAL { - ?uri skos:altLabel ?altLabel . - FILTER(LANG(?altLabel) = "nl") - } - OPTIONAL { - ?uri skos:hiddenLabel ?hiddenLabel . - FILTER(LANG(?hiddenLabel) = "nl") - } - OPTIONAL { - ?uri skos:scopeNote ?scopeNote . - FILTER(LANG(?scopeNote) = "nl") - } - OPTIONAL { - ?uri skos:broader ?broader_uri . - ?broader_uri skos:prefLabel ?broader_prefLabel . - FILTER(LANG(?broader_prefLabel) = "nl") - } - OPTIONAL { - ?uri skos:narrower ?narrower_uri . - ?narrower_uri skos:prefLabel ?narrower_prefLabel . - FILTER(LANG(?narrower_prefLabel) = "nl") - } - OPTIONAL { - ?uri skos:related ?related_uri . - ?related_uri skos:prefLabel ?related_prefLabel . - FILTER(LANG(?related_prefLabel) = "nl") - } -} -LIMIT 1000 diff --git a/packages/network-of-terms-catalog/catalog/queries/lookup/gtaa-geografische-namen.rq b/packages/network-of-terms-catalog/catalog/queries/lookup/gtaa-geografische-namen.rq deleted file mode 100644 index 4d04c1b6b..000000000 --- a/packages/network-of-terms-catalog/catalog/queries/lookup/gtaa-geografische-namen.rq +++ /dev/null @@ -1,55 +0,0 @@ -PREFIX skos: - -CONSTRUCT { - ?uri a skos:Concept ; - skos:prefLabel ?prefLabel ; - skos:altLabel ?altLabel ; - skos:hiddenLabel ?hiddenLabel ; - skos:scopeNote ?scopeNote ; - skos:broader ?broader_uri ; - skos:narrower ?narrower_uri ; - skos:related ?related_uri . - ?broader_uri skos:prefLabel ?broader_prefLabel . - ?narrower_uri skos:prefLabel ?narrower_prefLabel . - ?related_uri skos:prefLabel ?related_prefLabel . -} -WHERE { - ?uri skos:inScheme . - - VALUES ?uri { ?uris } - - ?uri a skos:Concept . - - OPTIONAL { - ?uri skos:prefLabel ?prefLabel . - FILTER(LANG(?prefLabel) = "nl" ) - } - OPTIONAL { - ?uri skos:altLabel ?altLabel . - FILTER(LANG(?altLabel) = "nl") - } - OPTIONAL { - ?uri skos:hiddenLabel ?hiddenLabel . - FILTER(LANG(?hiddenLabel) = "nl") - } - OPTIONAL { - ?uri skos:scopeNote ?scopeNote . - FILTER(LANG(?scopeNote) = "nl") - } - OPTIONAL { - ?uri skos:broader ?broader_uri . - ?broader_uri skos:prefLabel ?broader_prefLabel . - FILTER(LANG(?broader_prefLabel) = "nl") - } - OPTIONAL { - ?uri skos:narrower ?narrower_uri . - ?narrower_uri skos:prefLabel ?narrower_prefLabel . - FILTER(LANG(?narrower_prefLabel) = "nl") - } - OPTIONAL { - ?uri skos:related ?related_uri . - ?related_uri skos:prefLabel ?related_prefLabel . - FILTER(LANG(?related_prefLabel) = "nl") - } -} -LIMIT 1000 diff --git a/packages/network-of-terms-catalog/catalog/queries/lookup/gtaa-namen.rq b/packages/network-of-terms-catalog/catalog/queries/lookup/gtaa-namen.rq deleted file mode 100644 index 1a96f1e8a..000000000 --- a/packages/network-of-terms-catalog/catalog/queries/lookup/gtaa-namen.rq +++ /dev/null @@ -1,55 +0,0 @@ -PREFIX skos: - -CONSTRUCT { - ?uri a skos:Concept ; - skos:prefLabel ?prefLabel ; - skos:altLabel ?altLabel ; - skos:hiddenLabel ?hiddenLabel ; - skos:scopeNote ?scopeNote ; - skos:broader ?broader_uri ; - skos:narrower ?narrower_uri ; - skos:related ?related_uri . - ?broader_uri skos:prefLabel ?broader_prefLabel . - ?narrower_uri skos:prefLabel ?narrower_prefLabel . - ?related_uri skos:prefLabel ?related_prefLabel . -} -WHERE { - ?uri skos:inScheme . - - VALUES ?uri { ?uris } - - ?uri a skos:Concept . - - OPTIONAL { - ?uri skos:prefLabel ?prefLabel . - FILTER(LANG(?prefLabel) = "nl" ) - } - OPTIONAL { - ?uri skos:altLabel ?altLabel . - FILTER(LANG(?altLabel) = "nl") - } - OPTIONAL { - ?uri skos:hiddenLabel ?hiddenLabel . - FILTER(LANG(?hiddenLabel) = "nl") - } - OPTIONAL { - ?uri skos:scopeNote ?scopeNote . - FILTER(LANG(?scopeNote) = "nl") - } - OPTIONAL { - ?uri skos:broader ?broader_uri . - ?broader_uri skos:prefLabel ?broader_prefLabel . - FILTER(LANG(?broader_prefLabel) = "nl") - } - OPTIONAL { - ?uri skos:narrower ?narrower_uri . - ?narrower_uri skos:prefLabel ?narrower_prefLabel . - FILTER(LANG(?narrower_prefLabel) = "nl") - } - OPTIONAL { - ?uri skos:related ?related_uri . - ?related_uri skos:prefLabel ?related_prefLabel . - FILTER(LANG(?related_prefLabel) = "nl") - } -} -LIMIT 1000 diff --git a/packages/network-of-terms-catalog/catalog/queries/lookup/gtaa-onderwerpen-beng.rq b/packages/network-of-terms-catalog/catalog/queries/lookup/gtaa-onderwerpen-beng.rq deleted file mode 100644 index 864ca978b..000000000 --- a/packages/network-of-terms-catalog/catalog/queries/lookup/gtaa-onderwerpen-beng.rq +++ /dev/null @@ -1,55 +0,0 @@ -PREFIX skos: - -CONSTRUCT { - ?uri a skos:Concept ; - skos:prefLabel ?prefLabel ; - skos:altLabel ?altLabel ; - skos:hiddenLabel ?hiddenLabel ; - skos:scopeNote ?scopeNote ; - skos:broader ?broader_uri ; - skos:narrower ?narrower_uri ; - skos:related ?related_uri . - ?broader_uri skos:prefLabel ?broader_prefLabel . - ?narrower_uri skos:prefLabel ?narrower_prefLabel . - ?related_uri skos:prefLabel ?related_prefLabel . -} -WHERE { - ?uri skos:inScheme . - - VALUES ?uri { ?uris } - - ?uri a skos:Concept . - - OPTIONAL { - ?uri skos:prefLabel ?prefLabel . - FILTER(LANG(?prefLabel) = "nl" ) - } - OPTIONAL { - ?uri skos:altLabel ?altLabel . - FILTER(LANG(?altLabel) = "nl") - } - OPTIONAL { - ?uri skos:hiddenLabel ?hiddenLabel . - FILTER(LANG(?hiddenLabel) = "nl") - } - OPTIONAL { - ?uri skos:scopeNote ?scopeNote . - FILTER(LANG(?scopeNote) = "nl") - } - OPTIONAL { - ?uri skos:broader ?broader_uri . - ?broader_uri skos:prefLabel ?broader_prefLabel . - FILTER(LANG(?broader_prefLabel) = "nl") - } - OPTIONAL { - ?uri skos:narrower ?narrower_uri . - ?narrower_uri skos:prefLabel ?narrower_prefLabel . - FILTER(LANG(?narrower_prefLabel) = "nl") - } - OPTIONAL { - ?uri skos:related ?related_uri . - ?related_uri skos:prefLabel ?related_prefLabel . - FILTER(LANG(?related_prefLabel) = "nl") - } -} -LIMIT 1000 diff --git a/packages/network-of-terms-catalog/catalog/queries/lookup/gtaa-onderwerpen.rq b/packages/network-of-terms-catalog/catalog/queries/lookup/gtaa-onderwerpen.rq deleted file mode 100644 index eedabb5cf..000000000 --- a/packages/network-of-terms-catalog/catalog/queries/lookup/gtaa-onderwerpen.rq +++ /dev/null @@ -1,55 +0,0 @@ -PREFIX skos: - -CONSTRUCT { - ?uri a skos:Concept ; - skos:prefLabel ?prefLabel ; - skos:altLabel ?altLabel ; - skos:hiddenLabel ?hiddenLabel ; - skos:scopeNote ?scopeNote ; - skos:broader ?broader_uri ; - skos:narrower ?narrower_uri ; - skos:related ?related_uri . - ?broader_uri skos:prefLabel ?broader_prefLabel . - ?narrower_uri skos:prefLabel ?narrower_prefLabel . - ?related_uri skos:prefLabel ?related_prefLabel . -} -WHERE { - ?uri skos:inScheme . - - VALUES ?uri { ?uris } - - ?uri a skos:Concept . - - OPTIONAL { - ?uri skos:prefLabel ?prefLabel . - FILTER(LANG(?prefLabel) = "nl" ) - } - OPTIONAL { - ?uri skos:altLabel ?altLabel . - FILTER(LANG(?altLabel) = "nl") - } - OPTIONAL { - ?uri skos:hiddenLabel ?hiddenLabel . - FILTER(LANG(?hiddenLabel) = "nl") - } - OPTIONAL { - ?uri skos:scopeNote ?scopeNote . - FILTER(LANG(?scopeNote) = "nl") - } - OPTIONAL { - ?uri skos:broader ?broader_uri . - ?broader_uri skos:prefLabel ?broader_prefLabel . - FILTER(LANG(?broader_prefLabel) = "nl") - } - OPTIONAL { - ?uri skos:narrower ?narrower_uri . - ?narrower_uri skos:prefLabel ?narrower_prefLabel . - FILTER(LANG(?narrower_prefLabel) = "nl") - } - OPTIONAL { - ?uri skos:related ?related_uri . - ?related_uri skos:prefLabel ?related_prefLabel . - FILTER(LANG(?related_prefLabel) = "nl") - } -} -LIMIT 1000 diff --git a/packages/network-of-terms-catalog/catalog/queries/lookup/gtaa-persoonsnamen.rq b/packages/network-of-terms-catalog/catalog/queries/lookup/gtaa-persoonsnamen.rq deleted file mode 100644 index 7d14a4b4f..000000000 --- a/packages/network-of-terms-catalog/catalog/queries/lookup/gtaa-persoonsnamen.rq +++ /dev/null @@ -1,55 +0,0 @@ -PREFIX skos: - -CONSTRUCT { - ?uri a skos:Concept ; - skos:prefLabel ?prefLabel ; - skos:altLabel ?altLabel ; - skos:hiddenLabel ?hiddenLabel ; - skos:scopeNote ?scopeNote ; - skos:broader ?broader_uri ; - skos:narrower ?narrower_uri ; - skos:related ?related_uri . - ?broader_uri skos:prefLabel ?broader_prefLabel . - ?narrower_uri skos:prefLabel ?narrower_prefLabel . - ?related_uri skos:prefLabel ?related_prefLabel . -} -WHERE { - ?uri skos:inScheme . - - VALUES ?uri { ?uris } - - ?uri a skos:Concept . - - OPTIONAL { - ?uri skos:prefLabel ?prefLabel . - FILTER(LANG(?prefLabel) = "nl" ) - } - OPTIONAL { - ?uri skos:altLabel ?altLabel . - FILTER(LANG(?altLabel) = "nl") - } - OPTIONAL { - ?uri skos:hiddenLabel ?hiddenLabel . - FILTER(LANG(?hiddenLabel) = "nl") - } - OPTIONAL { - ?uri skos:scopeNote ?scopeNote . - FILTER(LANG(?scopeNote) = "nl") - } - OPTIONAL { - ?uri skos:broader ?broader_uri . - ?broader_uri skos:prefLabel ?broader_prefLabel . - FILTER(LANG(?broader_prefLabel) = "nl") - } - OPTIONAL { - ?uri skos:narrower ?narrower_uri . - ?narrower_uri skos:prefLabel ?narrower_prefLabel . - FILTER(LANG(?narrower_prefLabel) = "nl") - } - OPTIONAL { - ?uri skos:related ?related_uri . - ?related_uri skos:prefLabel ?related_prefLabel . - FILTER(LANG(?related_prefLabel) = "nl") - } -} -LIMIT 1000 diff --git a/packages/network-of-terms-catalog/catalog/queries/lookup/gtaa.rq b/packages/network-of-terms-catalog/catalog/queries/lookup/gtaa.rq index 86ee0a51f..fa02d8ca2 100644 --- a/packages/network-of-terms-catalog/catalog/queries/lookup/gtaa.rq +++ b/packages/network-of-terms-catalog/catalog/queries/lookup/gtaa.rq @@ -14,10 +14,7 @@ CONSTRUCT { ?related_uri skos:prefLabel ?related_prefLabel . } WHERE { - # For example: - # Concept: - # Geographical name: - # Genre: + VALUES ?uri { ?uris } ?uri a skos:Concept . From e483795568df69ec8c74684c848ab77631071c99 Mon Sep 17 00:00:00 2001 From: Willem Melder Date: Wed, 2 Mar 2022 09:26:39 +0000 Subject: [PATCH 11/13] replaced the lookup query filename in gtaa datasets --- .../catalog/datasets/gtaa-classificatie.jsonld | 4 ++-- .../catalog/datasets/gtaa-genres.jsonld | 4 ++-- .../catalog/datasets/gtaa-geografische-namen.jsonld | 4 ++-- .../catalog/datasets/gtaa-namen.jsonld | 4 ++-- .../catalog/datasets/gtaa-onderwerpen-beng.jsonld | 4 ++-- .../catalog/datasets/gtaa-onderwerpen.jsonld | 4 ++-- .../catalog/datasets/gtaa-persoonsnamen.jsonld | 4 ++-- 7 files changed, 14 insertions(+), 14 deletions(-) diff --git a/packages/network-of-terms-catalog/catalog/datasets/gtaa-classificatie.jsonld b/packages/network-of-terms-catalog/catalog/datasets/gtaa-classificatie.jsonld index 8d8f6aee1..317b1ed35 100644 --- a/packages/network-of-terms-catalog/catalog/datasets/gtaa-classificatie.jsonld +++ b/packages/network-of-terms-catalog/catalog/datasets/gtaa-classificatie.jsonld @@ -14,7 +14,7 @@ } ], "url": [ - "http://data.beeldengeluid.nl/gtaa/Classicatie" + "http://data.beeldengeluid.nl/gtaa/" ], "distribution": [ { @@ -29,7 +29,7 @@ }, { "@type": "FindAction", - "query": "file://catalog/queries/lookup/gtaa-classificatie.rq" + "query": "file://catalog/queries/lookup/gtaa.rq" } ] } diff --git a/packages/network-of-terms-catalog/catalog/datasets/gtaa-genres.jsonld b/packages/network-of-terms-catalog/catalog/datasets/gtaa-genres.jsonld index daa6df509..c61905670 100644 --- a/packages/network-of-terms-catalog/catalog/datasets/gtaa-genres.jsonld +++ b/packages/network-of-terms-catalog/catalog/datasets/gtaa-genres.jsonld @@ -14,7 +14,7 @@ } ], "url": [ - "http://data.beeldengeluid.nl/gtaa/Genre" + "http://data.beeldengeluid.nl/gtaa/" ], "distribution": [ { @@ -29,7 +29,7 @@ }, { "@type": "FindAction", - "query": "file://catalog/queries/lookup/gtaa-genre.rq" + "query": "file://catalog/queries/lookup/gtaa.rq" } ] } diff --git a/packages/network-of-terms-catalog/catalog/datasets/gtaa-geografische-namen.jsonld b/packages/network-of-terms-catalog/catalog/datasets/gtaa-geografische-namen.jsonld index 96f9a8e24..e21c3b4fd 100644 --- a/packages/network-of-terms-catalog/catalog/datasets/gtaa-geografische-namen.jsonld +++ b/packages/network-of-terms-catalog/catalog/datasets/gtaa-geografische-namen.jsonld @@ -14,7 +14,7 @@ } ], "url": [ - "http://data.beeldengeluid.nl/gtaa/GeografischeNamen" + "http://data.beeldengeluid.nl/gtaa/" ], "distribution": [ { @@ -29,7 +29,7 @@ }, { "@type": "FindAction", - "query": "file://catalog/queries/lookup/gtaa-geografische-namen.rq" + "query": "file://catalog/queries/lookup/gtaa.rq" } ] } diff --git a/packages/network-of-terms-catalog/catalog/datasets/gtaa-namen.jsonld b/packages/network-of-terms-catalog/catalog/datasets/gtaa-namen.jsonld index 46cfe2942..b77cf646c 100644 --- a/packages/network-of-terms-catalog/catalog/datasets/gtaa-namen.jsonld +++ b/packages/network-of-terms-catalog/catalog/datasets/gtaa-namen.jsonld @@ -14,7 +14,7 @@ } ], "url": [ - "http://data.beeldengeluid.nl/gtaa/Namen" + "http://data.beeldengeluid.nl/gtaa" ], "distribution": [ { @@ -29,7 +29,7 @@ }, { "@type": "FindAction", - "query": "file://catalog/queries/lookup/gtaa-namen.rq" + "query": "file://catalog/queries/lookup/gtaa.rq" } ] } diff --git a/packages/network-of-terms-catalog/catalog/datasets/gtaa-onderwerpen-beng.jsonld b/packages/network-of-terms-catalog/catalog/datasets/gtaa-onderwerpen-beng.jsonld index 2d36b77ed..23d4135c0 100644 --- a/packages/network-of-terms-catalog/catalog/datasets/gtaa-onderwerpen-beng.jsonld +++ b/packages/network-of-terms-catalog/catalog/datasets/gtaa-onderwerpen-beng.jsonld @@ -14,7 +14,7 @@ } ], "url": [ - "http://data.beeldengeluid.nl/gtaa/OnderwerpenBenG" + "http://data.beeldengeluid.nl/gtaa/" ], "distribution": [ { @@ -29,7 +29,7 @@ }, { "@type": "FindAction", - "query": "file://catalog/queries/lookup/gtaa-onderwerpen-beng.rq" + "query": "file://catalog/queries/lookup/gtaa.rq" } ] } diff --git a/packages/network-of-terms-catalog/catalog/datasets/gtaa-onderwerpen.jsonld b/packages/network-of-terms-catalog/catalog/datasets/gtaa-onderwerpen.jsonld index 623782686..516469f42 100644 --- a/packages/network-of-terms-catalog/catalog/datasets/gtaa-onderwerpen.jsonld +++ b/packages/network-of-terms-catalog/catalog/datasets/gtaa-onderwerpen.jsonld @@ -14,7 +14,7 @@ } ], "url": [ - "http://data.beeldengeluid.nl/gtaa/Onderwerpen" + "http://data.beeldengeluid.nl/gtaa/" ], "distribution": [ { @@ -29,7 +29,7 @@ }, { "@type": "FindAction", - "query": "file://catalog/queries/lookup/gtaa-onderwerpen.rq" + "query": "file://catalog/queries/lookup/gtaa.rq" } ] } diff --git a/packages/network-of-terms-catalog/catalog/datasets/gtaa-persoonsnamen.jsonld b/packages/network-of-terms-catalog/catalog/datasets/gtaa-persoonsnamen.jsonld index a8b688d75..18f9942f8 100644 --- a/packages/network-of-terms-catalog/catalog/datasets/gtaa-persoonsnamen.jsonld +++ b/packages/network-of-terms-catalog/catalog/datasets/gtaa-persoonsnamen.jsonld @@ -14,7 +14,7 @@ } ], "url": [ - "http://data.beeldengeluid.nl/gtaa/Persoonsnamen" + "http://data.beeldengeluid.nl/gtaa/" ], "distribution": [ { @@ -29,7 +29,7 @@ }, { "@type": "FindAction", - "query": "file://catalog/queries/lookup/gtaa-persoonsnamen.rq" + "query": "file://catalog/queries/lookup/gtaa.rq" } ] } From 596704432dc5c937e77a28099b5105113e278d66 Mon Sep 17 00:00:00 2001 From: David de Boer Date: Wed, 2 Mar 2022 14:24:49 +0100 Subject: [PATCH 12/13] Try to raise test timeout --- jest.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jest.config.js b/jest.config.js index 4bc8fc45f..fed61f04b 100644 --- a/jest.config.js +++ b/jest.config.js @@ -1,6 +1,6 @@ export default { preset: 'ts-jest/presets/default-esm', - testTimeout: 30000, + testTimeout: 60000, extensionsToTreatAsEsm: ['.ts'], globals: { 'ts-jest': { From 2747e3a8b66e007e72bc748b3c24dfeee8c40bb5 Mon Sep 17 00:00:00 2001 From: David de Boer Date: Wed, 2 Mar 2022 14:30:27 +0100 Subject: [PATCH 13/13] Make casing consistent with other datasets --- .../catalog/datasets/gtaa-classificatie.jsonld | 2 +- .../catalog/datasets/gtaa-genres.jsonld | 2 +- .../catalog/datasets/gtaa-geografische-namen.jsonld | 2 +- .../network-of-terms-catalog/catalog/datasets/gtaa-namen.jsonld | 2 +- .../catalog/datasets/gtaa-onderwerpen-beng.jsonld | 2 +- .../catalog/datasets/gtaa-onderwerpen.jsonld | 2 +- .../catalog/datasets/gtaa-persoonsnamen.jsonld | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/packages/network-of-terms-catalog/catalog/datasets/gtaa-classificatie.jsonld b/packages/network-of-terms-catalog/catalog/datasets/gtaa-classificatie.jsonld index 317b1ed35..7bb46263b 100644 --- a/packages/network-of-terms-catalog/catalog/datasets/gtaa-classificatie.jsonld +++ b/packages/network-of-terms-catalog/catalog/datasets/gtaa-classificatie.jsonld @@ -5,7 +5,7 @@ "name": [ { "@language": "nl", - "@value": "GTAA: Classificatie" + "@value": "GTAA: classificatie" } ], "creator": [ diff --git a/packages/network-of-terms-catalog/catalog/datasets/gtaa-genres.jsonld b/packages/network-of-terms-catalog/catalog/datasets/gtaa-genres.jsonld index c61905670..1eb404c4d 100644 --- a/packages/network-of-terms-catalog/catalog/datasets/gtaa-genres.jsonld +++ b/packages/network-of-terms-catalog/catalog/datasets/gtaa-genres.jsonld @@ -5,7 +5,7 @@ "name": [ { "@language": "nl", - "@value": "GTAA: Genres" + "@value": "GTAA: genres" } ], "creator": [ diff --git a/packages/network-of-terms-catalog/catalog/datasets/gtaa-geografische-namen.jsonld b/packages/network-of-terms-catalog/catalog/datasets/gtaa-geografische-namen.jsonld index e21c3b4fd..d8bbb8bf1 100644 --- a/packages/network-of-terms-catalog/catalog/datasets/gtaa-geografische-namen.jsonld +++ b/packages/network-of-terms-catalog/catalog/datasets/gtaa-geografische-namen.jsonld @@ -5,7 +5,7 @@ "name": [ { "@language": "nl", - "@value": "GTAA: Geografische Namen" + "@value": "GTAA: geografische namen" } ], "creator": [ diff --git a/packages/network-of-terms-catalog/catalog/datasets/gtaa-namen.jsonld b/packages/network-of-terms-catalog/catalog/datasets/gtaa-namen.jsonld index b77cf646c..af631cbab 100644 --- a/packages/network-of-terms-catalog/catalog/datasets/gtaa-namen.jsonld +++ b/packages/network-of-terms-catalog/catalog/datasets/gtaa-namen.jsonld @@ -5,7 +5,7 @@ "name": [ { "@language": "nl", - "@value": "GTAA: Namen" + "@value": "GTAA: namen" } ], "creator": [ diff --git a/packages/network-of-terms-catalog/catalog/datasets/gtaa-onderwerpen-beng.jsonld b/packages/network-of-terms-catalog/catalog/datasets/gtaa-onderwerpen-beng.jsonld index 23d4135c0..5f4b08942 100644 --- a/packages/network-of-terms-catalog/catalog/datasets/gtaa-onderwerpen-beng.jsonld +++ b/packages/network-of-terms-catalog/catalog/datasets/gtaa-onderwerpen-beng.jsonld @@ -5,7 +5,7 @@ "name": [ { "@language": "nl", - "@value": "GTAA: Onderwerpen beeld-geluid" + "@value": "GTAA: onderwerpen beeld-geluid" } ], "creator": [ diff --git a/packages/network-of-terms-catalog/catalog/datasets/gtaa-onderwerpen.jsonld b/packages/network-of-terms-catalog/catalog/datasets/gtaa-onderwerpen.jsonld index 516469f42..378bb29e0 100644 --- a/packages/network-of-terms-catalog/catalog/datasets/gtaa-onderwerpen.jsonld +++ b/packages/network-of-terms-catalog/catalog/datasets/gtaa-onderwerpen.jsonld @@ -5,7 +5,7 @@ "name": [ { "@language": "nl", - "@value": "GTAA: Onderwerpen" + "@value": "GTAA: onderwerpen" } ], "creator": [ diff --git a/packages/network-of-terms-catalog/catalog/datasets/gtaa-persoonsnamen.jsonld b/packages/network-of-terms-catalog/catalog/datasets/gtaa-persoonsnamen.jsonld index 18f9942f8..484bfb4de 100644 --- a/packages/network-of-terms-catalog/catalog/datasets/gtaa-persoonsnamen.jsonld +++ b/packages/network-of-terms-catalog/catalog/datasets/gtaa-persoonsnamen.jsonld @@ -5,7 +5,7 @@ "name": [ { "@language": "nl", - "@value": "GTAA: Persoonsnamen" + "@value": "GTAA: persoonsnamen" } ], "creator": [