Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>The closest thing you can use in RDF databases are named graphs. In a named graph, you can put a set of RDF triples. This set of triples can be asserted from one or many RDF documents depending on your needs. Lets say you want one named graph per RDF document. You could name the graph with a URI that reflects the file location a URL or a IRI. For instance ...</p> <pre><code>http://yourdomain/files/rdf_file_1 </code></pre> <p>or</p> <pre><code>file:///home/myrdffiles/file1 </code></pre> <p>4store is a quad store. Quad stores support named graphs and 4store is specially design to handle this. </p> <p>With 4store you can run the following command to assert triples in a Named Graph:</p> <pre><code>curl -T your_file.rdf http://your_4store_database/data/http://yourdomain/files/rdf_file_1 </code></pre> <p>After <code>/data/</code> you can put the GRAPH identifier (IRI) where the triples are going to be asserted. See <a href="http://4store.org/trac/wiki/SparqlServer" rel="nofollow">4store sparql server</a> and <a href="http://4store.org/trac/wiki/ClientLibraries" rel="nofollow">4store Client Libs</a> for more details.</p> <p>Once you have your data asserted, with SPARQL you can also use the named graph to direct your query to that graph:</p> <pre><code>SELECT * WHERE { GRAPH &lt;http://youdomain/files/rdf_file_1&gt; { .... some triple patterns in here .... } } </code></pre> <p>Moreover, 4store also supports JSON so you can retrieve the SPARQL resultset directly in JSON. </p> <p>If you decide to use 4store you'll find valuable support here: <a href="http://4store.org/contact" rel="nofollow">http://4store.org/contact</a></p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload