@netwerk-digitaal-erfgoed/network-of-terms-catalog 9.10.0 → 9.11.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.
@@ -33,9 +33,9 @@
33
33
  "inLanguage": "nl",
34
34
  "distribution": [
35
35
  {
36
- "@id": "https://data.netwerkdigitaalerfgoed.nl/rkd/rkdartists/sparql",
36
+ "@id": "https://api.rkd.triply.cc/datasets/rkd/RKD-SDO-Knowledge-Graph/sparql",
37
37
  "@type": "DataDownload",
38
- "contentUrl": "https://api.data.netwerkdigitaalerfgoed.nl/datasets/rkd/rkdartists/services/rkdartists/sparql",
38
+ "contentUrl": "https://api.rkd.triply.cc/datasets/rkd/RKD-SDO-Knowledge-Graph/services/Virtuoso/sparql",
39
39
  "encodingFormat": "application/sparql-query",
40
40
  "potentialAction": [
41
41
  {
@@ -1,27 +1,65 @@
1
1
  PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
2
- PREFIX schema: <http://schema.org/>
2
+ PREFIX schema: <https://schema.org/>
3
3
  PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
4
4
 
5
5
  CONSTRUCT {
6
6
  ?uri a skos:Concept ;
7
- skos:prefLabel ?schema_name ;
8
- skos:altLabel ?schema_alternateName ;
9
- skos:scopeNote ?schema_description ;
10
- rdfs:seeAlso ?rdfs_seeAlso .
7
+ skos:prefLabel ?prefLabel ;
8
+ skos:altLabel ?altLabel ;
9
+ skos:scopeNote ?scopeNote ;
10
+ rdfs:seeAlso ?seeAlso .
11
11
  }
12
12
  WHERE {
13
13
  # For example:
14
14
  # Rembrandt: <https://data.rkd.nl/artists/66219>
15
15
  # Vincent van Gogh: <https://data.rkd.nl/artists/32439>
16
16
  VALUES ?uri { ?uris }
17
+ {
18
+ SELECT ?uri
19
+ (GROUP_CONCAT(DISTINCT ?schema_description; separator="; ") as ?descriptions)
20
+ (GROUP_CONCAT(DISTINCT ?birthPlace; separator="/") as ?birthPlaces)
21
+ (GROUP_CONCAT(DISTINCT ?deathPlace; separator="/") as ?deathPlaces)
22
+ (GROUP_CONCAT(DISTINCT ?additionalType; separator=", ") as ?additionalTypes)
23
+ WHERE {
24
+ ?uri a ?type .
25
+ VALUES ?type { schema:Person schema:Organization }
17
26
 
18
- ?uri a ?type .
19
- VALUES ?type { schema:Person schema:Organization } .
27
+ OPTIONAL { ?uri schema:description ?schema_description . }
28
+ OPTIONAL { ?uri schema:birthPlace ?birthPlace .
29
+ FILTER(langMatches(lang(?birthPlace), "nl")) }
30
+ OPTIONAL { ?uri schema:deathPlace ?deathPlace .
31
+ FILTER(langMatches(lang(?deathPlace), "nl"))}
32
+ OPTIONAL { ?uri schema:additionalType ?additionalType .
33
+ FILTER(langMatches(lang(?additionalType), "nl"))}
20
34
 
21
- OPTIONAL { ?uri schema:name ?schema_name . }
22
- OPTIONAL { ?uri schema:alternateName ?schema_alternateName . }
23
- OPTIONAL { ?uri schema:description ?schema_description . }
35
+ } GROUP BY ?uri
36
+ }
37
+
38
+ OPTIONAL { ?uri schema:name ?prefLabel . }
39
+ OPTIONAL { ?uri schema:alternateName ?altLabel . }
40
+ OPTIONAL { ?uri schema:birthDate ?birthDate . }
41
+ OPTIONAL { ?uri schema:deathDate ?deathDate . }
42
+
43
+ BIND(
44
+ CONCAT(
45
+ IF(BOUND(?birthDate) || STRLEN(?birthPlaces) > 0 ,
46
+ CONCAT(
47
+ IF(BOUND(?birthDate), CONCAT(?birthDate, " "), ""),
48
+ IF(STRLEN(?birthPlaces) > 0, CONCAT("(", ?birthPlaces, ") "), ""),
49
+ IF(BOUND(?deathDate) || STRLEN(?deathPlaces) > 0," - "," - ; ")),
50
+ ""),
51
+ IF(BOUND(?deathDate) || STRLEN(?deathPlaces) > 0,
52
+ CONCAT(
53
+ IF(BOUND(?birthDate) || STRLEN(?birthPlaces) > 0 , "", "- "),
54
+ IF(BOUND(?deathDate), CONCAT(?deathDate, " "), ""),
55
+ IF(STRLEN(?deathPlaces) > 0, CONCAT("(", ?deathPlaces, ")"), ""),
56
+ "; "),
57
+ ""),
58
+ IF(STRLEN(?additionalTypes) > 0, CONCAT(?additionalTypes, ". "), ""),
59
+ IF(STRLEN(?descriptions) > 0, CONCAT(?descriptions, ". "), "")
60
+ ) as ?scopeNote
61
+ )
24
62
  BIND(STRAFTER(STR(?uri), "https://data.rkd.nl/artists/") AS ?identifier)
25
- BIND(IRI(CONCAT("https://rkd.nl/explore/artists/", ?identifier)) AS ?rdfs_seeAlso)
63
+ BIND(IRI(CONCAT("https://rkd.nl/explore/artists/", ?identifier)) AS ?seeAlso)
26
64
  }
27
65
  LIMIT 1000
@@ -1,28 +1,65 @@
1
1
  PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
2
- PREFIX schema: <http://schema.org/>
2
+ PREFIX schema: <https://schema.org/>
3
3
  PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
4
4
 
5
5
  CONSTRUCT {
6
6
  ?uri a skos:Concept ;
7
- skos:prefLabel ?schema_name ;
8
- skos:altLabel ?schema_alternateName ;
9
- skos:scopeNote ?schema_description ;
10
- rdfs:seeAlso ?rdfs_seeAlso .
7
+ skos:prefLabel ?prefLabel ;
8
+ skos:altLabel ?altLabel ;
9
+ skos:scopeNote ?scopeNote ;
10
+ rdfs:seeAlso ?seeAlso .
11
11
  }
12
12
  WHERE {
13
- ?uri a ?type .
14
- VALUES ?type { schema:Person schema:Organization }
15
- ?uri ?name ?label .
16
- VALUES ?name { schema:name schema:alternateName }
17
-
18
13
  ?uri ?predicate ?label .
19
14
  ?label <bif:contains> ?virtuosoQuery .
15
+ VALUES ?predicate { schema:name schema:alternateName }
16
+
17
+ {
18
+ SELECT ?uri
19
+ (GROUP_CONCAT(DISTINCT ?schema_description; separator="; ") as ?descriptions)
20
+ (GROUP_CONCAT(DISTINCT ?birthPlace; separator="/") as ?birthPlaces)
21
+ (GROUP_CONCAT(DISTINCT ?deathPlace; separator="/") as ?deathPlaces)
22
+ (GROUP_CONCAT(DISTINCT ?additionalType; separator=", ") as ?additionalTypes)
23
+ WHERE {
24
+ ?uri a ?type .
25
+ VALUES ?type { schema:Person schema:Organization }
26
+
27
+ OPTIONAL { ?uri schema:description ?schema_description . }
28
+ OPTIONAL { ?uri schema:birthPlace ?birthPlace .
29
+ FILTER(langMatches(lang(?birthPlace), "nl")) }
30
+ OPTIONAL { ?uri schema:deathPlace ?deathPlace .
31
+ FILTER(langMatches(lang(?deathPlace), "nl"))}
32
+ OPTIONAL { ?uri schema:additionalType ?additionalType .
33
+ FILTER(langMatches(lang(?additionalType), "nl"))}
34
+
35
+ } GROUP BY ?uri
36
+ }
20
37
 
21
- OPTIONAL { ?uri schema:name ?schema_name . }
22
- OPTIONAL { ?uri schema:alternateName ?schema_alternateName . }
23
- OPTIONAL { ?uri schema:description ?schema_description . }
38
+ OPTIONAL { ?uri schema:name ?prefLabel . }
39
+ OPTIONAL { ?uri schema:alternateName ?altLabel . }
40
+ OPTIONAL { ?uri schema:birthDate ?birthDate . }
41
+ OPTIONAL { ?uri schema:deathDate ?deathDate . }
24
42
 
43
+ BIND(
44
+ CONCAT(
45
+ IF(BOUND(?birthDate) || STRLEN(?birthPlaces) > 0 ,
46
+ CONCAT(
47
+ IF(BOUND(?birthDate), CONCAT(?birthDate, " "), ""),
48
+ IF(STRLEN(?birthPlaces) > 0, CONCAT("(", ?birthPlaces, ") "), ""),
49
+ IF(BOUND(?deathDate) || STRLEN(?deathPlaces) > 0," - "," - ; ")),
50
+ ""),
51
+ IF(BOUND(?deathDate) || STRLEN(?deathPlaces) > 0,
52
+ CONCAT(
53
+ IF(BOUND(?birthDate) || STRLEN(?birthPlaces) > 0 , "", "- "),
54
+ IF(BOUND(?deathDate), CONCAT(?deathDate, " "), ""),
55
+ IF(STRLEN(?deathPlaces) > 0, CONCAT("(", ?deathPlaces, ")"), ""),
56
+ "; "),
57
+ ""),
58
+ IF(STRLEN(?additionalTypes) > 0, CONCAT(?additionalTypes, ". "), ""),
59
+ IF(STRLEN(?descriptions) > 0, CONCAT(?descriptions, ". "), "")
60
+ ) as ?scopeNote
61
+ )
25
62
  BIND(STRAFTER(STR(?uri), "https://data.rkd.nl/artists/") AS ?identifier)
26
- BIND(IRI(CONCAT("https://rkd.nl/explore/artists/", ?identifier)) AS ?rdfs_seeAlso)
63
+ BIND(IRI(CONCAT("https://rkd.nl/explore/artists/", ?identifier)) AS ?seeAlso)
27
64
  }
28
65
  LIMIT 1000
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@netwerk-digitaal-erfgoed/network-of-terms-catalog",
3
- "version": "9.10.0",
3
+ "version": "9.11.0",
4
4
  "type": "module",
5
5
  "description": "Catalog of Network of Terms datasets",
6
6
  "repository": {