| 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 |
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. |
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. |
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. |
|
|