@netwerk-digitaal-erfgoed/network-of-terms-catalog 7.0.3 → 7.1.0

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.
@@ -1,4 +1,4 @@
1
- PREFIX dcterms: <http://purl.org/dc/terms/>
1
+ PREFIX sdo: <https://schema.org/>
2
2
  PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
3
3
  PREFIX gtm: <https://www.goudatijdmachine.nl/def#>
4
4
  PREFIX schema: <https://schema.org/>
@@ -17,21 +17,18 @@ CONSTRUCT {
17
17
  # Kapelstraat: <https://n2t.net/ark:/60537/b4ApaO>
18
18
  VALUES ?uri { ?uris }
19
19
  ?uri a gtm:Straat ;
20
- dcterms:identifier ?identifier ;
21
- skos:prefLabel ?prefLabel .
22
- FILTER (CONTAINS(STR(?uri), "ark:"))
20
+ sdo:identifier ?identifier ;
21
+ sdo:name ?prefLabel .
22
+ FILTER (STRSTARTS(STR(?uri), "https://n2t.net/ark:/60537/"))
23
23
  OPTIONAL {
24
- ?uri skos:altLabel ?altLabel
25
- }
26
- OPTIONAL {
27
- ?uri hg:liesIn/schema:sameAs <http://sws.geonames.org/2755419/> # Gouda
28
- BIND("Straat in Gouda" AS ?scopeNote)
24
+ ?uri sdo:alternateName ?altLabel
29
25
  }
26
+ BIND ( CONCAT( IF ( EXISTS { ?entity omeka:item_set <https://n2t.net/ark:/60537/bd75pg> }, "Verdwenen straat", "Straat" )," in Gouda") AS ?scopeNote )
30
27
  OPTIONAL {
31
28
  ?uri hg:absorbedBy|hg:absorbed ?related_uri .
32
29
  ?related_uri a gtm:Straat ;
33
- skos:prefLabel ?related_prefLabel .
34
- FILTER (CONTAINS(STR(?related_uri), "ark:") && ?uri != ?related_uri )
30
+ sdo:name ?related_prefLabel .
31
+ FILTER (STRSTARTS(STR(?related_uri), "https://n2t.net/ark:/60537/") && ?uri != ?related_uri )
35
32
  }
36
33
  }
37
34
  LIMIT 100
@@ -1,8 +1,10 @@
1
- PREFIX dcterms: <http://purl.org/dc/terms/>
2
1
  PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
3
2
  PREFIX gtm: <https://www.goudatijdmachine.nl/def#>
4
- PREFIX schema: <https://schema.org/>
3
+ PREFIX sdo: <https://schema.org/>
5
4
  PREFIX hg: <http://rdf.histograph.io/>
5
+ PREFIX luc: <http://www.ontotext.com/connectors/lucene#>
6
+ PREFIX luc-index: <http://www.ontotext.com/connectors/lucene/instance#>
7
+ PREFIX omeka: <http://omeka.org/s/vocabs/o#>
6
8
 
7
9
  CONSTRUCT {
8
10
  ?uri a skos:Concept ;
@@ -11,23 +13,25 @@ CONSTRUCT {
11
13
  skos:scopeNote ?scopeNote ;
12
14
  skos:related ?related_uri .
13
15
  ?related_uri skos:prefLabel ?related_prefLabel .
14
- }
15
- WHERE {
16
- ?uri a gtm:Straat ;
17
- dcterms:identifier ?identifier ;
18
- skos:prefLabel ?prefLabel .
19
- OPTIONAL { ?uri skos:altLabel ?altLabel . }
20
- OPTIONAL {
21
- ?uri hg:liesIn/schema:sameAs <http://sws.geonames.org/2755419/> # Gouda
22
- BIND("Straat in Gouda" AS ?scopeNote)
23
- }
16
+ } WHERE {
17
+ ?search a luc-index:straten_index ;
18
+ luc:query ?query ;
19
+ luc:entities ?uri .
20
+
21
+ FILTER (STRSTARTS(STR(?uri), "https://n2t.net/ark:/60537/"))
22
+
23
+ ?uri sdo:identifier ?identifier ;
24
+ sdo:name ?prefLabel ;
25
+ luc:score ?score .
26
+
27
+ BIND ( CONCAT( IF ( EXISTS { ?entity omeka:item_set <https://n2t.net/ark:/60537/bd75pg> }, "Verdwenen straat", "Straat" )," in Gouda") AS ?scopeNote )
28
+
29
+ OPTIONAL { ?uri sdo:alternateName ?altLabel . }
30
+
24
31
  OPTIONAL {
25
32
  ?uri hg:absorbedBy|hg:absorbed ?related_uri .
26
33
  ?related_uri a gtm:Straat ;
27
- skos:prefLabel ?related_prefLabel .
28
- FILTER (CONTAINS(STR(?related_uri), "ark:") && ?uri != ?related_uri )
34
+ sdo:name ?related_prefLabel .
35
+ FILTER (STRSTARTS(STR(?related_uri), "https://n2t.net/ark:/60537/") && ?uri != ?related_uri )
29
36
  }
30
- FILTER (CONTAINS(STR(?uri), "ark:"))
31
- FILTER (CONTAINS(LCASE(?prefLabel),?query) || CONTAINS(LCASE(?altLabel),?query) )
32
- }
33
- LIMIT 100
37
+ } ORDER BY DESC(?score) LIMIT 100
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@netwerk-digitaal-erfgoed/network-of-terms-catalog",
3
- "version": "7.0.3",
3
+ "version": "7.1.0",
4
4
  "type": "module",
5
5
  "description": "Catalog of Network of Terms datasets",
6
6
  "repository": {