You could run a query to get a resource with specific criteria (e.g. it has an 
rdfs:label which has the users name).  If you get a result, replace the triple 
which has their GPS, otherwise create a new Student.

-----Original Message-----
From: neha gupta [mailto:[email protected]] 
Sent: Tuesday, September 6, 2016 3:13 AM
To: [email protected]
Subject: Creating individuals if not already exists

I have created Students individuals in Jena and stored them in a file.
Every time students login, updates their information like GPA and updates 
stored in the file.
Student.createIndividual(ns, stdName);

With this statement, suppose a student Neha is created with her information in 
the file. Next time, she login, again a new instance will be created when the 
application executes *Student.createIndividual(ns, stdName);?*

*Is there any condition which states if the individual not already exists, 
create it otherwise skip createIndividual statement?*

Reply via email to