RDFtk: IO

io This crate provides traits for reading and writing Statements and Graphs as well as implementations of these for common representations.

crates.io docs.rs

The following are some well-known formats (see Wikipedia for a description of different serializations), support is indicated in the final column with an R for read support and W for write support. One additional module, dot allows for the creation of GraphViz dot files for a visualization of a graph's structure.

| Module | Name | MIME Type | Specification | R/W | |----------|---------------|-------------------------------------------------|---------------|-----| | nt | N-Triples | application/n-triples | W3C | W | | nq | N-Quads | application/n-quads | W3C | W | | n3 | N3 | text/rdf+n3 | W3C Submission | | | turtle | Turtle | text/turtle | W3C | W | | json | RDF/JSON | application/rdf+json | W3C | | | json_ld | JSON-LD | application/ld+json | W3C | | | xml | RDF/XML | application/rdf+xml | W3C | | | TBD | RDFa | text/html | W3C | | | TBD | TriG | application/trig | W3C | | | TBD | HDT | | W3C Submission | | | TBD | BinaryRDF | application/x-binary-rdf | Community | |

Each module will also provide public constants NAME, FILE_EXTENSION, and MIME_TYPE.

Changes

Version 0.1.6

Version 0.1.5

Version 0.1.4

Version 0.1.2

Version 0.1.1

Version 0.1.0

TODO

  1. The core; N-Triples, N-Quads, N3, and Turtle need read and write support.
  2. The extended core; RDF/XML, JSON-LD, and RDFa need read and write support.
  3. The rest; RDF/JSON, TriG, HDT, and BinaryRDF will be implemended as needed.

RDF RDFa