@netwerk-digitaal-erfgoed/network-of-terms-catalog 5.6.8 → 5.7.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.
- package/catalog/datasets/gtaa-classificatie.jsonld +37 -0
- package/catalog/datasets/gtaa-genres.jsonld +37 -37
- package/catalog/datasets/gtaa-geografische-namen.jsonld +37 -37
- package/catalog/datasets/gtaa-namen.jsonld +37 -0
- package/catalog/datasets/gtaa-onderwerpen-beng.jsonld +37 -0
- package/catalog/datasets/gtaa-onderwerpen.jsonld +37 -37
- package/catalog/datasets/gtaa-persoonsnamen.jsonld +37 -0
- package/catalog/queries/lookup/gtaa.rq +1 -4
- package/catalog/queries/search/gtaa-persoonsnamen.rq +81 -0
- package/catalog/queries/search/gtaa.rq +28 -13
- package/package.json +1 -1
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
{
|
|
2
|
+
"@context": "https://schema.org/docs/jsonldcontext.jsonld",
|
|
3
|
+
"@id": "http://data.beeldengeluid.nl/gtaa/Classificatie",
|
|
4
|
+
"@type": "Dataset",
|
|
5
|
+
"name": [
|
|
6
|
+
{
|
|
7
|
+
"@language": "nl",
|
|
8
|
+
"@value": "GTAA: classificatie"
|
|
9
|
+
}
|
|
10
|
+
],
|
|
11
|
+
"creator": [
|
|
12
|
+
{
|
|
13
|
+
"@id": "https://www.beeldengeluid.nl/"
|
|
14
|
+
}
|
|
15
|
+
],
|
|
16
|
+
"url": [
|
|
17
|
+
"http://data.beeldengeluid.nl/gtaa/"
|
|
18
|
+
],
|
|
19
|
+
"distribution": [
|
|
20
|
+
{
|
|
21
|
+
"@id": "https://data.beeldengeluid.nl/id/datadownload/0027",
|
|
22
|
+
"@type": "DataDownload",
|
|
23
|
+
"contentUrl": "https://gtaa.apis.beeldengeluid.nl/sparql",
|
|
24
|
+
"encodingFormat": "application/sparql-query",
|
|
25
|
+
"potentialAction": [
|
|
26
|
+
{
|
|
27
|
+
"@type": "SearchAction",
|
|
28
|
+
"query": "file://catalog/queries/search/gtaa.rq"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"@type": "FindAction",
|
|
32
|
+
"query": "file://catalog/queries/lookup/gtaa.rq"
|
|
33
|
+
}
|
|
34
|
+
]
|
|
35
|
+
}
|
|
36
|
+
]
|
|
37
|
+
}
|
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
{
|
|
2
|
-
"@context": "https://schema.org/docs/jsonldcontext.jsonld",
|
|
3
|
-
"@id": "http://data.beeldengeluid.nl/gtaa
|
|
4
|
-
"@type": "Dataset",
|
|
5
|
-
"name": [
|
|
6
|
-
{
|
|
7
|
-
"@language": "nl",
|
|
8
|
-
"@value": "GTAA: genres"
|
|
9
|
-
}
|
|
10
|
-
],
|
|
11
|
-
"creator": [
|
|
12
|
-
{
|
|
13
|
-
"@id": "https://www.beeldengeluid.nl/"
|
|
14
|
-
}
|
|
15
|
-
],
|
|
16
|
-
"url": [
|
|
17
|
-
"http://data.beeldengeluid.nl/gtaa/"
|
|
18
|
-
],
|
|
19
|
-
"distribution": [
|
|
20
|
-
{
|
|
21
|
-
"@id": "https://data.
|
|
22
|
-
"@type": "DataDownload",
|
|
23
|
-
"contentUrl": "https://
|
|
24
|
-
"encodingFormat": "application/sparql-query",
|
|
25
|
-
"potentialAction": [
|
|
26
|
-
{
|
|
27
|
-
"@type": "SearchAction",
|
|
28
|
-
"query": "file://catalog/queries/search/gtaa.rq"
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
"@type": "FindAction",
|
|
32
|
-
"query": "file://catalog/queries/lookup/gtaa.rq"
|
|
33
|
-
}
|
|
34
|
-
]
|
|
35
|
-
}
|
|
36
|
-
]
|
|
37
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"@context": "https://schema.org/docs/jsonldcontext.jsonld",
|
|
3
|
+
"@id": "http://data.beeldengeluid.nl/gtaa/Genre",
|
|
4
|
+
"@type": "Dataset",
|
|
5
|
+
"name": [
|
|
6
|
+
{
|
|
7
|
+
"@language": "nl",
|
|
8
|
+
"@value": "GTAA: genres"
|
|
9
|
+
}
|
|
10
|
+
],
|
|
11
|
+
"creator": [
|
|
12
|
+
{
|
|
13
|
+
"@id": "https://www.beeldengeluid.nl/"
|
|
14
|
+
}
|
|
15
|
+
],
|
|
16
|
+
"url": [
|
|
17
|
+
"http://data.beeldengeluid.nl/gtaa/"
|
|
18
|
+
],
|
|
19
|
+
"distribution": [
|
|
20
|
+
{
|
|
21
|
+
"@id": "https://data.beeldengeluid.nl/id/datadownload/0028",
|
|
22
|
+
"@type": "DataDownload",
|
|
23
|
+
"contentUrl": "https://gtaa.apis.beeldengeluid.nl/sparql",
|
|
24
|
+
"encodingFormat": "application/sparql-query",
|
|
25
|
+
"potentialAction": [
|
|
26
|
+
{
|
|
27
|
+
"@type": "SearchAction",
|
|
28
|
+
"query": "file://catalog/queries/search/gtaa.rq"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"@type": "FindAction",
|
|
32
|
+
"query": "file://catalog/queries/lookup/gtaa.rq"
|
|
33
|
+
}
|
|
34
|
+
]
|
|
35
|
+
}
|
|
36
|
+
]
|
|
37
|
+
}
|
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
{
|
|
2
|
-
"@context": "https://schema.org/docs/jsonldcontext.jsonld",
|
|
3
|
-
"@id": "http://data.beeldengeluid.nl/gtaa
|
|
4
|
-
"@type": "Dataset",
|
|
5
|
-
"name": [
|
|
6
|
-
{
|
|
7
|
-
"@language": "nl",
|
|
8
|
-
"@value": "GTAA: geografische namen"
|
|
9
|
-
}
|
|
10
|
-
],
|
|
11
|
-
"creator": [
|
|
12
|
-
{
|
|
13
|
-
"@id": "https://www.beeldengeluid.nl/"
|
|
14
|
-
}
|
|
15
|
-
],
|
|
16
|
-
"url": [
|
|
17
|
-
"http://data.beeldengeluid.nl/gtaa/"
|
|
18
|
-
],
|
|
19
|
-
"distribution": [
|
|
20
|
-
{
|
|
21
|
-
"@id": "https://data.
|
|
22
|
-
"@type": "DataDownload",
|
|
23
|
-
"contentUrl": "https://
|
|
24
|
-
"encodingFormat": "application/sparql-query",
|
|
25
|
-
"potentialAction": [
|
|
26
|
-
{
|
|
27
|
-
"@type": "SearchAction",
|
|
28
|
-
"query": "file://catalog/queries/search/gtaa.rq"
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
"@type": "FindAction",
|
|
32
|
-
"query": "file://catalog/queries/lookup/gtaa.rq"
|
|
33
|
-
}
|
|
34
|
-
]
|
|
35
|
-
}
|
|
36
|
-
]
|
|
37
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"@context": "https://schema.org/docs/jsonldcontext.jsonld",
|
|
3
|
+
"@id": "http://data.beeldengeluid.nl/gtaa/GeografischeNamen",
|
|
4
|
+
"@type": "Dataset",
|
|
5
|
+
"name": [
|
|
6
|
+
{
|
|
7
|
+
"@language": "nl",
|
|
8
|
+
"@value": "GTAA: geografische namen"
|
|
9
|
+
}
|
|
10
|
+
],
|
|
11
|
+
"creator": [
|
|
12
|
+
{
|
|
13
|
+
"@id": "https://www.beeldengeluid.nl/"
|
|
14
|
+
}
|
|
15
|
+
],
|
|
16
|
+
"url": [
|
|
17
|
+
"http://data.beeldengeluid.nl/gtaa/"
|
|
18
|
+
],
|
|
19
|
+
"distribution": [
|
|
20
|
+
{
|
|
21
|
+
"@id": "https://data.beeldengeluid.nl/id/datadownload/0029",
|
|
22
|
+
"@type": "DataDownload",
|
|
23
|
+
"contentUrl": "https://gtaa.apis.beeldengeluid.nl/sparql",
|
|
24
|
+
"encodingFormat": "application/sparql-query",
|
|
25
|
+
"potentialAction": [
|
|
26
|
+
{
|
|
27
|
+
"@type": "SearchAction",
|
|
28
|
+
"query": "file://catalog/queries/search/gtaa.rq"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"@type": "FindAction",
|
|
32
|
+
"query": "file://catalog/queries/lookup/gtaa.rq"
|
|
33
|
+
}
|
|
34
|
+
]
|
|
35
|
+
}
|
|
36
|
+
]
|
|
37
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
{
|
|
2
|
+
"@context": "https://schema.org/docs/jsonldcontext.jsonld",
|
|
3
|
+
"@id": "http://data.beeldengeluid.nl/gtaa/Namen",
|
|
4
|
+
"@type": "Dataset",
|
|
5
|
+
"name": [
|
|
6
|
+
{
|
|
7
|
+
"@language": "nl",
|
|
8
|
+
"@value": "GTAA: namen"
|
|
9
|
+
}
|
|
10
|
+
],
|
|
11
|
+
"creator": [
|
|
12
|
+
{
|
|
13
|
+
"@id": "https://www.beeldengeluid.nl/"
|
|
14
|
+
}
|
|
15
|
+
],
|
|
16
|
+
"url": [
|
|
17
|
+
"http://data.beeldengeluid.nl/gtaa"
|
|
18
|
+
],
|
|
19
|
+
"distribution": [
|
|
20
|
+
{
|
|
21
|
+
"@id": "https://data.beeldengeluid.nl/id/datadownload/0030",
|
|
22
|
+
"@type": "DataDownload",
|
|
23
|
+
"contentUrl": "https://gtaa.apis.beeldengeluid.nl/sparql",
|
|
24
|
+
"encodingFormat": "application/sparql-query",
|
|
25
|
+
"potentialAction": [
|
|
26
|
+
{
|
|
27
|
+
"@type": "SearchAction",
|
|
28
|
+
"query": "file://catalog/queries/search/gtaa.rq"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"@type": "FindAction",
|
|
32
|
+
"query": "file://catalog/queries/lookup/gtaa.rq"
|
|
33
|
+
}
|
|
34
|
+
]
|
|
35
|
+
}
|
|
36
|
+
]
|
|
37
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
{
|
|
2
|
+
"@context": "https://schema.org/docs/jsonldcontext.jsonld",
|
|
3
|
+
"@id": "http://data.beeldengeluid.nl/gtaa/OnderwerpenBenG",
|
|
4
|
+
"@type": "Dataset",
|
|
5
|
+
"name": [
|
|
6
|
+
{
|
|
7
|
+
"@language": "nl",
|
|
8
|
+
"@value": "GTAA: onderwerpen beeld-geluid"
|
|
9
|
+
}
|
|
10
|
+
],
|
|
11
|
+
"creator": [
|
|
12
|
+
{
|
|
13
|
+
"@id": "https://www.beeldengeluid.nl/"
|
|
14
|
+
}
|
|
15
|
+
],
|
|
16
|
+
"url": [
|
|
17
|
+
"http://data.beeldengeluid.nl/gtaa/"
|
|
18
|
+
],
|
|
19
|
+
"distribution": [
|
|
20
|
+
{
|
|
21
|
+
"@id": "https://data.beeldengeluid.nl/id/datadownload/0032",
|
|
22
|
+
"@type": "DataDownload",
|
|
23
|
+
"contentUrl": "https://gtaa.apis.beeldengeluid.nl/sparql",
|
|
24
|
+
"encodingFormat": "application/sparql-query",
|
|
25
|
+
"potentialAction": [
|
|
26
|
+
{
|
|
27
|
+
"@type": "SearchAction",
|
|
28
|
+
"query": "file://catalog/queries/search/gtaa.rq"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"@type": "FindAction",
|
|
32
|
+
"query": "file://catalog/queries/lookup/gtaa.rq"
|
|
33
|
+
}
|
|
34
|
+
]
|
|
35
|
+
}
|
|
36
|
+
]
|
|
37
|
+
}
|
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
{
|
|
2
|
-
"@context": "https://schema.org/docs/jsonldcontext.jsonld",
|
|
3
|
-
"@id": "http://data.beeldengeluid.nl/gtaa
|
|
4
|
-
"@type": "Dataset",
|
|
5
|
-
"name": [
|
|
6
|
-
{
|
|
7
|
-
"@language": "nl",
|
|
8
|
-
"@value": "GTAA: onderwerpen"
|
|
9
|
-
}
|
|
10
|
-
],
|
|
11
|
-
"creator": [
|
|
12
|
-
{
|
|
13
|
-
"@id": "https://www.beeldengeluid.nl/"
|
|
14
|
-
}
|
|
15
|
-
],
|
|
16
|
-
"url": [
|
|
17
|
-
"http://data.beeldengeluid.nl/gtaa/"
|
|
18
|
-
],
|
|
19
|
-
"distribution": [
|
|
20
|
-
{
|
|
21
|
-
"@id": "https://data.
|
|
22
|
-
"@type": "DataDownload",
|
|
23
|
-
"contentUrl": "https://
|
|
24
|
-
"encodingFormat": "application/sparql-query",
|
|
25
|
-
"potentialAction": [
|
|
26
|
-
{
|
|
27
|
-
"@type": "SearchAction",
|
|
28
|
-
"query": "file://catalog/queries/search/gtaa.rq"
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
"@type": "FindAction",
|
|
32
|
-
"query": "file://catalog/queries/lookup/gtaa.rq"
|
|
33
|
-
}
|
|
34
|
-
]
|
|
35
|
-
}
|
|
36
|
-
]
|
|
37
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"@context": "https://schema.org/docs/jsonldcontext.jsonld",
|
|
3
|
+
"@id": "http://data.beeldengeluid.nl/gtaa/Onderwerpen",
|
|
4
|
+
"@type": "Dataset",
|
|
5
|
+
"name": [
|
|
6
|
+
{
|
|
7
|
+
"@language": "nl",
|
|
8
|
+
"@value": "GTAA: onderwerpen"
|
|
9
|
+
}
|
|
10
|
+
],
|
|
11
|
+
"creator": [
|
|
12
|
+
{
|
|
13
|
+
"@id": "https://www.beeldengeluid.nl/"
|
|
14
|
+
}
|
|
15
|
+
],
|
|
16
|
+
"url": [
|
|
17
|
+
"http://data.beeldengeluid.nl/gtaa/"
|
|
18
|
+
],
|
|
19
|
+
"distribution": [
|
|
20
|
+
{
|
|
21
|
+
"@id": "https://data.beeldengeluid.nl/id/datadownload/0031",
|
|
22
|
+
"@type": "DataDownload",
|
|
23
|
+
"contentUrl": "https://gtaa.apis.beeldengeluid.nl/sparql",
|
|
24
|
+
"encodingFormat": "application/sparql-query",
|
|
25
|
+
"potentialAction": [
|
|
26
|
+
{
|
|
27
|
+
"@type": "SearchAction",
|
|
28
|
+
"query": "file://catalog/queries/search/gtaa.rq"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"@type": "FindAction",
|
|
32
|
+
"query": "file://catalog/queries/lookup/gtaa.rq"
|
|
33
|
+
}
|
|
34
|
+
]
|
|
35
|
+
}
|
|
36
|
+
]
|
|
37
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
{
|
|
2
|
+
"@context": "https://schema.org/docs/jsonldcontext.jsonld",
|
|
3
|
+
"@id": "http://data.beeldengeluid.nl/gtaa/Persoonsnamen",
|
|
4
|
+
"@type": "Dataset",
|
|
5
|
+
"name": [
|
|
6
|
+
{
|
|
7
|
+
"@language": "nl",
|
|
8
|
+
"@value": "GTAA: persoonsnamen"
|
|
9
|
+
}
|
|
10
|
+
],
|
|
11
|
+
"creator": [
|
|
12
|
+
{
|
|
13
|
+
"@id": "https://www.beeldengeluid.nl/"
|
|
14
|
+
}
|
|
15
|
+
],
|
|
16
|
+
"url": [
|
|
17
|
+
"http://data.beeldengeluid.nl/gtaa/"
|
|
18
|
+
],
|
|
19
|
+
"distribution": [
|
|
20
|
+
{
|
|
21
|
+
"@id": "https://data.beeldengeluid.nl/id/datadownload/0026",
|
|
22
|
+
"@type": "DataDownload",
|
|
23
|
+
"contentUrl": "https://gtaa.apis.beeldengeluid.nl/sparql",
|
|
24
|
+
"encodingFormat": "application/sparql-query",
|
|
25
|
+
"potentialAction": [
|
|
26
|
+
{
|
|
27
|
+
"@type": "SearchAction",
|
|
28
|
+
"query": "file://catalog/queries/search/gtaa-persoonsnamen.rq"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"@type": "FindAction",
|
|
32
|
+
"query": "file://catalog/queries/lookup/gtaa.rq"
|
|
33
|
+
}
|
|
34
|
+
]
|
|
35
|
+
}
|
|
36
|
+
]
|
|
37
|
+
}
|
|
@@ -14,10 +14,7 @@ CONSTRUCT {
|
|
|
14
14
|
?related_uri skos:prefLabel ?related_prefLabel .
|
|
15
15
|
}
|
|
16
16
|
WHERE {
|
|
17
|
-
|
|
18
|
-
# Concept: <http://data.beeldengeluid.nl/gtaa/25109>
|
|
19
|
-
# Geographical name: <http://data.beeldengeluid.nl/gtaa/33511>
|
|
20
|
-
# Genre: <http://data.beeldengeluid.nl/gtaa/30115>
|
|
17
|
+
|
|
21
18
|
VALUES ?uri { ?uris }
|
|
22
19
|
|
|
23
20
|
?uri a skos:Concept .
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
|
|
2
|
+
PREFIX justskos: <http://justskos.org/ns/core#>
|
|
3
|
+
|
|
4
|
+
CONSTRUCT {
|
|
5
|
+
?uri a skos:Concept ;
|
|
6
|
+
skos:prefLabel ?prefLabel ;
|
|
7
|
+
skos:altLabel ?altLabel ;
|
|
8
|
+
skos:hiddenLabel ?hiddenLabel ;
|
|
9
|
+
skos:scopeNote ?scopeNote ;
|
|
10
|
+
skos:broader ?broader_uri ;
|
|
11
|
+
skos:narrower ?narrower_uri ;
|
|
12
|
+
skos:related ?related_uri .
|
|
13
|
+
?broader_uri skos:prefLabel ?broader_prefLabel .
|
|
14
|
+
?narrower_uri skos:prefLabel ?narrower_prefLabel .
|
|
15
|
+
?related_uri skos:prefLabel ?related_prefLabel .
|
|
16
|
+
}
|
|
17
|
+
WHERE {
|
|
18
|
+
{
|
|
19
|
+
?uri skos:inScheme <http://data.beeldengeluid.nl/gtaa/Persoonsnamen> .
|
|
20
|
+
?uri skos:prefLabel|skos:altLabel|skos:hiddenLabel ?label ;
|
|
21
|
+
justskos:status ?status .
|
|
22
|
+
FILTER(LANG(?label) = "nl")
|
|
23
|
+
FILTER(?status IN ('approved', 'candidate'))
|
|
24
|
+
|
|
25
|
+
# single word query, match case insensitive
|
|
26
|
+
FILTER regex(?query, "^[^ ]+$")
|
|
27
|
+
FILTER CONTAINS(LCASE(?label), LCASE(?query))
|
|
28
|
+
}
|
|
29
|
+
# commented because of timeouts
|
|
30
|
+
# UNION
|
|
31
|
+
# {
|
|
32
|
+
# ?uri skos:inScheme <http://data.beeldengeluid.nl/gtaa/Persoonsnamen> .
|
|
33
|
+
# ?uri ?predicate ?label ;
|
|
34
|
+
# justskos:status ?status .
|
|
35
|
+
# VALUES ?predicate { skos:prefLabel skos:altLabel skos:hiddenLabel }
|
|
36
|
+
# FILTER(LANG(?label) = "nl")
|
|
37
|
+
# FILTER(?status IN ('approved', 'candidate'))
|
|
38
|
+
#
|
|
39
|
+
# # double word query, whitespace separator
|
|
40
|
+
# FILTER REGEX(?query, "^([^ ]+)[ ]+([^ ]+)$")
|
|
41
|
+
#
|
|
42
|
+
# BIND(REPLACE(?query, "^([^ ]+)[ ]+([^ ]+)$", "$1") AS ?term1)
|
|
43
|
+
# BIND(REPLACE(?query, "^([^ ]+)[ ]+([^ ]+)$", "$2") AS ?term2)
|
|
44
|
+
#
|
|
45
|
+
# # search case insensitive using an AND construct for the query terms
|
|
46
|
+
# FILTER( CONTAINS(LCASE(?label), LCASE(?term1)) && CONTAINS(LCASE(?label), LCASE(?term2)) )
|
|
47
|
+
# }
|
|
48
|
+
|
|
49
|
+
OPTIONAL {
|
|
50
|
+
?uri skos:prefLabel ?prefLabel .
|
|
51
|
+
FILTER(LANG(?prefLabel) = "nl" )
|
|
52
|
+
}
|
|
53
|
+
OPTIONAL {
|
|
54
|
+
?uri skos:altLabel ?altLabel .
|
|
55
|
+
FILTER(LANG(?altLabel) = "nl")
|
|
56
|
+
}
|
|
57
|
+
OPTIONAL {
|
|
58
|
+
?uri skos:hiddenLabel ?hiddenLabel .
|
|
59
|
+
FILTER(LANG(?hiddenLabel) = "nl")
|
|
60
|
+
}
|
|
61
|
+
OPTIONAL {
|
|
62
|
+
?uri skos:scopeNote ?scopeNote .
|
|
63
|
+
FILTER(LANG(?scopeNote) = "nl")
|
|
64
|
+
}
|
|
65
|
+
OPTIONAL {
|
|
66
|
+
?uri skos:broader ?broader_uri .
|
|
67
|
+
?broader_uri skos:prefLabel ?broader_prefLabel .
|
|
68
|
+
FILTER(LANG(?broader_prefLabel) = "nl")
|
|
69
|
+
}
|
|
70
|
+
OPTIONAL {
|
|
71
|
+
?uri skos:narrower ?narrower_uri .
|
|
72
|
+
?narrower_uri skos:prefLabel ?narrower_prefLabel .
|
|
73
|
+
FILTER(LANG(?narrower_prefLabel) = "nl")
|
|
74
|
+
}
|
|
75
|
+
OPTIONAL {
|
|
76
|
+
?uri skos:related ?related_uri .
|
|
77
|
+
?related_uri skos:prefLabel ?related_prefLabel .
|
|
78
|
+
FILTER(LANG(?related_prefLabel) = "nl")
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
LIMIT 10
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
|
|
2
|
+
PREFIX justskos: <http://justskos.org/ns/core#>
|
|
2
3
|
|
|
3
4
|
CONSTRUCT {
|
|
4
5
|
?uri a skos:Concept ;
|
|
@@ -14,21 +15,35 @@ CONSTRUCT {
|
|
|
14
15
|
?related_uri skos:prefLabel ?related_prefLabel .
|
|
15
16
|
}
|
|
16
17
|
WHERE {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
{
|
|
19
|
+
?uri skos:inScheme ?datasetUri .
|
|
20
|
+
?uri ?predicate ?label ;
|
|
21
|
+
justskos:status ?status .
|
|
22
|
+
VALUES ?predicate { skos:prefLabel skos:altLabel skos:hiddenLabel }
|
|
23
|
+
FILTER(LANG(?label) = "nl")
|
|
24
|
+
FILTER(?status IN ('approved', 'candidate'))
|
|
20
25
|
|
|
26
|
+
# single word query, match case insensitive
|
|
27
|
+
FILTER regex(?query, "^[^ ]+$")
|
|
28
|
+
FILTER CONTAINS(LCASE(?label), LCASE(?query))
|
|
29
|
+
}
|
|
30
|
+
UNION
|
|
21
31
|
{
|
|
22
|
-
|
|
23
|
-
?uri ?predicate ?label
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
+
?uri skos:inScheme ?datasetUri .
|
|
33
|
+
?uri ?predicate ?label ;
|
|
34
|
+
justskos:status ?status .
|
|
35
|
+
VALUES ?predicate { skos:prefLabel skos:altLabel skos:hiddenLabel }
|
|
36
|
+
FILTER(LANG(?label) = "nl")
|
|
37
|
+
FILTER(?status IN ('approved', 'candidate'))
|
|
38
|
+
|
|
39
|
+
# double word query, whitespace separator
|
|
40
|
+
FILTER REGEX(?query, "^([^ ]+)[ ]+([^ ]+)$")
|
|
41
|
+
|
|
42
|
+
BIND(REPLACE(?query, "^([^ ]+)[ ]+([^ ]+)$", "$1") AS ?term1)
|
|
43
|
+
BIND(REPLACE(?query, "^([^ ]+)[ ]+([^ ]+)$", "$2") AS ?term2)
|
|
44
|
+
|
|
45
|
+
# search case insensitive using an AND construct for the query terms
|
|
46
|
+
FILTER( CONTAINS(LCASE(?label), LCASE(?term1)) && CONTAINS(LCASE(?label), LCASE(?term2)) )
|
|
32
47
|
}
|
|
33
48
|
|
|
34
49
|
OPTIONAL {
|