public class SparqlQueryDataGetter extends DataGetterBase implements DataGetter
| Modifier and Type | Field and Description |
|---|---|
static String |
defaultVarNameForResults |
CONTEXT_DISPLAY_MODEL, REQUEST_DISPLAY_MODEL, REQUEST_JENA_ONT_MODEL| Constructor and Description |
|---|
SparqlQueryDataGetter(VitroRequest vreq,
org.apache.jena.rdf.model.Model displayModel,
String dataGetterURI)
Constructor with display model and data getter URI that will be called by reflection.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
configure(VitroRequest vreq,
org.apache.jena.rdf.model.Model displayModel,
String dataGetterURI)
Configure this instance based on the URI and display model.
|
protected Map<String,Object> |
doQueryOnModel(String q,
org.apache.jena.rdf.model.Model queryModel)
Do the query and return a result.
|
protected Map<String,Object> |
doQueryOnRDFService(String q)
Do the query and return a result.
|
Map<String,Object> |
getData(Map<String,Object> pageData)
Get data.
|
getModelpublic static final String defaultVarNameForResults
public SparqlQueryDataGetter(VitroRequest vreq, org.apache.jena.rdf.model.Model displayModel, String dataGetterURI)
protected void configure(VitroRequest vreq, org.apache.jena.rdf.model.Model displayModel, String dataGetterURI)
public Map<String,Object> getData(Map<String,Object> pageData)
DataGettergetData in interface DataGetterpageData - any values already generated by data getters or the controller.
Might be immutable, and should not be modified within the method.protected Map<String,Object> doQueryOnRDFService(String q)
Copyright © 2022. All rights reserved.