Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

In order to use the parser, you can just add the dependency as a normal maven project. Later on, you can use the Rio API when providing the RDFFormat.RDFA.

Performance

There is a benchmark on the test folder of the project. We compare librdfa-rdf4j with Semargl. We can compare the performance in terms of number of triples. Here are some conclusions that we have observed:

  • For a small number of triples (<1000), 
  • For a mid size number of triples (), 
  • For a big number of triples (>20000),  there is a mid size number of triples librdfa-rdf4j is faster than Semargl. 

In general, librdfa is faster than Semargl, but there is some slowness because of the implementation of Rio. Rio loads the dataset into an InputStream before parsing it. However, librdfa parses the triples as they arrive. As a result of this, librdfa-rdf4j first needs to load the dataset into an InputStream and later send the data the C buffer through the Java-C bridge.

Building from source

Install

...