Clean up indentation
This commit is contained in:
parent
464a89ecaa
commit
d6f8ac002e
1 changed files with 188 additions and 186 deletions
|
@ -128,6 +128,7 @@ public class DataGetterUtils {
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static Map<String,PageDataGetter> getPageDataGetterMap(ServletContext sc){
|
public static Map<String,PageDataGetter> getPageDataGetterMap(ServletContext sc){
|
||||||
setupDataGetters(sc);
|
setupDataGetters(sc);
|
||||||
return (Map<String,PageDataGetter>)sc.getAttribute(DATA_GETTER_MAP);
|
return (Map<String,PageDataGetter>)sc.getAttribute(DATA_GETTER_MAP);
|
||||||
|
@ -165,17 +166,17 @@ public class DataGetterUtils {
|
||||||
JSONObject rObj = new JSONObject();
|
JSONObject rObj = new JSONObject();
|
||||||
VClass vclass=null;
|
VClass vclass=null;
|
||||||
String errorMessage = null;
|
String errorMessage = null;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
||||||
|
// Properties from ontologies used by VIVO - should not be in vitro
|
||||||
DataProperty fNameDp = (new DataProperty());
|
DataProperty fNameDp = (new DataProperty());
|
||||||
fNameDp.setURI("http://xmlns.com/foaf/0.1/firstName");
|
fNameDp.setURI("http://xmlns.com/foaf/0.1/firstName");
|
||||||
DataProperty lNameDp = (new DataProperty());
|
DataProperty lNameDp = (new DataProperty());
|
||||||
lNameDp.setURI("http://xmlns.com/foaf/0.1/lastName");
|
lNameDp.setURI("http://xmlns.com/foaf/0.1/lastName");
|
||||||
|
|
||||||
//this property is vivo specific
|
|
||||||
DataProperty preferredTitleDp = (new DataProperty());
|
DataProperty preferredTitleDp = (new DataProperty());
|
||||||
preferredTitleDp.setURI("http://vivoweb.org/ontology/core#preferredTitle");
|
preferredTitleDp.setURI("http://vivoweb.org/ontology/core#preferredTitle");
|
||||||
|
|
||||||
|
|
||||||
if( log.isDebugEnabled() ){
|
if( log.isDebugEnabled() ){
|
||||||
@SuppressWarnings("unchecked")
|
@SuppressWarnings("unchecked")
|
||||||
Enumeration<String> e = vreq.getParameterNames();
|
Enumeration<String> e = vreq.getParameterNames();
|
||||||
|
@ -295,6 +296,7 @@ public class DataGetterUtils {
|
||||||
map.put("classes", classes);
|
map.put("classes", classes);
|
||||||
map.put("classGroupName", vcg.getPublicName());
|
map.put("classGroupName", vcg.getPublicName());
|
||||||
map.put("classGroupUri", vcg.getURI());
|
map.put("classGroupUri", vcg.getURI());
|
||||||
|
|
||||||
} catch(Exception ex) {
|
} catch(Exception ex) {
|
||||||
log.error("Error occurred in processing VClass group ", ex);
|
log.error("Error occurred in processing VClass group ", ex);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue