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

Larry Levin ljlevin at criticalarchitectures.com
Thu Aug 6 06:44:26 PDT 2009


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>
>


-- 

Lawrence J Levin
Critical Architectures, LLC
email: ljlevin at CriticalArchitectures.com
office: (609) 333-9750
cell:  (908) 227-8485




More information about the protege-owl mailing list