query-ce95c22587d04dbbf466ce3ff1ea20ac
Proberen om pseudonymen te matchen met andere Q-items, maar dit werk nog niet
Use at
- https://query.wikidata.org/sparql
PREFIX mwapi: <http://wikiba.se/ontology#>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?item ?itemLabel #?itemAltLabel
?pseudonym
?ntaid
?item2
?item3 ?item3Label ?item3Description
#?image
WHERE
{
?item p:P31/ps:P31 wd:Q5. #humans
?item wdt:P27 wd:Q29999. #Dutch
?item p:P1006/ps:P1006 ?ntaid. #authors
?item p:P742/ps:P742 ?pseudonym.
#FILTER (?itemLabel = ?pseudonym). # werkt niet
#OPTIONAL{?item wdt:P18 ?image.}
#?item p:P1006/p:P1006 [].
SERVICE wikibase:mwapi {
bd:serviceParam wikibase:endpoint "www.wikidata.org";
wikibase:api "EntitySearch";
mwapi:search ?pseudonym; # Search for things named "marja"
mwapi:language "nl".
?item2 wikibase:apiOutput mwapi:item
}
BIND(URI(CONCAT("http://www.wikidata.org/entity/", ?item2)) AS ?item3)
SERVICE wikibase:label { bd:serviceParam wikibase:language "nl,en" } .
}
ORDER BY ?itemLabel
LIMIT 100
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?item"):::projected
v5("?item2"):::projected
v6("?item3"):::projected
v1("?itemLabel"):::projected
v3("?ntaid"):::projected
v4("?pseudonym"):::projected
a1((" "))
a2((" "))
a3((" "))
c13(["www.wikidata.org"]):::literal
c20(["mwapi:item"]):::iri
c22(["nl,en"]):::literal
c5(["wd:Q29999"]):::iri
c11(["bd:serviceParam"]):::iri
c15(["EntitySearch"]):::literal
c3(["wd:Q5"]):::iri
c18(["nl"]):::literal
v2 --"p:P31"--> a1
a1 --"p:statement/P31"--> c3
v2 --"p:direct/P27"--> c5
v2 --"p:P1006"--> a2
a2 --"p:statement/P1006"--> v3
v2 --"p:P742"--> a3
a3 --"p:statement/P742"--> v4
subgraph s1["http://wikiba.se/ontology#mwapi"]
style s1 stroke-width:4px;
c11 --"mwapi:endpoint"--> c13
c11 --"mwapi:api"--> c15
c11 --"mwapi:search"--> v4
c11 --"mwapi:language"--> c18
v5 --"mwapi:apiOutput"--> c20
end
bind0[/"concat('http://www.wikidata.org/entity/',?item2)"/]
v5 --o bind0
bind0 --as--o v6
subgraph s2["http://wikiba.se/ontology#label"]
style s2 stroke-width:4px;
c11 --"mwapi:language"--> c22
end