It would be pretty cool if you could set edge labels in the Graph view. As far as vis is concerned, all we need to do is to add a label property to the edge object – the tricky part is figuring out which variable to choose for the label…
Description
Description
Details
Details
Subject | Repo | Branch | Lines +/- | |
---|---|---|---|---|
Support setting edge labels in graph view | wikidata/query/gui | master | +7 -2 |
Related Objects
Related Objects
- Mentioned In
- rWDQG821c61b26de0: Support setting edge labels in graph view
rWDQG799aed5188cc: Support setting edge labels in graph view
rWDQGeeed0ecb2802: Support setting edge labels in graph view
rWDQG31a047765d7f: Support setting edge labels in graph view - Mentioned Here
- T154937: Graph result view should allow arrow coloring
Event Timeline
Comment Actions
Change 361056 had a related patch set uploaded (by Lucas Werkmeister (WMDE); owner: Lucas Werkmeister (WMDE)):
[wikidata/query/gui@master] Support setting edge labels in graph view
Comment Actions
Example query, showing the connections between some small selection of items:
#defaultView:Graph SELECT ?item1 ?item1Label ?image ?item2 ?item2Label ?edgeLabel WHERE { VALUES ?item1 { wd:Q42 wd:Q350 wd:Q21 wd:Q84 wd:Q1860 wd:Q145 } VALUES ?item2 { wd:Q42 wd:Q350 wd:Q21 wd:Q84 wd:Q1860 wd:Q145 } ?item1 ?wdt ?item2. ?property a wikibase:Property; wikibase:directClaim ?wdt. OPTIONAL { ?item1 wdt:P18 ?image. } SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". ?item1 rdfs:label ?item1Label. ?item2 rdfs:label ?item2Label. ?property rdfs:label ?edgeLabel. } }
Comment Actions
Change 361056 merged by jenkins-bot:
[wikidata/query/gui@master] Support setting edge labels in graph view