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] how can I retrieve instance of ontology by Protege-OWL API?

Thomas Russ tar at ISI.EDU
Mon Apr 30 11:53:34 PDT 2007

On Apr 30, 2007, at 10:04 AM, hong wrote:

> Hi, Martin,
> Thank you very much for your reply. SWRL query is a very good way  
> to resolve
> my problem. However, I am still curious to know how Protégé-OWL API  
> can get
> instance of the class with specified values of the properties. I  
> did refer
> to Protégé-OWL API java doc, but I didn't find the API which has such
> functions. I notice that OWLNamedClass has method
> getInstances (Boolean includingSubclasses), but it seems not to be the
> appropriate one. Could you please specify, if possible, which API I  
> should
> use to get instance of the class with specified values of the  
> properties?
> Moreover, I am wondering if I can implement this function by using DIG
> interface or Jena API.

You need to do a small bit of programming to get this.

Use  OWLClass.getInstances and then filter using  

More information about the protege-owl mailing list