query-824aec4df3030aef4d5bf3cb29af5d19
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 rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?i ?l ?y{
?i wdt:P21 wd:Q6581072;
wdt:P31 wd:Q5 ;
rdfs:label ?l.
Filter(lang(?l) = 'ja')
?a schema:about ?i ;
schema:isPartOf <https://ja.wikipedia.org/> .
OPTIONAL { ?i wdt:P27 ?n } .
FILTER(!BOUND(?n))
OPTIONAL { ?i wdt:P1814 ?y } .
SERVICE wikibase:label { bd:serviceParam wikibase:language "ja" }
}limit 1000
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?a")
v3("?i"):::projected
v2("?l"):::projected
v1("?n")
v5("?y"):::projected
c3(["wd:Q6581072"]):::iri
c13(["bd:serviceParam"]):::iri
c1(["ja"]):::literal
c5(["wd:Q5"]):::iri
c9([https://ja.wikipedia.org/]):::iri
f0[["not bound(?n)"]]
f0 --> v1
f1[["?l = 'ja'"]]
f1 --> v2
v3 --"wdt:P21"--> c3
v3 --"wdt:P31"--> c5
v3 --"rdfs:label"--> v2
v4 --"schema:about"--> v3
v4 --"schema:isPartOf"--> c9
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v3 -."wdt:P27".-> v1
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v3 -."wdt:P1814".-> v5
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c13 --"wikibase:language"--> c1
end