How to make Comunica traverse a sequence of graphs? #1239
Replies: 2 comments 5 replies
-
Another possibility I've considered, rather than configure Comunica to use a specific Trove query URL as as data source (as in my question above), was to implement a TPF or QPF server on top of the Trove API, and configure Comunica to use that service. A SPARQL query could then retrieve graphs from the TPF service with e.g. But I'd also like to be able to retrieve full descriptions of each resource from the TPF server (I understand that a TPF server may return any triples it wants to, not just triples that match the query pattern), and I'm wondering if there were some way to configure Comunica so that a SPARQL query like the below would be satisfiable with a single TPF query. DESCRIBE ?trove-resource
WHERE ?trove-resource trove:matchesQuery "some-query-specification" producing a single TPF query
My TPF server could return all the properties of each trove:resource, but I'd like to ensure that Comunica didn't then make a potentially very large number of follow-up TPF queries such as:
... for each trove:resource retrieved from the first TPF query. |
Beta Was this translation helpful? Give feedback.
-
Comunica caches as well. The server-side cache is mainly important for scalability in terms of an increasing number of parallel clients (which could be comunica, or something else).
Yep, that's correct. |
Beta Was this translation helpful? Give feedback.
-
I understand that a
hypermedia
source can return a metadata graph to Comunica to cause it to read a large dataset in a paginated fashion, by followinghttp://www.w3.org/ns/hydra/core#next
predicates from one graph to the next.I also understand that a TPF or QPF server is considered a
hypermedia
source, but I'm not sure if I configure Comunica with a source URL which just resolves to an RDF/XML graph, would that also be considered ahypermedia
source (and hence be retrieved in a paginated manner), or is that just afile
source? How should I configure Comunica so that it will traverse a linked list of graphs?Background: I'm investigating how to provide a SPARQL query interface to a large data source (the "Trove" service of the National Library of Australia) which is accessible by the "Trove Web API". My plan is to use a transforming proxy layer to convert responses from that API into RDF graphs. The API offers pagination of query results, so I could easily convert the "next page" link in each result to use the Hydra vocabulary.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions