On 3/30/15 4:42 PM, Eliza Chan wrote:
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');
Once you understand what SPARQL offers you'll see that it is superior to the kind of function you are suggesting :)
What you have to do is get the conceptual metaphors clear.You have a piece of paper (named graph) on to which you inscribe sentences (RDF triples). You want to discard the paper, paragraphs (RDF statements that share a common predicate), or specific sentences (RDF statements).
The beauty of SPARQL is that is leverages the RDF model for structured data representation and surfaces this virtue via its use of Turtle-notation (which makes the nature of an RDF Statement much clearer to humans).
Hope this helps! -- 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
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