@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://
|
|
36
|
+
"@id": "https://api.rkd.triply.cc/datasets/rkd/RKD-SDO-Knowledge-Graph/sparql",
|
|
37
37
|
"@type": "DataDownload",
|
|
38
|
-
"contentUrl": "https://api.
|
|
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: <
|
|
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 ?
|
|
8
|
-
skos:altLabel ?
|
|
9
|
-
skos:scopeNote ?
|
|
10
|
-
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
|
-
|
|
19
|
-
|
|
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
|
-
|
|
22
|
-
|
|
23
|
-
|
|
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 ?
|
|
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: <
|
|
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 ?
|
|
8
|
-
skos:altLabel ?
|
|
9
|
-
skos:scopeNote ?
|
|
10
|
-
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 ?
|
|
22
|
-
OPTIONAL { ?uri schema:alternateName ?
|
|
23
|
-
OPTIONAL { ?uri schema:
|
|
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 ?
|
|
63
|
+
BIND(IRI(CONCAT("https://rkd.nl/explore/artists/", ?identifier)) AS ?seeAlso)
|
|
27
64
|
}
|
|
28
65
|
LIMIT 1000
|