Re:Ask HN: If you've used a graph database, would you use it...
by lolive on Friday March 09, 2018 @08:40AM
(#16551632)
At the moment, I use N3.js for its N3.parse() function. It builds a graph of Javascript objects in memory from a RDF string, just like a JSON.parse() builds a tree of Javascript objects in memory from a JSON string.
Note: I have never understood the need for a DB on the client-side.
Re:Ask HN: If you've used a graph database, would you use it...
by WorldMaker on Friday March 09, 2018 @10:31AM
(#16552372)
In the case of a Twine-like system to make offline capable games: everything is just HTML/CSS/JS, it often gets packed into a single HTML file, and there is no server side at all. A client-side DB would be important in that case so that you can query/update game state.
In another thread GUN is mentioned, at that may be the closest client-side DB to what I think I'm looking for, if I ever get around to that side project.
Re:Ask HN: If you've used a graph database, would you use it...
by nonodename on Friday March 09, 2018 @08:24AM
(#16551518)
This is probably the closest: http://linkeddatafragments.org/
For as important as RDF has been for the web, it feels increasingly less "web native" today as most efforts still seem to be highly Java-focused and Browsers mostly don't run Java anymore.
(I ask because a silly project idea I have some tiny amount of notes for is something of a Twine competitor. I realized that while the language ideas I'm exploring don't look like SPARQL or other graph languages, there is a bit of an overlap conceptually under the hood and an RDF store might make sense as a bootstrap tech, but brief searches didn't turn up anything useful.)