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] Possible to use Protege's SWRL syntax via SWRLFactory API?

Michael Lodemann milo at informatik.uni-kiel.de
Mon Mar 30 01:10:53 PDT 2009


Thank you very much, Martin.

Regards,
Michael


Martin O'Connor schrieb:
> Michael Lodemann wrote:
>
>   
>> Hello,
>>
>> is it yet possible to build SWRL rules programatically with the API 
>> using a string like this:
>>
>> SWRLImp imp = factory.createImp("Person(?p) ^ hasAge(?p, ?age) ^ swrlb:greaterThan(?age, 17) -> Adult(?p)");
>>
>>     
> Yes. See: http://protege.cim3.net/cgi-bin/wiki.pl?SWRLFactoryFAQ#nid9FA
>
>   
>> ... and at the opposite: How do I retrieve this underlying syntax-string 
>> out of a DefaultSWRLImp object? 
>>
>>     
> imp.getBrowserText();
>
>   
>> And another question: how can I use the 
>> programatical rule validation mechanism? DefaultSWRLImp.isValid() seems 
>> to be obsolete.
>>  
>>
>>     
> I'm not even sure what this is. The createImp will throw an exception if 
> an invalid rule is supplied.
>
>   
>> btw: Has the JavaDoc location moved? For example 
>> http://protege.stanford.edu/download/prerelease_javadoc_owl/edu/stanford/smi/protegex/owl/swrl/model/SWRLFactory.html 
>> results in a 404 error.
>>  
>>
>>     
> I need to fix the links for the new 3.4 release. Should be fixed early 
> next week.
>
> Martin




More information about the protege-owl mailing list