sparql-visualizer
sparql-visualizer copied to clipboard
License and additional functionality
Dear Mr. Rasmussen, would you mind choosing a license for your repo? I'd like to use it for our repo.
Furthermore, we are interested in doing the following:
We have Ontologies here: https://github.com/nie-ine/Ontologies-shared/tree/master/nie-ontologies_shared
We'd like to enter a form field to your viewer where we can paste the link above. The Viewer should visualise all or chosen ontologies from our ontology github repo.
In addition, we'd like to search through the visualized ontologies to find certain classes or properties.
We can implement this functionality in your repo, we'd like to add it as an app to our repo afterwards: https://github.com/nie-ine/NIE-OS
Lastly, it would be convenient to have your repo as an npm module, this would ease the process for us to include it in our repo.
Let me know your thoughts.
Kind regards, Jan
Hi Jan,
As you can see in package.json it has been published under an MIT license.
It would be much welcome with such functionality. There is already the ability to add the BOT ontology when using the Stardog triplestore in the back, so perhaps you can find inspiration in how this was implemented. Also, it would be great to extend the functionality such that other SPARQL endpoints could be used (Fuseki, GraphDB etc.).
Per default the app uses the HyLAR reasoner on the client and this is a bit buggy. Perhaps you have an idea on how we can improve this?
Best Mads
Hi Mads, I'm Jan's colleague in the NIE-project, modelling ontologies for Humanities, and hopefully soon taking it further using machine reasoning. I've good and extensive experience in biomedicine with the EYE reasoner, implementing First Order Logic (coherent logic): https://github.com/josd/eye (old site with some extras: http://eulersharp.sourceforge.net/). There are a lot of built-ins, e.g. the ones of T. Berners-Lee, formalized in: http://www.w3.org/2000/10/swap/log http://www.w3.org/2000/10/swap/math The developer of EYE, Jos De Roo, extended these with e.g. http://eulersharp.sourceforge.net/2003/03swap/log-rules. Feel free to check it out. Kind regards, Hans
Hi Hans, I have been working a bit with the EYE reasoner. It would also be nice to support it in SPARQL-visualizer. Maybe even with dashed lines for inferred knowledge. The purpose of SPARQL-visualizer is communication so anything that can enhance this aspect is much welcome. Unfortunately, I do not have much time to update it these days, so I would be very happy if you could take over a bit. Best Mads
Dear Mads, I rewrote it a little bit for our purposes: https://github.com/nie-ine/sparql-visualizer/tree/2019-08 and we use it as an app now: http://test-nieos.nie-ine.ch/home
(click on the lighthouse, scroll down or search for "sparql", click on the sparql - visualiser - row.)
The advantage is that you can open multiple instances of it. Independent applications will be able to communicate via the url / localstorage, but we are not there yet.
I also implemented that you can paste a raw github link of a random ontologie on github (ex. https://raw.githubusercontent.com/nie-ine/Ontologies-shared/master/nie-ontologies_shared/text-ontology-knora.ttl) and visualize it.
Please let me know what you think, we really like your tool!
Hi Jan,
I am happy that you find it useful. Using an external dataset is actually possible in the current version also. You have to click menu -> settings -> File-based. Not so user-friendly perhaps. In general, the app has been developed along with my research in Linked Building Data and extended as I needed functionality.
The purpose was that you can model a small dataset (TBox+ABox) and show how it is queried in order to extract knowledge. It would be really great to build a backend so we could store the SPARQL "stories" for people to share. Maybe even with a login so they could be kept private.
Hi Mads, can you give me a small example what excactly you'd like to store in a database? Maybe I can use it as a use case for inseri which can actually store data for the apps in a key-value store, including login for a user and publish opportunities.
If you tell me what should be saved I might have enough time to implement it.
Thanks and best regards, Jan
That would be awesome. It is possible to add tabs and save them in a JSON file in this format. Basically you just specify it with the file query parameter and then the app uses this instead.
The simple thing would be to just set up a mongo that stores documents in that format.
Dear Mads, thank you very much, this is the information I needed, a user can already store own json files in inseri, all I need to do is sync the url of the iframe with the actual url (I think)
I'll get back to you when I know more, https://github.com/nie-ine/NIE-OS/issues/305
Thanks and best regards, Jan
Sorry, I'm doing sth wrong, I tried to use the json this way: https://madsholten.github.io/sparql-visualizer/?file=https:%2F%2Fmadsholten.github.io%2Fsparql-visualizer%2Fassets%2Ftemplate.json
... and it's not updating...
what am I missing?
thank you so much and best regards, jan
I can see the updated result. Compare with default on https://madsholten.github.io/sparql-visualizer/
Sometimes there might be some issues with the browser cache I think. In that case, try to delete it (e.g. ctrl+shift+delete in chrome => delete cached images and files) and refresh your browser
Would be good if we could find the reason for this annoying bug :)
@MadsHolten : maybe good to add the license in the way Github recommends it: https://help.github.com/en/articles/adding-a-license-to-a-repository. Shouldn't be too much work :)