public class FacetResult extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_PAGESIZE |
| Constructor and Description |
|---|
FacetResult(String query,
String state,
List<FacetSpec> specList,
com.hp.hpl.jena.rdf.model.Model model)
Create and run the search.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
facetCounts(com.hp.hpl.jena.rdf.model.Model model) |
Facet |
facetForVar(String varname)
Locate the facet corresponding to the given variable name
|
List<FacetResultEntry> |
getAllResults()
Return all the results after the current facet filter has been applied.
|
List<Facet> |
getFacets()
Return the list facets discovered, ordered by localname of the facet property name
|
FacetSpec |
getFacetSpec(String name)
Return the facet specification with the given name
|
List<FacetSpec> |
getFacetSpecs()
Return the list of facet specifications, ordered by name
|
List<FacetResultEntry> |
getResultsPage(int pagenum)
Return the results after the current facet filter has been applied.
|
protected void |
initFacets(com.hp.hpl.jena.rdf.model.Model model) |
int |
numberOfPages() |
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 |
setPageSize(int ps) |
public static final int DEFAULT_PAGESIZE
public FacetResult(String query, String state, List<FacetSpec> specList, com.hp.hpl.jena.rdf.model.Model model)
query - graphpattern part of the query query which will bind ?item to the desired matching resourcestate - serialized facet search statefacetspec - base resource whose facet:facet values define the facets to be usedmodel - the model to be queried, should be suitably locked until the constructor has finished the queryprotected void initFacets(com.hp.hpl.jena.rdf.model.Model model)
protected void facetCounts(com.hp.hpl.jena.rdf.model.Model model)
public List<FacetResultEntry> getAllResults()
public List<FacetResultEntry> getResultsPage(int pagenum)
public int numberOfPages()
public void setPageSize(int ps)
public List<FacetSpec> getFacetSpecs()
public FacetSpec getFacetSpec(String name)
public List<Facet> getFacets()
public String serialize()
public String serializeWith(String add, com.hp.hpl.jena.rdf.model.RDFNode value)
public String serializeWithout(String omit)
Copyright © 2014. All rights reserved.