diff --git a/CompilerGeneration.jrag b/CompilerGeneration.jrag index 928375d93d1b15aa582b992c3b6687f7828b047d..962191ff2b71f0d24e11ff8bd24fb215b3b48607 100644 --- a/CompilerGeneration.jrag +++ b/CompilerGeneration.jrag @@ -348,7 +348,7 @@ aspect GenRewrites { // Rearrange device nodes on the AST to get away from the // current diagonal style from Protege pStream.println(ind(1)+"rewrite "+name()+" {"); - pStream.println(ind(2)+"when (!isTopElement() && getAttribute(0) instanceof RdfId)"); + pStream.println(ind(2)+"when (!isTopElement() && !(getAttribute(0) instanceof RdfId))"); pStream.println(ind(2)+"to ClassUse {"); pStream.println(ind(3)+"ClassUse use = new ClassUse();"); pStream.println(ind(3)+"use.setOwlIdentifier(new OwlIdentifier(\""+name()+"\"));");