Re: [Owlim-discussion] DELETE WHERE query behaviour
Hi, looks to me as 'expected behavior' - it is the OPTIONAL statement that cause it - since it is not mandatory to produce a solution from the main block of the query, you'll end up with no bindings for ?b ?p2 and ?o2 in the projection so, then the DELETE part of the query will threat the missing bindings as wildcards to issue individual 'remove' operations for each such solution ... HTH, Damyan On 9/18/2012 11:37 AM, Jeni Tennison wrote: Hi, I'm hoping someone here can help me with the following behaviour in OWLIM that seems odd. I can't work out whether it's a bug in the query or in OWLIM. First, set up a couple of triples: BASE http://example.org/ INSERT DATA { GRAPH graph { a p b . c p d . } } Then try to delete everything about a and everything about things related to it through p (ie about b, though note there are no triples about b): BASE http://example.org/ DELETE { a ?p1 ?o1 . ?b ?p2 ?o2 . } WHERE { a ?p1 ?o1 . OPTIONAL { a p ?b . ?b ?p2 ?o2 . } } When I run this update against this data, everything in the triplestore gets deleted. Is this expected behaviour? Thanks, Jeni ___ Owlim-discussion mailing list Owlim-discussion@ontotext.com http://ontomail.semdata.org/cgi-bin/mailman/listinfo/owlim-discussion
Re: [Owlim-discussion] DELETE WHERE query behaviour
Hi Jerven, you are right. looking further - it seems that it was an issue with the Sesame 2.6.6 - http://www.openrdf.org/issues/browse/SES-1047 and luckily, it has been resolved in 2.6.7. just checked the current behavior using Jeni's queries on owlim-se 5.2.+sesame 2.6.8 and it works right, according to the cited working draft - e.g. does not clear repository contents. So to Jeni - I recommend either upgrading to Sesame 2.6.7 or get/request a new Owlim build that is bundled with Sesame 2.6.8, since there were small API changes to Sesame 2.6.8 that makes it incompatible with the older Owlim releases. Regards, Damyan Ognyanov Ontotext AD On 9/18/2012 1:33 PM, Jerven Bolleman wrote: Hi Damyan, Hmm, this looks odd to me because in the CONSTRUCT case the triple pattern with unbound values does not get generated. i.e. CONSTRUCT { ?a ?p ?o} where {?s ?p ?o} produces no new triples So I would expect DELETE DATA { ?a ?p ?o} where {?s ?p ?o} to not delete any triples. There is also a part in the sparql update 1.1. current last working draft which supports this belief.[1] If any solution produces a triple containing an unbound variable or an illegal RDF construct, such as a literal in a subject or predicate position, then that triple is not included in the output RDF graph. This language was not in the May 2011 draft. Regards, Jerven [1] http://www.w3.org/TR/sparql11-update/#deleteInsert On 09/18/2012 11:09 AM, damyan wrote: Hi, looks to me as 'expected behavior' - it is the OPTIONAL statement that cause it - since it is not mandatory to produce a solution from the main block of the query, you'll end up with no bindings for ?b ?p2 and ?o2 in the projection so, then the DELETE part of the query will threat the missing bindings as wildcards to issue individual 'remove' operations for each such solution ... HTH, Damyan On 9/18/2012 11:37 AM, Jeni Tennison wrote: Hi, I'm hoping someone here can help me with the following behaviour in OWLIM that seems odd. I can't work out whether it's a bug in the query or in OWLIM. First, set up a couple of triples: BASE http://example.org/ INSERT DATA { GRAPH graph { a p b . c p d . } } Then try to delete everything about a and everything about things related to it through p (ie about b, though note there are no triples about b): BASE http://example.org/ DELETE { a ?p1 ?o1 . ?b ?p2 ?o2 . } WHERE { a ?p1 ?o1 . OPTIONAL { a p ?b . ?b ?p2 ?o2 . } } When I run this update against this data, everything in the triplestore gets deleted. Is this expected behaviour? Thanks, Jeni ___ Owlim-discussion mailing list Owlim-discussion@ontotext.com http://ontomail.semdata.org/cgi-bin/mailman/listinfo/owlim-discussion ___ Owlim-discussion mailing list Owlim-discussion@ontotext.com http://ontomail.semdata.org/cgi-bin/mailman/listinfo/owlim-discussion
Re: [Owlim-discussion] How to determine what build of OWLIM is running
Hi, OK, I found a file inside of owlim-se-5.2.jar, in the META-INF directory, that has no content, but whose filename is the build number. I thought OWLIM would log its version but it does not. I am however confident that the openrdf-sesame.war file has been deployed properly by the Tomcat server and that this jar file is the one being used, so it follows that the version would be the one indicated by the file. Thanks Simon From: owlim-discussion-boun...@ontotext.com [mailto:owlim-discussion-boun...@ontotext.com] On Behalf Of Rakov, Simon Sent: Tuesday, September 18, 2012 12:40 PM To: owlim-discussion@ontotext.com Subject: [Owlim-discussion] How to determine what build of OWLIM is running Hi, I’m baffled by OWLIM’s logging. How do I determine what build of OWLIM is running? Which log would contain this information and what log level must be set to see it? Thanks for your help! Yours Simon Rakov Confidentiality Notice: This message is private and may contain confidential and proprietary information. If you have received this message in error, please notify us and remove it from your system and note that you must not copy, distribute or take any action in reliance on it. Any unauthorized use or disclosure of the contents of this message is not permitted and may be unlawful. -- Confidentiality Notice: This message is private and may contain confidential and proprietary information. If you have received this message in error, please notify us and remove it from your system and note that you must not copy, distribute or take any action in reliance on it. Any unauthorized use or disclosure of the contents of this message is not permitted and may be unlawful. ___ Owlim-discussion mailing list Owlim-discussion@ontotext.com http://ontomail.semdata.org/cgi-bin/mailman/listinfo/owlim-discussion