Package org.apache.jena.shex
Class ShexSchema
- java.lang.Object
-
- org.apache.jena.shex.ShexSchema
-
public class ShexSchema extends java.lang.ObjectShex Schema - a collection of shapes.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ShexShapeget(Node n)java.lang.StringgetBase()java.util.List<java.lang.String>getImports()PrefixMapgetPrefixMap()java.util.List<ShexShape>getShapes()Get all the shapes.java.lang.StringgetSource()ShexShapegetStart()TripleExpressiongetTripleExpression(Node label)Get all the shapes.booleanhasImports()booleanhasShape(Node n)ShexSchemaimportsClosure()Import form of this ShexShape collection.static ShexSchemashapes(java.lang.String source, java.lang.String baseURI, PrefixMap prefixes, ShexShape startShape, java.util.List<ShexShape> shapes, java.util.List<java.lang.String> imports, java.util.Map<Node,TripleExpression> tripleRefs)
-
-
-
Method Detail
-
shapes
public static ShexSchema shapes(java.lang.String source, java.lang.String baseURI, PrefixMap prefixes, ShexShape startShape, java.util.List<ShexShape> shapes, java.util.List<java.lang.String> imports, java.util.Map<Node,TripleExpression> tripleRefs)
-
getStart
public ShexShape getStart()
-
getShapes
public java.util.List<ShexShape> getShapes()
Get all the shapes. This includes the start shape, which has labelSysShex.startNode.
-
getTripleExpression
public TripleExpression getTripleExpression(Node label)
Get all the shapes. This includes the start shape, which has labelSysShex.startNode.
-
hasImports
public boolean hasImports()
-
getImports
public java.util.List<java.lang.String> getImports()
-
getSource
public java.lang.String getSource()
-
getBase
public java.lang.String getBase()
-
importsClosure
public ShexSchema importsClosure()
Import form of this ShexShape collection. This involves removing the START reference.
-
hasShape
public boolean hasShape(Node n)
-
getPrefixMap
public PrefixMap getPrefixMap()
-
-