RE: Rdf model vs Ontmodel

2016-07-08 Thread Niels Andersen
Kumar, An OntModel is RDF plus a schema. The model is aware of the schema and has specific methods to deal with it. Best regards, Niels -Original Message- From: kumar rohit [mailto:kumar.en...@gmail.com] Sent: Friday, July 8, 2016 11:26 To: users@jena.apache.org Subject: Rdf model vs

Re: Uri of resource

2016-07-08 Thread Joshua TAYLOR
On Fri, Jul 8, 2016 at 4:10 PM, tina sani wrote: > 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

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: SPARQL 1.1 Update

2016-07-08 Thread Martynas Jusevičius
I don't think there is an rdf:id property? You haven't provided the namespace for it, but you shouldn't be introducing your own terms in the RDF namespace. On Fri, Jul 8, 2016 at 9:20 PM, Sorin Gheorghiu wrote: > Hi Andy, > > Following your answer, I succeeded to

Re: SPARQL 1.1 Update

2016-07-08 Thread Sorin Gheorghiu
Hi Andy, Following your answer, I succeeded to delete the whole tuples using: DELETE {?s ?p ?o] WHERE ?s ?p ?o . ?s rdf:id ?value . FILTER (?value IN ( { ( '10' ) ( '20' ) ( '30' ) } } The initial question wasn't related to blank nodes, I used a wrong dummy _:prop Thank you,

Rdf model vs Ontmodel

2016-07-08 Thread kumar rohit
What is the difference between RDF and OntModel? Is the later somewhat better than the other I am working on a project which will need some inference too like sub class/superclass inferencing, so which model is preferable here? regards

Re: Setting (strict) error handler before before reading Model (Jena 2.11.0)

2016-07-08 Thread A. Soroka
This may or may not be close to what you are looking for, but you might try something like oaj.riot.RDFDataMgr::parse with a wrapper around oaj.riot.system.StreamRDFLib::graph. You can subclass oaj.riot.system.StreamRDFWrapper for that. Then you have tuple-level control over the process and

Re: many named graphs

2016-07-08 Thread Andy Seaborne
You can prepend a string to make it a URI. http:/example/U001 http:/example/user?id=U001 or even don't do that but allocate a unique for all time URI for this user instance and user:id "U001" ; foaf:name "Al Shapiro" ; foaf:birthday "2016-07-08"^^xsd:dateTime . and

Re: many named graphs

2016-07-08 Thread Lorenz B.
Hello Al, I do not understand why it is so difficult for you to generate some IRIs for a users that have an ID. Just use your own namespace and append the ID. And generating graphs depends on the triple store that you use. In Jena for instance, you could use some methods of the Dataset [1], like