query-e268d5a8e483cd8074838db7eec9e357
title: P10467 find some value
SELECT distinct ?item ?itemLabel (sample(?www) AS ?www)
WHERE
{
?item wdt:P10467 ?value .
OPTIONAL{?item wdt:P856 ?www} # need to just show when it has a value
FILTER (wikibase:isSomeValue(?value))
SERVICE wikibase:label { bd:serviceParam wikibase:language "en,sv" } } group by ?item ?itemLabel order by ?itemLabel
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#title: P10467 find some value
SELECT distinct ?item ?itemLabel (sample(?www) AS ?www)
WHERE
{
?item wdt:P10467 ?value .
OPTIONAL{?item wdt:P856 ?www} # need to just show when it has a value
FILTER (wikibase:isSomeValue(?value))
SERVICE wikibase:label { bd:serviceParam wikibase:language "en,sv" }
} group by ?item ?itemLabel
order by ?itemLabel
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?item"):::projected
v1("?itemLabel"):::projected
v2("?value")
v5("?www"):::projected
c4(["bd:serviceParam"]):::iri
c6(["en,sv"]):::literal
f0[["http://wikiba.se/ontology#isSomeValue(?value)"]]
f0 --> v2
v3 --"wdt:P10467"--> v2
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v3 -."wdt:P856".-> v5
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c4 --"wikibase:language"--> c6
end
bind2[/"sample(?www)"/]
v5 --o bind2
bind2 --as--o v5