Skip to content

Sample visualisation of virtuoso sparql-json response from simplebrainz REST service using d3.js forcegraph

Notifications You must be signed in to change notification settings

albincorreya/simplebrainz_graphviz

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

96 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

simplebrainz_demo_front-end-viz

(under development)

Simplebrainz is a music knowledge base created from musicbrainz. 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

alt text

D3-forcegraph viz for the release-group Division Bell by Pink Floyd

alt text

Response-layout examples

Virtuoso service response format "application/sparql-results+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

{
	"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"}
	] 
}

About

Sample visualisation of virtuoso sparql-json response from simplebrainz REST service using d3.js forcegraph

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published