public final class ShaclShapeFactory extends ResourceShapeFactory
It reads the Shacl constraints or oslc constraints in the form of annotations and populate the ShaclShape instance and property instances.
It checks whether the ShaclAnnotations are available in Abstract Resource Class. If it does, then it reads the Shacl Annotations for populating ShaclShape instance. Otherwise,it reads the oslc annotations to create ShaclShape instance.
CLASS_TO_VALUE_TYPE, METHOD_NAME_START_GET, METHOD_NAME_START_GET_LENGTH, METHOD_NAME_START_IS, METHOD_NAME_START_IS_LENGTH, METHOD_NAME_START_SET
Modifier and Type | Method and Description |
---|---|
static Shape |
createShaclShape(Class<?> resourceClass)
Create a SHACL shape from the
org.eclipse.lyo.shacl.annotations on
the resource declaration. |
createResourceShape, getComponentType, getDefaultPropertyName, validateSetMethodExists, validateUserSpecifiedValueType
public static Shape createShaclShape(Class<?> resourceClass) throws OslcCoreApplicationException, URISyntaxException, ParseException
org.eclipse.lyo.shacl.annotations
on
the resource declaration.resourceClass
- Resource class that is annotated with shape annotations.Shape
shapeOslcCoreApplicationException
URISyntaxException
ParseException
Copyright © 2018. All rights reserved.