public class Shapes extends Object implements Iterable<org.apache.jena.shacl.parser.Shape>
Shapes myShapes = Shapes.parse(graph);
| Modifier and Type | Method and Description |
|---|---|
Graph |
getGraph() |
Collection<org.apache.jena.shacl.parser.Shape> |
getRootShapes() |
org.apache.jena.shacl.parser.Shape |
getShape(Node node) |
Map<Node,org.apache.jena.shacl.parser.Shape> |
getShapeMap() |
org.apache.jena.shacl.engine.Targets |
getTargets() |
boolean |
isEmpty() |
Iterator<org.apache.jena.shacl.parser.Shape> |
iterator() |
int |
numRootShapes() |
int |
numShapes() |
static Shapes |
parse(Graph graph)
Parse the graph and return the shapes connected to the targets.
|
static Shapes |
parse(Model model)
Parse the model and return the shapes connected to the targets.
|
static Shapes |
parse(String fileOrURL) |
static Shapes |
parseAll(Graph graph)
Parse the graph and also include all declared node and property shapes, whether connected to the targets or not.
|
static Shapes |
parseAll(String fileOrURL) |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic static Shapes parse(Model model)
public static Shapes parse(Graph graph)
public static Shapes parseAll(Graph graph)
public boolean isEmpty()
public Collection<org.apache.jena.shacl.parser.Shape> getRootShapes()
public org.apache.jena.shacl.parser.Shape getShape(Node node)
public Map<Node,org.apache.jena.shacl.parser.Shape> getShapeMap()
public Graph getGraph()
public org.apache.jena.shacl.engine.Targets getTargets()
public int numShapes()
public int numRootShapes()
public Iterator<org.apache.jena.shacl.parser.Shape> iterator()
iterator in interface Iterable<org.apache.jena.shacl.parser.Shape>Licenced under the Apache License, Version 2.0