You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would be useful to add a TypeMapper::setDefaultGraphClass() method to permit customization (and extension) of the base Graph class.
Actually I had such a need, but the only solution I found was to get the Graph from Sparql\Client::query() and translate it within my own class:
use EasyRdf\Graph;
class MyGraph extends Graph
{
public static function extend($real_graph)
{
$contents = $real_graph->serialise('turtle');
return new self($real_graph->getUri(), $contents, 'turtle');
}
// ... my own stuff...
}
Not very efficient...
The text was updated successfully, but these errors were encountered:
(I'm intercepting add() and deleteSingleProperty() calls to keep track of modifications operated directly into the Graph and provide further elaborations).
Would be useful to add a
TypeMapper::setDefaultGraphClass()
method to permit customization (and extension) of the baseGraph
class.Actually I had such a need, but the only solution I found was to get the
Graph
fromSparql\Client::query()
and translate it within my own class:Not very efficient...
The text was updated successfully, but these errors were encountered: