Package org.topbraid.shacl.validation
Class ResourceValidationResult
java.lang.Object
org.topbraid.shacl.validation.ResourceValidationResult
- All Implemented Interfaces:
ValidationResult
A ValidationResult backed by an existing Resource.
- Author:
- Holger Knublauch
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanorg.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.Resourceorg.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.inthashCode()
-
Constructor Details
-
ResourceValidationResult
public ResourceValidationResult(org.apache.jena.rdf.model.Resource result)
-
-
Method Details
-
getFocusNode
public org.apache.jena.rdf.model.RDFNode getFocusNode()Description copied from interface:ValidationResultSee sh:focusNode.- Specified by:
getFocusNodein interfaceValidationResult- Returns:
-
getMessage
Description copied from interface:ValidationResultGets 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.- Specified by:
getMessagein interfaceValidationResult- Returns:
- a message or null
-
getMessages
Description copied from interface:ValidationResultGets the human-readable message attached to the result (see sh:resultMessage).- Specified by:
getMessagesin interfaceValidationResult- Returns:
-
getPath
public org.apache.jena.rdf.model.Resource getPath()Description copied from interface:ValidationResultSee sh:resultPath.- Specified by:
getPathin interfaceValidationResult- Returns:
-
getPropertyValues
public List<org.apache.jena.rdf.model.RDFNode> getPropertyValues(org.apache.jena.rdf.model.Property predicate) Description copied from interface:ValidationResultProvides access to other RDF values that may exist for the result instance, for any given property.- Specified by:
getPropertyValuesin interfaceValidationResult- Parameters:
predicate- the property to get the values of- Returns:
- the values, often empty
-
getResource
public org.apache.jena.rdf.model.Resource getResource() -
getSeverity
public org.apache.jena.rdf.model.Resource getSeverity()Description copied from interface:ValidationResultSee sh:resultSeverity.- Specified by:
getSeverityin interfaceValidationResult- Returns:
-
getSourceConstraint
public org.apache.jena.rdf.model.Resource getSourceConstraint()Description copied from interface:ValidationResultSee sh:sourceConstraint.- Specified by:
getSourceConstraintin interfaceValidationResult- Returns:
-
getSourceConstraintComponent
public org.apache.jena.rdf.model.Resource getSourceConstraintComponent()Description copied from interface:ValidationResultSee sh:sourceConstraintComponent.- Specified by:
getSourceConstraintComponentin interfaceValidationResult- Returns:
-
getSourceShape
public org.apache.jena.rdf.model.Resource getSourceShape()Description copied from interface:ValidationResultSee sh:sourceShape.- Specified by:
getSourceShapein interfaceValidationResult- Returns:
-
getValue
public org.apache.jena.rdf.model.RDFNode getValue()Description copied from interface:ValidationResultSee sh:value.- Specified by:
getValuein interfaceValidationResult- Returns:
-
hashCode
public int hashCode() -
equals
-