Hi,
I am trying to use rasqal to use SPARQL1.1 queries to insert a
triple into the data graph. However when I retrieve the triple using
SELECT, I do not get the inserted triple. Could someone send me a sample
code to insert triples into the data graph.
The part of the code
written by me to insert the triple is as follows
rasqal_query *tquery;
query_string="PREFIX cim:
PREFIX rdf:
PREFIX base:
INSERT DATA
{base:" +name +" rdf:type cim:GeographicalRegion .}";
tquery=rasqal_new_query(rql_world,"sparql11",NULL);
int res=
rasqal_query_add_data_graph(tquery,data_graph);
rasqal_query_prepare(tquery,(const unsigned
char*)query_string.c_str(),NULL);
results=rasqal_query_execute(tquery);
rasqal_free_query(tquery);
Is
it the right way to insert the triple?
--
_Thanking You,_
Shashank
Bandari
[email protected] [3]
Links:
------
[1]
http://iec.ch/TC57/2008/CIM-schema-cim14
[2]
http://www.w3.org/1999/02/22-rdf-syntax-ns
[3]
mailto:[email protected]
_______________________________________________
redland-dev mailing list
[email protected]
http://lists.librdf.org/mailman/listinfo/redland-dev