Package org.topbraid.shacl.validation
Interface ValidationResult
- All Known Implementing Classes:
ResourceValidationResult
public interface ValidationResult
A validation result, as produced by the validation engine.
- Author:
- Holger Knublauch
-
Method Summary
Modifier and TypeMethodDescriptionorg.apache.jena.rdf.model.RDFNodeSee sh:focusNode.Gets the human-readable message attached to the result.Collection<org.apache.jena.rdf.model.RDFNode>Gets the human-readable message attached to the result (see sh:resultMessage).org.apache.jena.rdf.model.ResourcegetPath()See sh:resultPath.List<org.apache.jena.rdf.model.RDFNode>getPropertyValues(org.apache.jena.rdf.model.Property predicate) Provides access to other RDF values that may exist for the result instance, for any given property.org.apache.jena.rdf.model.ResourceSee sh:resultSeverity.org.apache.jena.rdf.model.ResourceSee sh:sourceConstraint.org.apache.jena.rdf.model.ResourceSee sh:sourceConstraintComponent.org.apache.jena.rdf.model.ResourceSee sh:sourceShape.org.apache.jena.rdf.model.RDFNodegetValue()See sh:value.
-
Method Details
-
getFocusNode
org.apache.jena.rdf.model.RDFNode getFocusNode()See sh:focusNode. -
getMessage
String getMessage()Gets the human-readable message attached to the result. Note that validation results can have multiple messages in different languages,getMessages()might be a better choice.- Returns:
- a message or null
-
getMessages
Collection<org.apache.jena.rdf.model.RDFNode> getMessages()Gets the human-readable message attached to the result (see sh:resultMessage). -
getPath
org.apache.jena.rdf.model.Resource getPath()See sh:resultPath. -
getPropertyValues
List<org.apache.jena.rdf.model.RDFNode> getPropertyValues(org.apache.jena.rdf.model.Property predicate) Provides access to other RDF values that may exist for the result instance, for any given property.- Parameters:
predicate- the property to get the values of- Returns:
- the values, often empty
-
getSeverity
org.apache.jena.rdf.model.Resource getSeverity()See sh:resultSeverity. -
getSourceConstraint
org.apache.jena.rdf.model.Resource getSourceConstraint()See sh:sourceConstraint. -
getSourceConstraintComponent
org.apache.jena.rdf.model.Resource getSourceConstraintComponent()See sh:sourceConstraintComponent. -
getSourceShape
org.apache.jena.rdf.model.Resource getSourceShape()See sh:sourceShape. -
getValue
org.apache.jena.rdf.model.RDFNode getValue()See sh:value.
-