public class SPINImports extends Object
| Modifier and Type | Field and Description |
|---|---|
static SPINImports |
singleton |
| Constructor and Description |
|---|
SPINImports() |
| Modifier and Type | Method and Description |
|---|---|
static SPINImports |
get()
Gets the singleton instance of this class.
|
protected org.apache.jena.graph.Graph |
getImportedGraph(String uri)
Attempts to load a graph with a given URI.
|
org.apache.jena.rdf.model.Model |
getImportsModel(org.apache.jena.rdf.model.Model model)
Checks if spin:imports have been declared and adds them to a union model.
|
static void |
set(SPINImports value)
Installs a different SPINImports singleton.
|
public static SPINImports singleton
public static SPINImports get()
protected org.apache.jena.graph.Graph getImportedGraph(String uri) throws IOException
uri - the base URI of the graph to loadIOExceptionpublic org.apache.jena.rdf.model.Model getImportsModel(org.apache.jena.rdf.model.Model model)
throws IOException
model - the base Model to operate onIOExceptionpublic static void set(SPINImports value)
value - the new singletonCopyright © 2017 TopQuadrant, Inc.. All rights reserved.