Skip to content

Commit

Permalink
bump tortank
Browse files Browse the repository at this point in the history
  • Loading branch information
nbittich committed Dec 1, 2024
1 parent cc5ae6c commit 7629688
Show file tree
Hide file tree
Showing 9 changed files with 17 additions and 18 deletions.
6 changes: 3 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "rdf-tortank"
version = "0.3.2"
version = "0.4.0"
description = "Node addon for Turtle/N3 parser"
authors = ["Nordine Bittich"]
license = "MIT"
Expand All @@ -10,12 +10,11 @@ repository = "https://github.com/nbittich/tortank-js"
[lib]
crate-type = ["cdylib"]

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
serde = "1.0.215"
serde_json = "1.0.133"
tortank = "0.23.0"
tortank = "0.24.1"

[dependencies.neon]
version = "1.0.0"
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "rdf-tortank",
"version": "0.3.2",
"version": "0.4.0",
"description": "Turtle/N3 parser",
"main": "index.node",
"scripts": {
Expand Down
4 changes: 2 additions & 2 deletions pkg-gnu/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pkg-gnu/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "rdf-tortank-glibc",
"version": "0.3.2",
"version": "0.4.0",
"description": "Turtle/N3 parser",
"main": "index.node",
"scripts": {},
Expand Down
4 changes: 2 additions & 2 deletions pkg-musl/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pkg-musl/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "rdf-tortank-linux-musl",
"version": "0.3.2",
"version": "0.4.0",
"description": "Turtle/N3 parser",
"main": "index.node",
"scripts": {},
Expand Down
6 changes: 3 additions & 3 deletions src/obj.rs
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ fn rdf_json_triple_to_doc(
) -> Result<TurtleDoc<'_>, TurtleDocError> {
let stmts = Statement::from_rdf_json_triples(triples)?;
let mut doc = TurtleDoc::try_from(stmts)?;
doc.add_prefixes(prefixes);
doc.add_prefixes(prefixes)?;
Ok(doc)
}

Expand Down Expand Up @@ -545,7 +545,7 @@ fn make_doc<'a, 'b>(
}
_ => {
let mut doc = TurtleDoc::from_file(path, well_known_prefix, buf)?;
doc.add_prefixes(prefixes_map);
doc.add_prefixes(prefixes_map)?;
Ok(DocType::TurtleDoc(doc))
}
}
Expand All @@ -556,7 +556,7 @@ fn make_doc<'a, 'b>(
buf.push_str(&data);
match TurtleDoc::try_from((buf.as_str(), well_known_prefix)) {
Ok(mut doc) => {
doc.add_prefixes(prefixes_map);
doc.add_prefixes(prefixes_map)?;
Ok(DocType::TurtleDoc(doc))
}
Err(e) => match RdfJsonTriple::from_json(buf.as_str()) {
Expand Down

0 comments on commit 7629688

Please sign in to comment.