public class FacetState extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
SEARCH_LENGTH_LIMIT |
| Constructor and Description |
|---|
FacetState(List<FacetSpec> specList) |
| Modifier and Type | Method and Description |
|---|---|
String |
expandQuery(String baseQuery)
Expand the given base SPARQL query (which is assumed to bind a ?item var)
with additional OPTIONALs to retrieve facet values and FILTERs to filter them.
|
FacetSpec |
getFacetSpec(String name)
Return the facet specification with the given name
|
List<FacetSpec> |
getFacetSpecs()
Return the list of facet specifications, ordered by name
|
String |
serialize()
Serialize the state of facet selection.
|
String |
serializeWith(String add,
com.hp.hpl.jena.rdf.model.RDFNode value)
Seralize the state of facet selection with the addition of the given facet value
|
String |
serializeWithout(String omit)
Seralize the state of facet selection with the omission of
the named facet
|
void |
setState(String serialize)
Parse a serialize state of facet selection and apply it
|
public static final int SEARCH_LENGTH_LIMIT
public String expandQuery(String baseQuery)
public List<FacetSpec> getFacetSpecs()
public FacetSpec getFacetSpec(String name)
public String serialize()
public String serializeWith(String add, com.hp.hpl.jena.rdf.model.RDFNode value)
public String serializeWithout(String omit)
public void setState(String serialize)
Copyright © 2014. All rights reserved.