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] [owl api 2.0] Equivalent Classes

Camila Bezerra kemylle at
Thu Feb 19 11:04:12 PST 2009

Hi Robert,

I think so maybe could be this....

To represent relation of inheritance you do this...
* OWLAxiom axiom = factory.getOWLSubClassAxiom(clsA, parent);
 AddAxiom addAxiom = new AddAxiom(ontology, axiom);
Where factory is a reference to class OWLDataFactory.

First, you should create a description that represent "kilometrosRecorridos
some int[>= 2000]"
Like,   *OWLDescription description =
factory.getOWLObjectMaxCardinalityRestriction(property, value);*
where, property = kilometrosRecorridos and value = 200

After, you create the axiom of the equivalence
*OWLAxiom axiom = factory.**getOWLEquivalentClassesAxiom(class,
where class = Sust_Ambulances, and description =
EquivalentClass=(kilometrosRecorridos some int[>= 2000])

And save the axiom...
*AddAxiom addAxiom = new AddAxiom(ontology, axiom);


Camila Bezerra
MSc Candidate
Informatics Center (CIn)
Federal University of Pernambuco (UFPE)

On Thu, Feb 19, 2009 at 7:31 PM, Roberto Marco Sánchez
<robmarco at>wrote:

> Hi Sir,
> I'm Robert Marco, working with protegé 4.x and owl api 2.0 in Java using
> Eclipse.
> I pretend to create an ontolgy with an equivalent Class. There is the
> problem.
> In the ontology I have this:
>      Class = Vehicle    Subclass of Thing
>      Class = Sust_Ambulances Subclass of Vehicle with
> EquivalentClass=(kilometrosRecorridos some int[>= 2000])
> Looking for examples in OWLAPI documentation, I found one that shows how to
> create a restriction such a superclass.
> Well, now I need how to create a restriction like an equivalentClass with
> the OWL API 2.0 in Java. Can you help me?
> Thank in advance.
> Regards.
> _______________________________________________
> protege-discussion mailing list
> protege-discussion at
> Instructions for unsubscribing:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the protege-discussion mailing list