Java Doc for RDFFormat.java in  » RSS-RDF » sesame » org » openrdf » rio » 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 » sesame » org.openrdf.rio 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.openrdf.rio.RDFFormat

RDFFormat
public class RDFFormat extends FileFormat (Code)
Represents the concept of an RDF data serialization format. RDF formats are identified by a RDFFormat.getName() name and can have one or more associated MIME types, zero or more associated file extensions and can specify a (default) character encoding. Some formats are able to encode context information while other are not; this is indicated by the value of RDFFormat.supportsContexts .
author:
   Arjohn Kampman


Field Summary
final public static  RDFFormatN3
     The N3/Notation3 file format.
final public static  RDFFormatNTRIPLES
     The N-Triples file format.
final public static  RDFFormatRDFXML
     The RDF/XML file format.
final public static  RDFFormatTRIG
     The TriG file format.
final public static  RDFFormatTRIX
     The TriX file format.
final public static  RDFFormatTURTLE
     The Turtle file format.

Constructor Summary
public  RDFFormat(String name, String mimeType, Charset charset, String fileExtension, boolean supportsNamespaces, boolean supportsContexts)
     Creates a new RDFFormat object.
Parameters:
  name - The name of the RDF file format, e.g.
public  RDFFormat(String name, String mimeType, Charset charset, Collection<String> fileExtensions, boolean supportsNamespaces, boolean supportsContexts)
     Creates a new RDFFormat object.
Parameters:
  name - The name of the RDF file format, e.g.
public  RDFFormat(String name, Collection<String> mimeTypes, Charset charset, Collection<String> fileExtensions, boolean supportsNamespaces, boolean supportsContexts)
     Creates a new RDFFormat object.
Parameters:
  name - The name of the RDF file format, e.g.

Method Summary
public static  RDFFormatforFileName(String fileName)
     Tries to determine the appropriate RDF file format based on the extension of a file name.
Parameters:
  fileName - A file name.
public static  RDFFormatforFileName(String fileName, RDFFormat fallback)
     Tries to determine the appropriate RDF file format based on the extension of a file name.
public static  RDFFormatforMIMEType(String mimeType)
     Tries to determine the appropriate RDF file format based on the a MIME type that describes the content type.
Parameters:
  mimeType - A MIME type, e.g.
public static  RDFFormatforMIMEType(String mimeType, RDFFormat fallback)
     Tries to determine the appropriate RDF file format based on the a MIME type that describes the content type.
public static  RDFFormatregister(String name, String mimeType, String fileExt, Charset charset)
     Registers the specified RDF file format.
Parameters:
  name - The name of the RDF file format, e.g.
public static  voidregister(RDFFormat rdfFormat)
     Registers the specified RDF file format.
public  booleansupportsContexts()
    
public  booleansupportsNamespaces()
    
public static  RDFFormatvalueOf(String formatName)
     Returns the RDF format whose name matches the specified name.
Parameters:
  formatName - A format name.
public static  Collection<RDFFormat>values()
     Returns all known/registered RDF formats.

Field Detail
N3
final public static RDFFormat N3(Code)
The N3/Notation3 file format.



NTRIPLES
final public static RDFFormat NTRIPLES(Code)
The N-Triples file format.



RDFXML
final public static RDFFormat RDFXML(Code)
The RDF/XML file format.



TRIG
final public static RDFFormat TRIG(Code)
The TriG file format.



TRIX
final public static RDFFormat TRIX(Code)
The TriX file format.



TURTLE
final public static RDFFormat TURTLE(Code)
The Turtle file format.




Constructor Detail
RDFFormat
public RDFFormat(String name, String mimeType, Charset charset, String fileExtension, boolean supportsNamespaces, boolean supportsContexts)(Code)
Creates a new RDFFormat object.
Parameters:
  name - The name of the RDF file format, e.g. "RDF/XML".
Parameters:
  mimeType - The MIME type of the RDF file format, e.g.application/rdf+xml for the RDF/XML file format.
Parameters:
  charset - The default character encoding of the RDF file format. Specifynull if not applicable.
Parameters:
  fileExtension - The (default) file extension for the RDF file format, e.g.rdf for RDF/XML files.



