From f9a77dea30d1a1f38aeecae39c7f366891d0d880 Mon Sep 17 00:00:00 2001 From: Jose Emilio Labra Gayo Date: Tue, 29 Oct 2024 21:16:36 +0100 Subject: [PATCH] Simple commit to force new version --- rudof_cli/src/main.rs | 38 -------------------------------------- rudof_lib/src/rudof.rs | 1 + 2 files changed, 1 insertion(+), 38 deletions(-) diff --git a/rudof_cli/src/main.rs b/rudof_cli/src/main.rs index c05497c6..52ca3ef8 100755 --- a/rudof_cli/src/main.rs +++ b/rudof_cli/src/main.rs @@ -1433,44 +1433,6 @@ fn parse_shex_schema_rudof( Ok(()) } -/*fn parse_shacl_rudof( - rudof: &mut Rudof, - input: &InputSpec, - shapes_format: &CliShaclFormat, - reader_mode: &RDFReaderMode, - config: &RdfDataConfig, -) -> Result { - let reader = input.open_read(Some(&shapes_format.mime_type()))?; - let base = config.base.as_ref().map(|i| i.as_str()); - let shacl_format = shacl_format_convert(shapes_format)?; - let reader_mode = reader_mode_convert(*reader_mode); - // rudof.read_shacl(reader, base, &shacl_format, &reader_mode)?; - rudof.merge_data_from_reader(reader, , base, reader_mode)?; - if let Some(shacl_schema) = rudof.shacl_schema() { - Ok(shacl_schema.clone()) - } else { - bail!("Internal error: SHACL schema was read but it not returned by rudof"); - } -}*/ - -/* -fn parse_shacl( - input: &InputSpec, - shapes_format: &ShaclFormat, - reader_mode: &RDFReaderMode, - config: &RdfDataConfig, -) -> Result { - match shapes_format { - ShaclFormat::Internal => bail!("Cannot read internal ShEx format yet"), - _ => { - let data_format = shacl_format_to_data_format(shapes_format)?; - let rdf = parse_data(&vec![input.clone()], &data_format, reader_mode, config)?; - let schema = ShaclParser::new(rdf).parse()?; - Ok(schema) - } - } -} */ - fn parse_dctap(rudof: &mut Rudof, input: &InputSpec, format: &DCTapFormat) -> Result<()> { let dctap_format = match format { DCTapFormat::CSV => DCTAPFormat::CSV, diff --git a/rudof_lib/src/rudof.rs b/rudof_lib/src/rudof.rs index 2894a473..8f5b083a 100644 --- a/rudof_lib/src/rudof.rs +++ b/rudof_lib/src/rudof.rs @@ -6,6 +6,7 @@ use shacl_validation::shacl_processor::{GraphValidation, ShaclProcessor}; use shacl_validation::store::graph::Graph; use shapemap::{NodeSelector, ShapeSelector}; +use shapes_converter::shex_to_sparql::SelectQuery; use shapes_converter::{ShEx2Uml, Tap2ShEx}; use shex_ast::compiled::compiled_schema::CompiledSchema; use shex_compact::ShExParser;