brainverse
brainverse copied to clipboard
Create a single .ttl file for saving experiment plans
Currently, for each new experiment plan submitted, a new turtle file is created. Each plan is represented as a RDF graph. We decided to serialize all plans to a single file and loads/query the qraph as required.
Different experiment plans are represented as different named graphs. The way to serialize all named graphs to a single file is to use TRIG format. In Brainverse, we are using rdfstore-js . This does not support TRIG format to load a serialized file to the rdf store. There are also discussion around this in the rdfstore-js repo in the issue: https://github.com/antoniogarrote/rdfstore-js/issues/86. The way around this is to save experiment plans in different turtle filse and load as different named graphs to the store. Though from the README, it appears to support query against multiple named graphs, but I am getting errors or no results. This also seems to be a known issue reported and resolved (https://github.com/antoniogarrote/rdfstore-js/issues/119) still there is error. To query against named graphs, is to get a list of registered graph names and query for a specific graph.