I am getting the following error in trying to INSERT DATA into Fuseki by php script:
405: Bad response, 405: Error 405: HTTP method not allowed: SPARQL Update : use POST Fuseki - version 2.3.1
i m using sparqllib.php library and i have used the same sparql request in the fuseki control panel and it work!
this is my php script:
$db = sparql_connect( "http://localhost:3030/riimaOnto/update" );
if(!$db)
{
print sparql_errno() . ": " . sparql_error(). "
";
exit;
}
$id = "MyData";
$sparql = "PREFIX onto:<http://www.semanticweb.org/riima/ontologies/#>
INSERT DATA
{
onto:$id a onto:Article
}";
$result = sparql_query($sparql);
if (!$result)
{
print sparql_errno() . ": " . sparql_error(). "
";
exit;
}
so how can i insert data to my ontology ??