You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jena.apache.org by javed khan <ja...@gmail.com> on 2016/09/01 18:53:47 UTC

Jena rules

Hello I have Employee ontology where different employees have different
positions and tasks. Some are in technical positions performing technical
tasks and have low salaries. Some are on managerial posts and have huge
salaries.
I will add salaries dynamically using Jena for each employee using Property
and value.

Select * where { emp:employee emp:hasTask ?task} It will display all
employees tasks i-e both technical and managerial.

I need Jena rules in which we can say: emp:employee emp:hasSalary greater
than $4,000, the query returns only managerial tasks and technical tasks
hides from her.

Thanks for understanding my problem. If some one needs more explanation, I
can provide.

regards

Re: Jena rules

Posted by "Lorenz B." <bu...@informatik.uni-leipzig.de>.
And what kind of rule have you tried so far? I mean, at least some
starting point would be good. Nobody here will do the work for you. And
please share th eontology, or at least some sample data as Paul already
said.
> Thanks Paul, I need Jena rules but I will also keen to know how can it be
> achieved using changing the query?
>
> On Thu, Sep 1, 2016 at 5:03 PM, Paul Houle <on...@gmail.com> wrote:
>
>> Do you really need to use rules or would you be OK with just changing the
>> query a little?
>>
>> Also,  do you have a sample of the data you are using?
>>
>> On Thu, Sep 1, 2016 at 2:53 PM, javed khan <ja...@gmail.com> wrote:
>>
>>> Hello I have Employee ontology where different employees have different
>>> positions and tasks. Some are in technical positions performing technical
>>> tasks and have low salaries. Some are on managerial posts and have huge
>>> salaries.
>>> I will add salaries dynamically using Jena for each employee using
>> Property
>>> and value.
>>>
>>> Select * where { emp:employee emp:hasTask ?task} It will display all
>>> employees tasks i-e both technical and managerial.
>>>
>>> I need Jena rules in which we can say: emp:employee emp:hasSalary greater
>>> than $4,000, the query returns only managerial tasks and technical tasks
>>> hides from her.
>>>
>>> Thanks for understanding my problem. If some one needs more explanation,
>> I
>>> can provide.
>>>
>>> regards
>>>
>>
>>
>> --
>> Paul Houle
>>
>> (607) 539 6254    paul.houle on Skype   ontology2@gmail.com
>>
>> Ontology2 Edition of DBpedia 2015-10
>> https://aws.amazon.com/marketplace/pp/B01HMUNH4Q/ <http://basekb.com/gold/
>> http://ontology2.com/the-book/o2dbpedia-info.html
>> http://ontology2.com/book/chapter2/part1/dbpedia-examples.html
>>
>> RDF: A new Slant
>> http://ontology2.com/the-book/rdf-a-new-slant.html
>> <https://www.linkedin.com/grp/home?gid=8267275>
>>
>> Data Lakes, Data Ponds, and Data Droplets
>> http://ontology2.com/the-book/data-lakes-ponds-and-droplets.html
>>
-- 
Lorenz B�hmann
AKSW group, University of Leipzig
Group: http://aksw.org - semantic web research center


Re: Jena rules

Posted by javed khan <ja...@gmail.com>.
Thanks Paul, I need Jena rules but I will also keen to know how can it be
achieved using changing the query?

On Thu, Sep 1, 2016 at 5:03 PM, Paul Houle <on...@gmail.com> wrote:

> Do you really need to use rules or would you be OK with just changing the
> query a little?
>
> Also,  do you have a sample of the data you are using?
>
> On Thu, Sep 1, 2016 at 2:53 PM, javed khan <ja...@gmail.com> wrote:
>
> > Hello I have Employee ontology where different employees have different
> > positions and tasks. Some are in technical positions performing technical
> > tasks and have low salaries. Some are on managerial posts and have huge
> > salaries.
> > I will add salaries dynamically using Jena for each employee using
> Property
> > and value.
> >
> > Select * where { emp:employee emp:hasTask ?task} It will display all
> > employees tasks i-e both technical and managerial.
> >
> > I need Jena rules in which we can say: emp:employee emp:hasSalary greater
> > than $4,000, the query returns only managerial tasks and technical tasks
> > hides from her.
> >
> > Thanks for understanding my problem. If some one needs more explanation,
> I
> > can provide.
> >
> > regards
> >
>
>
>
> --
> Paul Houle
>
> (607) 539 6254    paul.houle on Skype   ontology2@gmail.com
>
> Ontology2 Edition of DBpedia 2015-10
> https://aws.amazon.com/marketplace/pp/B01HMUNH4Q/ <http://basekb.com/gold/
> >
> http://ontology2.com/the-book/o2dbpedia-info.html
> http://ontology2.com/book/chapter2/part1/dbpedia-examples.html
>
> RDF: A new Slant
> http://ontology2.com/the-book/rdf-a-new-slant.html
> <https://www.linkedin.com/grp/home?gid=8267275>
>
> Data Lakes, Data Ponds, and Data Droplets
> http://ontology2.com/the-book/data-lakes-ponds-and-droplets.html
>

Re: Jena rules

Posted by Paul Houle <on...@gmail.com>.
Do you really need to use rules or would you be OK with just changing the
query a little?

Also,  do you have a sample of the data you are using?

On Thu, Sep 1, 2016 at 2:53 PM, javed khan <ja...@gmail.com> wrote:

> Hello I have Employee ontology where different employees have different
> positions and tasks. Some are in technical positions performing technical
> tasks and have low salaries. Some are on managerial posts and have huge
> salaries.
> I will add salaries dynamically using Jena for each employee using Property
> and value.
>
> Select * where { emp:employee emp:hasTask ?task} It will display all
> employees tasks i-e both technical and managerial.
>
> I need Jena rules in which we can say: emp:employee emp:hasSalary greater
> than $4,000, the query returns only managerial tasks and technical tasks
> hides from her.
>
> Thanks for understanding my problem. If some one needs more explanation, I
> can provide.
>
> regards
>



-- 
Paul Houle

(607) 539 6254    paul.houle on Skype   ontology2@gmail.com

Ontology2 Edition of DBpedia 2015-10
https://aws.amazon.com/marketplace/pp/B01HMUNH4Q/ <http://basekb.com/gold/>
http://ontology2.com/the-book/o2dbpedia-info.html
http://ontology2.com/book/chapter2/part1/dbpedia-examples.html

RDF: A new Slant
http://ontology2.com/the-book/rdf-a-new-slant.html
<https://www.linkedin.com/grp/home?gid=8267275>

Data Lakes, Data Ponds, and Data Droplets
http://ontology2.com/the-book/data-lakes-ponds-and-droplets.html