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


org.openrdf.query.resultio.TupleQueryResultFormat

TupleQueryResultFormat
public class TupleQueryResultFormat extends FileFormat (Code)
Represents the concept of an tuple query result serialization format. Tuple query result formats are identified by a TupleQueryResultFormat.getName() name and can have one or more associated MIME types, zero or more associated file extensions and can specify a (default) character encoding.
author:
   Arjohn Kampman


Field Summary
final public static  TupleQueryResultFormatBINARY
     Binary RDF results table format.
final public static  TupleQueryResultFormatJSON
     SPARQL Query Results JSON Format.
final public static  TupleQueryResultFormatSPARQL
     SPARQL Query Results XML Format.

Constructor Summary
public  TupleQueryResultFormat(String name, String mimeType, String fileExt)
     Creates a new TupleQueryResultFormat object.
Parameters:
  name - The name of the format, e.g.
public  TupleQueryResultFormat(String name, String mimeType, Charset charset, String fileExt)
     Creates a new TupleQueryResultFormat object.
Parameters:
  name - The name of the format, e.g.
public  TupleQueryResultFormat(String name, Collection<String> mimeTypes, Charset charset, Collection<String> fileExtensions)
     Creates a new TupleQueryResultFormat object.
Parameters:
  name - The name of the format, e.g.

Method Summary
public static  TupleQueryResultFormatforFileName(String fileName)
     Tries to determine the appropriate tuple file format for a file, based on the extension specified in a file name.
Parameters:
  fileName - A file name.
public static  TupleQueryResultFormatforFileName(String fileName, TupleQueryResultFormat fallback)
     Tries to determine the appropriate tuple file format for a file, based on the extension specified in a file name.
public static  TupleQueryResultFormatforMIMEType(String mimeType)
     Tries to determine the appropriate tuple file format based on the a MIME type that describes the content type.
Parameters:
  mimeType - A MIME type, e.g.
public static  TupleQueryResultFormatforMIMEType(String mimeType, TupleQueryResultFormat fallback)
     Tries to determine the appropriate tuple file format based on the a MIME type that describes the content type.
public static  TupleQueryResultFormatregister(String name, String mimeType, String fileExt)
     Registers the specified tuple query result format.
Parameters:
  name - The name of the format, e.g.
public static  voidregister(TupleQueryResultFormat format)
     Registers the specified tuple query result format.
public static  Collection<TupleQueryResultFormat>values()
     Returns all known/registered tuple query result formats.

Field Detail
BINARY
final public static TupleQueryResultFormat BINARY(Code)
Binary RDF results table format.



JSON
final public static TupleQueryResultFormat JSON(Code)
SPARQL Query Results JSON Format.



SPARQL
final public static TupleQueryResultFormat SPARQL(Code)
SPARQL Query Results XML Format.




Constructor Detail
TupleQueryResultFormat
public TupleQueryResultFormat(String name, String mimeType, String fileExt)(Code)
Creates a new TupleQueryResultFormat object.
Parameters:
  name - The name of the format, e.g. "SPARQL/XML".
Parameters:
  mimeType - The MIME type of the format, e.g.application/sparql-results+xml for the SPARQL/XMLformat.
Parameters:
  fileExt - The (default) file extension for the format, e.g. srxfor SPARQL/XML.



TupleQueryResultFormat
public TupleQueryResultFormat(String name, String mimeType, Charset charset, String fileExt)(Code)
Creates a new TupleQueryResultFormat object.
Parameters:
  name - The name of the format, e.g. "SPARQL/XML".
Parameters:
  mimeType - The MIME type of the format, e.g.application/sparql-results+xml for the SPARQL/XMLformat.
Parameters:
  charset - The default character encoding of the format. Specify nullif not applicable.
Parameters:
  fileExt - The (default) file extension for the format, e.g. srxfor SPARQL/XML.



TupleQueryResultFormat
public TupleQueryResultFormat(String name, Collection<String> mimeTypes, Charset charset, Collection<String> fileExtensions)(Code)
Creates a new TupleQueryResultFormat object.
Parameters:
  name - The name of the format, e.g. "SPARQL/XML".
Parameters:
  mimeTypes - The MIME types of the format, e.g.application/sparql-results+xml for the SPARQL/XMLformat. The first item in the list is interpreted as the defaultMIME type for the format.
Parameters:
  charset - The default character encoding of the format. Specify nullif not applicable.
Parameters:
  fileExtensions - The format's file extensions, e.g. srx for SPARQL/XMLfiles. The first item in the list is interpreted as the defaultfile extension for the format.




Method Detail
forFileName
public static TupleQueryResultFormat forFileName(String fileName)(Code)
Tries to determine the appropriate tuple file format for a file, based on the extension specified in a file name.
Parameters:
  fileName - A file name. A TupleQueryResultFormat object if the file extension wasrecognized, or null otherwise.
See Also:   TupleQueryResultFormat.forFileName(String,TupleQueryResultFormat)
See Also:   TupleQueryResultFormat.getFileExtension



forFileName
public static TupleQueryResultFormat forFileName(String fileName, TupleQueryResultFormat fallback)(Code)
Tries to determine the appropriate tuple file format for a file, based on the extension specified in a file name. The supplied fallback format will be returned when the file name extension was not recognized.
Parameters:
  fileName - A file name. A TupleQueryResultFormat that matches the file name extension, orthe fallback format if the extension was not recognized.
See Also:   TupleQueryResultFormat.forFileName(String)
See Also:   TupleQueryResultFormat.getFileExtension



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



forMIMEType
public static TupleQueryResultFormat forMIMEType(String mimeType, TupleQueryResultFormat fallback)(Code)
Tries to determine the appropriate tuple 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 MIME type, e.g. "application/sparql-results+xml"
Parameters:
  fallback - a fallback TupleQueryResultFormat that will be returned by themethod if no match for the supplied MIME type can be found. A TupleQueryResultFormat that matches the MIME type, or thefallback format if the extension was not recognized.
See Also:   TupleQueryResultFormat.forMIMEType(String)
See Also:   TupleQueryResultFormat.getMIMEType



register
public static TupleQueryResultFormat register(String name, String mimeType, String fileExt)(Code)
Registers the specified tuple query result format.
Parameters:
  name - The name of the format, e.g. "SPARQL/XML".
Parameters:
  mimeType - The MIME type of the format, e.g.application/sparql-results+xml for the SPARQL/XML fileformat.
Parameters:
  fileExt - The (default) file extension for the format, e.g. srxfor SPARQL/XML files.



register
public static void register(TupleQueryResultFormat format)(Code)
Registers the specified tuple query result format.



values
public static Collection<TupleQueryResultFormat> values()(Code)
Returns all known/registered tuple query result 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.