W3C home > Mailing lists > Public > public-rdf-dawg@w3.org > October to December 2012

Re: Test without data?

From: Andy Seaborne <andy.seaborne@epimorphics.com>
Date: Mon, 19 Nov 2012 18:25:56 +0000
Message-ID: <50AA79B4.70508@epimorphics.com>
To: "Polleres, Axel" <axel.polleres@siemens.com>
CC: "public-rdf-dawg@w3.org" <public-rdf-dawg@w3.org>
Firstly - there are two tests and one is a syntax test:

syntax-query/syntax-construct-where-02.rq
construct/constructwhere04.rq

so we are only talking about one test.

On 19/11/12 16:35, Polleres, Axel wrote:
> (taken away from the comments list for clarification/discussion)
>
> I was thinking a bit more on how we could proceed with .
> Last Telco I understood we had more or less agreement that we don't
> want to touch the approved tests (as for this might affect PR).

Yes!

> Suggestion: Can we - instead - solve this by making an editorial change
> to our test case README
>    http://www.w3.org/2009/sparql/docs/tests/README.html
> adding a subsection on tests with FROM clauses that clarifies:
>
>
> "For all test cases with FROM/FROM NAMED clauses we expect the respective graphs
> Comprising the dataset to be loaded from the IRIs of the FROM/FROM NAMED clauses
> (where relative IRIs are supposed to have the directory of the query IRI as base IRI)."

Relative URIs are resolved as usual.  The "(..)" can be dropped.

If you copy the tests and execute locally, it's the directory; if you 
execute from the web copy, it's the website the file came from.

AKA There isn't anything special here.

> ...or alike, and - optionally -name constructwhere04 as a particular example
>
> Admittedly, I don't like the explanation in parentheses, so if someone
> has a better wording for that, suggestions welcome.
>
> Best,
> Axel
>
>
>> -----Original Message-----
>> From: Andy Seaborne [mailto:andy.seaborne@epimorphics.com]
>> Sent: Donnerstag, 25. Oktober 2012 12:40
>> To: public-rdf-dawg-comments@w3.org
>> Subject: Re: Test without data?
>>
>>
>>
>> On 23/10/12 08:09, Jan Wielemaker wrote:
>>> Hi Andy,
>>>
>>> On 10/22/2012 10:35 PM, Andy Seaborne wrote:
>>>>
>>>>
>>>> On 22/10/12 14:41, Jan Wielemaker wrote:
>>>>> Hi,
>>>>>
>>>>> I'm looking into the SPARQL 1.1 test "constructwhere04 - CONSTRUCT
>>>>> WHERE". This refers to data from <data.ttl>, but the manifest does
>>>>> not tell us to load that file. Am I missing something (so far I
>> always had)?
>>>>>
>>>>>       Thanks --- Jan
>>>>>
>>>>
>>>> The query itself has a FROM clause:
>>>
>>> Yes, I've seen that. However, I consider FROM to be the name of a
>>> graph, not an instruction to load a graph from a URI. We have the
>>> update part for that. Most other tests involving FROM or USING seem
>> to
>>> load the graph explicitly using a data statement in the test
>> manifest.
>>> Could we have that here too?
>>
>> To quote SPARQL 1.0:
>>
>> [[
>> Each FROM clause contains an IRI that indicates a graph to be used to
>> form the default graph.
>> ]]
>>
>> that might mean load - sometime systems do other things - but it means
>> that the graph is placed into the dataset to be queried.  Load is a
>> common way of doing that.  It's not naming the graph; GRAPH is used to
>> name and access the data.
>>
>>        Andy
>>
>>>
>>>       Thanks --- Jan
>>>
>>>> -----------------
>>>> PREFIX : <http://example.org/>
>>>>
>>>> CONSTRUCT
>>>> FROM <data.ttl>
>>>> WHERE { ?s ?p ?o }
>>>> -----------------
>>>> so the query loads the data that way.
>>>>
>>>>       Andy
>>>>
>>>>
>>>>
>>>
>
Received on Monday, 19 November 2012 18:26:27 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 16:15:49 GMT