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 to get the Inferred Individuals of specific SWRL Rule

Martin O'Connor martin.oconnor at stanford.edu
Thu Aug 6 09:51:05 PDT 2009


No - there is no way to distinguish.

SQWRL will allow you to construct queries that will return the entities 
matched by particular rules, which will effectively allow you to see 
what would be inferred by a rule.

Martin

Larry Levin wrote:

> Martin:
> Is it at least possible to easily find out via the Protege API what 
> was inferred, regardless of which rule was the generator? Or would 
> SQWRL still be the appropriate mechanism you recommend?
>
>    - Larry L.
>
>
> Martin O'Connor wrote:
>
>> <div class="moz-text-flowed" style="font-family: -moz-fixed">
>> There is no ongoing connection between a rule and the assertions it 
>> generates.
>>
>> You could use SQWRL [1] and the SQWRLAPI [2] to query particular 
>> patterns, which may give you the functionality you want.
>>
>> Martin
>>
>> [1] http://protege.cim3.net/cgi-bin/wiki.pl?SQWRL
>> [2] http://protege.cim3.net/cgi-bin/wiki.pl?SQWRLQueryAPI
>>
>> Emrah Tufan wrote:
>>
>>> Hello,
>>>
>>> I have a problem with getting the inferred individuals.
>>> In my ontology I have two swrl rules whose names are Def-HighVoltage 
>>> and Def-LowVoltage.
>>> By using the code below, I am getting individuals generated by both 
>>> rules.
>>> What I am looking for is getting the individuals one by one.
>>> How can I achieve the purpose?
>>> For example, is there any way to get the individual by using the 
>>> rule name?
>>>
>>> String uri="file:///C:/Test.owl";
>>>         OWLModel owlModel=ProtegeOWL.createJenaOWLModelFromURI(uri);
>>>                SWRLRuleEngineBridge bridge = 
>>> BridgeFactory.createBridge("SWRLJessBridge", owlModel);
>>>         bridge.infer();
>>>         System.out.println("Inferred Individuals :"
>>>                   +bridge.getInferredIndividuals());
>>>
>>>
>>> Many Thanks
>>>
>>> Emrah
>>>
>>> ------------------------------------------------------------------------ 
>>>
>>>
>>> _______________________________________________
>>> 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
>>>  
>>>
>>
>>
>> </div>
>>
>
>




More information about the protege-owl mailing list