query-a68511c34129a7dca7c3db7df168a923
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 ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?line_segments ?sides_hasfacetpolytope ?vertexes ?sides_partsoftheclass
WHERE
{
?item wdt:P279* wd:Q37555.
OPTIONAL { ?item p:P1678 [ps:P1678 wd:Q166154; pq:P1114 ?line_segments] . }
OPTIONAL { ?item p:P1312 [ps:P1312 wd:Q26382; pq:P1114 ?sides_hasfacetpolytope] . }
OPTIONAL { ?item p:P2670 [ps:P2670 wd:Q26401; pq:P1114 ?vertexes] . }
OPTIONAL { ?item p:P2670 [ps:P2670 wd:Q26382; pq:P1114 ?sides_partsoftheclass] . }
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
} order by desc(?vertexes) desc(?sides_partsoftheclass)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?item"):::projected
v4("?line_segments"):::projected
v5("?sides_hasfacetpolytope"):::projected
v2("?sides_partsoftheclass"):::projected
v1("?vertexes"):::projected
a1((" "))
a2((" "))
a3((" "))
a4((" "))
c11(["wd:Q26401"]):::iri
c4(["wd:Q166154"]):::iri
c2(["wd:Q37555"]):::iri
c14(["bd:serviceParam"]):::iri
c8(["wd:Q26382"]):::iri
c16(["#91;AUTO_LANGUAGE#93;,en"]):::literal
v3 --"p:direct/P279"--> c2
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
a1 -."p:statement/P1678".-> c4
a1 --"p:qualifier/P1114"--> v4
v3 --"p:P1678"--> a1
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
a2 -."p:statement/P1312".-> c8
a2 --"p:qualifier/P1114"--> v5
v3 --"p:P1312"--> a2
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
a3 -."p:statement/P2670".-> c11
a3 --"p:qualifier/P1114"--> v1
v3 --"p:P2670"--> a3
end
subgraph optional3["(optional)"]
style optional3 fill:#bbf,stroke-dasharray: 5 5;
a4 -."p:statement/P2670".-> c8
a4 --"p:qualifier/P1114"--> v2
v3 --"p:P2670"--> a4
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c14 --"wikibase:language"--> c16
end