Search Mailing List Archives
[protege-owl] How to get the Inferred Individuals of specific SWRL Rule
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.
Larry Levin wrote:
> 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
>> You could use SQWRL  and the SQWRLAPI  to query particular
>> patterns, which may give you the functionality you want.
>>  http://protege.cim3.net/cgi-bin/wiki.pl?SQWRL
>>  http://protege.cim3.net/cgi-bin/wiki.pl?SQWRLQueryAPI
>> Emrah Tufan wrote:
>>> 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
>>> 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);
>>> System.out.println("Inferred Individuals :"
>>> Many Thanks
>>> protege-owl mailing list
>>> protege-owl at lists.stanford.edu
>>> Instructions for unsubscribing:
More information about the protege-owl