@netwerk-digitaal-erfgoed/network-of-terms-catalog 7.0.2 → 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
|
|
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
|
-
|
|
21
|
-
|
|
22
|
-
FILTER (
|
|
20
|
+
sdo:identifier ?identifier ;
|
|
21
|
+
sdo:name ?prefLabel .
|
|
22
|
+
FILTER (STRSTARTS(STR(?uri), "https://n2t.net/ark:/60537/"))
|
|
23
23
|
OPTIONAL {
|
|
24
|
-
?uri
|
|
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
|
-
|
|
34
|
-
FILTER (
|
|
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
|
|
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
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
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
|
-
|
|
28
|
-
FILTER (
|
|
34
|
+
sdo:name ?related_prefLabel .
|
|
35
|
+
FILTER (STRSTARTS(STR(?related_uri), "https://n2t.net/ark:/60537/") && ?uri != ?related_uri )
|
|
29
36
|
}
|
|
30
|
-
|
|
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
|
+
"version": "7.1.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Catalog of Network of Terms datasets",
|
|
6
6
|
"repository": {
|
|
@@ -30,13 +30,13 @@
|
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@comunica/core": "^2.7.0",
|
|
32
32
|
"@comunica/types": "^2.8.2",
|
|
33
|
-
"@types/n3": "^1.
|
|
33
|
+
"@types/n3": "^1.16.1",
|
|
34
34
|
"@types/rdf-ext": "^2.2.2",
|
|
35
35
|
"gts": "^5.0.1",
|
|
36
36
|
"jsonld-streaming-parser": "^3.2.0",
|
|
37
37
|
"rdf-data-factory": "^1.1.2",
|
|
38
38
|
"rdf-ext": "^2.3.0",
|
|
39
|
-
"rdf-validate-shacl": "^0.
|
|
39
|
+
"rdf-validate-shacl": "^0.5.1"
|
|
40
40
|
},
|
|
41
41
|
"bugs": {
|
|
42
42
|
"url": "https://github.com/netwerk-digitaal-erfgoed/network-of-terms-catalog/issues"
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"homepage": "https://github.com/netwerk-digitaal-erfgoed/network-of-terms-catalog#readme",
|
|
45
45
|
"dependencies": {
|
|
46
46
|
"@comunica/bindings-factory": "^2.7.0",
|
|
47
|
-
"@comunica/query-sparql-rdfjs": "^2.
|
|
47
|
+
"@comunica/query-sparql-rdfjs": "^2.9.0",
|
|
48
48
|
"@netwerk-digitaal-erfgoed/network-of-terms-query": "3.0.1",
|
|
49
49
|
"globby": "^13.2.2",
|
|
50
50
|
"rdf-parse": "^2.3.2",
|