Re: SPARQL vs Jena rules

2017-08-31 Thread tina sani
There is also something called SPIN (SPARQL Inferencing Notation). Can we use it as the best possible alternative of Jena rules? On Thu, Aug 31, 2017 at 10:48 AM, Dave Reynolds wrote: > On 30/08/17 15:10, baran...@gmail.com wrote: > > PS: I wonder why Dave doesn't

Re: SPARQL vs Jena rules

2017-08-25 Thread tina sani
time - now you're think about > >> using SPARQL? Why? Inferencing and querying are totally different > >> things. So why are you thinking about refactoring the whole project? How > >> much time do you need for this academic project? I mean, it sounds like > >

Re: SPARQL vs Jena rules

2017-08-25 Thread tina sani
; much time do you need for this academic project? I mean, it sounds like > you're working on it for almost one year now? Is this really necessary > and useful to spend so much time on it? > > > Lorenz > > > On 24.08.2017 13:25, tina sani wrote: > > Andy, I need som

SPARQL vs Jena rules

2017-08-24 Thread tina sani
What are some of advantages of SPARQL over (Jena) rules? I know only that SPARQL is W3C recommendation and jena rules are not. Similarly, Jena rules are monotonic which does not add/remove any data just infer new knowledge. How SPARQL is more expressive than rules? If we get some inference using

Re: SWRL vs Jena rules

2017-07-15 Thread tina sani
Pellet reasoner in Jena. Otherwise, you have to use the > OWL API. > > > On 14.07.2017 23:00, tina sani wrote: > > I still did not get can that we use SWRL using Jena API? The inference we > > use in SWRL will be in our Ontology so how can we use it in our > application? > >

Re: Construct query

2017-06-26 Thread tina sani
Hello Lorenz, I have read these plus some other too. I read the following query but already we have Steve Jobs nationality on DBpedia, why we needed Construct query here. We could easily get this data using Select: dbr:Steve_Jobs dbp:nationality ?nationality Why we need Construct query here.

Construct query

2017-06-24 Thread tina sani
Hi How a SPARQL construct query works? How it generate data which is not existed in our ontologies? Is it just create the instances of classes which does not exist? A simple example will be appreciated as I am reading literature about it from past few days but could not understand how exactly it

Web 3 vs Web 2

