Note that there are some explanatory texts on larger screens.

plurals
  1. PONamed Graphs and Federated SPARQL Endpoints
    primarykey
    data
    text
    <p>I recently came across the working draft for <a href="https://www.w3.org/TR/2010/WD-sparql11-federated-query-20100601/" rel="nofollow noreferrer">SPARQL 1.1 Federation Extensions</a> and wondered whether this was already possible using Named Graphs (not to detract from the usefulness of the aforementioned draft).</p> <p>My understanding of Named Graphs is a little hazy, save that the only thing I have gleamed from reading the specs comprises rules around the merger, non merger in relation to other graphs at query time. Since this doesn't fully satisfy my understanding, my question is as follows:</p> <p>Given the following query:</p> <pre><code>SELECT ?something FROM NAMED &lt;http://www.vw.co.uk/models/used&gt; FROM NAMED &lt;http://www.autotrader.co.uk/cars/used&gt; WHERE { ... } </code></pre> <p>Is it reasonable to assume that a query processor/endpoint could or should in the context of the named graphs do the following:</p> <ol> <li><p>Check is the named graph exists locally</p></li> <li><p>If it doesn't then perform the following operation (in the case of the above query, I will use the second named graph)</p> <p>GET /sparql/?query=EncodedQuery HTTP/1.1 Host: www.autotrader.co.uk User-agent: my-sparql-client/0.1</p></li> </ol> <p>Where the EncodedQuery only includes the second named graph in the <code>FROM NAMED</code> clause and the <code>WHERE</code> clause is amended accordingly with respect to <code>GRAPH</code> clauses (e.g if a <code>GRAPH &lt;http://www.vw.co.uk/models/used&gt; {...}</code> is being used).</p> <p><strong>Only if it can't perform the above</strong>, then do any of the following:</p> <pre><code>GET /cars/used HTTP/1.1 Host: www.autotrader.co.uk </code></pre> <p>or</p> <pre><code>LOAD &lt;http://www.autotrader.co.uk/cars/used&gt; </code></pre> <ol start="3"> <li>Return appropriate search results.</li> </ol> <p>Obviously there might be some additional considerations around <code>OFFSET</code>'s and <code>LIMIT</code>'s</p> <p>I also remember reading somewhere a long time ago in galaxy far far away, that the default graph of any SPARQL endpoint should be a named graph according to the following convention:</p> <p>For: <a href="http://www.vw.co.uk/sparql/" rel="nofollow noreferrer">http://www.vw.co.uk/sparql/</a> there should be a named graph of: <a href="http://www.vw.co.uk" rel="nofollow noreferrer">http://www.vw.co.uk</a> that represents the default graph and so by the above logic, it should already be possible to federate SPARQL endpoints using named graphs.</p> <p>The reason I ask is that I want to start promoting federation across the domains in the above example, without having to wait around for the standard, making sure that I won't do something that is out of kilter or incompatible with something else in the future.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload