Gitlab service upgraded. Please report any problems to dl_gitadmin@cs.lth.se

Commit 50e4a10a authored by Anders Nilsson's avatar Anders Nilsson

Searching for bugs

parent 794bcb5b
......@@ -42,10 +42,15 @@ aspect Types {
if (id.endsWith("Thing")) {
return new OwlClassDecl(new List(), new List(), "Thing");
}
// No decl found, so let's return null. Not sure if that's
// that the right thing to do though.
// No decl found, so let's alert user. If the reason for a
// missing decl is that it is a top level class which Protege
// for some unknown reason no longer explicitly declares on
// top level, the right thing to do would be to create a class
// declaration here. And that we do.
System.out.println("* Couldn't find decl for: "+getId());
return new OwlClassDecl(new List(), new List(), "_Unknown_");
OwlClassDecl nClass = new OwlClassDecl(new List(), new List(), id);
top.addElement(nClass);
return nClass;
}
syn lazy Properties OwlClassDecl.getProperties() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment