query-b1f1a39db2a4da0316defcdd3562fd34
Property-based neighbourhood graph 10:07, 6 April 2021 (UTC)) talk (Yupik for This Month in Glam. Thanks for any and all help! -WMFI's outreach article and shows how the returned items are connected, but so far all I've gotten are disconnected items randomly floating around a screen. I'd like it to illustrate P9318I've been trying to create a neighbourhood graph that takes the items that use the property : Something like that ? Yupik @
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#>
#defaultView:Graph
select distinct ?item ?item2 ?itemLabel
{
?item wdt:P9318 [] .
?item2 wdt:P9318 [] filter (?item != ?item2)
?item ?prop ?item2 .
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("?item2"):::projected
v3("?prop")
a1((" "))
a2((" "))
c3(["bd:serviceParam"]):::iri
c5(["#91;AUTO_LANGUAGE#93;,en"]):::literal
f0[["?item != ?item2"]]
f0 --> v1
f0 --> v2
v1 --"wdt:P9318"--> a1
v2 --"wdt:P9318"--> a2
v1 -->v3--> v2
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c3 --"wikibase:language"--> c5
end