https://github.com/albincorreya/simplebrainz_graphviz
Sample visualisation of virtuoso sparql-json response from simplebrainz REST service using d3.js forcegraph
https://github.com/albincorreya/simplebrainz_graphviz
d3-forcegraph d3-visualization javascript knowledge-graph simplebrainz sparql-endpoints sparql-query-builder virtuoso
Last synced: 3 months ago
JSON representation
Sample visualisation of virtuoso sparql-json response from simplebrainz REST service using d3.js forcegraph
- Host: GitHub
- URL: https://github.com/albincorreya/simplebrainz_graphviz
- Owner: albincorreya
- Created: 2017-08-04T01:17:18.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-12-19T13:29:49.000Z (over 7 years ago)
- Last Synced: 2025-01-31T10:15:01.968Z (5 months ago)
- Topics: d3-forcegraph, d3-visualization, javascript, knowledge-graph, simplebrainz, sparql-endpoints, sparql-query-builder, virtuoso
- Language: JavaScript
- Homepage:
- Size: 169 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# simplebrainz_demo_front-end-viz
(under development)
[Simplebrainz](https://github.com/andrebola/simplebrainz) is a music knowledge base created from [musicbrainz](https://musicbrainz.org/). This is a demo project of visualizing sparql query response from the simplebrainz REST service.
## Visualization examples
D3-forcegraph viz for the artist [NIck Murphy](https://musicbrainz.org/artist/0fb267e2-7175-4537-a9f2-e835ecc81ff7)

D3-forcegraph viz for the release-group [Division Bell](https://beta.musicbrainz.org/release-group/90878b63-f639-3c8b-aefb-190bdf3d1790) by Pink Floyd

## Response-layout examples
Virtuoso service response format "application/sparql-results+json"
``` json
{ "head": { "link": [], "vars": [] },
"results": { "distinct": false, "ordered": true, "bindings":
[
{ "s": { "type": "typed-literal", "datatype": "", "value": "" }},
{ "p": { "type": "typed-literal", "datatype": "", "value": "" }},
{ "o": { "type": "typed-literal", "datatype": "", "value": "" }}
]
}
}```
d3 forcegraph format
``` json
{
"nodes":[
{"mbid": "0fb267e2-7175-4537-a9f2-e835ecc81ff7", "uri": "http://musicbrainz.org/artist/0fb267e2-7175-4537-a9f2-e835ecc81ff7", "type": "artist", "name": "Nick Murphy"},
{"mbid": "13", "uri": "http://musicbrainz.org/area/13", "type": "area", "name": "Australia"}
],
"links":[
{"source":0,"target":1,"value":1,"type":"based_near"},
{"source":1,"target":2,"value":0,"type":"_members"}
]
}
```