public class AcceptHeaderFactory extends Object
RDFFormat.getAcceptParams(Iterable, boolean, RDFFormat)
, but extended
to handle TupleQueryResultFormat
using the same base quality value.Constructor and Description |
---|
AcceptHeaderFactory() |
Modifier and Type | Method and Description |
---|---|
static List<String> |
getAcceptParams(Iterable<org.openrdf.rio.RDFFormat> rdfFormats,
boolean requireContext,
org.openrdf.rio.RDFFormat preferredFormat) |
static <T extends info.aduna.lang.FileFormat> |
getAcceptParams(Iterable<T> formats,
T preferredFormat)
Return a set of accept header values annotated with quality scores.
|
static String |
getDefaultBooleanAcceptHeader()
Return an accept header which establishes a preference pattern for
boolean data.
|
static String |
getDefaultGraphAcceptHeader(boolean requireContext)
Return an accept header which establishes a preference pattern for graph
data.
|
static String |
getDefaultSolutionsAcceptHeader()
Return an accept header which establishes a preference pattern for
solution set data.
|
public static List<String> getAcceptParams(Iterable<org.openrdf.rio.RDFFormat> rdfFormats, boolean requireContext, org.openrdf.rio.RDFFormat preferredFormat)
rdfFormats
- requireContext
- preferredFormat
- public static <T extends info.aduna.lang.FileFormat> List<String> getAcceptParams(Iterable<T> formats, T preferredFormat)
formats
- The set of formats which can be accepted.preferredFormat
- The preferred format (optional).public static String getDefaultGraphAcceptHeader(boolean requireContext)
public static String getDefaultSolutionsAcceptHeader()
Note: You CAN NOT just combine the accept headers for boolean results and solution sets together because the boolean format overlaps the solution set format (they are both [application/sparql-results+xml] so putting them together blurs the quality annotations.
public static String getDefaultBooleanAcceptHeader()
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.