Class ShaclValidator.Validator

java.lang.Object
org.eclipse.rdf4j.sail.shacl.ShaclValidator.Validator
Enclosing class:
ShaclValidator

public static class ShaclValidator.Validator extends Object
  • Constructor Details

    • Validator

      public Validator(ShaclValidator.Builder builder)
      Create a validator that uses the supplied builder configuration.
      Parameters:
      builder - configured builder
  • Method Details

    • validate

      public ValidationReport validate(Sail dataRepo, Sail shapesRepo)
      Validate the supplied data sail against the supplied shapes sail.
      Parameters:
      dataRepo - data sail to validate
      shapesRepo - shapes sail
      Returns:
      validation report
    • validate

      public ValidationReport validate(File dataFile, String baseURI, RDFFormat format, Sail shapesRepo)
      Load data from a file and validate it against the supplied shapes sail.
      Parameters:
      dataFile - data file to parse
      baseURI - base URI for resolving relative IRIs
      format - RDF format to use
      shapesRepo - shapes sail
      Returns:
      validation report
    • validate

      public ValidationReport validate(Path dataPath, String baseURI, RDFFormat format, Sail shapesRepo)
      Load data from a path and validate it against the supplied shapes sail.
      Parameters:
      dataPath - data path to parse
      baseURI - base URI for resolving relative IRIs
      format - RDF format to use
      shapesRepo - shapes sail
      Returns:
      validation report
    • validate

      public ValidationReport validate(URL dataUrl, String baseURI, RDFFormat format, Sail shapesRepo)
      Load data from a URL and validate it against the supplied shapes sail.
      Parameters:
      dataUrl - data URL to parse
      baseURI - base URI for resolving relative IRIs
      format - RDF format to use
      shapesRepo - shapes sail
      Returns:
      validation report
    • validate

      public ValidationReport validate(InputStream dataInputStream, String baseURI, RDFFormat format, Sail shapesRepo)
      Load data from an input stream and validate it against the supplied shapes sail. The input stream is not closed by this method.
      Parameters:
      dataInputStream - data input stream to parse
      baseURI - base URI for resolving relative IRIs
      format - RDF format to use
      shapesRepo - shapes sail
      Returns:
      validation report
    • validate

      public ValidationReport validate(String data, String baseURI, RDFFormat format, Sail shapesRepo)
      Load data from RDF content in a string and validate it against the supplied shapes sail.
      Parameters:
      data - RDF content to parse
      baseURI - base URI for resolving relative IRIs
      format - RDF format to use
      shapesRepo - shapes sail
      Returns:
      validation report
    • validate

      public ValidationReport validate(File dataFile, String baseURI, Sail shapesRepo)
      Load data from a file using an auto-detected RDF format and validate it against the supplied shapes sail.
      Parameters:
      dataFile - data file to parse
      baseURI - base URI for resolving relative IRIs
      shapesRepo - shapes sail
      Returns:
      validation report
    • validate

      public ValidationReport validate(Path dataPath, String baseURI, Sail shapesRepo)
      Load data from a path using an auto-detected RDF format and validate it against the supplied shapes sail.
      Parameters:
      dataPath - data path to parse
      baseURI - base URI for resolving relative IRIs
      shapesRepo - shapes sail
      Returns:
      validation report
    • validate

      public ValidationReport validate(URL dataUrl, String baseURI, Sail shapesRepo)
      Load data from a URL using an auto-detected RDF format and validate it against the supplied shapes sail.
      Parameters:
      dataUrl - data URL to parse
      baseURI - base URI for resolving relative IRIs
      shapesRepo - shapes sail
      Returns:
      validation report
    • validate

      public ValidationReport validate(InputStream dataInputStream, String baseURI, Sail shapesRepo)
      Load data from an input stream using an auto-detected RDF format and validate it against the supplied shapes sail. The input stream is not closed by this method.
      Parameters:
      dataInputStream - data input stream to parse
      baseURI - base URI for resolving relative IRIs
      shapesRepo - shapes sail
      Returns:
      validation report
    • validate

      public ValidationReport validate(String data, String baseURI, Sail shapesRepo)
      Load data from RDF content in a string using an auto-detected RDF format and validate it against the supplied shapes sail.
      Parameters:
      data - RDF content to parse
      baseURI - base URI for resolving relative IRIs
      shapesRepo - shapes sail
      Returns:
      validation report
    • validate

      public ValidationReport validate(File dataFile, RDFFormat format, Sail shapesRepo)
      Load data from a file using the supplied RDF format and validate it against the supplied shapes sail.
      Parameters:
      dataFile - data file to parse
      format - RDF format to use
      shapesRepo - shapes sail
      Returns:
      validation report
    • validate

      public ValidationReport validate(Path dataPath, RDFFormat format, Sail shapesRepo)
      Load data from a path using the supplied RDF format and validate it against the supplied shapes sail.
      Parameters:
      dataPath - data path to parse
      format - RDF format to use
      shapesRepo - shapes sail
      Returns:
      validation report
    • validate

      public ValidationReport validate(URL dataUrl, RDFFormat format, Sail shapesRepo)
      Load data from a URL using the supplied RDF format and validate it against the supplied shapes sail.
      Parameters:
      dataUrl - data URL to parse
      format - RDF format to use
      shapesRepo - shapes sail
      Returns:
      validation report
    • validate

      public ValidationReport validate(InputStream dataInputStream, RDFFormat format, Sail shapesRepo)
      Load data from an input stream using the supplied RDF format and validate it against the supplied shapes sail. The input stream is not closed by this method.
      Parameters:
      dataInputStream - data input stream to parse
      format - RDF format to use
      shapesRepo - shapes sail
      Returns:
      validation report
    • validate

      public ValidationReport validate(String data, RDFFormat format, Sail shapesRepo)
      Load data from RDF content in a string using the supplied RDF format and validate it against the supplied shapes sail.
      Parameters:
      data - RDF content to parse
      format - RDF format to use
      shapesRepo - shapes sail
      Returns:
      validation report
    • validate

      public ValidationReport validate(File dataFile, Sail shapesRepo)
      Load data from a file using an auto-detected RDF format and validate it against the supplied shapes sail.
      Parameters:
      dataFile - data file to parse
      shapesRepo - shapes sail
      Returns:
      validation report
    • validate

      public ValidationReport validate(Path dataPath, Sail shapesRepo)
      Load data from a path using an auto-detected RDF format and validate it against the supplied shapes sail.
      Parameters:
      dataPath - data path to parse
      shapesRepo - shapes sail
      Returns:
      validation report
    • validate

      public ValidationReport validate(URL dataUrl, Sail shapesRepo)
      Load data from a URL using an auto-detected RDF format and validate it against the supplied shapes sail.
      Parameters:
      dataUrl - data URL to parse
      shapesRepo - shapes sail
      Returns:
      validation report
    • validate

      public ValidationReport validate(Sail dataRepo, File shapesFile, String baseURI, RDFFormat format)
      Load shapes from a file and validate the supplied data sail.
      Parameters:
      dataRepo - data sail to validate
      shapesFile - shapes file to parse
      baseURI - base URI for resolving relative IRIs
      format - RDF format to use
      Returns:
      validation report
    • validate

      public ValidationReport validate(Sail dataRepo, Path shapesPath, String baseURI, RDFFormat format)
      Load shapes from a path and validate the supplied data sail.
      Parameters:
      dataRepo - data sail to validate
      shapesPath - shapes path to parse
      baseURI - base URI for resolving relative IRIs
      format - RDF format to use
      Returns:
      validation report
    • validate

      public ValidationReport validate(Sail dataRepo, URL shapesUrl, String baseURI, RDFFormat format)
      Load shapes from a URL and validate the supplied data sail.
      Parameters:
      dataRepo - data sail to validate
      shapesUrl - shapes URL to parse
      baseURI - base URI for resolving relative IRIs
      format - RDF format to use
      Returns:
      validation report
    • validate

      public ValidationReport validate(Sail dataRepo, InputStream shapesInputStream, String baseURI, RDFFormat format)
      Load shapes from an input stream and validate the supplied data sail. The input stream is not closed by this method.
      Parameters:
      dataRepo - data sail to validate
      shapesInputStream - shapes input stream to parse
      baseURI - base URI for resolving relative IRIs
      format - RDF format to use
      Returns:
      validation report
    • validate

      public ValidationReport validate(Sail dataRepo, String shapes, String baseURI, RDFFormat format)
      Load shapes from RDF content in a string and validate the supplied data sail.
      Parameters:
      dataRepo - data sail to validate
      shapes - RDF content for shapes
      baseURI - base URI for resolving relative IRIs
      format - RDF format to use
      Returns:
      validation report
    • validate

      public ValidationReport validate(Sail dataRepo, File shapesFile, String baseURI)
      Load shapes from a file using an auto-detected RDF format and validate the supplied data sail.
      Parameters:
      dataRepo - data sail to validate
      shapesFile - shapes file to parse
      baseURI - base URI for resolving relative IRIs
      Returns:
      validation report
    • validate

      public ValidationReport validate(Sail dataRepo, Path shapesPath, String baseURI)
      Load shapes from a path using an auto-detected RDF format and validate the supplied data sail.
      Parameters:
      dataRepo - data sail to validate
      shapesPath - shapes path to parse
      baseURI - base URI for resolving relative IRIs
      Returns:
      validation report
    • validate

      public ValidationReport validate(Sail dataRepo, URL shapesUrl, String baseURI)
      Load shapes from a URL using an auto-detected RDF format and validate the supplied data sail.
      Parameters:
      dataRepo - data sail to validate
      shapesUrl - shapes URL to parse
      baseURI - base URI for resolving relative IRIs
      Returns:
      validation report
    • validate

      public ValidationReport validate(Sail dataRepo, InputStream shapesInputStream, String baseURI)
      Load shapes from an input stream using an auto-detected RDF format and validate the supplied data sail. The input stream is not closed by this method.
      Parameters:
      dataRepo - data sail to validate
      shapesInputStream - shapes input stream to parse
      baseURI - base URI for resolving relative IRIs
      Returns:
      validation report
    • validate

      public ValidationReport validate(Sail dataRepo, String shapes, String baseURI)
      Load shapes from RDF content in a string using an auto-detected RDF format and validate the supplied data sail.
      Parameters:
      dataRepo - data sail to validate
      shapes - RDF content for shapes
      baseURI - base URI for resolving relative IRIs
      Returns:
      validation report
    • validate

      public ValidationReport validate(Sail dataRepo, File shapesFile, RDFFormat format)
      Load shapes from a file using the supplied RDF format and validate the supplied data sail.
      Parameters:
      dataRepo - data sail to validate
      shapesFile - shapes file to parse
      format - RDF format to use
      Returns:
      validation report
    • validate

      public ValidationReport validate(Sail dataRepo, Path shapesPath, RDFFormat format)
      Load shapes from a path using the supplied RDF format and validate the supplied data sail.
      Parameters:
      dataRepo - data sail to validate
      shapesPath - shapes path to parse
      format - RDF format to use
      Returns:
      validation report
    • validate

      public ValidationReport validate(Sail dataRepo, URL shapesUrl, RDFFormat format)
      Load shapes from a URL using the supplied RDF format and validate the supplied data sail.
      Parameters:
      dataRepo - data sail to validate
      shapesUrl - shapes URL to parse
      format - RDF format to use
      Returns:
      validation report
    • validate

      public ValidationReport validate(Sail dataRepo, InputStream shapesInputStream, RDFFormat format)
      Load shapes from an input stream using the supplied RDF format and validate the supplied data sail. The input stream is not closed by this method.
      Parameters:
      dataRepo - data sail to validate
      shapesInputStream - shapes input stream to parse
      format - RDF format to use
      Returns:
      validation report
    • validate

      public ValidationReport validate(Sail dataRepo, String shapes, RDFFormat format)
      Load shapes from RDF content in a string using the supplied RDF format and validate the supplied data sail.
      Parameters:
      dataRepo - data sail to validate
      shapes - RDF content for shapes
      format - RDF format to use
      Returns:
      validation report
    • validate

      public ValidationReport validate(Sail dataRepo, File shapesFile)
      Load shapes from a file using an auto-detected RDF format and validate the supplied data sail.
      Parameters:
      dataRepo - data sail to validate
      shapesFile - shapes file to parse
      Returns:
      validation report
    • validate

      public ValidationReport validate(Sail dataRepo, Path shapesPath)
      Load shapes from a path using an auto-detected RDF format and validate the supplied data sail.
      Parameters:
      dataRepo - data sail to validate
      shapesPath - shapes path to parse
      Returns:
      validation report
    • validate

      public ValidationReport validate(Sail dataRepo, URL shapesUrl)
      Load shapes from a URL using an auto-detected RDF format and validate the supplied data sail.
      Parameters:
      dataRepo - data sail to validate
      shapesUrl - shapes URL to parse
      Returns:
      validation report