-
Notifications
You must be signed in to change notification settings - Fork 91
Open
Labels
Description
Hello everyone,
I'm searching for a function which allows to import directly rdf data into the database, without going through a SPARQL request.
For now I reached to do it by using ARC2_StoreLoadQueryHandler
like this :
require(__DIR__."/config.php");
$store = ARC2::getStore($config);
if (!$store->isSetUp()) {
$store->setUp();
}
$data = file_get_contents("../../dambri.rdf"); // Should also be received from some RESTful API
$loadHandler = new ARC2_StoreLoadQueryHandler($config, $store);
$loadHandler->runQuery([], $data);
Is there some built-in function that is doing the same operation ?
If not, could it be a good idea to include it in the project ? (I can eventually take in charge the devs with some guidelines)
Best regards