query-14bd085c95f6766c18d4e0681a5cd1e1
TODO
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
?item ?itemLabel ?itemDescription ?occupationLabel
WHERE {
?item wdt:P31 wd:Q5.
FILTER NOT EXISTS { ?item wdt:P106 ?occupation . }
?article schema:about ?item.
?article schema:isPartOf <https://pa.wikisource.org/>.
SERVICE wikibase:label { bd:serviceParam wikibase:language "pa,en".}
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?article")
v1("?item"):::projected
v2("?occupation")
c8(["bd:serviceParam"]):::iri
c10(["pa,en"]):::literal
c3(["wd:Q5"]):::iri
c6([https://pa.wikisource.org/]):::iri
f0[["not "]]
subgraph f0e0["Exists Clause"]
e0v1 --"wdt:P106"--> e0v2
e0v1("?item"):::projected
e0v2("?occupation"):::projected
end
f0--EXISTS--> f0e0
f0 --> v1
f0 --> c1
f0 --> v2
v1 --"wdt:P106"--> v2
v1 --"wdt:P31"--> c3
v3 --"schema:about"--> v1
v3 --"schema:isPartOf"--> c6
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end