ontology metrics

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

ontology metrics

Rajverma
Hi,

One can find the number of classes, properties etc. from the Protégé -> Metrics option... however, it doesn't give any information regarding the number of individuals... is there any way to find out the total number of individuals that are defined (from user defined classes) in an ontology??

Cheers,
Raj

_______________________________________________
protege-discussion mailing list
[hidden email]
https://mailman.stanford.edu/mailman/listinfo/protege-discussion

Instructions for unsubscribing: http://protege.stanford.edu/doc/faq.html#01a.03 
Reply | Threaded
Open this post in threaded view
|

Re: [protege-owl] ontology metrics

Thomas Russ

On Jun 18, 2009, at 4:19 AM, Mudunuri, Venkata Rajashekar Varma wrote:

> Hi,
>
> One can find the number of classes, properties etc. from the Protégé  
> -> Metrics option... however, it doesn't give any information  
> regarding the number of individuals... is there any way to find out  
> the total number of individuals that are defined (from user defined  
> classes) in an ontology??

Yes, that does seem to be an oversight in the metrics report.

Perhaps the easiest way to get the number of OWLIndividuals would be  
to use the Protege Script tab, select Python as the scripting language  
and then try the following:

print kb.getOWLIndividuals().size()

If you wanted to get fancier, you could write a small Python function  
that would print out a complete metrics report of everything you  
wanted, using the OWL API methods to gather then information.

(Note:  In Python, leading whitespace is significant, so be careful  
with the copying and pasting)




_______________________________________________
protege-discussion mailing list
[hidden email]
https://mailman.stanford.edu/mailman/listinfo/protege-discussion

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