query-465062378074d05b025b37d9496cd362
using wdqs as a service in a sparql queryIn an instance of Fuseki, I'm trying the following query
Use at
- https://query.wikidata.org/sparql
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
prefix wikibase: <http://wikiba.se/ontology#>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT *
where
{
bind(<http://www.wikidata.org/entity/Q640447> as ?wikidata)
service <https://query.wikidata.org/bigdata/namespace/wdq/sparql> {
select ?p ?propLabel ?o ?oLabel
where {
?wikidata ?p ?o .
?prop wikibase:directClaim ?p .
SERVICE wikibase:label {
bd:serviceParam wikibase:language "en,fr" .
}
}
}
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?o"):::projected
v2("?p"):::projected
v4("?prop")
v1("?wikidata"):::projected
c4(["bd:serviceParam"]):::iri
c6(["en,fr"]):::literal
bind0[/"http://www.wikidata.org/entity/Q640447"/]
bind0 --as--o v1
subgraph s1["https://query.wikidata.org/bigdata/namespace/wdq/sparql"]
style s1 stroke-width:4px;
v1 -->v2--> v3
v4 --"wikibase:directClaim"--> v2
subgraph s2["http://wikiba.se/ontology#label"]
style s2 stroke-width:4px;
c4 --"wikibase:language"--> c6
end
end