[Pellet-users] execute SWRL rules
Fani
eserral at dsic.upv.es
Tue Jul 8 11:38:38 UTC 2008
Hi Michael,
I've attached my ontology and I'm going to send my question to the
owlapi mailing list.
Thank you very much.
> On Tue, 2008-07-08 at 10:31 +0200, Fani wrote:
>
>
>> I'm trying to execute a SWRL rule by using Pellet-1.5 and OWLAPI.
>> The swrl rule is: ns_2:isLocated(?x, ?y) ? ns_2:mobility(?y, ?z) ? ns_2:WhereCanGo(?x, ?z). This rule find out where a person can go.
>>
>> To check the rule, I'm trying to add an Person individual with its property /isLocated/
>> and then get the values of its property WhereCanGo.
>> I did the same with Protege 3.3.1 and Jess and the rule works well. But using Pellet-1.5 and OWLAPI, when I load the Ontology:
>> OWLOntology ontology = manager.loadOntology( URI.create(absolutePath + "ontology_with_rules.owl") );
>>
>> the exception "org.semanticweb.owl.model.OWLOntologyCreationException: Problem parsing org.semanticweb.owl.io.PhysicalURIInputSource" is produced.
>> Can Anyone help me?
>>
>
> The exception is produced by the OWLAPI parsers, so you'll likely have
> more luck asking this question on the owlapi mailing list [1] than here.
>
> >From the stacktrace it looks like there is a problem in
> ontology_with_rules.owl starting at line 3, column 7. If you send the
> ontology we can probably identify the problem.
>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ontology_with_rules.owl
Type: text/xml
Size: 8759 bytes
Desc: not available
Url : http://lists.owldl.com/pipermail/pellet-users/attachments/20080708/8eb18f95/attachment.bin
More information about the Pellet-users
mailing list