Class ValidationResult
java.lang.Object
org.eclipse.rdf4j.sail.shacl.results.ValidationResult
Deprecated.
The ValidationResult is deprecated because it is planned moved to a new package to allow it to be used
with remote validation results.
The ValidationResult represents the results from a SHACL validation in an easy-to-use Java API.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Resource[]
Deprecated.private ValidationResult
Deprecated.private final Value
Deprecated.private Resource
Deprecated.private static final org.slf4j.Logger
Deprecated.private Path
Deprecated.private Value
Deprecated.private final Severity
Deprecated.private final Shape
Deprecated.private final Resource[]
Deprecated.private final ConstraintComponent
Deprecated.private final SourceConstraintComponent
Deprecated.Deprecated. -
Constructor Summary
ConstructorsConstructorDescriptionValidationResult
(Value focusNode, Value value, Shape shape, ConstraintComponent sourceConstraint, Severity severity, ConstraintComponent.Scope scope, Resource[] dataGraphs, Resource[] shapesGraphs) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Deprecated.contextsToSet
(Resource[] context) Deprecated.boolean
Deprecated.protected Resource[]
Deprecated.Deprecated.Deprecated.private Value
Deprecated.final Resource
getId()
Deprecated.private Path
getPath()
Deprecated.protected Severity
Deprecated.protected Shape
getShape()
Deprecated.protected Resource[]
Deprecated.protected ConstraintComponent
Deprecated.Deprecated.getValue()
Deprecated.int
hashCode()
Deprecated.void
setDetail
(ValidationResult detail) Deprecated.void
setPathIri
(Value path) Deprecated.toString()
Deprecated.
-
Field Details
-
logger
private static final org.slf4j.Logger loggerDeprecated. -
id
Deprecated. -
value
Deprecated. -
shape
Deprecated. -
sourceConstraintComponent
Deprecated. -
sourceConstraint
Deprecated. -
severity
Deprecated. -
focusNode
Deprecated. -
dataGraphs
Deprecated. -
shapesGraphs
Deprecated. -
path
Deprecated. -
detail
Deprecated. -
pathIri
Deprecated.
-
-
Constructor Details
-
ValidationResult
public ValidationResult(Value focusNode, Value value, Shape shape, ConstraintComponent sourceConstraint, Severity severity, ConstraintComponent.Scope scope, Resource[] dataGraphs, Resource[] shapesGraphs) Deprecated.
-
-
Method Details
-
getDetail
Deprecated.- Returns:
- ValidationResult with more information as to what failed. Usually for nested Shapes in eg. sh:or.
-
setDetail
Deprecated. -
getDetails
Deprecated.- Returns:
- all ValidationResult(s) with more information as to what failed. Usually for nested Shapes in eg. sh:or.
-
asModel
Deprecated. -
asModel
Deprecated. -
contextsToSet
Deprecated. -
getPath
Deprecated.- Returns:
- the path, as specified in the Shape, that caused the violation
-
getFocusNode
Deprecated.- Returns:
- the focus node, aka. the subject, that caused the violation
-
getId
Deprecated. -
getSourceConstraintComponent
Deprecated.- Returns:
- the type of the source constraint that caused the violation
-
toString
Deprecated. -
equals
Deprecated. -
hashCode
public int hashCode()Deprecated. -
setPathIri
Deprecated. -
getValue
Deprecated. -
getShape
Deprecated. -
getSourceConstraint
Deprecated. -
getSeverity
Deprecated. -
getDataGraphs
Deprecated. -
getShapesGraphs
Deprecated.
-