org.eclipse.rdf4j.sail.shacl.results

## Class ValidationResult

- java.lang.Object
- - org.eclipse.rdf4j.sail.shacl.results.ValidationResult

- Deprecated.
  The ValidationResult is deprecated because it is planned moved to a new package to allow it to be used with remote validation results.

      @Deprecated
      public class ValidationResult
      extends Object

  The ValidationResult represents the results from a SHACL validation in an easy-to-use Java API.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `ValidationResult(org.eclipse.rdf4j.sail.shacl.AST.PropertyShape sourceShape, Value focusNode, Value value)` Deprecated.

  - ### Method Summary

    All Methods Instance Methods Concrete Methods Deprecated Methods
    Modifier and Type | Method and Description
    --- | ---
    `Model` | `asModel(Model model)` Deprecated.
    `ValidationResult` | `getDetail()` Deprecated.
    `List<ValidationResult>` | `getDetails()` Deprecated.
    `Resource` | `getId()` Deprecated.
    `SourceConstraintComponent` | `getSourceConstraintComponent()` Deprecated.
    `Resource` | `getSourceShapeResource()` Deprecated.
    `Optional<Value>` | `getValue()` Deprecated.
    `void` | `setDetail(ValidationResult detail)` Deprecated.
    `String` | `toString()` Deprecated.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### ValidationResult

          public ValidationResult(org.eclipse.rdf4j.sail.shacl.AST.PropertyShape sourceShape,
                                  Value focusNode,
                                  Value value)

      Deprecated.

  - ### Method Detail

    - #### setDetail

          public void setDetail(ValidationResult detail)

      Deprecated.

    - #### getDetail

          public ValidationResult getDetail()

      Deprecated.
      Returns:
        ValidationResult with more information as to what failed. Usually for nested Shapes in eg. sh:or.

    - #### getDetails

          public List<ValidationResult> getDetails()

      Deprecated.
      Returns:
        all ValidationResult(s) with more information as to what failed. Usually for nested Shapes in eg. sh:or.

    - #### asModel

          public Model asModel(Model model)

      Deprecated.

    - #### getSourceShapeResource

          public Resource getSourceShapeResource()

      Deprecated.
      Returns:
        the Resource (IRI or BNode) that identifies the source shape

    - #### getId

          public Resource getId()

      Deprecated.

    - #### getSourceConstraintComponent

          public SourceConstraintComponent getSourceConstraintComponent()

      Deprecated.
      Returns:
        the type of the source constraint that caused the violation

    - #### toString

          public String toString()

      Deprecated.
      Overrides:
        `toString` in class `Object`

    - #### getValue

          public Optional<Value> getValue()

      Deprecated.

Copyright © 2015-2020 Eclipse Foundation. All Rights Reserved.