fixed error in ProcessInternalClassDataGetterN3 after deleting JSON object from constructor in previous update. Also updated web.xml to remove Menu Management class paths that are no longer used.
This commit is contained in:
parent
61d77d16c7
commit
35747e8eb8
3 changed files with 16 additions and 29 deletions
|
@ -156,10 +156,10 @@ public class ProcessInternalClassDataGetterN3 extends ProcessIndividualsForClas
|
|||
|
||||
//?dataGetter a FixedHTMLDataGetter ; display:saveToVar ?saveToVar; display:htmlValue ?htmlValue .
|
||||
protected String getExistingValuesInternalClass(String dataGetterURI) {
|
||||
String query = this.getSparqlPrefix() + "SELECT ?classGroup ?individualForClass ?internalClass WHERE {" +
|
||||
String query = this.getSparqlPrefix() + " SELECT ?classGroup ?individualForClass ?internalClass WHERE {" +
|
||||
"<" + dataGetterURI + "> <" + DisplayVocabulary.FOR_CLASSGROUP + "> ?classGroup . \n" +
|
||||
"<" + dataGetterURI + "> <" + DisplayVocabulary.GETINDIVIDUALS_FOR_CLASS + "> ?individualForClass . \n" +
|
||||
"OPTIONAL {<" + dataGetterURI + "> <" + DisplayVocabulary.RESTRICT_RESULTS_BY_INTERNAL + "> ?internaClass .} \n" +
|
||||
"OPTIONAL {<" + dataGetterURI + "> <" + DisplayVocabulary.GETINDIVIDUALS_FOR_CLASS + "> ?individualForClass . }\n" +
|
||||
"OPTIONAL {<" + dataGetterURI + "> <" + DisplayVocabulary.RESTRICT_RESULTS_BY_INTERNAL + "> ?internalClass .} \n" +
|
||||
"}";
|
||||
return query;
|
||||
}
|
||||
|
@ -191,9 +191,11 @@ public class ProcessInternalClassDataGetterN3 extends ProcessIndividualsForClas
|
|||
Resource classGroupResource = qs.getResource("classGroup");
|
||||
classGroupURI = classGroupResource.getURI();
|
||||
}
|
||||
//individuals for classes
|
||||
Resource individualForClassResource = qs.getResource("individualForClass");
|
||||
individualsForClasses.add(individualForClassResource.getURI());
|
||||
//individuals for classes - this may also be optional in case entire class group selected and internal class
|
||||
if(qs.get("individualForClassResource") != null ) {
|
||||
Resource individualForClassResource = qs.getResource("individualForClass");
|
||||
individualsForClasses.add(individualForClassResource.getURI());
|
||||
}
|
||||
//Put both literals in existing literals
|
||||
//If internal class value is present and we have not already saved it in a previous result iteration
|
||||
if(qs.get("internalClass") != null && internalClassLiteral == null) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue