Constructor and Description |
---|
ShaclExValidatorImpl() |
Modifier and Type | Method and Description |
---|---|
org.eclipse.lyo.shacl.ValidationReport |
validate(org.eclipse.lyo.oslc4j.core.model.AbstractResource resource)
Validate a single resource against the shape based on its class annotations.
|
org.eclipse.lyo.shacl.ValidationReport |
validate(org.apache.jena.rdf.model.Model dataModel,
Class<? extends org.eclipse.lyo.oslc4j.core.model.AbstractResource> clazz)
Validate
dataModel against the Shape that is constructed from
the shape annotations in the resource class passed in the
clazz variable. |
org.eclipse.lyo.shacl.ValidationReport |
validate(org.apache.jena.rdf.model.Model dataModel,
org.apache.jena.rdf.model.Model shapeModel)
Validate.
|
public org.eclipse.lyo.shacl.ValidationReport validate(org.eclipse.lyo.oslc4j.core.model.AbstractResource resource) throws org.eclipse.lyo.oslc4j.core.exception.OslcCoreApplicationException, URISyntaxException, ParseException, IllegalAccessException, IllegalArgumentException, InvocationTargetException, DatatypeConfigurationException, InstantiationException, SecurityException, NoSuchMethodException
Validator
validate
in interface Validator
resource
- Resource to be validatedValidationReport
InstantiationException
SecurityException
NoSuchMethodException
org.eclipse.lyo.oslc4j.core.exception.OslcCoreApplicationException
URISyntaxException
ParseException
IllegalAccessException
IllegalArgumentException
InvocationTargetException
DatatypeConfigurationException
org.eclipse.lyo.validation.shacl.ShaclShapeFactory#createShaclShape(Class)
public org.eclipse.lyo.shacl.ValidationReport validate(org.apache.jena.rdf.model.Model dataModel, org.apache.jena.rdf.model.Model shapeModel) throws IllegalAccessException, IllegalArgumentException, InstantiationException, InvocationTargetException, SecurityException, NoSuchMethodException, DatatypeConfigurationException, org.eclipse.lyo.oslc4j.core.exception.OslcCoreApplicationException, URISyntaxException
Validator
This method takes JenaModels as parameters, validates the dataModel against shapeModel and return the ValidationResultModel
It iterates on all the resources with in the dataModel
and returns all the errors
found in all resources.
validate
in interface Validator
dataModel
- the data modelshapeModel
- the shape modelValidationReport
IllegalAccessException
- the illegal access exceptionIllegalArgumentException
InstantiationException
InvocationTargetException
- the invocation target exceptionSecurityException
NoSuchMethodException
DatatypeConfigurationException
- the datatype configuration exceptionorg.eclipse.lyo.oslc4j.core.exception.OslcCoreApplicationException
- the oslc core application exceptionURISyntaxException
public org.eclipse.lyo.shacl.ValidationReport validate(org.apache.jena.rdf.model.Model dataModel, Class<? extends org.eclipse.lyo.oslc4j.core.model.AbstractResource> clazz) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException, DatatypeConfigurationException, org.eclipse.lyo.oslc4j.core.exception.OslcCoreApplicationException, URISyntaxException, ParseException, InstantiationException, SecurityException, NoSuchMethodException
Validator
dataModel
against the Shape
that is constructed from
the shape annotations in the resource class passed in the
clazz
variable. The target is set to the class type of the resource class.
It iterates on all the resources with in the dataModel
and returns all
the errors in each resource.
validate
in interface Validator
dataModel
- Data model to be validatedclazz
- Resource class with shape annotationsValidationReport
InstantiationException
SecurityException
NoSuchMethodException
IllegalAccessException
IllegalArgumentException
InvocationTargetException
DatatypeConfigurationException
org.eclipse.lyo.oslc4j.core.exception.OslcCoreApplicationException
URISyntaxException
ParseException
Copyright © 2018. All Rights Reserved.