query-f0566861a84c752f39c16db53f5465b8
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 bd: <http://www.bigdata.com/rdf#>
SELECT distinct ?item ?itemLabel ?occLabel WHERE {
?item wdt:P106 ?occ. #item hsa an occ
?occ wdt:P279* wd:Q1930187 . #occ is a subclass of journalist
filter(?occ not in (wd:Q1930187)) #but occ is not journlist
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
LIMIT 100
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?item"):::projected
v1("?occ")
c1(["wd:Q1930187"]):::iri
c5(["bd:serviceParam"]):::iri
c7(["#91;AUTO_LANGUAGE#93;,en"]):::literal
f0[["?occ != 'wd:Q1930187'"]]
f0 --> v1
v2 --"wdt:P106"--> v1
v1 --"wdt:P279"--> c1
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c5 --"wikibase:language"--> c7
end