Class ValidationResult
- java.lang.Object
-
- org.eclipse.rdf4j.sail.shacl.results.ValidationResult
-
@Deprecated public class ValidationResult extends java.lang.Object
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
Fields Modifier and Type Field Description private Resource[]
dataGraphs
Deprecated.private ValidationResult
detail
Deprecated.private Value
focusNode
Deprecated.private Resource
id
Deprecated.private static org.slf4j.Logger
logger
Deprecated.private Path
path
Deprecated.private Value
pathIri
Deprecated.private Severity
severity
Deprecated.private Shape
shape
Deprecated.private Resource[]
shapesGraphs
Deprecated.private ConstraintComponent
sourceConstraint
Deprecated.private SourceConstraintComponent
sourceConstraintComponent
Deprecated.private java.util.Optional<Value>
value
Deprecated.
-
Constructor Summary
Constructors Constructor Description ValidationResult(Value focusNode, Value value, Shape shape, ConstraintComponent sourceConstraint, Severity severity, ConstraintComponent.Scope scope, Resource[] dataGraphs, Resource[] shapesGraphs)
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Model
asModel(Model model)
Deprecated.Model
asModel(Model model, java.util.Set<Resource> rdfListDedupe)
Deprecated.private static java.util.Set<Resource>
contextsToSet(Resource[] context)
Deprecated.boolean
equals(java.lang.Object o)
Deprecated.protected Resource[]
getDataGraphs()
Deprecated.ValidationResult
getDetail()
Deprecated.java.util.List<ValidationResult>
getDetails()
Deprecated.private Value
getFocusNode()
Deprecated.Resource
getId()
Deprecated.private Path
getPath()
Deprecated.protected Severity
getSeverity()
Deprecated.protected Shape
getShape()
Deprecated.protected Resource[]
getShapesGraphs()
Deprecated.protected ConstraintComponent
getSourceConstraint()
Deprecated.SourceConstraintComponent
getSourceConstraintComponent()
Deprecated.protected java.util.Optional<Value>
getValue()
Deprecated.int
hashCode()
Deprecated.void
setDetail(ValidationResult detail)
Deprecated.void
setPathIri(Value path)
Deprecated.java.lang.String
toString()
Deprecated.
-
-
-
Field Detail
-
logger
private static final org.slf4j.Logger logger
Deprecated.
-
id
private Resource id
Deprecated.
-
value
private final java.util.Optional<Value> value
Deprecated.
-
shape
private final Shape shape
Deprecated.
-
sourceConstraintComponent
private final SourceConstraintComponent sourceConstraintComponent
Deprecated.
-
sourceConstraint
private final ConstraintComponent sourceConstraint
Deprecated.
-
severity
private final Severity severity
Deprecated.
-
focusNode
private final Value focusNode
Deprecated.
-
dataGraphs
private final Resource[] dataGraphs
Deprecated.
-
shapesGraphs
private final Resource[] shapesGraphs
Deprecated.
-
path
private Path path
Deprecated.
-
detail
private ValidationResult detail
Deprecated.
-
pathIri
private Value pathIri
Deprecated.
-
-
Constructor Detail
-
ValidationResult
public ValidationResult(Value focusNode, Value value, Shape shape, ConstraintComponent sourceConstraint, Severity severity, ConstraintComponent.Scope scope, Resource[] dataGraphs, Resource[] shapesGraphs)
Deprecated.
-
-
Method Detail
-
getDetail
public ValidationResult getDetail()
Deprecated.- Returns:
- ValidationResult with more information as to what failed. Usually for nested Shapes in eg. sh:or.
-
setDetail
public void setDetail(ValidationResult detail)
Deprecated.
-
getDetails
public java.util.List<ValidationResult> getDetails()
Deprecated.- Returns:
- all ValidationResult(s) with more information as to what failed. Usually for nested Shapes in eg. sh:or.
-
getPath
private Path getPath()
Deprecated.- Returns:
- the path, as specified in the Shape, that caused the violation
-
getFocusNode
private Value getFocusNode()
Deprecated.- Returns:
- the focus node, aka. the subject, that caused the violation
-
getId
public final Resource getId()
Deprecated.
-
getSourceConstraintComponent
public SourceConstraintComponent getSourceConstraintComponent()
Deprecated.- Returns:
- the type of the source constraint that caused the violation
-
toString
public java.lang.String toString()
Deprecated.- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
Deprecated.- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
Deprecated.- Overrides:
hashCode
in classjava.lang.Object
-
setPathIri
public void setPathIri(Value path)
Deprecated.
-
getValue
protected java.util.Optional<Value> getValue()
Deprecated.
-
getShape
protected Shape getShape()
Deprecated.
-
getSourceConstraint
protected ConstraintComponent getSourceConstraint()
Deprecated.
-
getSeverity
protected Severity getSeverity()
Deprecated.
-
getDataGraphs
protected Resource[] getDataGraphs()
Deprecated.
-
getShapesGraphs
protected Resource[] getShapesGraphs()
Deprecated.
-
-