Search Mailing List Archives


Limit search to: Subject & Body Subject Author
Sort by: Reverse Sort
Limit to: All This Week Last Week This Month Last Month
Select Date Range     through    

[protege-owl] inelegant visualization of owl class name in the jtree

hong hong at dmu.ac.uk
Mon Apr 30 03:03:07 PDT 2007


Hi,
(<classname>,FrameID(9:1962) is an instance of class DefaultSimpleInstance,
and DefaultSimpleInstance has a method getName(), you can get <classname> by
this getName() method. It will work. I just started using protégé-owl api,
so I am not sure if it is appropriate way. You can try. 

Cheers.
Hong



-----Original Message-----
From: protege-owl-bounces at mailman.stanford.edu
[mailto:protege-owl-bounces at mailman.stanford.edu] On Behalf Of giuseppe
Sent: 30 April 2007 10:45
To: protege-owl at mailman.stanford.edu
Subject: [protege-owl] inelegant visualization of owl class name in the
jtree

hello,
i'm using the protégé-owl API to develop a little application.
i need to transfer the class taxonomy into a jtree for many reasons. So i
use 
the DefaultMutableTreeNode and set the OWLNamedClass as the user object of
the 
DefaultMutableTreeNode and then i add the root DefaultMutableTreeNode to the

jtree. in the jtree the names of the classes are like this "Cls
(<classname>,FrameID(9:1962)". i know this is due to the toString of the 
OWLNamedClass but there's some way to visualize only <classname>?

Anyway i must use OWLNamedClass as user object of the
DefaultMutableTreeNode.

Thanks all.

_______________________________________________
protege-owl mailing list
protege-owl at lists.stanford.edu
https://mailman.stanford.edu/mailman/listinfo/protege-owl

Instructions for unsubscribing:
http://protege.stanford.edu/doc/faq.html#01a.03 





More information about the protege-owl mailing list