Skip to content

Commit

Permalink
Merge pull request #235 from rudof-project/ajuvercr/master
Browse files Browse the repository at this point in the history
minor fixes to the WASM merge
  • Loading branch information
angelip2303 authored Jan 21, 2025
2 parents f6b160a + 78211a0 commit 59ba8ab
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 8 deletions.
6 changes: 3 additions & 3 deletions rudof_lib/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ pub mod rudof;
pub mod rudof_config;
pub mod rudof_error;
pub mod shapes_graph_source;
pub use oxrdf;
pub use rudof::*;
pub use rudof_config::*;
pub use rudof_error::*;
pub use shacl_ast;
pub use shacl_validation;
pub use shapes_graph_source::*;
pub use srdf;
pub use shacl_validation;
pub use shacl_ast;
pub use oxrdf;
4 changes: 1 addition & 3 deletions rudof_lib/src/rudof.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,7 @@ pub use shapemap::{QueryShapeMap, ResultShapeMap, ShapeMapFormat, ValidationStat
pub use shex_compact::{ShExFormatter, ShapeMapParser, ShapemapFormatter as ShapeMapFormatter};
pub use shex_validation::Validator as ShExValidator;
pub use shex_validation::{ShExFormat, ValidatorConfig};
pub use srdf::{
QuerySolution, QuerySolutions, RDFFormat, ReaderMode, SRDFSparql, VarName,
};
pub use srdf::{QuerySolution, QuerySolutions, RDFFormat, ReaderMode, SRDFSparql, VarName};
pub type Result<T> = result::Result<T, RudofError>;
pub use shacl_ast::ast::Schema as ShaclSchema;
pub use shapes_converter::UmlGenerationMode;
Expand Down
2 changes: 1 addition & 1 deletion shacl_testsuite/data-shapes
4 changes: 4 additions & 0 deletions shacl_validation/src/focus_nodes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ impl<S: SRDFBasic> FocusNodes<S> {
Self(HashSet::from_iter(iter))
}

pub fn is_empty(&self) -> bool {
self.0.is_empty()
}

pub fn len(&self) -> usize {
self.0.len()
}
Expand Down
2 changes: 1 addition & 1 deletion srdf/src/shacl_path.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ impl SHACLPath {
pub fn pred(&self) -> Option<&IriS> {
match self {
SHACLPath::Predicate { pred } => Some(pred),
_ => None
_ => None,
}
}
}
Expand Down

0 comments on commit 59ba8ab

Please sign in to comment.