updates for page management
This commit is contained in:
parent
7808d72eec
commit
9ca30d634a
8 changed files with 114 additions and 58 deletions
|
@ -40,7 +40,6 @@ public class ProcessSparqlDataGetterN3 extends ProcessDataGetterAbstract {
|
|||
public List<String> retrieveN3Required(int counter) {
|
||||
String dataGetterVar = getDataGetterVar(counter);
|
||||
String n3 = dataGetterVar + " a <" + classType + ">; \n" +
|
||||
"display:queryModel " + getN3VarName("queryModel", counter) + "; \n" +
|
||||
"display:saveToVar " + getN3VarName("saveToVar", counter) + "; \n" +
|
||||
"display:query " + getN3VarName("query", counter) + " .";
|
||||
List<String> requiredList = new ArrayList<String>();
|
||||
|
@ -48,8 +47,13 @@ public class ProcessSparqlDataGetterN3 extends ProcessDataGetterAbstract {
|
|||
return requiredList;
|
||||
|
||||
}
|
||||
//Query model is optional
|
||||
public List<String> retrieveN3Optional(int counter) {
|
||||
return null;
|
||||
String dataGetterVar = getDataGetterVar(counter);
|
||||
String n3 = dataGetterVar + " display:queryModel " + getN3VarName("queryModel", counter) + ". ";
|
||||
List<String> optionalList = new ArrayList<String>();
|
||||
optionalList.add(getPrefixes() + n3);
|
||||
return optionalList;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -142,6 +142,8 @@ public class SparqlQueryDataGetter extends DataGetterBase implements DataGetter{
|
|||
|
||||
//put results in page data, what key to use for results?
|
||||
Map<String, Object> rmap = new HashMap<String,Object>();
|
||||
//also store the variable name within which results will be returned
|
||||
rmap.put("variableName", this.saveToVar);
|
||||
rmap.put(this.saveToVar, results);
|
||||
//This will be overridden at page level in display model if template specified there
|
||||
rmap.put("bodyTemplate", defaultTemplate);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue