public class ShapeProducer extends Object
| Constructor and Description |
|---|
ShapeProducer(NamespaceManager nsManager,
ShapeManager shapeManager) |
| Modifier and Type | Method and Description |
|---|---|
ShapeVisitor |
getVisitor() |
Shape |
produceShape(Vertex targetClass,
IriTemplate shapeIdTemplate) |
Shape |
produceShape(Vertex targetClass,
org.openrdf.model.URI shapeId)
Get or create a shape for a specified OWL Class with a specified name.
|
void |
setVisitor(ShapeVisitor visitor) |
public ShapeProducer(NamespaceManager nsManager, ShapeManager shapeManager)
public ShapeVisitor getVisitor()
public void setVisitor(ShapeVisitor visitor)
public Shape produceShape(Vertex targetClass, IriTemplate shapeIdTemplate)
public Shape produceShape(Vertex targetClass, org.openrdf.model.URI shapeId)
This method will return an existing shape if one exists that is consistent with all instances. If there is more than one existing shape, then this method returns the the smallest consistent shape (i.e. the one with the fewest properties). If there are multiple, existing, consistent shapes of minimal size, the method returns the one whose name comes first lexically.
If no existing, consistent shape is found, this method will return a newly created shape. This method iterates over all properties on all instances of the OWL Class. It ensures that the returned shape contains an appropriate PropertyConstraint for each property according to the rules below.
targetClass - The OWL Class for which a Shape is to be produced.shapeId - The URI that names the shape if a new Shape is created.Copyright © 2019. All rights reserved.