2017-06-04 Thread tina sani
Greetings I want to ask how Semantic Web provides meaning to our data? How it differs from the current web. I will appreciate if some one provide with a simple examples: If we write an Ontology and develop Semantic Web application, how it differs from a simple Java application (without Semantic

Nested SPARQL query

2017-05-09 Thread tina sani
In which which situation one should use nested SPARQL queries? I mean, how we could know in this situation we should use SPARQL queries?

Re: How to put one model in another

2017-05-01 Thread tina sani
t only new data will be added > if the data matches a premise of a rule. > Anything else has to be done by yourself in the application code. > > > > > > On Sun, Apr 30, 2017 at 4:38 PM, Dave Reynolds < > dave.e.reyno...@gmail.com> > > wrote: > > > >>

Re: How to put one model in another

2017-04-30 Thread tina sani
yno...@gmail.com> wrote: > On 30/04/17 10:30, tina sani wrote: > >> I have a model Model1 with all data, having Jena rules. How can I put it >> in >> another model Model2 which may or may not have any data? >> > > The way to add triples from one model to another is to u

How to put one model in another

2017-04-30 Thread tina sani
I have a model Model1 with all data, having Jena rules. How can I put it in another model Model2 which may or may not have any data? Second, after putting the model in another model, would we able to replace previous values/data with new one, generated using Jena rules?

Re: Fuzzy Protege and Jena

2017-04-22 Thread tina sani
*unless you try to extract the values and do something with it in your client code* All of the data in our ontology should be either as data property or object property. So cant we just use .getPropertyValue() to extract the data? For example, a person belongs to 0.8% to ClassA and 0.2% to

Re: Fuzzy Protege and Jena

2017-04-22 Thread tina sani
Hi Lorenz, thank you. So it means we could use it with same Jena methods and SPARQL queries without any changes and need of any plugin? On Sat, Apr 22, 2017 at 1:19 PM, Lorenz B. < buehm...@informatik.uni-leipzig.de> wrote: > The ontologies created by the fuzzy OWL plugin in Protege are still

Fuzzy Protege and Jena

2017-04-22 Thread tina sani
I am not sure if Jena classes/API supports Fuzzy ontologies in Protege? Like we read an ontology in our application and query it using Jena syntax, is it possible for Fuzzy ontologies created in Protege? Any idea?

Re: Remove class

2017-02-19 Thread tina sani
ize the model M1 to M2 and then you can change the > >> triples in M2. But understand, if you run the inferencing step again, > >> the "old" classes will be added in addition to what you added manually. > >> > >> > >> On 15.02.2017 14:06, tina sa

Re: Remove class

2017-02-15 Thread tina sani
t understand, if you run the inferencing step again, > the "old" classes will be added in addition to what you added manually. > > > On 15.02.2017 14:06, tina sani wrote: > > Hello Lorenz, so no way to remove or replace these classes? > > setOntClass also not workin

Re: Remove class

2017-02-15 Thread tina sani
yes, On Wed, Feb 15, 2017 at 4:55 PM, A. Soroka <aj...@virginia.edu> wrote: > Can you tell us something about this project? Is this a school assignment? > > --- > A. Soroka > The University of Virginia Library > > > On Feb 15, 2017, at 8:54 AM, tina sani

Re: Remove class

2017-02-15 Thread tina sani
Lorenz, using rules in my project is mandatory part so need to stick with it. On Wed, Feb 15, 2017 at 4:50 PM, Chris Dollin <chris.dol...@epimorphics.com> wrote: > On 15 February 2017 at 13:06, tina sani <tinamadri...@gmail.com> wrote: > > > Hello Lorenz, so no

Remove class

2017-02-15 Thread tina sani
For example, I have added some classes for an individual using rules. emplyee 1 is type of Manager, Programmer, Worker. Can I replace these classes with one class like if (empl1.hasOntclass(manager) && (emp1.hasOntClass(programmer) & (emp1.hasOntClass(worker) then emp1 should be type of one

Re: Getting multiple classes for an Individual

2017-01-27 Thread tina sani
listOntClasses will only > list > > one class at one time. > > > > And yes employee is individual and programmer, manager and worker are > class > > variables. > > > > On Fri, Jan 27, 2017 at 12:23 AM, Dave Reynolds < > dave.e.reyno...@gmail.com> > > wr

Re: Getting multiple classes for an Individual

2017-01-26 Thread tina sani
er asserted or inferred by rules). > > To add to my earlier answer, if you have an Individual rather than just > and OntResource then Individual#listOntClasses will enable you to enumerate > the classes conveniently. > > Dave > > > On Thu, Jan 26, 2017 at 11:32 PM

Re: Getting multiple classes for an Individual

2017-01-26 Thread tina sani
Hi Dave, Will this work? if ((employee1.hasOntClass(programmer)) && ((employee1.hasOntClass(manager)) &&((employee1.hasOntClass(worker)) { } On Thu, Jan 26, 2017 at 11:32 PM, Dave Reynolds <dave.e.reyno...@gmail.com> wrote: > On 26/01/2017 15:20, tina sani wrot

Re: Rules

2017-01-21 Thread tina sani
ules do not replace values - that's the nature of Jena rules and also > >> other rule languages like SWRL - called monotonicity. > >> > >> More is not to say. > >> > >> > >> On 20.01.2017 17:29, tina sani wrote: > >>> I am asking why the Je

Re: Rules

2017-01-20 Thread tina sani
More is not to say. > > > On 20.01.2017 17:29, tina sani wrote: > > I am asking why the Jena rules some times lead to duplicate values. By > > duplicate values, I mean it does not over write the old values when > certain > > new values comes in. > > I have a

Rules

2017-01-20 Thread tina sani
I am asking why the Jena rules some times lead to duplicate values. By duplicate values, I mean it does not over write the old values when certain new values comes in. I have a rule which says if an employee salary exceeds 10k usd, the emplyee should be assigned to a Manager class else to

Re: Semantic Of Jena rule

2017-01-12 Thread tina sani
t; greaterThan(?x, 1000), lessThan(?x, 2000) - what do you think does it > mean? "?x is greater than 1000 AND ?x is less than 2000" > > > On 12.01.2017 20:15, tina sani wrote: > > Well, I am not sure about greaterThan and lessThan keywords. Will this > rule > &

Re: Semantic Of Jena rule

2017-01-12 Thread tina sani
)] > > Also see https://jena.apache.org/documentation/inference/ > > > On 12 Jan 2017 19:15, "tina sani" <tinamadri...@gmail.com> wrote: > > Well, I am not sure about greaterThan and lessThan keywords. Will this rule > execute if it encounters salary b/w 5000

Re: Semantic Of Jena rule

2017-01-12 Thread tina sani
e because I skip proper syntax" > So you know the syntax isn't correct but still ask if it is correct.. > Dick > > ---- Original message > From: tina sani <tinamadri...@gmail.com> > Date: 12/01/2017 14:47 (GMT+00:00) > To: users@jena.apache.org >

Semantic Of Jena rule

2017-01-12 Thread tina sani
The syntax and semantic of this rule is correct? ?emp rdf:type URI:Employee + ?emp URI:NetSalary ?salary+ greaterThan(?salary, 5000), lessThan(?salary, 1)-> ?emp rdf:type URI:Manager Of course this will not execute because I skip proper syntax, but I wonder this rule will work or not if some

Re: OR Operation

2017-01-03 Thread tina sani
AND. > > > > On Mon, Jan 2, 2017 at 6:18 PM, Dave Reynolds <dave.e.reyno...@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 > >>

Re: OR Operation

2017-01-02 Thread tina sani
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.reyno...@gmail.com> wrote: > On 02/01/17 14:56, tina sani wrote: > >> How can we declare/specify an Or operation in our Jena rule

OR Operation

2017-01-02 Thread tina sani
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: Fuzzy rules

2016-12-22 Thread tina sani
"I'm not aware of any native fuzzy Jena support" Hi Lorenz, is it possible we use fuzzy rules separately and Jena rules separately, applying them on same data? On Thu, Dec 22, 2016 at 12:52 PM, Lorenz B. < buehm...@informatik.uni-leipzig.de> wrote: > I'm not aware of any native fuzzy Jena

Fuzzy rules

2016-12-22 Thread tina sani
Is it possible we use fuzzy and jena rules together in our semantic web application?

Re: Super classes/Sub classes in Jena rules

2016-12-02 Thread tina sani
ntained" in the inferred RDFS model B. > >> B is "contained" in your user-defined rule model C. > >> Thus, A is "contained" in C. > >>> > >>> On Sat, Nov 26, 2016 at 11:55 AM, Dave Reynolds < > >> dave.e.reyno...@gmail.com> > &

Re: Super classes/Sub classes in Jena rules

2016-12-01 Thread tina sani
s "contained" in your user-defined rule model C. > Thus, A is "contained" in C. > > > > > > On Sat, Nov 26, 2016 at 11:55 AM, Dave Reynolds < > dave.e.reyno...@gmail.com> > > wrote: > > > >> On 25/11/16 13:54, tina sani wrote: > &g

Re: Super classes/Sub classes in Jena rules

2016-11-26 Thread tina sani
Hi Dave, So in that case we dont need to add non-inference model to the generic reasoner because after all, our whole data is in the model. On Sat, Nov 26, 2016 at 11:55 AM, Dave Reynolds <dave.e.reyno...@gmail.com> wrote: > On 25/11/16 13:54, tina sani wrote: > >> I h

Re: Super classes/Sub classes in Jena rules

2016-11-25 Thread tina sani
= ModelFactory.createRDFSModel(model); On Fri, Nov 25, 2016 at 4:46 PM, tina sani <tinamadri...@gmail.com> wrote: > So all I should so is to create rdfs model: > > InfModel inf2 = ModelFactory.createRDFSModel(); > > What would be the arguments of the ModelFactory.createRD

Re: Super classes/Sub classes in Jena rules

2016-11-25 Thread tina sani
" > >>>>>>> + " -> (?x http://www.w3.org/1999/02/22-r > >>>>>>> df-syntax-ns#type > >>>>>>> http://www.semanticweb.org#QualifiedEmployee. )]" > >>>>>>> > >

Re: Super classes/Sub classes in Jena rules

2016-11-25 Thread tina sani
> > >>> Query query = QueryFactory.create(queryString); > >>> > >>> QueryExecution qe = QueryExecutionFactory.create(query, infer); > >>> > >>> What additionally I have to do apart from my Jena rule (Forward Chain) > >&g

Re: Super classes/Sub classes in Jena rules

2016-11-22 Thread tina sani
inference model. And of course, I will have a SPARQL query : Select * where{ ?x rdf:type emp:QualifiedEmployee } On Tue, Nov 22, 2016 at 6:03 PM, Dave Reynolds <dave.e.reyno...@gmail.com> wrote: > > > On 22/11/16 14:56, tina sani wrote: > >> Let me explain a bit. >> &g

Re: Super classes/Sub classes in Jena rules

2016-11-22 Thread tina sani
, Programmer* *Is it must that if I use ?x rdf:type Employee, then FinanceManager & ITManager should also be sub classes of general super class "Employee" ?* On Tue, Nov 22, 2016 at 5:30 PM, Dave Reynolds <dave.e.reyno...@gmail.com> wrote: > On 22/11/16 10:12, tina sani wrote: &g

Super classes/Sub classes in Jena rules

2016-11-22 Thread tina sani
[image: Inline image 1] I have this ontology: Now if I want to use some rules like if x rdf:type Employee and ?x salary>Euro10,000. then ?x QualifiedEmployee. My question here is should I use ?x rdf:type Employee or ?x rdf:type ContractEmployee or PermanantEmployee ContractEmployee or

Re: Queries against rules

2016-11-09 Thread tina sani
Hello Lorenz, I know rules generate new tripls based on existed data, but I have to questions: (1) We have a model i-e model before Jena rules executes and then after inference/rules, our model will be inf, right? If we want to write a model, we will use inf.write()? (2) My second query is,

Re: Queries against rules

2016-11-08 Thread tina sani
> > See https://jena.apache.org/documentation/inference/ > > > > > > On 9/11/16, 2:31 am, "tina sani" <tinamadri...@gmail.com> wrote: > > Hello > I have a text file, having more than twenty Jena rules. Usually we need > SPARQL queries to execute

Queries against rules

2016-11-08 Thread tina sani
Hello I have a text file, having more than twenty Jena rules. Usually we need SPARQL queries to execute and display the inference results. For my twenty rules, I need more or less ten queries, so what will be the sequence and proper way to use SPARQL queries? I have some inverse property rules,

Re: [ANNOUNCE] Lorenz Buehmann elected as Committer

2016-11-02 Thread tina sani
Congrats Lorenz. On Wed, Nov 2, 2016 at 4:31 PM, David Moss wrote: > > Congratulations, Lorenz! > Thanks for putting in the effort. > DM > > >

Re: Use variable in SPARQL query

2016-11-02 Thread tina sani
yee+"}"; > >>> > >>> On Tue, Nov 1, 2016 at 6:13 PM, lookman sanni <lookous...@gmail.com> > >> wrote: > >>>> Hi Tina, > >>>> > >>>> You can have your query stored in a composed java string (e.g. String >

Re: Use variable in SPARQL query

2016-11-02 Thread tina sani
t; > On Tue, Nov 1, 2016 at 6:13 PM, lookman sanni <lookous...@gmail.com> > wrote: > > > >> Hi Tina, > >> > >> You can have your query stored in a composed java string (e.g. String > query > >> = "Select blablabla where { ?emp rdf:type " +

Re: Use variable in SPARQL query

2016-11-01 Thread tina sani
Select blablabla where { ?emp rdf:type " + someJavaVariable + "}" > > Hope that helps > Le 1 nov. 2016 17:02, "tina sani" <tinamadri...@gmail.com> a écrit : > > > Hello. > > > > How can I use a Java variable in the SPARQL query. > >

Use variable in SPARQL query

2016-11-01 Thread tina sani
Hello. How can I use a Java variable in the SPARQL query. ?emp rdf:type ?SomeVariable I want rdf:type of Managers and Technicals while these two values(Managers and Technicals) are in my Java variable: employee. So I need something like: ?emp rdf:type "employee" Regards

proper way of Jena rules use

2016-10-21 Thread tina sani
Hi What is the proper way to use Jena rules in our application(s) ? (1) Inside code (Eclipse, etc) (2) using some text file and then imports it. In second case, what will be then the order of rules execution?

Re: addliteral() vs setpropertyvalue()

2016-10-17 Thread tina sani
in the *variable sum*. > > > > So can I use employee.addLiteral(No_of_Hours, 1) instead of > > employee.setPropertyValue(). > > > > I hope you have understood what my issue is? > > > > Kindest regards > > > > > > > > On Sun, Oct 16,

Re: addliteral() vs setpropertyvalue()

2016-10-16 Thread tina sani
is? Kindest regards On Sun, Oct 16, 2016 at 11:10 AM, Dave Reynolds <dave.e.reyno...@gmail.com> wrote: > On 16/10/16 16:59, tina sani wrote: > >> Hi >> >> What is the difference between addLiteral() and setpropertyvalue() when we >> want to assign valu

addliteral() vs setpropertyvalue()

2016-10-16 Thread tina sani
Hi What is the difference between addLiteral() and setpropertyvalue() when we want to assign values to an individual.? For example, //myEmployee is an instance. myEmplyee.addliteral(property, value) myEmployee.setpropertyvalue(property, value)

Inference model or Model

2016-10-07 Thread tina sani
Hello, if I we have a model1 (not inference model) and we make changes to the ontology through that model. We have an inference model also (InfModel) and changed the ontology after executing some rules. Then if we have to write the changes to the disk, should we write both the models to disk or

instanceof

2016-10-02 Thread tina sani
I have Employee class and "Managers" and "Technicals" as two sub classes of Employee. Bob is instance of sub class Technical, how can I get like this: If Bob instance of Technicals, then do something: OntClass mgr = model.getOntClass(ns + "Managers"); OntClass tech =

Construct query

2016-09-29 Thread tina sani
I want to know about the Construct query. How it differs from Select query Is it create a new property/class which is not already in the ontology or it just creates new triples. I will appreciate if some one come with a simple example. I have searched web, but could not grasp it.

Re: Date Object does not give correct Date and Time

2016-09-25 Thread tina sani
ttps://stackoverflow.com/questions/24978636/jena- > storing-date-in-xml-datetime-unexpected-behaviour/24982714#24982714 > > --- > A. Soroka > The University of Virginia Library > > > On Sep 25, 2016, at 9:01 AM, tina sani <tinamadri...@gmail.com> wrote: > >

Re: Date Object does not give correct Date and Time

2016-09-25 Thread tina sani
It gives me 22.59 but my system current time is 3:59 PM . On Sun, Sep 25, 2016 at 5:57 AM, A. Soroka <aj...@virginia.edu> wrote: > Please explain what you expect to get, and what you actually get. > > --- > A. Soroka > The University of Virginia Library > > > On

Date Object does not give correct Date and Time

2016-09-25 Thread tina sani
I want to display the current Date and/or Time of the system, but it does not give me the correct system date and time. Calendar cal = GregorianCalendar.getInstance(); Literal value = model.createTypedLiteral(cal); individual.addLiteral(date, value); //date is property name

Re: computing multiple values of single data property

2016-09-24 Thread tina sani
ch > > week according to his salary. If he earns like 150, 200, 280, 300, then > for > > sure he progresses. > > > > Kindly if you described the required Jena rules here to accomplish this > > goal? > > > > Best regards > > > > On

Re: computing multiple values of single data property

2016-09-24 Thread tina sani
150, 200, 280, 300, then for sure he progresses. Kindly if you described the required Jena rules here to accomplish this goal? Best regards On Sat, Sep 24, 2016 at 1:15 AM, Dave Reynolds <dave.e.reyno...@gmail.com> wrote: > On 23/09/16 23:17, tina sani wrote: > >> For insta

computing multiple values of single data property

2016-09-23 Thread tina sani
For instance, I have a data property employee_income which have four values for each employee. Employee1 have income Euro 200, Euro 300, Euro 150, and Euro 280 . Is there any way using Jena rules or other way, in which we compute/compare these values in some ascending or descending way. The

Picture of Dbpedia resource

2016-09-22 Thread tina sani
Hi If I download the depiction/picture from Dbpedia about a resource such as Berlin, import it in Protege as: "Coat_of_arms_of_Berlin.svg" Then how can I display it using Jena code.

fuzzy value in current ontology

2016-08-24 Thread tina sani
Hi I have an ontology which covers all the information about student i-e his personal data plus his academic data. In some part of the ontology, I need to keep the values as fuzzy like I want to define a student as good, average or below average. I want to ask can I make my current ontology as

Rdf Streaming

2016-08-18 Thread tina sani
Is there any support of Jena API for RDF Streaming? I know RDF streaming is something which you can not store but still I am wonder if Jena is supported or some other API is used for it? I have read it theoretically but do not know how to implement it? CSPARQL is one tool I hear about it but I

Re: Vague knowledge in Ontologies

2016-07-29 Thread tina sani
r, or try to integrate > with the web > interface - if necessary. > > Hope that helps > Bruno > > > > From: tina sani <tinamadri...@gmail.com> > >To: users@jena.apache.org > >Sent: Friday, 29 July 2016 10:23 PM > >Subject

Re: Vague knowledge in Ontologies

2016-07-29 Thread tina sani
then > either > use Java to query your ontology with the reasoner, or try to integrate > with the web > interface - if necessary. > > Hope that helps > Bruno > > > > From: tina sani <tinamadri...@gmail.com> > >To: users@jena.apache.

Vague knowledge in Ontologies

2016-07-29 Thread tina sani
How can we use the vague information, fuzzy based, in our ontologies. Is it possible that we embed it into the already existed domain ontologies? I will appreciate if some one share a working examples. I have an ontology in which two of the classes needs fuzzy values like useful, very useful and

Re: "Pre Mature end of file"

2016-07-14 Thread tina sani
> On Jul 14, 2016, at 11:46 AM, tina sani <tinamadri...@gmail.com> wrote: > > > > No my ontology has at least 8-10 classes and similarly properties. > > > > On Thu, Jul 14, 2016 at 8:41 AM, A. Soroka <aj...@virginia.edu> wrote: > > > >>

Uri of resource

2016-07-08 Thread tina sani
I have an Rdf file created in Protege, named Company.rdf which have several classes and properties. The file is in C:/users/desktop/Company.rdf. The ontology URI is www.Sales.owl I want to add another class using Jena i-e Customer, so I am confuse about the uri ? I mean what will be the class

Re: creating rdf file on disk using java

2016-06-19 Thread tina sani
is not right. > > --- > A. Soroka > The University of Virginia Library > > > On Jun 19, 2016, at 10:57 AM, tina sani <tinamadri...@gmail.com> wrote: > > > > Actually I have already read this documentation but I did not find what I > > am looking

Re: creating rdf file on disk using java

2016-06-19 Thread tina sani
; The University of Virginia Library > > > On Jun 19, 2016, at 12:40 AM, tina sani <tinamadri...@gmail.com> wrote: > > > > Hello all. > > How can I create an RDF file using Jena and then save some data like > > student name. address etc? > >

creating rdf file on disk using java

2016-06-18 Thread tina sani
Hello all. How can I create an RDF file using Jena and then save some data like student name. address etc?