query-cfa6bae07bbd84b9601dbfbb08e6171a
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 ?author ?authorLabel ?sitelink ?article WHERE
{
{ SELECT ?item ?sitelink ?article
WHERE
{
?item wdt:P31 wd:Q47461344. #written work
?article schema:about ?item ; #on en wiki
schema:isPartOf <https://en.wikipedia.org/> ;
schema:name ?sitelink .
} } ?item wdt:P50 ?author .
?author wdt:P21 wd:Q6581072 . #female author
filter not exists { #not on pt wiki
?article2 schema:about ?item ;
schema:isPartOf <https://pt.wikipedia.org/> .}
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?article"):::projected
v1("?article2")
v5("?author"):::projected
v2("?item"):::projected
v4("?sitelink"):::projected
c10(["wd:Q6581072"]):::iri
c5(["wd:Q47461344"]):::iri
c6([https://en.wikipedia.org/]):::iri
c12(["bd:serviceParam"]):::iri
c14(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c3([https://pt.wikipedia.org/]):::iri
f0[["not "]]
subgraph f0e0["Exists Clause"]
e0v1 --"schema:about"--> e0v2
e0v1 --"schema:isPartOf"--> e0c3
e0v1("?article2"):::projected
e0v2("?item"):::projected
e0c3([https://pt.wikipedia.org/]):::iri
end
f0--EXISTS--> f0e0
f0 --> v1
f0 --> c1
f0 --> v2
f0 --> c2
f0 --> c3
v1 --"schema:about"--> v2
v1 --"schema:isPartOf"--> c3
v2 --"wdt:P31"--> c5
v3 --"schema:about"--> v2
v3 --"schema:isPartOf"--> c6
v3 --"schema:name"--> v4
v2 --"wdt:P50"--> v5
v5 --"wdt:P21"--> c10
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c12 --"wikibase:language"--> c14
end