| java.lang.Object com.hp.hpl.jena.graph.impl.BaseGraphMaker com.hp.hpl.jena.graph.impl.FileGraphMaker
FileGraphMaker | public class FileGraphMaker extends BaseGraphMaker implements FileGraph.NotifyOnClose(Code) | | A FileGraph factory, making FileGraphs based round some supplied
directory. We have to keep track of created files ourselves, because a
FileGraph that has been created but not closed is not visible in the
filing system. (This might count as a bug at some point.)
author: hedgehog |
deleteOnClose | protected boolean deleteOnClose(Code) | | |
FileGraphMaker | public FileGraphMaker(String root)(Code) | | Construct a file graph factory whose files will appear in root. The reifier
style is Minimal and the files will be retained when the maker is closed.
Parameters: root - the directory to keep the files in. |
FileGraphMaker | public FileGraphMaker(String root, ReificationStyle style)(Code) | | Construct a file graph factory whose files will appear in root. The files
will be retained when the maker is closed.
Parameters: root - the directory to keep the files in. Parameters: style - the reification style of the resulting graph |
FileGraphMaker | public FileGraphMaker(String root, ReificationStyle style, boolean deleteOnClose)(Code) | | Construct a file graph factory whose files will appear in root.
If deleteOnClose is true, the files created by this factory will be deleted
when the factory is closed.
Parameters: root - the directory to keep the files in Parameters: style - the reification style of the graph Parameters: deleteOnClose - iff true, delete created files on close |
augmentDescription | protected void augmentDescription(Graph g, Node self)(Code) | | |
close | public void close()(Code) | | |
createGraph | public Graph createGraph()(Code) | | Answer a new, anonynous FileGraph. See FileGraph.create().
a new anonymous FileGraph |
getFileBase | public String getFileBase()(Code) | | Answer the fileBase of all the graphs created by this FileGraphMaker.
the fileBase of this Maker |
getMakerClass | public Node getMakerClass()(Code) | | Answer the RDFS class of a FileGraphMaker
JenaModelSpec.FileMakerClass [node version] |
graphName | public static FilenameFilter graphName()(Code) | | Answer a FilenameFilter which recognises plausibly RDF filenames; they're not
directories, and FileGraph likes them. Pass the buck, pass the buck ...
a FilenameFilter that accepts plausible graph names |
listGraphs | public ExtendedIterator listGraphs()(Code) | | Answer an iterator over the names of graphs in the FileGraphMaker. This is all the
names of freshly-created graphs, plus the names of any files in the fileBase that
might be RDF files. "Might" is weaker than we'd like for now.
See Also: com.hp.hpl.jena.graph.GraphMaker.listGraphs |
notifyClosed | public void notifyClosed(File f)(Code) | | |
toFilename | public static String toFilename(String name)(Code) | | Make name into a "safe" filename. "safe" is a bit weak
here; we want to allow URIs as graph names and assume that our filing
systems will be reasonably liberal. We'll see ...
Parameters: name - name with underbar, slash, and colon escaped as _U, _S, _C |
toGraphname | public static String toGraphname(String fileName)(Code) | | Answer the graphname corresponding to the given filename, undoing the
conversion done by toFilename.
Parameters: fileName - a filename, possible containing _U, _C, and _S escapes the unescaped name |
|
|