From a72661c672039aa8ed899b091da55689776281d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Konrad=20H=C3=B6ffner?= Date: Mon, 8 Jul 2024 15:42:15 +0200 Subject: [PATCH] assume unknown extension means RDF/XML instead of aborting --- Cargo.lock | 2 +- Cargo.toml | 2 +- src/rdf.rs | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index cc30234..ee5c88c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1428,7 +1428,7 @@ checksum = "cbc95d56eb1865f69288945759cc0879d60ee68168dce676730275804ad2b276" [[package]] name = "rickview" -version = "0.3.2" +version = "0.3.3" dependencies = [ "actix-web", "bytesize", diff --git a/Cargo.toml b/Cargo.toml index bc54a34..dd1423a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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"] diff --git a/src/rdf.rs b/src/rdf.rs index 5a33574..00ae91a 100644 --- a/src/rdf.rs +++ b/src/rdf.rs @@ -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