https://github.com/oxigraph/rio
RDF parsers library
https://github.com/oxigraph/rio
n-quads n-triples parser rdf rdf-xml rust trig turtle
Last synced: about 2 months ago
JSON representation
RDF parsers library
- Host: GitHub
- URL: https://github.com/oxigraph/rio
- Owner: oxigraph
- License: apache-2.0
- Created: 2019-07-25T19:18:32.000Z (almost 6 years ago)
- Default Branch: main
- Last Pushed: 2024-12-30T03:37:41.000Z (5 months ago)
- Last Synced: 2025-04-02T00:07:32.462Z (about 2 months ago)
- Topics: n-quads, n-triples, parser, rdf, rdf-xml, rust, trig, turtle
- Language: Rust
- Homepage:
- Size: 702 KB
- Stars: 87
- Watchers: 6
- Forks: 10
- Open Issues: 16
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
- awesome-ccamel - oxigraph/rio - RDF parsers library (Rust)
- awesome-starred - oxigraph/rio - RDF parsers library (rust)
README
Rio
===[](https://github.com/oxigraph/rio/actions)
Warning: Rio is deprecated.
Please use instead [oxrdfio](https://docs.rs/oxrdfio)
or the more specific crates [oxttl](https://docs.rs/oxttl) and [oxrdfxml](https://docs.rs/oxrdfxml).Rio is a low level library which provides conformant and fast parsers and formatters for RDF related file formats.
These libraries are going to be replaced by the [oxttl](https://crates.io/crates/oxttl) and [oxrdfxml](https://crates.io/crates/oxrdfxml) libraries.
It currently provides [N-Triples](https://docs.rs/rio_turtle/latest/rio_turtle/struct.NTriplesParser.html), [N-Quads](https://docs.rs/rio_turtle/latest/rio_turtle/struct.NQuadsParser.html), [Turtle](https://docs.rs/rio_turtle/latest/rio_turtle/struct.TurtleParser.html), [TriG](https://docs.rs/rio_turtle/latest/rio_turtle/struct.TrigParser.html) and [RDF/XML](https://docs.rs/rio_xml/latest/rio_xml/struct.RdfXmlParser.html) parsers and formatters.
It is split into multiple crates:
* `rio_api` provides common traits and data structures to be used in Rio parsers (`Triple`, `TriplesParser`, `Iri`...).
[](https://crates.io/crates/rio_api)
[](https://docs.rs/rio_api)
* `rio_turtle` provides conformant streaming parsers and formatters for [Turtle](https://www.w3.org/TR/turtle/), [TriG](https://www.w3.org/TR/trig/), [N-Triples](https://www.w3.org/TR/n-triples/) and [N-Quads](https://www.w3.org/TR/n-quads/).
[RDF-star](https://w3c.github.io/rdf-star/cg-spec/) syntaxes are also supported: [Turtle-star](https://w3c.github.io/rdf-star/cg-spec/#turtle-star), [TriG-star](https://w3c.github.io/rdf-star/cg-spec/#trig-star), [N-Triples-star](https://w3c.github.io/rdf-star/cg-spec/#n-triples-star) and [N-Quads-star](https://w3c.github.io/rdf-star/cg-spec/#n-quads-star).
[](https://crates.io/crates/rio_turtle)
[](https://docs.rs/rio_turtle)
* `rio_xml` provides a conformant streaming parser and a formatter for [RDF/XML](https://www.w3.org/TR/rdf-syntax-grammar/).
[](https://crates.io/crates/rio_xml)
[](https://docs.rs/rio_xml)There is also the `rio_testsuite` crate that is used for testing Rio parsers against the [W3C RDF tests](http://w3c.github.io/rdf-tests/) to ensure their conformance.
It provides both an executable for building implementation reports and integration test to quickly ensure that the parsers stay conformant.
It is not designed to be used outside of Rio.## License
Copyright 2019-2021 The Rio developers.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.