|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IGraphStore
An interface for objects implementing the graphStore extension point. A GraphStore manages the life cycle of a file with a certain suffix. For example, this can be used to implement database backends.
| Method Summary | |
|---|---|
void |
close(org.eclipse.core.resources.IFile file)
Closes any resources allocated by a given file. |
java.net.URI |
getBaseURI(org.eclipse.core.resources.IFile file,
java.util.Set<java.net.URI> imports)
Gets the declared base URI and the owl:imports of a given file. |
java.lang.String[] |
getFileExtensions()
Returns an (optional) array of file extensions that this graph store can handle. |
ImageMetadata |
getImageMetadata()
Gets a (base) image to display files of this type in the Navigator (and potentially elsewhere). |
boolean |
isReadOnly(org.eclipse.core.resources.IFile file)
Checks if a given IFile is read-only. |
com.hp.hpl.jena.graph.Graph |
load(org.eclipse.core.resources.IFile file,
org.eclipse.core.runtime.IProgressMonitor monitor)
Creates a new Jena Graph for a given IFile. |
void |
save(org.eclipse.core.resources.IFile file,
com.hp.hpl.jena.graph.Graph graph,
java.lang.String baseURI)
|
boolean |
saveAs(org.eclipse.core.resources.IFile file,
com.hp.hpl.jena.graph.Graph graph,
java.lang.String baseURI)
|
| Method Detail |
|---|
void close(org.eclipse.core.resources.IFile file)
throws java.lang.Exception
file - the file representing the store
java.lang.Exception
java.net.URI getBaseURI(org.eclipse.core.resources.IFile file,
java.util.Set<java.net.URI> imports)
throws java.lang.Exception
file - the file to get the base URI ofimports - an initially empty Set that will contain imported URIs
java.lang.Exceptionjava.lang.String[] getFileExtensions()
ImageMetadata getImageMetadata()
boolean isReadOnly(org.eclipse.core.resources.IFile file)
com.hp.hpl.jena.graph.Graph load(org.eclipse.core.resources.IFile file,
org.eclipse.core.runtime.IProgressMonitor monitor)
throws java.lang.Exception
file - the file to loadmonitor - the monitor for status reports or null
java.lang.Exception - if something went wrong
void save(org.eclipse.core.resources.IFile file,
com.hp.hpl.jena.graph.Graph graph,
java.lang.String baseURI)
throws java.io.IOException
java.io.IOException
boolean saveAs(org.eclipse.core.resources.IFile file,
com.hp.hpl.jena.graph.Graph graph,
java.lang.String baseURI)
throws java.lang.Exception
file - model - baseURI -
java.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||