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-owl] Instance/Property API question.

Thomas Russ tar at ISI.EDU
Thu May 29 13:51:49 PDT 2008


On May 29, 2008, at 12:07 PM, John Finnson wrote:

> How should I filter for only OWLObjectProperties?

By using the standard Java type test:

   thisProperty instanceof OWLObjectProperty


>
>
> On Thu, May 29, 2008 at 1:34 PM, Thomas Russ <tar at isi.edu> wrote:
>>
>> On May 29, 2008, at 9:27 AM, John Finnson wrote:
>>
>>> I was wondering how I could find out from a OWLIndividual all of its
>>> OWLProperties and relationships (through OWLProperties) to other
>>> OWLIndividuals using the API.
>>>
>>> Thanks in advance for any help provided.
>>
>> Get the properties with
>>
>>   OWLIndividual.getRDFProperties();
>>
>> Optionally filter for only OWLObjectProperties,
>> and then iterate through them to get the values
>>
>>   OWLIndividual.getPropertyValues(property);
>>
>>
>>
>>
>>
>>
>> _______________________________________________
>> protege-owl mailing list
>> protege-owl at lists.stanford.edu
>> https://mailman.stanford.edu/mailman/listinfo/protege-owl
>>
>> Instructions for unsubscribing: http://protege.stanford.edu/doc/faq.html#01a.03
>>
> _______________________________________________
> protege-owl mailing list
> protege-owl at lists.stanford.edu
> https://mailman.stanford.edu/mailman/listinfo/protege-owl
>
> Instructions for unsubscribing: http://protege.stanford.edu/doc/faq.html#01a.03




More information about the protege-owl mailing list