query-60485a5d573f4bdc69251ebb992ba500
Propertiesoccupation (P106)
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 bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?sitelinks WHERE {
SERVICE wikibase:label { bd:serviceParam wikibase:language "fr". }
wd:Q2306091 ^wdt:P106 ?item.
?item wikibase:sitelinks ?sitelinks.
FILTER NOT EXISTS {
SERVICE wikibase:mwapi {
bd:serviceParam wikibase:endpoint "fr.wikipedia.org"; # Set the project here
wikibase:api "Generator"; mwapi:generator "links";
mwapi:titles "Sociologue";.
?item wikibase:apiOutputItem mwapi:item.
}
}
}
ORDER BY DESC(?sitelinks)
LIMIT 10
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?item"):::projected
v1("?sitelinks"):::projected
c12(["mwapi:item"]):::iri
c17(["wd:Q2306091"]):::iri
c10(["Sociologue"]):::literal
c15(["fr"]):::literal
c4(["fr.wikipedia.org"]):::literal
c2(["bd:serviceParam"]):::iri
c8(["links"]):::literal
c6(["Generator"]):::literal
f0[["not "]]
subgraph f0e0["Exists Clause"]
subgraph e0s1["http://wikiba.se/ontology#mwapi"]
style e0s1 stroke-width:4px;
e0c2 --"mwapi:endpoint"--> e0c4
e0c2 --"mwapi:api"--> e0c6
e0c2 --"mwapi:generator"--> e0c8
e0c2 --"mwapi:titles"--> e0c10
e0v1 --"mwapi:apiOutputItem"--> e0c12
end
e0v1("?item"):::projected
e0c4(["fr.wikipedia.org"]):::literal
e0c2(["bd:serviceParam"]):::iri
e0c12(["mwapi:item"]):::iri
e0c10(["Sociologue"]):::literal
e0c8(["links"]):::literal
e0c6(["Generator"]):::literal
end
f0--EXISTS--> f0e0
f0 --> c1
f0 --> c2
f0 --> c3
f0 --> c4
f0 --> c5
f0 --> c6
f0 --> c7
f0 --> c8
f0 --> c9
f0 --> c10
f0 --> v2
f0 --> c11
f0 --> c12
subgraph s1["http://wikiba.se/ontology#mwapi"]
style s1 stroke-width:4px;
c2 --"mwapi:endpoint"--> c4
c2 --"mwapi:api"--> c6
c2 --"mwapi:generator"--> c8
c2 --"mwapi:titles"--> c10
v2 --"mwapi:apiOutputItem"--> c12
end
subgraph s2["http://wikiba.se/ontology#label"]
style s2 stroke-width:4px;
c2 --"mwapi:language"--> c15
end
v2 --"wdt:P106"--> c17
v2 --"mwapi:sitelinks"--> v1