Skip to content

Commit

Permalink
new sophia_term crate
Browse files Browse the repository at this point in the history
it provides ArcTerm and RcTerm,
as well as corresponding stashes to avoid re-allocating the same string multiple times
  • Loading branch information
pchampin committed Aug 1, 2023
1 parent 2aa4c4c commit 2670d75
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ members = [
"resource",
"rio",
"sophia",
"term",
"turtle",
#"jsonld",
"xml",
Expand All @@ -31,6 +32,7 @@ sophia_iri = { version = "0.8.0-alpha.1", path = "./iri" }
sophia_isomorphism = { version = "0.8.0-alpha.1", path = "./isomorphism" }
sophia_resource = { version = "0.8.0-alpha.1", path = "./resource" }
sophia_rio = { version = "0.8.0-alpha.1", path = "./rio" }
sophia_term = { version = "0.8.0-alpha.1", path = "./term" }
sophia_turtle = { version = "0.8.0-alpha.1", path = "./turtle" }
sophia_xml = { version = "0.8.0-alpha.1", path = "./xml" }

Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ It comprises the following crates:
- parsers and serializers
* [`sophia_iri`] provides functions, types and traits for validating and resolving IRIs.
* [`sophia_inmem`] defines in-memory implementations of the `Graph` and `Dataset` traits from `sophia_api`.
* [`sophia_term`] defines various implementations of the `Term` trait from `sophia_api`.
* [`sophia_turtle`] provides parsers and serializers for the Turtle-family of concrete syntaxes.
* [`sophia_xml`] provides parsers and serializers for RDF/XML.
* [`sophia_jsonld`] provides preliminary support for JSON-LD.
Expand Down Expand Up @@ -73,11 +74,11 @@ An outdated comparison of Sophia with other RDF libraries is still available
[`sophia_iri`]: https://crates.io/crates/sophia_iri
[`sophia_term`]: https://crates.io/crates/sophia_term
[`sophia_inmem`]: https://crates.io/crates/sophia_inmem
[`sophia_term`]: https://crates.io/crates/sophia_inmem
[`sophia_turtle`]: https://crates.io/crates/sophia_turtle
[`sophia_xml`]: https://crates.io/crates/sophia_xml
[`sophia_jsonld`]: https://crates.io/crates/sophia_jsonld
[`sophia_c14n`]: https://crates.io/crates/sophia_c14n
[`sophia_indexed`]: https://crates.io/crates/sophia_indexed
[`sophia_rio`]: https://crates.io/crates/sophia_rio
[`sophia`]: https://crates.io/crates/sophia
[CECILL-B]: https://cecill.info/licences/Licence_CeCILL-B_V1-en.html
Expand Down
1 change: 1 addition & 0 deletions sophia/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,5 @@ sophia_isomorphism.workspace = true
sophia_resource.workspace = true
sophia_rio.workspace = true
sophia_turtle.workspace = true
sophia_term.workspace = true
sophia_xml = { workspace = true, optional = true }
4 changes: 4 additions & 0 deletions sophia/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,13 @@
//! that make the Sophia toolkit:
//!
//! * [`api`]
//! * [`c14n`]
//! * [`inmem`]
//! * [`iri`]
//! * [`isomorphism`]
//! * [`resource`]
//! * [`turtle`]
//! * [`term`]
//! * [`xml`] (with the `xml` feature enabled)
//!
//! # Getting Started
Expand Down Expand Up @@ -57,6 +60,7 @@ pub use sophia_inmem as inmem;
pub use sophia_iri as iri;
pub use sophia_isomorphism as isomorphism;
pub use sophia_resource as resource;
pub use sophia_term as term;
pub use sophia_turtle as turtle;
#[cfg(feature = "xml")]
pub use sophia_xml as xml;

0 comments on commit 2670d75

Please sign in to comment.