[−][src]Crate rdftk_io
Traits for reading/writing Statement
s and Graph
s as well as implementations for common file
formats.
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 | application/n-triples | W3C | W | |
nq | application/n-quads | W3C | W | |
n3 | text/rdf+n3 | W3C Submission | ||
turtle | text/turtle | W3C | W | |
xml | RDF/XML | application/rdf+xml | W3C | |
json | JSON-LD | application/ld+json | W3C | |
TBD | text/html | W3C | ||
TBD | RDF/JSON | application/rdf+json | 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
.
Example
TBD
Modules
dot | Provides for writing a |
nq | Provides for writing a |
nt | Provides for writing a |
Traits
GraphReader | Read an entire |
GraphWriter | Write all |
NamedGraphWriter | Write all |
Functions
write_graph_to_string | A convenience function that will return a String containing the output of the |
write_named_graph_to_string | A convenience function that will return a String containing the output of the |