Closed avataar closed 7 years ago
Identified an additional case (where multiple literals are rewritten with a VALUES block instead of expanded into the query proper). Last commit removes some duplicated code in RepositoryFederatedService and now all (hopefully) value-to-SPARQL-string conversion takes place in QueryStringUtil. Also added basic sanity unit tests.
When a federated query is sent to the remote endpoint bindings are replaced with their values, e.g.
will be rewritten to (before being sent to the remote end):
This will work only if the remote endpoint supports RDF 1.1 (where simple literals are always datatyped xsd:string) but it won't return any results if the endpoint is RDF 1.0 (where simple literals have no datatype)