Skip to content

Commit

Permalink
Version 0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Tpt committed Jul 28, 2019
1 parent 0d2762c commit 42ca0a1
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 9 deletions.
6 changes: 5 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,8 @@ members = [
"api",
"turtle",
"testsuite"
]
]

[patch.crates-io]
rio_api = { path = "api" }
rio_turtle = { path = "turtle" }
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
Rio
===


[![Build Status](https://travis-ci.org/Tpt/rio.svg?branch=master)](https://travis-ci.org/Tpt/rio)
[![Latest Version](https://img.shields.io/crates/v/rio_api.svg)](https://crates.io/crates/rio_api)
[![Latest Version](https://img.shields.io/crates/v/rio_turtle.svg)](https://crates.io/crates/rio_turtle)

Rio is a library aiming at providing conformant and fast parsers for RDF related file formats.

It currently provides [N-Triples](https://www.w3.org/TR/n-triples/) and [Turtle](https://www.w3.org/TR/turtle/) parsers.
Expand Down
2 changes: 1 addition & 1 deletion api/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "rio_api"
version = "0.0.1"
version = "0.1.0"
authors = ["Tpt <[email protected]>"]
license = "Apache-2.0"
readme = "../README.md"
Expand Down
2 changes: 1 addition & 1 deletion api/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//! This crate provides basic interfaces and data structures for building RDF parsers.
//!
//! It is currently implemented by the `rio_turtle` crate that implements [N-Triples](https://www.w3.org/TR/n-triples/) and [Turtle](https://www.w3.org/TR/turtle/) parsers.
//! It is currently used by the `rio_turtle` crate that implements [N-Triples](https://www.w3.org/TR/n-triples/) and [Turtle](https://www.w3.org/TR/turtle/) parsers.
pub mod model;
pub mod parser;
4 changes: 2 additions & 2 deletions testsuite/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ edition = "2018"
publish = false

[dependencies]
rio_api = {path = "../api"}
rio_turtle = {path = "../turtle"}
rio_api = "0.1"
rio_turtle = "0.1"
chrono = "0.4"
permutohedron = "0.2"

Expand Down
4 changes: 2 additions & 2 deletions turtle/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "rio_turtle"
version = "0.0.1"
version = "0.1.0"
authors = ["Tpt <[email protected]>"]
license = "Apache-2.0"
readme = "../README.md"
Expand All @@ -17,4 +17,4 @@ is-it-maintained-issue-resolution = { repository = "Tpt/rio" }
is-it-maintained-open-issues = { repository = "Tpt/rio" }

[dependencies]
rio_api = {path = "../api"}
rio_api = "0.1"
2 changes: 1 addition & 1 deletion turtle/src/iri.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ pub fn resolve_relative_iri(
target_buffer.extend_from_slice(
&base_iri[base_positions.scheme_end..base_positions.authority_end],
);
// if (R.path == "") then TODO: is correct?
// if (R.path == "") then
if reference_positions.path_end == reference_positions.authority_end {
// T.path = Base.path;
target_buffer.extend_from_slice(
Expand Down
1 change: 0 additions & 1 deletion turtle/src/shared.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ fn parse_iriref(
return Ok(());
}
b'\0'..=b' ' | b'<' | b'"' | b'{' | b'}' | b'|' | b'^' | b'`' => {
//TODO: added ' ' to make tests pass
read.unexpected_char_error()?
}
b'\\' => {
Expand Down

0 comments on commit 42ca0a1

Please sign in to comment.