public class Shapes extends Object implements Iterable<org.apache.jena.shacl.parser.Shape>
Shapes myShapes = Shapes.parse(graph);
| Modifier and Type | Method and Description |
|---|---|
Node |
getBase() |
Graph |
getGraph() |
Collection<Node> |
getImports() |
Collection<org.apache.jena.shacl.parser.Shape> |
getRootShapes()
Deprecated.
|
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() |
Collection<org.apache.jena.shacl.parser.Shape> |
getTargetShapes()
Return the shapes with targets.
|
boolean |
isEmpty() |
Iterator<org.apache.jena.shacl.parser.Shape> |
iterator()
Iterator over the shapes with targets
|
Iterator<org.apache.jena.shacl.parser.Shape> |
iteratorAll()
Iterator over the shapes with targets and with explicit type NodeShape or PropertyShape.
|
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.
|
static Shapes |
parse(String fileOrURL)
Load the file, parse the graph and return the shapes.
|
static Shapes |
parse(String fileOrURL,
boolean withImports)
Load the file, parse the graph and return the shapes.
|
static Shapes |
parseTargets(Graph graph)
Parse the graph and return the shapes connected to the targets.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic static Shapes parse(String fileOrURL)
public static Shapes parse(String fileOrURL, boolean withImports)
public static Shapes parse(Graph graph)
public static Shapes parseTargets(Graph graph)
public boolean isEmpty()
@Deprecated public Collection<org.apache.jena.shacl.parser.Shape> getRootShapes()
getTargetShapes()public Collection<org.apache.jena.shacl.parser.Shape> getTargetShapes()
public Collection<Node> getImports()
public Node getBase()
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>public Iterator<org.apache.jena.shacl.parser.Shape> iteratorAll()
Licenced under the Apache License, Version 2.0