shacl_validation/constraints/core/property_pair/
less_than.rs1use crate::constraints::constraint_error::ConstraintError;
2use crate::constraints::NativeValidator;
3use crate::constraints::SparqlValidator;
4use crate::validation_report::result::ValidationResult;
5use crate::value_nodes::ValueNodes;
6use shacl_ast::compiled::component::CompiledComponent;
7use shacl_ast::compiled::component::LessThan;
8use shacl_ast::compiled::shape::CompiledShape;
9use srdf::Query;
10use srdf::Sparql;
11use std::fmt::Debug;
12
13impl<S: Query + Debug + 'static> NativeValidator<S> for LessThan<S> {
14 fn validate_native(
15 &self,
16 _component: &CompiledComponent<S>,
17 _shape: &CompiledShape<S>,
18 _store: &S,
19 _value_nodes: &ValueNodes<S>,
20 _source_shape: Option<&CompiledShape<S>>,
21 ) -> Result<Vec<ValidationResult>, ConstraintError> {
22 Err(ConstraintError::NotImplemented("LessThan".to_string()))
23 }
24}
25
26impl<S: Sparql + Debug + 'static> SparqlValidator<S> for LessThan<S> {
27 fn validate_sparql(
28 &self,
29 _component: &CompiledComponent<S>,
30 _shape: &CompiledShape<S>,
31 _store: &S,
32 _value_nodes: &ValueNodes<S>,
33 _source_shape: Option<&CompiledShape<S>>,
34 ) -> Result<Vec<ValidationResult>, ConstraintError> {
35 Err(ConstraintError::NotImplemented("LessThan".to_string()))
36 }
37}