Hi, Thank you all for the help.
I was thinking, wouldn't it nice if one could delete data by simply passing some parameters to a function. Please see example below ... Insert data: ld_dir ('/usr/local/virtuoso-opensource/share/virtuoso/tmp', 'someData.n3', 'http://someGraph'); Delete data: ld_dir_delete ('/usr/local/virtuoso-opensource/share/virtuoso/tmp', 'partOfSomeData.n3', 'http://someGraph'); Regards, Eliza On 3/30/15 4:20 PM, "Kingsley Idehen" <kide...@openlinksw.com> wrote: >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 > > ------------------------------------------------------------------------------ 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