query-01147225e0b1012b10559ada6c7e031d
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 ?page_title ?article ?commons_category ?librarything_author_id WHERE {
?item wdt:P31 wd:Q43229.
?article schema:about ?item;
schema:isPartOf <https://eo.wikipedia.org/>;
schema:name ?page_title.
OPTIONAL{ ?item wdt:P373 ?commons_category. }
OPTIONAL{ ?item wdt:P7400 ?librarything_author_id. }
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;
v2("?article"):::projected
v4("?commons_category"):::projected
v1("?item"):::projected
v5("?librarything_author_id"):::projected
v3("?page_title"):::projected
c10(["bd:serviceParam"]):::iri
c12(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c5([https://eo.wikipedia.org/]):::iri
c2(["wd:Q43229"]):::iri
v1 --"wdt:P31"--> c2
v2 --"schema:about"--> v1
v2 --"schema:isPartOf"--> c5
v2 --"schema:name"--> v3
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P373".-> v4
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P7400".-> v5
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c10 --"wikibase:language"--> c12
end