public class ShapesGraph extends Object
| Constructor and Description |
|---|
ShapesGraph(org.apache.jena.rdf.model.Model shapesModel)
Constructs a new ShapesGraph.
|
| Modifier and Type | Method and Description |
|---|---|
SHConstraintComponent |
getComponentWithParameter(org.apache.jena.rdf.model.Property parameter) |
List<Shape> |
getRootShapes()
Gets all shapes that declare a target and pass the provided filter.
|
Shape |
getShape(org.apache.jena.graph.Node node) |
boolean |
isIgnored(org.apache.jena.graph.Node shapeNode) |
boolean |
isIgnoredConstraint(Constraint constraint) |
void |
setConstraintFilter(Predicate<Constraint> value)
Sets a filter Predicate that can be used to ignore certain constraints.
|
void |
setShapeFilter(Predicate<SHShape> value)
Sets a filter Predicate that can be used to ignore certain shapes.
|
public ShapesGraph(org.apache.jena.rdf.model.Model shapesModel)
shapesModel - the Model containing the shape definitionspublic SHConstraintComponent getComponentWithParameter(org.apache.jena.rdf.model.Property parameter)
public List<Shape> getRootShapes()
public Shape getShape(org.apache.jena.graph.Node node)
public boolean isIgnoredConstraint(Constraint constraint)
public boolean isIgnored(org.apache.jena.graph.Node shapeNode)
public void setConstraintFilter(Predicate<Constraint> value)
value - the new constraint filterpublic void setShapeFilter(Predicate<SHShape> value)
value - the new shape filterCopyright © 2017 TopQuadrant, Inc.. All rights reserved.