public class APIResultSet extends Object implements SetsMetadata
Modifier and Type | Class and Description |
---|---|
static class |
APIResultSet.MergedModels |
Modifier and Type | Field and Description |
---|---|
protected URI |
contentLocation |
protected String |
detailsQuery |
protected boolean |
enableETags |
protected long |
hash |
protected boolean |
isCompleted |
protected Map<String,com.hp.hpl.jena.rdf.model.Model> |
metadata
Map holding named metadata options.
|
protected APIResultSet.MergedModels |
model |
protected List<com.hp.hpl.jena.rdf.model.Resource> |
results |
protected com.hp.hpl.jena.rdf.model.Resource |
root |
protected String |
selectQuery |
protected Date |
timestamp |
Modifier | Constructor and Description |
---|---|
protected |
APIResultSet(com.hp.hpl.jena.graph.Graph graph,
List<com.hp.hpl.jena.rdf.model.Resource> results,
boolean isCompleted,
boolean enableETags,
String detailsQuery,
Map<String,com.hp.hpl.jena.rdf.model.Model> meta,
View v) |
|
APIResultSet(com.hp.hpl.jena.graph.Graph graph,
List<com.hp.hpl.jena.rdf.model.Resource> results,
boolean isCompleted,
boolean enableETags,
String detailsQuery,
View v) |
protected |
APIResultSet(com.hp.hpl.jena.rdf.model.Resource root,
URI contentLocation,
List<com.hp.hpl.jena.rdf.model.Resource> results,
boolean isCompleted,
APIResultSet.MergedModels model,
String detailsQuery,
long hash,
Date timestamp,
String selectQuery,
boolean enableETags,
View view,
Map<String,com.hp.hpl.jena.rdf.model.Model> metadata) |
Modifier and Type | Method and Description |
---|---|
APIResultSet |
applyEdits(ModelPrefixEditor mpe) |
APIResultSet |
clone()
Return a new result set with this one as its initial content
but where additions to this model do not affect the source
|
Date |
createdAt() |
boolean |
enableETags()
Answer true iff this resultset was built with etags enabled
|
URI |
getContentLocation() |
String |
getDetailsQuery()
Answer the query string, if available, used to get the details
of the values of properties of the selected items.
|
APIResultSet |
getFilteredSet(View v,
String languages)
Generate and return a new copy of the model filtered to only include
statements reachable from the results via allowed properties in the given set.
|
long |
getHash() |
com.hp.hpl.jena.rdf.model.Model |
getMergedModel() |
com.hp.hpl.jena.shared.PrefixMapping |
getModelPrefixes() |
APIResultSet.MergedModels |
getModels()
Answer the model this result-set wraps.
|
List<com.hp.hpl.jena.rdf.model.Resource> |
getResultList()
Answer the list of item resources of this result-set.
|
com.hp.hpl.jena.rdf.model.Resource |
getRoot()
Answer the root result of this result-set.
|
String |
getSelectQuery()
Answer the query string used to select the item resources
of this result-set.
|
View |
getView() |
void |
includeMetadata(String[] options)
Add to the main model the metadata named by the options.
|
boolean |
isCompleted() |
boolean |
isEmpty()
Answer true if this result set is empty, ie, either it is empty
or all the items in it have no properties.
|
com.hp.hpl.jena.rdf.model.StmtIterator |
listStatements(com.hp.hpl.jena.rdf.model.Resource S,
com.hp.hpl.jena.rdf.model.Property P,
com.hp.hpl.jena.rdf.model.RDFNode O)
Answer s statement iterator which delivers all statements matching
(S, P, O) in the merged model.
|
long |
modelSize()
Answer the size of this result-set's model.
|
void |
setContentLocation(URI contentLocation) |
void |
setMetadata(String option,
com.hp.hpl.jena.rdf.model.Model meta)
Set the metadata section called
option to the model
meta . |
void |
setNsPrefixes(com.hp.hpl.jena.shared.PrefixMapping pm)
Set the prefixes of this result-set's model.
|
void |
setRoot(com.hp.hpl.jena.rdf.model.Resource root)
Set the resource to be used as root in this result-set
(returned by getRoot()).
|
APIResultSet |
setSelectQuery(String selectQuery) |
static void |
setUsedPrefixes(APIResultSet.MergedModels model,
com.hp.hpl.jena.shared.PrefixMapping supplied)
Set prefixes for the namespaces of terms that Elda uses
in its generated models.
|
static void |
setUsedPrefixes(com.hp.hpl.jena.rdf.model.Model model,
com.hp.hpl.jena.shared.PrefixMapping supplied) |
protected com.hp.hpl.jena.rdf.model.Resource root
protected URI contentLocation
protected List<com.hp.hpl.jena.rdf.model.Resource> results
protected final boolean isCompleted
protected APIResultSet.MergedModels model
protected final String detailsQuery
protected long hash
protected Date timestamp
protected String selectQuery
protected boolean enableETags
protected APIResultSet(com.hp.hpl.jena.rdf.model.Resource root, URI contentLocation, List<com.hp.hpl.jena.rdf.model.Resource> results, boolean isCompleted, APIResultSet.MergedModels model, String detailsQuery, long hash, Date timestamp, String selectQuery, boolean enableETags, View view, Map<String,com.hp.hpl.jena.rdf.model.Model> metadata)
public APIResultSet(com.hp.hpl.jena.graph.Graph graph, List<com.hp.hpl.jena.rdf.model.Resource> results, boolean isCompleted, boolean enableETags, String detailsQuery, View v)
public URI getContentLocation()
public void setContentLocation(URI contentLocation)
public long getHash()
public static void setUsedPrefixes(APIResultSet.MergedModels model, com.hp.hpl.jena.shared.PrefixMapping supplied)
public static void setUsedPrefixes(com.hp.hpl.jena.rdf.model.Model model, com.hp.hpl.jena.shared.PrefixMapping supplied)
public APIResultSet.MergedModels getModels()
public com.hp.hpl.jena.rdf.model.Model getMergedModel()
public long modelSize()
public void setNsPrefixes(com.hp.hpl.jena.shared.PrefixMapping pm)
public List<com.hp.hpl.jena.rdf.model.Resource> getResultList()
public String getDetailsQuery()
public String getSelectQuery()
public void setRoot(com.hp.hpl.jena.rdf.model.Resource root)
public com.hp.hpl.jena.rdf.model.Resource getRoot()
public boolean isCompleted()
public Date createdAt()
public APIResultSet getFilteredSet(View v, String languages)
v
- the view to filter the results withlanguages
- acceptable language codes for literalspublic APIResultSet applyEdits(ModelPrefixEditor mpe)
public APIResultSet clone()
public com.hp.hpl.jena.rdf.model.StmtIterator listStatements(com.hp.hpl.jena.rdf.model.Resource S, com.hp.hpl.jena.rdf.model.Property P, com.hp.hpl.jena.rdf.model.RDFNode O)
public void setMetadata(String option, com.hp.hpl.jena.rdf.model.Model meta)
option
to the model
meta
.setMetadata
in interface SetsMetadata
public void includeMetadata(String[] options)
public APIResultSet setSelectQuery(String selectQuery)
public boolean isEmpty()
public boolean enableETags()
public View getView()
public com.hp.hpl.jena.shared.PrefixMapping getModelPrefixes()
Copyright © 2014. All Rights Reserved.