public class QueryResultFormat extends FileFormat
Modifier and Type | Field and Description |
---|---|
protected static URI |
SPARQL_RESULTS_CSV_URI
Local constant for tuple formats for SPARQL Results CSV.
|
protected static URI |
SPARQL_RESULTS_JSON_URI
Local constant reused across boolean and tuple formats for SPARQL Results
JSON.
|
protected static URI |
SPARQL_RESULTS_TSV_URI
Local constant for tuple formats for SPARQL Results TSV.
|
protected static URI |
SPARQL_RESULTS_XML_URI
Local constant reused across boolean and tuple formats for SPARQL Results
XML.
|
Constructor and Description |
---|
QueryResultFormat(String name,
Collection<String> mimeTypes,
Charset charset,
Collection<String> fileExtensions) |
QueryResultFormat(String name,
Collection<String> mimeTypes,
Charset charset,
Collection<String> fileExtensions,
URI standardURI) |
QueryResultFormat(String name,
String mimeType,
Charset charset,
Collection<String> fileExtensions) |
QueryResultFormat(String name,
String mimeType,
Charset charset,
String fileExt) |
Modifier and Type | Method and Description |
---|---|
URI |
getStandardURI() |
boolean |
hasStandardURI() |
equals, getCharset, getDefaultFileExtension, getDefaultMIMEType, getFileExtensions, getMIMETypes, getName, hasCharset, hasDefaultFileExtension, hasDefaultMIMEType, hasFileExtension, hashCode, hasMIMEType, matchFileName, matchFileName, matchMIMEType, matchMIMEType, toString
protected static final URI SPARQL_RESULTS_XML_URI
protected static final URI SPARQL_RESULTS_JSON_URI
protected static final URI SPARQL_RESULTS_CSV_URI
protected static final URI SPARQL_RESULTS_TSV_URI
public QueryResultFormat(String name, String mimeType, Charset charset, String fileExt)
name
- The name of the format, e.g. "SPARQL/XML".mimeType
- The MIME type of the format, e.g.
application/sparql-results+xml for the SPARQL/XML file
format.charset
- The default character encoding of the format. Specify null
if not applicable.fileExt
- The (default) file extension for the format, e.g. srx for
SPARQL/XML files.public QueryResultFormat(String name, String mimeType, Charset charset, Collection<String> fileExtensions)
name
- The name of the format, e.g. "SPARQL/XML".mimeType
- The MIME type of the format, e.g.
application/sparql-results+xml for the SPARQL/XML format.charset
- The default character encoding of the format. Specify null
if not applicable.fileExtensions
- The format's file extensions, e.g. srx for SPARQL/XML
files. The first item in the list is interpreted as the default
file extension for the format.public QueryResultFormat(String name, Collection<String> mimeTypes, Charset charset, Collection<String> fileExtensions)
name
- The name of the format, e.g. "SPARQL/XML".mimeTypes
- The MIME types of the format, e.g.
application/sparql-results+xml for the SPARQL/XML format.
The first item in the list is interpreted as the default MIME type
for the format.charset
- The default character encoding of the format. Specify null
if not applicable.fileExtensions
- The format's file extensions, e.g. srx for SPARQL/XML
files. The first item in the list is interpreted as the default
file extension for the format.public QueryResultFormat(String name, Collection<String> mimeTypes, Charset charset, Collection<String> fileExtensions, URI standardURI)
name
- The name of the format, e.g. "SPARQL/XML".mimeTypes
- The MIME types of the format, e.g.
application/sparql-results+xml for the SPARQL/XML format.
The first item in the list is interpreted as the default MIME type
for the format.charset
- The default character encoding of the format. Specify null
if not applicable.fileExtensions
- The format's file extensions, e.g. srx for SPARQL/XML
files. The first item in the list is interpreted as the default
file extension for the format.public boolean hasStandardURI()
public URI getStandardURI()
Copyright © 2001–2017 Aduna. All rights reserved.