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-discussion] [protege-owl] ontology metrics

Thomas Russ tar at ISI.EDU
Thu Jun 18 09:35:32 PDT 2009

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)

More information about the protege-discussion mailing list