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    

[bioontology-support] Question about reproducing Bioportal mapping and class metrics

Jennifer Leigh Vendetti vendetti at
Thu May 24 15:53:38 PDT 2018

Hello Irmgard,

On May 24, 2018, at 12:55 AM, Irmgard Teschke <irmgard.teschke at<mailto:irmgard.teschke at>> wrote:

Dear Bioontology Support,

I have downloaded some ontologies and a few mappings from the Bioportal REST API and have been trying (unsuccessfully) to reproduce the class and mappings metrics for these ontologies and mapping pairs. I must be missing something and was hoping that someone might be able to point me in the right direction.

I will try to explain my problem with the example of the ontologies ORDO<> (Orphanet Rare Disease Ontology) and MP<> (Mammalian Phenotype Ontology).

To count number of classes in the ontology I used a sparql query (Table below, lefthand column), the result of which (no. classes) is given on the right for the ontologies ORDO and MP. The Bioportal result (see ORDO<>  and MP<>) is given in the 2nd and 3rd column of the table below.

What are you executing the SPARQL query against? At the moment, we don’t have an open SPARQL endpoint that serves current ontology data. Is this something you’ve set up locally?

My Query



PREFIX owl: <>

SELECT (count( ?s) as ?no_mappings)


WHERE {?s a owl:Class .
Filter (! isblank(?s))

13,666 classes

12,795 classes


13,666 classes

13,556 classes

As you can see, my number is the same as the bioportal no. classes for ORDO, but not for MP. I wonder why?

We don’t use SPARQL to generate class, property, or individual metrics. When end users submit ontologies to BioPortal, we first consume the ontology source files with the OWL API [1]. We use OWL API functions to calculate metrics for classes, properties, and individuals. You can see that code here:

Furthermore, here<> I checked the number of mappings from ORDO to MP and found that there should be 128 mappings. However, when I download/parse the json through the rest API, I only get 69 mappings. I have confirmed my number (69) also by actually counting the number of mapping pairs given in the REST API for this pair (the REST API source for the mapping I downloaded and also counted by hand is,MP&apikey=xyz). I have similar discrepancies for all ontologies and mappings that I have downloaded to date. Any ideas about why this could be?

There’s a known issue in the BioPortal user interface with displaying duplicate mappings. We have an issue in our tracker here:

Apologies that we haven’t had an opportunity to troubleshoot this yet.

Kind regards,

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the bioontology-support mailing list