Class ResourceValidationResult

  • All Implemented Interfaces:
    ValidationResult

    public class ResourceValidationResult
    extends Object
    implements ValidationResult
    A ValidationResult backed by an existing Resource.
    Author:
    Holger Knublauch
    • Constructor Detail

      • ResourceValidationResult

        public ResourceValidationResult​(org.apache.jena.rdf.model.Resource result)
    • Method Detail

      • getMessage

        public String getMessage()
        Description copied from interface: ValidationResult
        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.
        Specified by:
        getMessage in interface ValidationResult
        Returns:
        a message or null
      • getMessages

        public Collection<org.apache.jena.rdf.model.RDFNode> getMessages()
        Description copied from interface: ValidationResult
        Gets the human-readable message attached to the result (see sh:resultMessage).
        Specified by:
        getMessages in interface ValidationResult
        Returns:
      • getPath

        public org.apache.jena.rdf.model.Resource getPath()
        Description copied from interface: ValidationResult
        See sh:resultPath.
        Specified by:
        getPath in interface ValidationResult
        Returns:
      • getPropertyValues

        public List<org.apache.jena.rdf.model.RDFNode> getPropertyValues​(org.apache.jena.rdf.model.Property predicate)
        Description copied from interface: ValidationResult
        Provides access to other RDF values that may exist for the result instance, for any given property.
        Specified by:
        getPropertyValues in interface ValidationResult
        Parameters:
        predicate - the property to get the values of
        Returns:
        the values, often empty
      • getResource

        public org.apache.jena.rdf.model.Resource getResource()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object