Package org.apache.jena.shacl
Class Imports
- java.lang.Object
-
- org.apache.jena.shacl.Imports
-
public class Imports extends java.lang.Object
Import processing.Imports are triggered by a base (a single triple "? rdf:type owl:Ontology") and imports (triples "base owl:Imports URI").
If there are other "? owl:imports ?" triples, they are ignored.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.List<Node>
allImports(Node base, Graph graph)
Locate any imports (triples "base owl:Imports URI").static Node
base(Graph graph)
Locate the base (a single triple ? rdf:type owl:Ontology).static org.apache.jena.atlas.lib.Pair<Node,java.util.List<Node>>
baseAndImports(Graph graph)
Locate the base (a single triple ? rdf:type owl:Ontology) and imports (triples "base owl:Imports URI").static java.util.List<Node>
imports(Graph graph)
Return the imports for a graphstatic Graph
loadWithImports(java.lang.String url)
Load a graph and process owl:imports to create a new, single graph.static Graph
withImports(java.lang.String url, Graph graph)
Process and return the owl:imports closure of a graph.static Graph
withImports(Graph graph)
Process and return the owl:imports closure of a graph.
-
-
-
Method Detail
-
loadWithImports
public static Graph loadWithImports(java.lang.String url)
Load a graph and process owl:imports to create a new, single graph.
-
withImports
public static Graph withImports(Graph graph)
Process and return the owl:imports closure of a graph. The graph is included in the results. Note that without knowing the URI, the start graph may be read again if it is named as an import.
-
withImports
public static Graph withImports(java.lang.String url, Graph graph)
Process and return the owl:imports closure of a graph. The graph is included in the results.
-
baseAndImports
public static org.apache.jena.atlas.lib.Pair<Node,java.util.List<Node>> baseAndImports(Graph graph)
Locate the base (a single triple ? rdf:type owl:Ontology) and imports (triples "base owl:Imports URI"). May return null for the base in which case all imports are returned.
-
base
public static Node base(Graph graph)
Locate the base (a single triple ? rdf:type owl:Ontology). If none or more than one matching triple, then return null.
-
-