public final class ShaclShapeFactory
extends org.eclipse.lyo.oslc4j.core.model.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.
Modifier and Type | Method and Description |
---|---|
static ShaclShape |
createShaclShape(Class<?> resourceClass)
Create a SHACL shape from the
org.eclipse.lyo.validation.shacl.annotations on the
resource declaration. |
public static ShaclShape createShaclShape(Class<?> resourceClass) throws org.eclipse.lyo.oslc4j.core.exception.OslcCoreApplicationException, URISyntaxException, ParseException
org.eclipse.lyo.validation.shacl.annotations
on the
resource declaration.resourceClass
- Resource class that is annotated with shape annotations.ShaclShape
shapeorg.eclipse.lyo.oslc4j.core.exception.OslcCoreApplicationException
URISyntaxException
ParseException
Copyright © 2018. All Rights Reserved.