public class MemoryShapeManager extends Object implements ShapeManager
| Constructor and Description |
|---|
MemoryShapeManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
addShape(Shape shape)
Add a Shape to this manager.
|
Shape |
getShapeById(org.openrdf.model.URI shapeId) |
List<Shape> |
getShapesByPredicate(org.openrdf.model.URI predicate) |
List<Shape> |
getShapesByScopeClass(org.openrdf.model.URI scopeClass)
Get the list of shapes that have a given scope class.
|
List<Shape> |
listShapes()
Get the list of all shapes known to this ShapeManager.
|
public Shape getShapeById(org.openrdf.model.URI shapeId)
getShapeById in interface ShapeManagerpublic void addShape(Shape shape) throws UnnamedResourceException
ShapeManageraddShape in interface ShapeManagershape - The shape being added.UnnamedResourceException - If the shape is identified by a BNode.public List<Shape> getShapesByScopeClass(org.openrdf.model.URI scopeClass)
ShapeManagergetShapesByScopeClass in interface ShapeManagerscopeClass - The Class of interestpublic List<Shape> listShapes()
ShapeManagerlistShapes in interface ShapeManagerCopyright © 2016. All rights reserved.