query-f568217ee5f3f6640432a9b9213d5dfc
All instances of the class "Knot" (Q1188853), recursively, removing duplicates
SELECT DISTINCT ?item ?itemDescription ?itemLabel ?alexanderbriggs ?alexanderpoly ?conwaypoly ?jonespoly
WHERE {
?item wdt:P31 ?sub0 .
?sub0 (wdt:P279)* wd:Q1188853 .
OPTIONAL{?item wdt:P6432 ?alexanderbriggs .} # Alexander-Briggs notation
OPTIONAL{?item wdt:P5350 ?alexanderpoly .} # Alexander polynomial
OPTIONAL{?item wdt:P5351 ?conwaypoly .} # Conway polynomial
OPTIONAL{?item wdt:P5352 ?jonespoly .} # Jones polynomial
SERVICE wikibase:label { bd:serviceParam wikibase:language "en,en" }
}
ORDER BY ASC(?item) LIMIT 10000
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 bd: <http://www.bigdata.com/rdf#>
# All instances of the class "Knot" (Q1188853), recursively, removing duplicates
SELECT DISTINCT ?item ?itemDescription ?itemLabel ?alexanderbriggs ?alexanderpoly ?conwaypoly ?jonespoly
WHERE {
?item wdt:P31 ?sub0 .
?sub0 (wdt:P279)* wd:Q1188853 .
OPTIONAL{?item wdt:P6432 ?alexanderbriggs .} # Alexander-Briggs notation
OPTIONAL{?item wdt:P5350 ?alexanderpoly .} # Alexander polynomial
OPTIONAL{?item wdt:P5351 ?conwaypoly .} # Conway polynomial
OPTIONAL{?item wdt:P5352 ?jonespoly .} # Jones polynomial
SERVICE wikibase:label { bd:serviceParam wikibase:language "en,en" }
}
ORDER BY ASC(?item)
LIMIT 10000
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?alexanderbriggs"):::projected
v4("?alexanderpoly"):::projected
v5("?conwaypoly"):::projected
v1("?item"):::projected
v6("?jonespoly"):::projected
v2("?sub0")
c9(["bd:serviceParam"]):::iri
c3(["wd:Q1188853"]):::iri
c11(["en,en"]):::literal
v1 --"wdt:P31"--> v2
v2 --"wdt:P279"--> c3
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P6432".-> v3
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P5350".-> v4
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P5351".-> v5
end
subgraph optional3["(optional)"]
style optional3 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P5352".-> v6
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c9 --"wikibase:language"--> c11
end