You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jena.apache.org by tina sani <ti...@gmail.com> on 2017/01/02 14:56:12 UTC
OR Operation
How can we declare/specify an Or operation in our Jena rules. For instance,
if we have something like this
If ?x rdf:type emp:Managers OR ?x rdf:type emp:Programmer --> ?x rdf:type
emp:Employee
Re: OR Operation
Posted by tina sani <ti...@gmail.com>.
Thank you Dave and Lorenz.
On Tue, Jan 3, 2017 at 11:38 AM, Lorenz B. <
buehmann@informatik.uni-leipzig.de> wrote:
> No. It's the same as for SWRL, no native disjunction support.
>
> > Thank you Dave, Isn't there any operator we use for OR operation like we
> > use + for AND.
> >
> > On Mon, Jan 2, 2017 at 6:18 PM, Dave Reynolds <dave.e.reynolds@gmail.com
> >
> > wrote:
> >
> >> On 02/01/17 14:56, tina sani wrote:
> >>
> >>> How can we declare/specify an Or operation in our Jena rules. For
> >>> instance,
> >>> if we have something like this
> >>>
> >>> If ?x rdf:type emp:Managers OR ?x rdf:type emp:Programmer --> ?x
> >>> rdf:type
> >>> emp:Employee
> >>>
> >>>
> >> Expand the OR out to two rules:
> >>
> >> ?x rdf:type emp:Managers -> ?x rdf:type emp:Employee
> >> ?x rdf:type emp:Programmer -> ?x rdf:type emp:Employee
> >>
> >> Dave
> >>
> >>
> --
> Lorenz Bühmann
> AKSW group, University of Leipzig
> Group: http://aksw.org - semantic web research center
>
>
Re: OR Operation
Posted by "Lorenz B." <bu...@informatik.uni-leipzig.de>.
No. It's the same as for SWRL, no native disjunction support.
> Thank you Dave, Isn't there any operator we use for OR operation like we
> use + for AND.
>
> On Mon, Jan 2, 2017 at 6:18 PM, Dave Reynolds <da...@gmail.com>
> wrote:
>
>> On 02/01/17 14:56, tina sani wrote:
>>
>>> How can we declare/specify an Or operation in our Jena rules. For
>>> instance,
>>> if we have something like this
>>>
>>> If ?x rdf:type emp:Managers OR ?x rdf:type emp:Programmer --> ?x
>>> rdf:type
>>> emp:Employee
>>>
>>>
>> Expand the OR out to two rules:
>>
>> ?x rdf:type emp:Managers -> ?x rdf:type emp:Employee
>> ?x rdf:type emp:Programmer -> ?x rdf:type emp:Employee
>>
>> Dave
>>
>>
--
Lorenz B�hmann
AKSW group, University of Leipzig
Group: http://aksw.org - semantic web research center
Re: OR Operation
Posted by tina sani <ti...@gmail.com>.
Thank you Dave, Isn't there any operator we use for OR operation like we
use + for AND.
On Mon, Jan 2, 2017 at 6:18 PM, Dave Reynolds <da...@gmail.com>
wrote:
> On 02/01/17 14:56, tina sani wrote:
>
>> How can we declare/specify an Or operation in our Jena rules. For
>> instance,
>> if we have something like this
>>
>> If ?x rdf:type emp:Managers OR ?x rdf:type emp:Programmer --> ?x
>> rdf:type
>> emp:Employee
>>
>>
> Expand the OR out to two rules:
>
> ?x rdf:type emp:Managers -> ?x rdf:type emp:Employee
> ?x rdf:type emp:Programmer -> ?x rdf:type emp:Employee
>
> Dave
>
>
Re: OR Operation
Posted by Dave Reynolds <da...@gmail.com>.
On 02/01/17 14:56, tina sani wrote:
> How can we declare/specify an Or operation in our Jena rules. For instance,
> if we have something like this
>
> If ?x rdf:type emp:Managers OR ?x rdf:type emp:Programmer --> ?x rdf:type
> emp:Employee
>
Expand the OR out to two rules:
?x rdf:type emp:Managers -> ?x rdf:type emp:Employee
?x rdf:type emp:Programmer -> ?x rdf:type emp:Employee
Dave