| org.openrdf.query.resultio.BooleanQueryResultFormat
BooleanQueryResultFormat | public class BooleanQueryResultFormat extends FileFormat (Code) | | Represents the concept of a boolean query result serialization format.
Boolean query result formats are identified by a
BooleanQueryResultFormat.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 | BooleanQueryResultFormat(String name, String mimeType, String fileExt) Creates a new TupleQueryResultFormat object.
Parameters: name - The name of the format, e.g. | public | BooleanQueryResultFormat(String name, String mimeType, Charset charset, String fileExt) Creates a new TupleQueryResultFormat object.
Parameters: name - The name of the format, e.g. | public | BooleanQueryResultFormat(String name, Collection<String> mimeTypes, Charset charset, Collection<String> fileExtensions) Creates a new TupleQueryResultFormat object.
Parameters: name - The name of the format, e.g. |
BooleanQueryResultFormat | public BooleanQueryResultFormat(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. |
BooleanQueryResultFormat | public BooleanQueryResultFormat(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. |
BooleanQueryResultFormat | public BooleanQueryResultFormat(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 BooleanQueryResultFormat forMIMEType(String mimeType, BooleanQueryResultFormat fallback)(Code) | | Tries to determine the appropriate boolean 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: BooleanQueryResultFormat.forMIMEType(String) See Also: BooleanQueryResultFormat.getMIMEType |
register | public static BooleanQueryResultFormat register(String name, String mimeType, String fileExt)(Code) | | Registers the specified boolean 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. |
|
|