use the new values statically inserted by the construct query

This commit is contained in:
Alessia Bardi 2020-10-12 18:32:56 +02:00
parent 5329110d93
commit a452133ac3
1 changed files with 2 additions and 1 deletions

View File

@ -87,7 +87,8 @@ public class ResourceManager {
if(entry instanceof LinkedHashMap){
LinkedHashMap tmp = (LinkedHashMap)((JSONArray)((LinkedHashMap)entry).get(type_path)).get(0);
class_name = (String)tmp.get("value");
if (class_name.equals("provided record") || class_name.equals("Dataset Collection")) {
//TODO: Use rdf:type instead of these values that are added statically by the CONSTRUCT queries (that need to be changed as well to include the rdf:type
if (class_name.equals("Record") || class_name.equals("Collection")) {
class_name = "AriadneCatalogEntry";
}
}