query-514a9a02a2eb80f6628a1a1324b010df
20:25, 4 April 2017 (UTC) questions? Q.Zanden--I found it, but I don't understand why it is not correct sorting...
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?item ?itemLabel ?article WHERE {
?item wdt:P31 wd:Q5.
?item wdt:P106 wd:Q4964182.
?item wdt:P27 wd:Q30.
SERVICE wikibase:label { bd:serviceParam wikibase:language "nl,en". }
FILTER(NOT EXISTS {
?article schema:about ?item.
?article schema:isPartOf <https://nl.wikibooks.org/>.
})
}
ORDER BY (?itemLabel)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?article"):::projected
v3("?item"):::projected
v1("?itemLabel"):::projected
c13(["nl,en"]):::literal
c9(["wd:Q30"]):::iri
c7(["wd:Q4964182"]):::iri
c11(["bd:serviceParam"]):::iri
c3([https://nl.wikibooks.org/]):::iri
c5(["wd:Q5"]):::iri
f0[["not "]]
subgraph f0e0["Exists Clause"]
e0v1 --"schema:about"--> e0v2
e0v1 --"schema:isPartOf"--> e0c3
e0v1("?article"):::projected
e0v2("?item"):::projected
e0c3([https://nl.wikibooks.org/]):::iri
end
f0--EXISTS--> f0e0
f0 --> v2
f0 --> c1
f0 --> v3
f0 --> c2
f0 --> c3
v2 --"schema:about"--> v3
v2 --"schema:isPartOf"--> c3
v3 --"wdt:P31"--> c5
v3 --"wdt:P106"--> c7
v3 --"wdt:P27"--> c9
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c11 --"wikibase:language"--> c13
end