query-8c012354aa82a2a0d978072fc37038db
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
select ?item ?es ?pt ?ro ?cs ?pl ?ru ?ar ?fa ?hi ?zh ?ja ?ms where
{
?item wdt:P31/wdt:P279* wd:Q181175 . # The item is an instance or subclass of a scalar physical quantity
optional {?item rdfs:label ?es . filter(lang(?es)="es") } # get the label in whatever language - Spanish, in this case
optional {?item rdfs:label ?pt . filter(lang(?pt)="pt") }
optional {?item rdfs:label ?ro . filter(lang(?ro)="ro") }
optional {?item rdfs:label ?cs . filter(lang(?cs)="cs") }
optional {?item rdfs:label ?pl . filter(lang(?pl)="pl") }
optional {?item rdfs:label ?ru . filter(lang(?ru)="ru") }
optional {?item rdfs:label ?ar . filter(lang(?ar)="ar") }
optional {?item rdfs:label ?fa . filter(lang(?fa)="fa") }
optional {?item rdfs:label ?hi . filter(lang(?hi)="hi") }
optional {?item rdfs:label ?zh . filter(lang(?zh)="zh") }
optional {?item rdfs:label ?ja . filter(lang(?ja)="ja") }
optional {?item rdfs:label ?ms . filter(lang(?ms)="ms") }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v6("?ar"):::projected
v9("?cs"):::projected
v12("?es"):::projected
v5("?fa"):::projected
v4("?hi"):::projected
v13("?item"):::projected
v2("?ja"):::projected
v1("?ms"):::projected
v8("?pl"):::projected
v11("?pt"):::projected
v10("?ro"):::projected
v7("?ru"):::projected
v3("?zh"):::projected
a1((" "))
c15(["wd:Q181175"]):::iri
v13 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c15
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v13 -."rdfs:label".-> v12
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v13 -."rdfs:label".-> v11
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v13 -."rdfs:label".-> v10
end
subgraph optional3["(optional)"]
style optional3 fill:#bbf,stroke-dasharray: 5 5;
v13 -."rdfs:label".-> v9
end
subgraph optional4["(optional)"]
style optional4 fill:#bbf,stroke-dasharray: 5 5;
v13 -."rdfs:label".-> v8
end
subgraph optional5["(optional)"]
style optional5 fill:#bbf,stroke-dasharray: 5 5;
v13 -."rdfs:label".-> v7
end
subgraph optional6["(optional)"]
style optional6 fill:#bbf,stroke-dasharray: 5 5;
v13 -."rdfs:label".-> v6
end
subgraph optional7["(optional)"]
style optional7 fill:#bbf,stroke-dasharray: 5 5;
v13 -."rdfs:label".-> v5
end
subgraph optional8["(optional)"]
style optional8 fill:#bbf,stroke-dasharray: 5 5;
v13 -."rdfs:label".-> v4
end
subgraph optional9["(optional)"]
style optional9 fill:#bbf,stroke-dasharray: 5 5;
v13 -."rdfs:label".-> v3
end
subgraph optional10["(optional)"]
style optional10 fill:#bbf,stroke-dasharray: 5 5;
v13 -."rdfs:label".-> v2
end
subgraph optional11["(optional)"]
style optional11 fill:#bbf,stroke-dasharray: 5 5;
v13 -."rdfs:label".-> v1
end