Insert problems

81 views
Skip to first unread message

Giosia Gentile

unread,
Mar 7, 2013, 2:07:55 AM3/7/13
to eas...@googlegroups.com
Hi, I try ti unsert a triple in my sparql endpoint but it not works!
I have Virtuoso.
I use this code:

// Use a local SPARQL 1.1 Graph Store (eg RedStore)
  $gs = new EasyRdf_GraphStore('http://127.0.0.1:8890//sparql-graph-crud');

  // Add the current time in a graph
  $graph1 = new EasyRdf_Graph();
  $graph1->add('http://example.com/test', 'rdfs:label', 'Test');
  $graph1->add('http://example.com/test', 'dc:date', time());
  $response = $gs->insert($graph1, 'time.rdf');

  echo $response;
  // Get the graph back out of the graph store and display it
  $graph2 = $gs->get('time.rdf');
  print $graph2->dump();

But no insert and no get.
Please help me.
Thank you

Nicholas J Humfrey

unread,
Mar 8, 2013, 6:34:16 PM3/8/13
to eas...@googlegroups.com
Hello,

I'm afraid that I haven't tried Virtuoso.

What you are doing looks about right - have you tried removing the double
slash?
Are you see requests from EasyRdf appearing in Virtuoso's log?

Are there any error messages from EasyRdf appearing in the PHP log?

Perhaps the problem is that you need to authenticate?


nick.
> --
> You received this message because you are subscribed to the Google Groups
> "EasyRdf Discussion" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to easyrdf+u...@googlegroups.com.
> To post to this group, send email to eas...@googlegroups.com.
> Visit this group at http://groups.google.com/group/easyrdf?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

Reply all
Reply to author
Forward
0 new messages