Interface ValidationResult

  • All Known Implementing Classes:
    ResourceValidationResult

    public interface ValidationResult
    A validation result, as produced by the validation engine.
    Author:
    Holger Knublauch
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      org.apache.jena.rdf.model.RDFNode getFocusNode()
      See sh:focusNode.
      String getMessage()
      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.Resource getPath()
      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.Resource getSeverity()
      See sh:resultSeverity.
      org.apache.jena.rdf.model.Resource getSourceConstraint()
      See sh:sourceConstraint.
      org.apache.jena.rdf.model.Resource getSourceConstraintComponent()
      See sh:sourceConstraintComponent.
      org.apache.jena.rdf.model.Resource getSourceShape()
      See sh:sourceShape.
      org.apache.jena.rdf.model.RDFNode getValue()
      See sh:value.
    • Method Detail

      • getFocusNode

        org.apache.jena.rdf.model.RDFNode getFocusNode()
        See sh:focusNode.
        Returns:
      • 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).
        Returns:
      • getPath

        org.apache.jena.rdf.model.Resource getPath()
        See sh:resultPath.
        Returns:
      • 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.
        Returns:
      • getSourceConstraint

        org.apache.jena.rdf.model.Resource getSourceConstraint()
        See sh:sourceConstraint.
        Returns:
      • getSourceConstraintComponent

        org.apache.jena.rdf.model.Resource getSourceConstraintComponent()
        See sh:sourceConstraintComponent.
        Returns:
      • getSourceShape

        org.apache.jena.rdf.model.Resource getSourceShape()
        See sh:sourceShape.
        Returns:
      • getValue

        org.apache.jena.rdf.model.RDFNode getValue()
        See sh:value.
        Returns: