public class Imports extends Object
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.
| Modifier and Type | Method and Description |
|---|---|
static 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,List<Node>> |
baseAndImports(Graph graph)
Locate the base (a single triple ? rdf:type owl:Ontology)
and imports (triples "base owl:Imports URI").
|
static List<Node> |
imports(Graph graph)
Return the imports for a graph
|
static Graph |
loadWithImports(String url)
Load a graph and process owl:imports to create a new, single graph.
|
static Graph |
withImports(Graph graph)
Process and return the owl:imports closure of a graph.
|
static Graph |
withImports(String url,
Graph graph)
Process and return the owl:imports closure of a graph.
|
public static Graph loadWithImports(String url)
public static Graph withImports(Graph graph)
public static Graph withImports(String url, Graph graph)
public static org.apache.jena.atlas.lib.Pair<Node,List<Node>> baseAndImports(Graph graph)
public static Node base(Graph graph)
Licenced under the Apache License, Version 2.0