public class TupleQueryResultFormat extends QueryResultFormat
name
and can have one or more associated MIME types, zero or more associated file extensions and
can specify a (default) character encoding.Modifier and Type | Field and Description |
---|---|
static TupleQueryResultFormat |
BINARY
Binary RDF results table format.
|
static TupleQueryResultFormat |
CSV
SPARQL Query Result CSV Format.
|
static TupleQueryResultFormat |
JSON
SPARQL Query Results JSON Format.
|
static TupleQueryResultFormat |
JSON_STAR
SPARQL-star Query Results JSON Format (like SPARQL JSON but with RDF-star support).
|
static TupleQueryResultFormat |
SPARQL
SPARQL Query Results XML Format.
|
static TupleQueryResultFormat |
SPARQL_STAR
SPARQL-star Query Results XML Format (like SPARQL/XML but with native RDF-star support).
|
static TupleQueryResultFormat |
TSV
SPARQL Query Result TSV Format.
|
static TupleQueryResultFormat |
TSV_STAR
SPARQL-star Query Results TSV Format (like SPARQL TSV but with RDF-star support).
|
SPARQL_RESULTS_CSV_URI, SPARQL_RESULTS_JSON_URI, SPARQL_RESULTS_TSV_URI, SPARQL_RESULTS_XML_URI
Constructor and Description |
---|
TupleQueryResultFormat(String name,
Collection<String> mimeTypes,
Charset charset,
Collection<String> fileExtensions)
Creates a new TupleQueryResultFormat object.
|
TupleQueryResultFormat(String name,
Collection<String> mimeTypes,
Charset charset,
Collection<String> fileExtensions,
boolean supportsRDFStar)
Creates a new TupleQueryResultFormat object.
|
TupleQueryResultFormat(String name,
Collection<String> mimeTypes,
Charset charset,
Collection<String> fileExtensions,
IRI standardURI)
Creates a new TupleQueryResultFormat object.
|
TupleQueryResultFormat(String name,
Collection<String> mimeTypes,
Charset charset,
Collection<String> fileExtensions,
IRI standardURI,
boolean supportsRDFStar)
Creates a new TupleQueryResultFormat object.
|
TupleQueryResultFormat(String name,
String mimeType,
Charset charset,
String fileExt)
Creates a new TupleQueryResultFormat object.
|
TupleQueryResultFormat(String name,
String mimeType,
Charset charset,
String fileExt,
boolean supportsRDFStar)
Creates a new TupleQueryResultFormat object.
|
TupleQueryResultFormat(String name,
String mimeType,
String fileExt)
Creates a new TupleQueryResultFormat object.
|
TupleQueryResultFormat(String name,
String mimeType,
String fileExt,
boolean supportsRDFStar)
Creates a new TupleQueryResultFormat object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
supportsRDFStar()
Return true if the TupleQueryResultFormat supports the encoding of RDF-star triples natively.
|
getStandardURI, hasStandardURI
equals, getCharset, getDefaultFileExtension, getDefaultMIMEType, getFileExtensions, getMIMETypes, getName, hasCharset, hasDefaultFileExtension, hasDefaultMIMEType, hasFileExtension, hashCode, hasMIMEType, matchFileName, matchMIMEType, toString
public static final TupleQueryResultFormat SPARQL
@Experimental public static final TupleQueryResultFormat SPARQL_STAR
public static final TupleQueryResultFormat BINARY
public static final TupleQueryResultFormat JSON
@Experimental public static final TupleQueryResultFormat JSON_STAR
public static final TupleQueryResultFormat CSV
public static final TupleQueryResultFormat TSV
public static final TupleQueryResultFormat TSV_STAR
public TupleQueryResultFormat(String name, String mimeType, 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
format.fileExt
- The (default) file extension for the format, e.g. srx for SPARQL/XML.public TupleQueryResultFormat(String name, String mimeType, String fileExt, boolean supportsRDFStar)
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.fileExt
- The (default) file extension for the format, e.g. srx for SPARQL/XML.supportsRDFStar
- True if the TupleQueryResultFormat supports the encoding of RDF-star triples
natively and false otherwise.public TupleQueryResultFormat(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
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.public TupleQueryResultFormat(String name, String mimeType, Charset charset, String fileExt, boolean supportsRDFStar)
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.fileExt
- The (default) file extension for the format, e.g. srx for SPARQL/XML.supportsRDFStar
- True if the TupleQueryResultFormat supports the encoding of RDF-star triples
natively and false otherwise.public TupleQueryResultFormat(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 TupleQueryResultFormat(String name, Collection<String> mimeTypes, Charset charset, Collection<String> fileExtensions, boolean supportsRDFStar)
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.supportsRDFStar
- True if the TupleQueryResultFormat supports the encoding of RDF-star triples
natively and false otherwise.public TupleQueryResultFormat(String name, Collection<String> mimeTypes, Charset charset, Collection<String> fileExtensions, IRI 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.standardURI
- The standard URI that has been assigned to this format by a standards organisation or null
if it does not currently have a standard URI.public TupleQueryResultFormat(String name, Collection<String> mimeTypes, Charset charset, Collection<String> fileExtensions, IRI standardURI, boolean supportsRDFStar)
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.standardURI
- The standard URI that has been assigned to this format by a standards organisation or null
if it does not currently have a standard URI.supportsRDFStar
- True if the TupleQueryResultFormat supports the encoding of RDF-star triples
natively and false otherwise.Copyright © 2015-2022 Eclipse Foundation. All Rights Reserved.