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 ValidationResultDeprecated.private final ValueDeprecated.private ResourceDeprecated.private static final org.slf4j.LoggerDeprecated.private PathDeprecated.private ValueDeprecated.private final SeverityDeprecated.private final ShapeDeprecated.private final Resource[]Deprecated.private final ConstraintComponentDeprecated.private final SourceConstraintComponentDeprecated.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.booleanDeprecated.protected Resource[]Deprecated.Deprecated.Deprecated.private ValueDeprecated.final ResourcegetId()Deprecated.private PathgetPath()Deprecated.protected SeverityDeprecated.protected ShapegetShape()Deprecated.protected Resource[]Deprecated.protected ConstraintComponentDeprecated.Deprecated.getValue()Deprecated.inthashCode()Deprecated.voidsetDetail(ValidationResult detail) Deprecated.voidsetPathIri(Value path) Deprecated.toString()Deprecated.
-
Field Details
-
logger
private static final org.slf4j.Logger loggerDeprecated. -
id
Deprecated. -
value
-
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
-
asModel
-
contextsToSet
-
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
-
equals
-
hashCode
-
setPathIri
Deprecated. -
getValue
-
getShape
Deprecated. -
getSourceConstraint
Deprecated. -
getSeverity
Deprecated. -
getDataGraphs
Deprecated. -
getShapesGraphs
Deprecated.
-