query-8c2e67b9058012e53970ede6626d0475
Physical propertiesRelated problem is that I can't build a table of physical properties for all simple substances as they are mixed with elements:
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 schema: <http://schema.org/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT distinct * {
{
SELECT * {
?item wdt:P279|wdt:P31 wd:Q2512777 .
} LIMIT 1000
}
OPTIONAL {?item wdt:P2101 ?melt.}
OPTIONAL {?item wdt:P2102 ?gas.}
OPTIONAL {{?item wdt:P1086 ?number.} UNION {?item wdt:P527/wdt:P1086 ?number.}}
SERVICE wikibase:label {
bd:serviceParam wikibase:language "ru" .
?item rdfs:label ?label . ?item schema:description ?description
}
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v6("?description"):::projected
v3("?gas"):::projected
v1("?item"):::projected
v5("?label"):::projected
v2("?melt"):::projected
v4("?number"):::projected
a1((" "))
c2(["wd:Q2512777"]):::iri
c11(["ru"]):::literal
c9(["bd:serviceParam"]):::iri
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P31"--> c2
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P279"--> c2
end
union0r <== or ==> union0l
end
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P2101".-> v2
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P2102".-> v3
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
subgraph union1[" Union "]
subgraph union1l[" "]
style union1l fill:#abf,stroke-dasharray: 3 3;
v1 -."wdt:P527".-> a1
a1 --"wdt:P1086"--> v4
end
subgraph union1r[" "]
style union1r fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P1086"--> v4
end
union1r <== or ==> union1l
end
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c9 --"wikibase:language"--> c11
v1 --"rdfs:label"--> v5
v1 --"schema:description"--> v6
end