Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>How many triples on those RDF files ? I have tested <code>rdflib</code> and it won't scale much further than few tens of ktriples - if you are lucky. No way it really performs well for files with millions of triples.</p> <p>The best parser out there is <code>rapper</code> from <a href="http://librdf.org/" rel="noreferrer">Redland Libraries</a>. My first advice is to not use <code>RDF/XML</code> and go for <code>ntriples</code>. Ntriples is a lighter format than RDF/XML. You can transform from RDF/XML to ntriples using <code>rapper</code>:</p> <p><code>rapper -i rdfxml -o ntriples YOUR_FILE.rdf &gt; YOUR_FILE.ntriples</code></p> <p>If you like Python you can use the <a href="http://librdf.org/bindings/" rel="noreferrer">Redland python bindings</a>:</p> <pre><code>import RDF parser=RDF.Parser(name="ntriples") model=RDF.Model() stream=parser.parse_into_model(model,"file://file_path", "http://your_base_uri.org") for triple in model: print triple.subject, triple.predicate, triple.object </code></pre> <p>I have parsed fairly big files (couple of gigabyes) with redland libraries with no problem.</p> <p>Eventually if you are handling big datasets you might need to assert your data into a scalable triple store, the one I normally use is <a href="http://4store.org" rel="noreferrer">4store</a>. 4store internally uses redland to parse RDF files. In the long term, I think, going for a scalable triple store is what you'll have to do. And with it you'll be able to use <a href="http://www.w3.org/TR/rdf-sparql-query/" rel="noreferrer">SPARQL</a> to query your data and <a href="http://www.w3.org/TR/sparql11-update/" rel="noreferrer">SPARQL/Update</a> to insert and delete triples.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

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