Package org.topbraid.shacl.validation
Class ResourceValidationResult
- java.lang.Object
-
- org.topbraid.shacl.validation.ResourceValidationResult
-
- All Implemented Interfaces:
ValidationResult
public class ResourceValidationResult extends Object implements ValidationResult
A ValidationResult backed by an existing Resource.- Author:
- Holger Knublauch
-
-
Constructor Summary
Constructors Constructor Description ResourceValidationResult(org.apache.jena.rdf.model.Resource result)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)org.apache.jena.rdf.model.RDFNodegetFocusNode()See sh:focusNode.StringgetMessage()Gets the human-readable message attached to the result.Collection<org.apache.jena.rdf.model.RDFNode>getMessages()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.ResourcegetResource()org.apache.jena.rdf.model.ResourcegetSeverity()See sh:resultSeverity.org.apache.jena.rdf.model.ResourcegetSourceConstraint()See sh:sourceConstraint.org.apache.jena.rdf.model.ResourcegetSourceConstraintComponent()See sh:sourceConstraintComponent.org.apache.jena.rdf.model.ResourcegetSourceShape()See sh:sourceShape.org.apache.jena.rdf.model.RDFNodegetValue()See sh:value.inthashCode()
-
-
-
Method Detail
-
getFocusNode
public org.apache.jena.rdf.model.RDFNode getFocusNode()
Description copied from interface:ValidationResultSee sh:focusNode.- Specified by:
getFocusNodein interfaceValidationResult- Returns:
-
getMessage
public String 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
public Collection<org.apache.jena.rdf.model.RDFNode> 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:
-
-