AngryLoki / wikidata-graph-builder

Visualize Wikidata items using d3.js
https://angryloki.github.io/wikidata-graph-builder/
MIT License
191 stars 27 forks source link

Load a TTL or RDF file? #11

Closed lapidus closed 7 months ago

lapidus commented 7 months ago

I really love this tool. Using it extensively to understand Wikidata class trees, such as this one:

image

I have a local RDF file that I'd like to use this app for. Is there any way I can tweak it to read a local RDF file like this?

:Disease rdfs:subClassOf:Thing . :DiseaseGeneAssociation rdfs:subClassOf :Disease .

Any pointers would be really helpful!

Thanks!

lapidus commented 7 months ago

Hehe, was able to solve it by injecting my TTL in a format similar to lines here:

let lines = await queryService.get(query, {signal: abortSignal});