|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IGraphRegistry
An interface for objects that manage the currently open (Jena) Graphs
in the system. There is one global graph registry in any TopBraid
application, accessible via TB.getGraphRegistry().
Graphs are identified by their base URI, and are stored together with
their source (an IFile, java.io.File or URL).
Note that the graph registry stores the "base" graphs only. These are
either the graph as loaded from a storage device, or a CachingGraph that
wraps it. If your application depends on other delegating graphs (e.g.
to implement buffering), then the corresponding methods will automatically
get to the base delegate of the Graph delegation chains.
| Method Summary | |
|---|---|
void |
addListener(IGraphRegistryListener listener)
|
void |
dispose()
|
com.hp.hpl.jena.graph.Graph |
getBaseGraph(java.net.URI baseURI)
|
java.net.URI |
getBaseURI(java.io.File file)
|
java.net.URI |
getBaseURI(com.hp.hpl.jena.graph.Graph graph)
|
java.net.URI |
getBaseURI(org.eclipse.core.resources.IFile file)
|
com.hp.hpl.jena.rdf.model.Model |
getConfigModel(java.net.URI baseURI)
Gets the configuration Model that holds metadata for a given Model. |
com.hp.hpl.jena.ontology.OntModel |
getConfigOntModel(java.net.URI baseURI)
Gets the OntModel that contains all configuration models of subgraphs as well as the base config model and system configuration models. |
java.net.URI |
getImportBaseURI(java.net.URI importedURI)
Gets the base URI of an ontology specified by an import statement. |
java.lang.Object |
getSource(java.net.URI baseURI)
Gets the source where a Graph (represented by its base URI) has been loaded from. |
boolean |
isDirty(com.hp.hpl.jena.graph.Graph graph)
|
boolean |
isMemoryGraph(com.hp.hpl.jena.graph.Graph graph)
|
java.util.Iterator<java.net.URI> |
listURIs()
Lists the URIs of all currently loaded graphs. |
com.hp.hpl.jena.graph.Graph |
register(java.net.URI baseURI,
com.hp.hpl.jena.graph.Graph baseGraph,
java.lang.Object source,
org.eclipse.core.runtime.IProgressMonitor monitor)
Registers a given Graph. |
void |
removeListener(IGraphRegistryListener listener)
|
void |
replaceBaseURI(java.net.URI oldURI,
java.net.URI newURI)
|
void |
setDirty(com.hp.hpl.jena.graph.Graph graph,
boolean value)
|
void |
setSource(java.net.URI baseURI,
java.lang.Object source)
|
void |
unregister(java.net.URI baseURI)
|
| Method Detail |
|---|
void addListener(IGraphRegistryListener listener)
void dispose()
com.hp.hpl.jena.graph.Graph getBaseGraph(java.net.URI baseURI)
java.net.URI getBaseURI(java.io.File file)
java.net.URI getBaseURI(org.eclipse.core.resources.IFile file)
java.net.URI getBaseURI(com.hp.hpl.jena.graph.Graph graph)
com.hp.hpl.jena.rdf.model.Model getConfigModel(java.net.URI baseURI)
baseURI - the URI to get the config Model for
com.hp.hpl.jena.ontology.OntModel getConfigOntModel(java.net.URI baseURI)
baseURI - the URI to get the OntModel for
java.net.URI getImportBaseURI(java.net.URI importedURI)
importedURI - the imported URI (object of an owl:imports statement)
java.lang.Object getSource(java.net.URI baseURI)
baseURI - the base URI of the model
boolean isDirty(com.hp.hpl.jena.graph.Graph graph)
boolean isMemoryGraph(com.hp.hpl.jena.graph.Graph graph)
java.util.Iterator<java.net.URI> listURIs()
com.hp.hpl.jena.graph.Graph register(java.net.URI baseURI,
com.hp.hpl.jena.graph.Graph baseGraph,
java.lang.Object source,
org.eclipse.core.runtime.IProgressMonitor monitor)
baseURI - the base URI to register the new graph underbaseGraph - the base "raw" Graphsource - the source where the graph has been loaded frommonitor - an optional progress monitor (if caches are built up)
void removeListener(IGraphRegistryListener listener)
void replaceBaseURI(java.net.URI oldURI,
java.net.URI newURI)
void setDirty(com.hp.hpl.jena.graph.Graph graph,
boolean value)
void setSource(java.net.URI baseURI,
java.lang.Object source)
void unregister(java.net.URI baseURI)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||