query-546de95d22fbb7d1e0ba150bcd08d317
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?prop (str(?prop) as ?prop_str) ?related ?relatedLabel WHERE {
wd:Q42 ?prop ?related.
filter (CONTAINS(STR(?prop),'/prop/direct/')=true).
SERVICE wikibase:label { bd:serviceParam wikibase:language 'en' }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?prop"):::projected
v3("?prop_str")
v2("?related"):::projected
c5(["bd:serviceParam"]):::iri
c3(["wd:Q42"]):::iri
c7(["en"]):::literal
f0[["contains(str(?prop),'/prop/direct/') = 'true^^xsd:boolean'"]]
f0 --> v1
c3 -->v1--> v2
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c5 --"wikibase:language"--> c7
end
bind1[/"str(?prop)"/]
v1 --o bind1
bind1 --as--o v3