@netwerk-digitaal-erfgoed/network-of-terms-catalog 5.2.1 → 5.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -18,9 +18,9 @@
18
18
  ],
19
19
  "distribution": [
20
20
  {
21
- "@id": "https://data.netwerkdigitaalerfgoed.nl/NDE/eurovoc/sparql",
21
+ "@id": "http://publications.europa.eu/webapi/rdf/sparql#eurovoc",
22
22
  "@type": "DataDownload",
23
- "contentUrl": "https://api.data.netwerkdigitaalerfgoed.nl/datasets/NDE/eurovoc/services/eurovoc/sparql",
23
+ "contentUrl": "http://publications.europa.eu/webapi/rdf/sparql",
24
24
  "encodingFormat": "application/sparql-query",
25
25
  "potentialAction": [
26
26
  {
@@ -1,6 +1,5 @@
1
- PREFIX bif: <http://www.openlinksw.com/schemas/bif#>
2
1
  PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
3
-
2
+ PREFIX eurovoc: <http://eurovoc.europa.eu/schema#>
4
3
 
5
4
  CONSTRUCT {
6
5
  ?uri a skos:Concept ;
@@ -14,10 +13,14 @@ CONSTRUCT {
14
13
  ?related_uri skos:prefLabel ?related_prefLabel .
15
14
  }
16
15
  WHERE {
16
+ ?uri a eurovoc:ThesaurusConcept .
17
17
  ?uri ?predicate ?label .
18
18
  VALUES ?predicate { skos:prefLabel skos:altLabel }
19
19
  FILTER(LANG(?label) = "nl")
20
- FILTER (<bif:contains> (?label, REPLACE(?query, "(?<!AND)(?<!OR)[[:space:]]+(?!AND)(?!OR)", " AND ", "i")))
20
+ # The http://publications.europa.eu/webapi/rdf/sparql endpoint
21
+ # is based on Virtuoso but it looks like fulltext search support
22
+ # is not enabled therefore fallback to the standard CONTAINS function
23
+ FILTER (CONTAINS(LCASE(STR(?label)),LCASE(?query)))
21
24
  OPTIONAL {
22
25
  ?uri skos:prefLabel ?prefLabel .
23
26
  FILTER(LANG(?prefLabel) = "nl")
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@netwerk-digitaal-erfgoed/network-of-terms-catalog",
3
- "version": "5.2.1",
3
+ "version": "5.2.2",
4
4
  "description": "Catalog of Network of Terms datasets",
5
5
  "repository": {
6
6
  "type": "git",