openlink / virtuoso-opensource

Virtuoso is a high-performance and scalable Multi-Model RDBMS, Data Integration Middleware, Linked Data Deployment, and HTTP Application Server Platform
https://vos.openlinksw.com
Other
855 stars 211 forks source link

Error deleting data in Virtuoso 7, some triple persists #241

Open ma-garcia opened 9 years ago

ma-garcia commented 9 years ago

Hi,

I've detected a problem deleting data in Virtuoso 7, stable branch. I have installed this version, Virtuoso 07.00.3203 on a Ubuntu 12.04.2 server, and uploaded some data. While deleting data, I have detected that some elements are not deleted. As I have a previous version, Virtuoso 06.01.3127, I tested on it and I discovered that data was completely removed. So I assume that it's a problem with version 7. Now I'm going to explain my test case.

I have uplodade this file https://dl.dropboxusercontent.com/u/2594162/contrato0511983-13.rdf in bot instances in a new graph. Then I run the following query:

select ?x ?y where {http://www.zaragoza.es/api/recurso/sector-publico/contrato/0511983-13 ?x ?y}

To retrieve all the data uploaded. All information is displayed properly. The I run the following command to remove the data: DELETE {?x ?y ?z} WHERE {?x ?y ?z. FILTER (regex(str(?x),"http://www.zaragoza.es/api/recurso/sector-publico/contrato/0511983-13")). }

And, after that, I run again the select query. In Virtuoso 6, no data is displayed but in Virtuoso 7, a result is displayed: http://contsem.unizar.es/def/sector-publico/pproc#duration "24"^^http://www.w3.org/2001/XMLSchema#duration

I have uploaded different data files, with the same structure, and it always keep this duration triple in Virtuoso 7 but not in Virtuoso 6.

Thanks in advance.

ma-garcia commented 9 years ago

I have tried with the develop/7 branch but the behaviour is the same.