Skip to content
Snippets Groups Projects

Convert RdfSyncConnection to a service

2 unresolved threads

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
33 * @param \Drupal\Core\Config\ConfigFactoryInterface $configFactory
34 * Config factory.
99 35 */
100 public static function insertTriples(array $triples): void {
101 $graph = new Graph();
102 $graph->parse($triples, 'php');
103 $triples = $graph->serialise('ntriples');
104 $graphUri = self::getGraphUri();
105 $query = <<<QUERY
106 WITH <$graphUri>
107 INSERT {
108 $triples
109 }
110 QUERY;
111 self::update($query);
36 public function __construct(ConfigFactoryInterface $configFactory) {
  • 1 <?php
    2
    3 declare(strict_types=1);
    4
    5 namespace Drupal\rdf_sync;
    6
    7 use EasyRdf\GraphStore;
    8
    9 /**
    10 * Provides an interface for the rdf_sync.triples service.
    11 */
    12 interface RdfSyncTriplesInterface {
  • Claudiu Cristea approved this merge request

    approved this merge request

  • Please register or sign in to reply
    Loading