RDFFormat
public RDFFormat(String name, String mimeType, Charset charset, Collection<String> fileExtensions, boolean supportsNamespaces, boolean supportsContexts)(Code)
Creates a new RDFFormat object.
Parameters:
  name - The name of the RDF file format, e.g. "RDF/XML".
Parameters:
  mimeType - The MIME type of the RDF file format, e.g.application/rdf+xml for the RDF/XML file format.
Parameters:
  charset - The default character encoding of the RDF file format. Specifynull if not applicable.
Parameters:
  fileExtensions - The RDF format's file extensions, e.g. rdf for RDF/XMLfiles. The first item in the list is interpreted as the defaultfile extension for the format.



RDFFormat
public RDFFormat(String name, Collection<String> mimeTypes, Charset charset, Collection<String> fileExtensions, boolean supportsNamespaces, boolean supportsContexts)(Code)
Creates a new RDFFormat object.
Parameters:
  name - The name of the RDF file format, e.g. "RDF/XML".
Parameters:
  mimeTypes - The MIME types of the RDF file format, e.g.application/rdf+xml for the RDF/XML file format. Thefirst item in the list is interpreted as the default MIME type forthe format.
Parameters:
  charset - The default character encoding of the RDF file format. Specifynull if not applicable.
Parameters:
  fileExtensions - The RDF format's file extensions, e.g. rdf for RDF/XMLfiles. The first item in the list is interpreted as the defaultfile extension for the format.




Method Detail
forFileName
public static RDFFormat forFileName(String fileName)(Code)
Tries to determine the appropriate RDF file format based on the extension of a file name.
Parameters:
  fileName - A file name. An RDFFormat object if the file extension was recognized, ornull otherwise.
See Also:   RDFFormat.forFileName(String,RDFFormat)
See Also:   RDFFormat.getFileExtension



forFileName
public static RDFFormat forFileName(String fileName, RDFFormat fallback)(Code)
Tries to determine the appropriate RDF file format based on the extension of a file name. The supplied fallback format will be returned when the file name extension was not recognized.
Parameters:
  fileName - A file name. An RDFFormat that matches the file name extension, or the fallbackformat if the extension was not recognized.
See Also:   RDFFormat.forFileName(String)
See Also:   RDFFormat.getFileExtension



forMIMEType
public static RDFFormat forMIMEType(String mimeType)(Code)
Tries to determine the appropriate RDF file format based on the a MIME type that describes the content type.
Parameters:
  mimeType - A MIME type, e.g. "application/rdf+xml". An RDFFormat object if the MIME type was recognized, ornull otherwise.
See Also:   RDFFormat.forMIMEType(String,RDFFormat)
See Also:   RDFFormat.getMIMEType



forMIMEType
public static RDFFormat forMIMEType(String mimeType, RDFFormat fallback)(Code)
Tries to determine the appropriate RDF file format based on the a MIME type that describes the content type. The supplied fallback format will be returned when the MIME type was not recognized.
Parameters:
  mimeType - A file name. An RDFFormat that matches the MIME type, or the fallback format ifthe extension was not recognized.
See Also:   RDFFormat.forMIMEType(String)
See Also:   RDFFormat.getMIMEType



register
public static RDFFormat register(String name, String mimeType, String fileExt, Charset charset)(Code)
Registers the specified RDF file format.
Parameters:
  name - The name of the RDF file format, e.g. "RDF/XML".
Parameters:
  mimeType - The MIME type of the RDF file format, e.g.application/rdf+xml for the RDF/XML file format.
Parameters:
  fileExt - The (default) file extension for the RDF file format, e.g.rdf for RDF/XML files.



register
public static void register(RDFFormat rdfFormat)(Code)
Registers the specified RDF file format.



supportsContexts
public boolean supportsContexts()(Code)



supportsNamespaces
public boolean supportsNamespaces()(Code)



valueOf
public static RDFFormat valueOf(String formatName)(Code)
Returns the RDF format whose name matches the specified name.
Parameters:
  formatName - A format name. The RDF format whose name matches the specified name, ornull if there is no such format.



values
public static Collection<RDFFormat> values()(Code)
Returns all known/registered RDF formats.



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