Hi Eliza,
yes, that command deletes all the triples in the graph.
If you need to delete specific triples then you need to write a SPARQL
query.
You have two options:
1) Virtuoso implements SPARUL commands, see the documentation here:
http://docs.openlinksw.com/virtuoso/sparqlextensions.html#rdfsparul
2) You can also write standard SPARQL 1.1 DELETE queries like the ones
specified here
http://www.w3.org/TR/sparql11-update/#deleteInsert
best regards,
Lorena
On 03/30/2015 04: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
From: Lorena Etcheverry <lore...@fing.edu.uy <mailto:lore...@fing.edu.uy>>
Date: Monday, March 30, 2015 3:43 PM
To: "virtuoso-users@lists.sourceforge.net
<mailto:virtuoso-users@lists.sourceforge.net>"
<virtuoso-users@lists.sourceforge.net
<mailto:virtuoso-users@lists.sourceforge.net>>
Subject: Re: [Virtuoso-users] Deleting data from a graph
Hi Eliza
what I usually do is run the following SPARQL query in isql
SPARQL DEFINE sql:log-enable 3 CLEAR GRAPH <http://someGraph>;
more info here
http://virtuoso.openlinksw.com/dataspace/doc/dav/wiki/Main/VirtTipsAndTricksGuideDeleteLargeGraphs
best regards,
Lorena
On 03/30/2015 04:35 PM, Eliza Chan wrote:
Hi,
The following command loads a dataset to a graph:
ld_dir ('/usr/local/virtuoso-opensource/share/virtuoso/tmp',
'someData.n3', 'http://someGraph');
Is there a way to run an isql command to delete data from a graph?
Thanks,
Eliza
------------------------------------------------------------------------------
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.nethttps://lists.sourceforge.net/lists/listinfo/virtuoso-users
------------------------------------------------------------------------------
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