Class ValidationEngineFactory


  • public class ValidationEngineFactory
    extends Object
    A singleton that can be used to produce new ValidationEngines. Implementations may install their own subclass to make some default modifications such as attaching a monitor or label function.
    Author:
    Holger Knublauch
    • Constructor Detail

      • ValidationEngineFactory

        public ValidationEngineFactory()
    • Method Detail

      • create

        public ValidationEngine create​(org.apache.jena.query.Dataset dataset,
                                       URI shapesGraphURI,
                                       ShapesGraph shapesGraph,
                                       org.apache.jena.rdf.model.Resource report)
        Constructs a new ValidationEngine.
        Parameters:
        dataset - the Dataset to operate on
        shapesGraphURI - the URI of the shapes graph (must be in the dataset)
        shapesGraph - the ShapesGraph with the shapes to validate against
        report - the sh:ValidationReport object in the results Model, or null to create a new one
        Returns:
        a new ValidationEngine