@netwerk-digitaal-erfgoed/network-of-terms-catalog 6.7.0 → 6.8.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.
|
@@ -3,7 +3,7 @@ PREFIX gn: <https://www.geonames.org/ontology#>
|
|
|
3
3
|
|
|
4
4
|
CONSTRUCT {
|
|
5
5
|
?uri a skos:Concept ;
|
|
6
|
-
skos:prefLabel ?
|
|
6
|
+
skos:prefLabel ?prefLabel_ext ;
|
|
7
7
|
skos:altLabel ?altLabel ;
|
|
8
8
|
skos:scopeNote ?scopeNote ;
|
|
9
9
|
skos:broader ?broader .
|
|
@@ -14,8 +14,11 @@ WHERE {
|
|
|
14
14
|
VALUES ?uri { ?uris }
|
|
15
15
|
|
|
16
16
|
?uri a gn:Feature ;
|
|
17
|
+
gn:countryCode ?countryCode ;
|
|
17
18
|
gn:name ?prefLabel .
|
|
18
19
|
|
|
20
|
+
BIND(CONCAT(?prefLabel," (",UCASE(?countryCode),")") as ?prefLabel_ext)
|
|
21
|
+
|
|
19
22
|
OPTIONAL {
|
|
20
23
|
?uri gn:alternateName ?altLabel .
|
|
21
24
|
FILTER(?altLabel != "")
|
|
@@ -25,6 +28,8 @@ WHERE {
|
|
|
25
28
|
?uri ?parents ?broader .
|
|
26
29
|
?broader gn:name ?broader_prefLabel
|
|
27
30
|
VALUES ?parents { gn:parentADM1 gn:parentADM2 }
|
|
31
|
+
# filter out the circular links in the converted data
|
|
32
|
+
FILTER(?uri != ?broader)
|
|
28
33
|
}
|
|
29
34
|
|
|
30
35
|
OPTIONAL {
|
|
@@ -3,7 +3,7 @@ PREFIX gn: <https://www.geonames.org/ontology#>
|
|
|
3
3
|
|
|
4
4
|
CONSTRUCT {
|
|
5
5
|
?uri a skos:Concept ;
|
|
6
|
-
skos:prefLabel ?
|
|
6
|
+
skos:prefLabel ?prefLabel_ext ;
|
|
7
7
|
skos:altLabel ?altLabel ;
|
|
8
8
|
skos:scopeNote ?scopeNote ;
|
|
9
9
|
skos:broader ?broader .
|
|
@@ -13,8 +13,11 @@ WHERE {
|
|
|
13
13
|
?uri a gn:Feature ;
|
|
14
14
|
gn:featureClass ?featureClass ;
|
|
15
15
|
gn:name ?prefLabel ;
|
|
16
|
+
gn:countryCode ?countryCode ;
|
|
16
17
|
?names ?name .
|
|
17
18
|
|
|
19
|
+
BIND(CONCAT(?prefLabel," (",UCASE(?countryCode),")") as ?prefLabel_ext)
|
|
20
|
+
|
|
18
21
|
# Search in names and alternative names.
|
|
19
22
|
VALUES ?names { gn:name gn:alternateName }
|
|
20
23
|
|
|
@@ -32,6 +35,8 @@ WHERE {
|
|
|
32
35
|
?uri ?parents ?broader .
|
|
33
36
|
?broader gn:name ?broader_prefLabel
|
|
34
37
|
VALUES ?parents { gn:parentADM1 gn:parentADM2 }
|
|
38
|
+
# filter out the circular links in the converted data
|
|
39
|
+
FILTER(?uri != ?broader)
|
|
35
40
|
}
|
|
36
41
|
|
|
37
42
|
OPTIONAL {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@netwerk-digitaal-erfgoed/network-of-terms-catalog",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.8.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Catalog of Network of Terms datasets",
|
|
6
6
|
"repository": {
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
"@types/n3": "^1.4.3",
|
|
34
34
|
"@types/rdf-ext": "^1.3.11",
|
|
35
35
|
"gts": "^3.1.0",
|
|
36
|
-
"jsonld-streaming-parser": "^
|
|
37
|
-
"rdf-data-factory": "^1.
|
|
36
|
+
"jsonld-streaming-parser": "^3.0.0",
|
|
37
|
+
"rdf-data-factory": "^1.1.1",
|
|
38
38
|
"rdf-ext": "^2.0.1",
|
|
39
39
|
"rdf-validate-shacl": "^0.4.4"
|
|
40
40
|
},
|
|
@@ -44,10 +44,10 @@
|
|
|
44
44
|
"homepage": "https://github.com/netwerk-digitaal-erfgoed/network-of-terms-catalog#readme",
|
|
45
45
|
"dependencies": {
|
|
46
46
|
"@comunica/bindings-factory": "^2.2.0",
|
|
47
|
-
"@comunica/query-sparql-rdfjs": "^2.0
|
|
47
|
+
"@comunica/query-sparql-rdfjs": "^2.3.0",
|
|
48
48
|
"@netwerk-digitaal-erfgoed/network-of-terms-query": "2.2.0",
|
|
49
49
|
"globby": "^13.1.2",
|
|
50
|
-
"rdf-parse": "^2.
|
|
50
|
+
"rdf-parse": "^2.1.0",
|
|
51
51
|
"rdf-store-stream": "^1.1.0"
|
|
52
52
|
}
|
|
53
53
|
}
|