query-6f6d4500eefe0a7d2c6b6849bfeb26cf
TODO
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 ?item ?itemLabel ?property ?propnameLabel ?value ?valueLabel # %i is a list of US tennis player items
where
{
{ select ?item where
{
?item wdt:P106 wd:Q10833314 . # they're a tennis player
?item wdt:P27 wd:Q30 . # with US citizenship
}
} # we seed the subquery with this list
?item ?property ?value . # find all properties & values
?propname wikibase:directClaim ?property . # constrain to directClaims
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;
v1("?item"):::projected
v2("?property"):::projected
v4("?propname")
v3("?value"):::projected
c2(["wd:Q10833314"]):::iri
c7(["bd:serviceParam"]):::iri
c4(["wd:Q30"]):::iri
c9(["#91;AUTO_LANGUAGE#93;,en"]):::literal
v1 --"wdt:P106"--> c2
v1 --"wdt:P27"--> c4
v1 -->v2--> v3
v4 --"wikibase:directClaim"--> v2
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c7 --"wikibase:language"--> c9
end