Java Doc for FileGraphMaker.java in  » RSS-RDF » Jena-2.5.5 » com » hp » hpl » jena » graph » impl » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » RSS RDF » Jena 2.5.5 » com.hp.hpl.jena.graph.impl 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


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


Field Summary
protected  Mapcreated
    
protected  booleandeleteOnClose
    
protected  StringfileBase
    
protected  SettoDelete
    

Constructor Summary
public  FileGraphMaker(String root)
     Construct a file graph factory whose files will appear in root.
public  FileGraphMaker(String root, ReificationStyle style)
     Construct a file graph factory whose files will appear in root.
public  FileGraphMaker(String root, ReificationStyle style, boolean deleteOnClose)
     Construct a file graph factory whose files will appear in root.

Method Summary
protected  voidaugmentDescription(Graph g, Node self)
    
public  voidclose()
    
public  GraphcreateGraph()
     Answer a new, anonynous FileGraph.
public  GraphcreateGraph(String name, boolean strict)
    
protected  voiddeleteFiles(Iterator it)
    
public  StringgetFileBase()
     Answer the fileBase of all the graphs created by this FileGraphMaker.
public  NodegetMakerClass()
    
public static  FilenameFiltergraphName()
     Answer a FilenameFilter which recognises plausibly RDF filenames; they're not directories, and FileGraph likes them.
public  booleanhasGraph(String name)
    
public  ExtendedIteratorlistGraphs()
     Answer an iterator over the names of graphs in the FileGraphMaker.
public  voidnotifyClosed(File f)
    
public  GraphopenGraph(String name, boolean strict)
    
public  voidremoveGraph(String name)
    
public static  StringtoFilename(String name)
     Make name into a "safe" filename.
public static  StringtoGraphname(String fileName)
     Answer the graphname corresponding to the given filename, undoing the conversion done by toFilename.

Field Detail
created
protected Map created(Code)



deleteOnClose
protected boolean deleteOnClose(Code)



fileBase
protected String fileBase(Code)



toDelete
protected Set toDelete(Code)




Constructor Detail
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




Method Detail
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



createGraph
public Graph createGraph(String name, boolean strict)(Code)



deleteFiles
protected void deleteFiles(Iterator it)(Code)



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



hasGraph
public boolean hasGraph(String name)(Code)



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)



openGraph
public Graph openGraph(String name, boolean strict)(Code)



removeGraph
public void removeGraph(String name)(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



Fields inherited from com.hp.hpl.jena.graph.impl.BaseGraphMaker
protected ReificationStyle style(Code)(Java Doc)

Methods inherited from com.hp.hpl.jena.graph.impl.BaseGraphMaker
public Graph addDescription(Graph desc, Node self)(Code)(Java Doc)
abstract protected void augmentDescription(Graph d, Node self)(Code)(Java Doc)
public Graph createGraph()(Code)(Java Doc)
public Graph createGraph(String name)(Code)(Java Doc)
public Graph getDescription()(Code)(Java Doc)
public Graph getDescription(Node root)(Code)(Java Doc)
public Graph getGraph()(Code)(Java Doc)
abstract public Node getMakerClass()(Code)(Java Doc)
public ReificationStyle getReificationStyle()(Code)(Java Doc)
public Graph openGraph()(Code)(Java Doc)
public Graph openGraph(String name)(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.