Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't delete triples with typed literals in VOS 7.1 #379

Open
j2blake opened this issue Apr 24, 2015 · 4 comments
Open

Can't delete triples with typed literals in VOS 7.1 #379

j2blake opened this issue Apr 24, 2015 · 4 comments

Comments

@j2blake
Copy link

j2blake commented Apr 24, 2015

Hi;

I am unable to delete a triple whose object is a typed literal. I can use the following SPARQL queries in iSQL to demonstrate the problem.

I create the triple,

SPARQL 
INSERT IN GRAPH <http://mine> { 
    <http://mine#s> <http://mine#p> "Estimated"^^<http://www.w3.org/2001/XMLSchema#string> 
};

I attempt to delete it,

SPARQL 
WITH GRAPH <http://mine> 
DELETE { 
    <http://mine#s> <http://mine#p> "Estimated"^^<http://www.w3.org/2001/XMLSchema#string> 
} WHERE { 
    <http://mine#s> <http://mine#p> "Estimated"^^<http://www.w3.org/2001/XMLSchema#string> 
} ;

but it's still there:

SPARQL 
SELECT * 
WHERE { 
    GRAPH <http://mine> { 
        ?s ?p ?o 
    } 
} ;

This is similar to issue #247, which has been resolved. Thanks to that fix, I can delete the triple like this:

SPARQL 
WITH GRAPH <http://mine> 
DELETE { 
    <http://mine#s> <http://mine#p> ?o 
} WHERE { 
    <http://mine#s> <http://mine#p> ?o 
} ;

but this will delete any other triples that have the same subject and predicate -- triples that I want to keep.

This also seems similar to issue #198 but is apparently different enough that it is still a problem.

Any thoughts?

Jim

@HughWilliams
Copy link
Collaborator

@j2blake: You indicate Virtuoso 7.1 is being used is that correct ? And if so I suggest updating to the latest 7.2 stable or develop branches are there have been many fixes some of which for the deletion of graphs/triples ...

@j2blake
Copy link
Author

j2blake commented Apr 24, 2015

Thank you, Hugh. That is correct. I will try the latest version.

@athalhammer
Copy link

Hi,

I can confirm this behavior with version 7.2 (Version 07.20.3214-pthreads for Linux as of Jul 14 2015)

s is a blank node. Everything that matches but typed literals is deleted from the default graph with the following command:

set.asDatasetGraph().getGraph(NodeFactory.
createURI("urn:x-arq:DefaultGraphNode")).remove(s,Node.ANY, Node.ANY);

In fact, the Java program gets stuck there.

@HughWilliams
Copy link
Collaborator

@athalhammer: There have been number for updates to the blank node handling it the Virtuoso Jena & Sesame provide over the past few months, thus I would suggest update your build from 14th Jul to the latest git develop/7 which would contain all these fixes, to see if the problem persists ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants