oxigraph icon indicating copy to clipboard operation
oxigraph copied to clipboard

Publish oxigraph::io as seperate crate.

Open damooo opened this issue 2 years ago • 3 comments

oxigraph::io provides structs and functions for parsing from, serializing to, syntaxes that can be determined at runtime. This functionality is general, and is most helpful in many cases, and a seperate crate without rocksdb dependencies will help.

damooo avatar Apr 24 '22 08:04 damooo

Hi! Thank you for investigating Oxigraph. There is the Rio library that provides plain Turtle and RDF/XML parsers in Rust. It's what Oxigraph relies on. However the API of Rio is not as nice as the one in Oxigraph and does not uses the data structures defined by Oxigraph and oxrdf. I plan to improve it in the future (in a few months/years, definitely not short-term).

Tpt avatar Apr 24 '22 19:04 Tpt

oxigraph::io seems can be used as layer over oxrdf and rio. Though rio provides specialized parsers, ability to specify syntx at runtime, and parsing/serializing into run-time specified syntax, which can be determined from mimetype/file-extn, etc.. are some fundamental operations dealing with io of rdf.

If it is feasible some oxio, crate factored out from oxigraph::io, helps great.

damooo avatar Apr 25 '22 08:04 damooo

If it is feasible some oxio, crate factored out from oxigraph::io, helps great.

Sure! Let's add this to the next relase TODO.

Tpt avatar Apr 25 '22 09:04 Tpt

Done in 0.4.0-alpha.1: https://crates.io/crates/oxrdfio

Tpt avatar Jan 03 '24 14:01 Tpt