pub struct Shacl2ShEx { /* private fields */ }
Implementations§
Source§impl Shacl2ShEx
impl Shacl2ShEx
pub fn new(config: &Shacl2ShExConfig) -> Shacl2ShEx
pub fn current_shex(&self) -> &ShExSchema
pub fn convert(&mut self, schema: &ShaclSchema) -> Result<(), Shacl2ShExError>
pub fn convert_shape( &self, shape: &NodeShape, schema: &ShaclSchema, ) -> Result<(ShapeExprLabel, ShapeExpr, bool), Shacl2ShExError>
pub fn rdfnode2label( &self, node: &RDFNode, ) -> Result<ShapeExprLabel, Shacl2ShExError>
pub fn node_shape2shape_expr( &self, shape: &NodeShape, schema: &ShaclSchema, ) -> Result<ShapeExpr, Shacl2ShExError>
Sourcepub fn convert_target_decls(
&self,
targets: &Vec<Target>,
schema: &ShaclSchema,
) -> Result<Option<TripleExpr>, Shacl2ShExError>
pub fn convert_target_decls( &self, targets: &Vec<Target>, schema: &ShaclSchema, ) -> Result<Option<TripleExpr>, Shacl2ShExError>
Collect targetClass declarations and add a rdf:type constraint for each
pub fn target2value_set_value( &self, target: &Target, _schema: &ShaclSchema, ) -> Result<Option<ValueSetValue>, Shacl2ShExError>
pub fn merge_triple_exprs( &self, te1: &TripleExpr, te2: &TripleExpr, ) -> TripleExpr
pub fn merge_expressions( e1: &Vec<TripleExprWrapper>, e2: &Vec<TripleExprWrapper>, ) -> Vec<TripleExprWrapper>
pub fn property_shape2triple_constraint( &self, shape: &PropertyShape, ) -> Result<TripleExpr, Shacl2ShExError>
pub fn components2shape_expr( &self, components: &Vec<Component>, ) -> Result<Option<ShapeExpr>, Shacl2ShExError>
pub fn create_class_constraint( &self, cls: &RDFNode, ) -> Result<ShapeExpr, Shacl2ShExError>
pub fn component2shape_expr( &self, component: &Component, ) -> Result<ShapeExpr, Shacl2ShExError>
pub fn shacl_path2predicate( &self, path: &SHACLPath, ) -> Result<IriRef, Shacl2ShExError>
Auto Trait Implementations§
impl Freeze for Shacl2ShEx
impl RefUnwindSafe for Shacl2ShEx
impl Send for Shacl2ShEx
impl Sync for Shacl2ShEx
impl Unpin for Shacl2ShEx
impl UnwindSafe for Shacl2ShEx
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more