query-295431e9d2cee015d88740b0088ba8c8
Doubts about mobile phonesWhen reviewing the mobile phones data I have noticed some inconsistencies. With this query:
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#>
SELECT DISTINCT ?phone ?phoneLabel ?instanceOf ?created ?published
WHERE {
{
# Mobile phone
?phone wdt:P279 wd:Q17517.
}
UNION
{
# Smartphone
?phone wdt:P279 wd:Q22645.
}
UNION
{
# Phablet
?phone wdt:P279 wd:Q521097.
}
UNION
{
# Basic cell phone
?phone wdt:P279 wd:Q965424.
}
UNION
{
# Modular smartphone
?phone wdt:P279 wd:Q18611337.
}
UNION
{
# Dual SIM phone
?phone wdt:P279 wd:Q1262537.
}
UNION
{
# Dual SIM smartphone
?phone wdt:P279 wd:Q91702726.
}
?phone wdt:P31 ?instanceOf.
OPTIONAL { ?phone wdt:P577 ?published . }
OPTIONAL { ?phone wdt:P571 ?created . }
# Uncomment the following to show items that are not an instance of a manufactured object (or that are instances of other things)
#FILTER(?instanceOf != wd:Q10929058).
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en" }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?created"):::projected
v2("?instanceOf"):::projected
v1("?phone"):::projected
v3("?published"):::projected
c5(["wd:Q965424"]):::iri
c3(["wd:Q22645"]):::iri
c8(["wd:Q91702726"]):::iri
c6(["wd:Q18611337"]):::iri
c2(["wd:Q17517"]):::iri
c13(["bd:serviceParam"]):::iri
c7(["wd:Q1262537"]):::iri
c15(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c4(["wd:Q521097"]):::iri
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
subgraph union1[" Union "]
subgraph union1l[" "]
style union1l fill:#abf,stroke-dasharray: 3 3;
subgraph union2[" Union "]
subgraph union2l[" "]
style union2l fill:#abf,stroke-dasharray: 3 3;
subgraph union3[" Union "]
subgraph union3l[" "]
style union3l fill:#abf,stroke-dasharray: 3 3;
subgraph union4[" Union "]
subgraph union4l[" "]
style union4l fill:#abf,stroke-dasharray: 3 3;
subgraph union5[" Union "]
subgraph union5l[" "]
style union5l fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P279"--> c8
end
subgraph union5r[" "]
style union5r fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P279"--> c7
end
union5r <== or ==> union5l
end
end
subgraph union4r[" "]
style union4r fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P279"--> c6
end
union4r <== or ==> union4l
end
end
subgraph union3r[" "]
style union3r fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P279"--> c5
end
union3r <== or ==> union3l
end
end
subgraph union2r[" "]
style union2r fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P279"--> c4
end
union2r <== or ==> union2l
end
end
subgraph union1r[" "]
style union1r fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P279"--> c3
end
union1r <== or ==> union1l
end
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P279"--> c2
end
union0r <== or ==> union0l
end
v1 --"wdt:P31"--> v2
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P577".-> v3
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P571".-> v4
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c13 --"wikibase:language"--> c15
end