Skip to content

Commit

Permalink
assume unknown extension means RDF/XML instead of aborting
Browse files Browse the repository at this point in the history
  • Loading branch information
KonradHoeffner committed Jul 8, 2024
1 parent 4a2886e commit a72661c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

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

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "rickview"
version = "0.3.2"
version = "0.3.3"
edition = "2021"
license = "MIT"
keywords = ["rdf", "semantic-web", "linked-data"]
Expand Down
4 changes: 2 additions & 2 deletions src/rdf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,8 @@ pub fn graph() -> &'static GraphEnum {
std::process::exit(1);
}
None => {
error!("No extension in parse knowledge base file {filename}. Aborting.");
std::process::exit(1);
warn!("{filename} has no extension: assuming RDF/XML.");
Ok(xml::parser::parse_bufread(br).collect_triples().expect("Error parsing {filename} as RDF/XML."))
}
};
triples
Expand Down

0 comments on commit a72661c

Please sign in to comment.