query-9bb4f19248fa4eb911d1edd6de99c112
TODO
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 bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?typeLabel WHERE {
SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
SERVICE wikibase:mwapi {
bd:serviceParam wikibase:endpoint "www.wikidata.org";
wikibase:api "EntitySearch";
mwapi:search "Vondel";
mwapi:language "en".
?item wikibase:apiOutputItem mwapi:item.
?num wikibase:apiOrdinal true.}
?item (wdt:P279|wdt:P31) ?type.
}
ORDER BY ASC(?typeLabel)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?item"):::projected
v3("?num")
v4("?type")
v1("?typeLabel"):::projected
c7(["www.wikidata.org"]):::literal
c13(["mwapi:item"]):::iri
c11(["Vondel"]):::literal
c4(["en"]):::literal
c2(["bd:serviceParam"]):::iri
c9(["EntitySearch"]):::literal
c15(["true^^xsd:boolean"]):::literal
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c2 --"mwapi:language"--> c4
end
subgraph s2["http://wikiba.se/ontology#mwapi"]
style s2 stroke-width:4px;
c2 --"mwapi:endpoint"--> c7
c2 --"mwapi:api"--> c9
c2 --"mwapi:search"--> c11
c2 --"mwapi:language"--> c4
v2 --"mwapi:apiOutputItem"--> c13
v3 --"mwapi:apiOrdinal"--> c15
end
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
v2 --"wdt:P31"--> v4
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
v2 --"wdt:P279"--> v4
end
union0r <== or ==> union0l
end