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

Roberto Marco Sánchez robmarco at gmail.com
Thu Feb 19 11:48:21 PST 2009


Hi Camila,

Thanks for all. I've solved my problem with your help and have learned
better (simple) way to create restrictions.

Regards.

2009/2/19 Camila Bezerra <kemylle at gmail.com>

> 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);
>  getManager().applyChange(addAxiom);*
> 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,
> description);*
> where class = Sust_Ambulances, and description =
> EquivalentClass=(kilometrosRecorridos some int[>= 2000])
>
> And save the axiom...
> *AddAxiom addAxiom = new AddAxiom(ontology, axiom);
> getManager().applyChange(addAxiom);*
>
> best
>
> --
> 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 gmail.com
> > 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 lists.stanford.edu
>> https://mailman.stanford.edu/mailman/listinfo/protege-discussion
>>
>> Instructions for unsubscribing:
>> http://protege.stanford.edu/doc/faq.html#01a.03
>>
>>
>
>
>
>
> _______________________________________________
> protege-discussion mailing list
> protege-discussion at lists.stanford.edu
> https://mailman.stanford.edu/mailman/listinfo/protege-discussion
>
> Instructions for unsubscribing:
> http://protege.stanford.edu/doc/faq.html#01a.03
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.stanford.edu/pipermail/protege-discussion/attachments/20090219/515e2bb3/attachment.html>


More information about the protege-discussion mailing list