Skip to content

Commit

Permalink
Simple commit to force new version
Browse files Browse the repository at this point in the history
  • Loading branch information
labra committed Oct 29, 2024
1 parent 6876e64 commit f9a77de
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 38 deletions.
38 changes: 0 additions & 38 deletions rudof_cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<ShaclSchema> {
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<ShaclSchema> {
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,
Expand Down
1 change: 1 addition & 0 deletions rudof_lib/src/rudof.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Check warning on line 9 in rudof_lib/src/rudof.rs

View workflow job for this annotation

GitHub Actions / Check

unused import: `shapes_converter::shex_to_sparql::SelectQuery`

Check failure on line 9 in rudof_lib/src/rudof.rs

View workflow job for this annotation

GitHub Actions / Clippy

unused import: `shapes_converter::shex_to_sparql::SelectQuery`

Check warning on line 9 in rudof_lib/src/rudof.rs

View workflow job for this annotation

GitHub Actions / Test Suite

unused import: `shapes_converter::shex_to_sparql::SelectQuery`
use shapes_converter::{ShEx2Uml, Tap2ShEx};
use shex_ast::compiled::compiled_schema::CompiledSchema;
use shex_compact::ShExParser;
Expand Down

0 comments on commit f9a77de

Please sign in to comment.