query-252cccd3cbbe9438bdcedeef766adca5
All instances of the class "prime link" (Q77347966), recursively
SELECT DISTINCT ?item ?itemLabel ?itemDescription ?crossing_number ?gauss_notation ?knotatlas_id ?alexanderbriggs
WHERE {
?item wdt:P31 ?sub0 .
?sub0 (wdt:P279)* wd:Q77347966 .
OPTIONAL{?item wdt:P11035 ?crossing_number .} # Crossing number
OPTIONAL{?item wdt:P11034 ?gauss_notation .} # Gauss notation
OPTIONAL{?item wdt:P8426 ?knotatlas_id .} # Knot Atlas ID
OPTIONAL{?item wdt:P6432 ?alexanderbriggs .} # Alexander-Briggs notation
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 "prime link" (Q77347966), recursively
SELECT DISTINCT ?item ?itemLabel ?itemDescription ?crossing_number ?gauss_notation ?knotatlas_id ?alexanderbriggs
WHERE {
?item wdt:P31 ?sub0 .
?sub0 (wdt:P279)* wd:Q77347966 .
OPTIONAL{?item wdt:P11035 ?crossing_number .} # Crossing number
OPTIONAL{?item wdt:P11034 ?gauss_notation .} # Gauss notation
OPTIONAL{?item wdt:P8426 ?knotatlas_id .} # Knot Atlas ID
OPTIONAL{?item wdt:P6432 ?alexanderbriggs .} # Alexander-Briggs notation
SERVICE wikibase:label { bd:serviceParam wikibase:language "en,en" }
}
ORDER BY ASC(?item)
LIMIT 10000
Query found at
- https://www.wikidata.org/wiki/Wikidata_talk:SPARQL_query_service
- https://www.wikidata.org/wiki/Wikidata_talk:SPARQL_query_service/Wikidata_Query_Help
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v6("?alexanderbriggs"):::projected
v3("?crossing_number"):::projected
v4("?gauss_notation"):::projected
v1("?item"):::projected
v5("?knotatlas_id"):::projected
v2("?sub0")
c9(["bd:serviceParam"]):::iri
c3(["wd:Q77347966"]):::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: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:P8426".-> v5
end
subgraph optional3["(optional)"]
style optional3 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P6432".-> v6
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c9 --"wikibase:language"--> c11
end