Re: Sample application/tool implementing json-ld

Hi Pradeep,

I have experimented with visualization. I've done .ttl files, but
json-ld can be done manually by a simple hack if you're up to
javascript. Otherwise, I'm working on modifying my code
(https://github.com/bshambaugh/node-arc-d3/) to support json-ld.

The not formalized manual way would be:

In the gist below, replace the doc object with whatever json-ld you
have. Paste nquads into a file  something.nq. Run the following code
in node and post the output into something.nq in the /data directory .

https://gist.github.com/bshambaugh/7488b14106fdd2ac4a08f49c47979d46

Sources:  https://github.com/digitalbazaar/jsonld.js ,
http://json-ld.org/

Clone node-arc-d3 to a web folder. Replace the variable url with the
path to your .nq file.
https://github.com/bshambaugh/node-arc-d3/blob/master/js/d3sketch.js

var url = 'http://localhost/node-arc-d3/data/test.nq';


Alternatively try running: http://rdf-translator.appspot.com/ ,
http://www.easyrdf.org/converter to convert it into a format useable
with https://www.w3.org/2001/sw/wiki/GephiSemanticWebImportPlugin .
Download Gephi at gephi.org before using the plugin. Also consider:
https://www.w3.org/2001/sw/wiki/Category:Visualizer . Or try different
serializations from the rdf converter and translator until something
works.

Best,
-Brent Shambaugh

GitHub: https://github.com/bshambaugh
Website: http://bshambaugh.org/
LinkedIN: https://www.linkedin.com/in/brent-shambaugh-9b91259
Skype: brent.shambaugh
Twitter: https://twitter.com/Brent_Shambaugh


On Tue, Mar 21, 2017 at 1:17 AM, Pradeep Jain <pjain00@yahoo.com> wrote:
> Hi,
>
> Is there any sample application/tool which is functional along with
> visualization using json-ld ?
>
> Regards,
> Pradeep Jain
>
>
>
>

Received on Wednesday, 22 March 2017 17:54:46 UTC