Skip to content

Direct RDF import into database #146

@treb93

Description

@treb93

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions