Morning all,
I'm currently developing a viewer for the ontologies I made. I want to colorize the elements (OntPropery, ObjectProperty, Individuals, …) based on their types. Here is my idea to implement this :
public Paint transform(RDFNode i) {
if(OntProperty) return Color.RED;
if(ObjectProperty) return Color.BLUE;
if(Individuals) return Color.GREEN;
return Color.GRAY;
}
I use the JenaJung libraries for this.
The problem is that I don’t find the correct condition for the ifs. Does anybody have an idea ?
Thx for all.