[Pellet-users] execute SWRL rules

Michael Smith msmith at clarkparsia.com
Tue Jul 8 11:19:24 UTC 2008


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.

-- 
Mike Smith

Clark & Parsia

[1] http://owlapi.sourceforge.net/support.html



More information about the Pellet-users mailing list