| 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
Validatorvalidate in interface Validatorresource - Resource to be validatedValidationReportInstantiationExceptionSecurityExceptionNoSuchMethodExceptionorg.eclipse.lyo.oslc4j.core.exception.OslcCoreApplicationExceptionURISyntaxExceptionParseExceptionIllegalAccessExceptionIllegalArgumentExceptionInvocationTargetExceptionDatatypeConfigurationExceptionShaclShapeFactory.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
ValidatorThis 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 ValidatordataModel - the data modelshapeModel - the shape modelValidationReportIllegalAccessException - the illegal access exceptionIllegalArgumentExceptionInstantiationExceptionInvocationTargetException - the invocation target exceptionSecurityExceptionNoSuchMethodExceptionDatatypeConfigurationException - the datatype configuration exceptionorg.eclipse.lyo.oslc4j.core.exception.OslcCoreApplicationException - the oslc core application exceptionURISyntaxExceptionpublic 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
ValidatordataModel 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 ValidatordataModel - Data model to be validatedclazz - Resource class with shape annotationsValidationReportInstantiationExceptionSecurityExceptionNoSuchMethodExceptionIllegalAccessExceptionIllegalArgumentExceptionInvocationTargetExceptionDatatypeConfigurationExceptionorg.eclipse.lyo.oslc4j.core.exception.OslcCoreApplicationExceptionURISyntaxExceptionParseExceptionCopyright © 2020. All rights reserved.