[Pellet-users] SWRL is supported din the OWLAPI right?
Crapo, Andrew (GE, Research)
crapo at ge.com
Thu Mar 6 13:10:47 UTC 2008
Evren,
Is there a code example of this somewhere? The file MiscRuleTests.java has examples of adding rules to a KnowledgeBase instance, but I can't see any way to save the results. I'm assuming that the support through the OWLAPI is using OWLOntology, not KnowledgeBase, so I can open an OWL file, add rules, and save. I just haven't been able to find either a coded example or documentation that explains how I would do that using the OWLAPI.
Regards,
Andy
> -----Original Message-----
> From: pellet-users-bounces at lists.owldl.com
> [mailto:pellet-users-bounces at lists.owldl.com] On Behalf Of Evren Sirin
> Sent: Wednesday, March 05, 2008 2:30 PM
> To: Nick Drummond
> Cc: pellet-users at lists.owldl.com
> Subject: Re: [Pellet-users] SWRL is supported din the OWLAPI right?
>
> Andrew,
>
> As Nick points out you can do this using OWLAPI easily and
> Pellet already handles the rules coming from OWLAPI. There
> isn't a equivalent convenience utility for Jena. What you can
> do though Jena (although it is not nice) is to create SWRL
> rules triple by triple. This is similar to how Pellet parses
> the SWRL rules through Jena interface. There is a class that
> defines the built-in vocabulary of SWRL as Jena resources [1].
>
> Cheers,
> Evren
>
> [1] org.mindswap.pellet.jena.vocabulary.SWRL
>
> On 3/5/08 11:39 AM, Nick Drummond wrote:
> > Andrew,
> >
> > The OWL API does support construction of SWRL rules.
> >
> > Nick
> >
> > On 5 Mar 2008, at 14:41, Matthew Horridge wrote:
> >
> >
> >> Hi Nick,
> >>
> >> Yes, it is supported at a syntactic level. It's possible
> to create
> >> and save rules, and parse ontologies containing rules.
> >>
> >> Cheers,
> >>
> >> Matthew
> >>
> >>
> >> On 5 Mar 2008, at 13:12, Nick Drummond wrote:
> >>
> >>
> >>> Begin forwarded message:
> >>>
> >>>
> >>>> From: "Crapo, Andrew (GE, Research)" <crapo at ge.com>
> >>>> Date: 5 March 2008 13:01:49 GMT
> >>>> To: <pellet-users at lists.owldl.com>
> >>>> Subject: [Pellet-users] SWRL Rule API?
> >>>>
> >>>> I'm looking for a Java API for constructing SWRL rules
> and saving
> >>>> them to an OWL file. I am familiar with Jena and
> envision something
> >>>> like that. The javadoc for the OWL-API and the Pellet examples
> >>>> don't suggest to me that support for programmatic
> construction of
> >>>> rules in an OntModel is supported. I've looked at the
> Protégé-Owl
> >>>> source and it appears that it would do what I want to do but the
> >>>> Protégé code is referenced so it would takesome work to
> extract the
> >>>> SWRL support in a Jena-compatible stand-alone jar.
> >>>> Am I missing a good solution?
> >>>>
> >>>> Andrew Crapo
> >>>> GE Global Research
> >>>> Information Scientist
> >>>>
> >>>> T 518 387 5729
> >>>> F 518 387 6104
> >>>> D *833 5729
> >>>> E crapo at research.ge.com
> >>>> www.research.ge.com
> >>>>
> >>>> One Research Circle
> >>>> Niskayuna, NY 12309 USA
> >>>> General Electric Company
> >>>>
> >>>> _______________________________________________
> >>>> Pellet-users mailing list
> >>>> Pellet-users at lists.owldl.com
> >>>> http://lists.owldl.com/mailman/listinfo/pellet-users
> >>>> _______________________________________________
> >>>>
> >>>> Sponsored by Clark & Parsia, LLC http://clarkparsia.com/
> >>>>
> >
> > _______________________________________________
> > Pellet-users mailing list
> > Pellet-users at lists.owldl.com
> > http://lists.owldl.com/mailman/listinfo/pellet-users
> > _______________________________________________
> >
> > Sponsored by Clark & Parsia, LLC http://clarkparsia.com/
> >
>
> _______________________________________________
> Pellet-users mailing list
> Pellet-users at lists.owldl.com
> http://lists.owldl.com/mailman/listinfo/pellet-users
> _______________________________________________
>
> Sponsored by Clark & Parsia, LLC http://clarkparsia.com/
>
More information about the Pellet-users
mailing list