jmvanel / semantic_forms

Form generators leveraging semantic web standards (RDF(S), OWL, SPARQL , ...
Other
75 stars 23 forks source link

Tree view from SPARQL result #106

Open jmvanel opened 7 years ago

jmvanel commented 7 years ago

The SPARQL service /sparql?query= can be called by Javascript.

Then a tree view with hyperlinks to each URI in the tree can be generated, hopefully using a good tree view UI component.

Use cases:

For a really satisfying user experience, the problem is that 2 kinds of URI's will be present in the result:

Somehow these two kinds should be unified, to simplify all clients.

Typical query:

SELECT ?O
WHERE {
  <http://jmvanel.free.fr/jmv.rdf#me> ?P ?O .
FILTER( isIRI(?O) )
}
jmvanel commented 7 years ago

In need of a recommandation for a JavaScript tree view library .

brunosez commented 7 years ago

GoJS Tree View http://gojs.net/latest/samples/index.html

but not open source :-))

https://www.jstree.com/ but jquery plugin

Septentrion commented 7 years ago

Cytoscape, une bibliothèque assez sophistiquée, mais qui a l'air intéressante (et maintenue :o) : http://js.cytoscape.org/#notation/architecture-amp-api

jmvanel commented 7 years ago

jstree looks good (and anyway we allready use JQuery-UI), The doc. is very terse, but I guess JQuery experts will understand :) .

We have to calculate the tree from the graph. I would be nice to use an RDF library (RDF-ext) . Maybe in Scala.js ?