Skip to content
This repository has been archived by the owner on Aug 25, 2022. It is now read-only.

Allow SPARQL queries to accept query arguments #55

Closed
claudiu-cristea opened this issue Aug 14, 2018 · 1 comment
Closed

Allow SPARQL queries to accept query arguments #55

claudiu-cristea opened this issue Aug 14, 2018 · 1 comment

Comments

@claudiu-cristea
Copy link
Contributor

Implement argument replacement for:

  • \Drupal\rdf_entity\Database\Driver\sparql\Connection::query()
  • \Drupal\rdf_entity\Database\Driver\sparql\Connection::update()

This is not easy as the core drivers are deferring this operation to \PDOStatement::execute() but PDO doesn't have any API that exposes the compiled query. We need to build a routine to perform the arguments SANITIZATION and REPLACEMENT.

Hints:

  • Search for a library/code snippet that is doing the sanitization and mimics PDO
  • Research in the source code of PDO and replicate in PHP the same process.
@claudiu-cristea
Copy link
Contributor Author

Closing in favour of ec-europa/sparql_entity_storage#1

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants