query-da2091537e9368c0118fa45ec8a11610
All instances of the class "Knot" (Q1188853), recursively, removing duplicates
SELECT DISTINCT ?item ?itemDescription ?itemLabel ?gauss_notation ?crossing_number ?knotinfo_id ?knotatlas_id ?alexanderbriggs ?dt_name
WHERE {
?item wdt:P31 ?sub0 .
?sub0 (wdt:P279)* wd:Q1188853 .
OPTIONAL{?item wdt:P11035 ?crossing_number .} # Crossing number
OPTIONAL{?item wdt:P11034 ?gauss_notation .} # Gauss notation
OPTIONAL{?item wdt:P8427 ?knotinfo_id .} # Knotinfo ID
OPTIONAL{?item wdt:P8426 ?knotatlas_id .} # Knot Atlas ID
OPTIONAL{?item wdt:P6432 ?alexanderbriggs .} # Alexander-Briggs notation
OPTIONAL{?item wdt:P8416 ?dt_name .} # Dowker-Thistlethwaite name
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 ?gauss_notation ?crossing_number ?knotinfo_id ?knotatlas_id ?alexanderbriggs ?dt_name
WHERE {
?item wdt:P31 ?sub0 .
?sub0 (wdt:P279)* wd:Q1188853 .
OPTIONAL{?item wdt:P11035 ?crossing_number .} # Crossing number
OPTIONAL{?item wdt:P11034 ?gauss_notation .} # Gauss notation
OPTIONAL{?item wdt:P8427 ?knotinfo_id .} # Knotinfo ID
OPTIONAL{?item wdt:P8426 ?knotatlas_id .} # Knot Atlas ID
OPTIONAL{?item wdt:P6432 ?alexanderbriggs .} # Alexander-Briggs notation
OPTIONAL{?item wdt:P8416 ?dt_name .} # Dowker-Thistlethwaite name
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;
v7("?alexanderbriggs"):::projected
v3("?crossing_number"):::projected
v8("?dt_name"):::projected
v4("?gauss_notation"):::projected
v1("?item"):::projected
v6("?knotatlas_id"):::projected
v5("?knotinfo_id"):::projected
v2("?sub0")
c13(["en,en"]):::literal
c11(["bd:serviceParam"]):::iri
c3(["wd:Q1188853"]):::iri
v1 --"wdt:P31"--> v2
v2 --"wdt:P279"--> c3
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P11035".-> v3
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P11034".-> v4
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P8427".-> v5
end
subgraph optional3["(optional)"]
style optional3 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P8426".-> v6
end
subgraph optional4["(optional)"]
style optional4 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P6432".-> v7
end
subgraph optional5["(optional)"]
style optional5 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P8416".-> v8
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c11 --"wikibase:language"--> c13
end