On 3/30/15 3:49 PM, Eliza Chan wrote:
Hi Lorena,

Thanks for the help.
The command you gave me deletes the entire graph. Is it correct?
Is there a way to delete just a portion of a graph that's specified in a file?

Regards,
Eliza


A Named Graph is an internal Virtuoso Document Identifier. A file is a document.

I think you are looking for the ability to remove specific RDF statements from a Virtuoso hosted (and managed) Named RDF Document (i.e., Named Graph)? If so, then simply use SPARQL 1.1. DELETE.

Example:

WITH <{named-graph-iri}>
DELETE {<#this> <#relatedTo> <#that> . }
WHERE {<#this> <#relatedTo> <#that> . }

OR:

DELETE { GRAPH  <{named-graph-iri}> {<#this> <#relatedTo> <#that> . } }
WHERE { GRAPH  <{named-graph-iri}> {<#this> <#relatedTo> <#that> . } }

[1] http://www.w3.org/TR/sparql11-update/#deleteInsert -- SPARQL 1.1 INSERT

--
Regards,

Kingsley Idehen 
Founder & CEO
OpenLink Software
Company Web: http://www.openlinksw.com
Personal Weblog 1: http://kidehen.blogspot.com
Personal Weblog 2: http://www.openlinksw.com/blog/~kidehen
Twitter Profile: https://twitter.com/kidehen
Google+ Profile: https://plus.google.com/+KingsleyIdehen/about
LinkedIn Profile: http://www.linkedin.com/in/kidehen
Personal WebID: http://kingsley.idehen.net/dataspace/person/kidehen#this


Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users

Reply via email to