Open chiarcos opened 8 months ago
I suspect this won't be in-scope for the current WG. But you could consider opening this as an issue here, for consideration for a future WG: https://github.com/w3c/sparql-dev
Yes, as @rubensworks suggest, this is for sparql-dev
. The area of "scripting for federated query" is quite a large area that could have its own community of interest. Its going to have to handle errors and partial errors carefully to given an understandable and controllable outcome.
See also https://jena.apache.org/documentation/query/service_enhancer.html (a contribution from @AKSW).
Hi @chiarcos,
The working group looked at this issue. Given it is not core to RDF Star, the WG asked that it be moved to sparql-dev CG to get wider input and discussion. All content is transferred.
In order to call external web services from a SPARQL query, it would be helpful to be able to
LOAD
their results.The example below shows how such a query could work. The
WHERE
block generates an access URL dynamically (based on the content in the current graph). The access URL contains a string (text=...
) that is analysed by a web service (https://api.dbpedia-spotlight.org/en/annotate?...
) and returns dynamically generated RDF data (try this url)Notes:
WHERE
block support forLOAD
.FROM
keyword. But note that at the moment, variable values forFROM
are not possible because it is out of scope for variable binding.PS: I know this is not in the core interest of the RDF-Star proposal, but it could be something to be considered in the process of developing SPARQL 1.2.