W3C home > Mailing lists > Public > public-rdf-wg@w3.org > May 2012

Re: Publish RDF Concepts as revised WD?

From: Andy Seaborne <andy.seaborne@epimorphics.com>
Date: Thu, 17 May 2012 18:22:58 +0100
Message-ID: <4FB533F2.4000405@epimorphics.com>
To: public-rdf-wg@w3.org


On 17/05/12 17:32, Ivan Herman wrote:
>
> On May 17, 2012, at 17:48 , Steve Harris wrote:
>
>>
>> I (occasionally) have to explain out tech stack to new developers coming in, it's not getting any easier.
>>
>> I can imagine struggling to explain why:
>>
>> <x>  <p>  '''<p class="foo" id="bar">baz'''^^xsd:HTMLLiteral .
>> <y>  <p>  "<p id='bar' class='foo'>baz</p>"^^xsd:HTMLLiteral .
>>
>> SELECT *
>> WHERE {
>>   ?s<p>  ?o .
>>   FILTER(?o = "<p id='bar' class='foo'>baz</p>"^^xsd:HTMLLiteral)
>> }
>>
>> returned two results.
>>
>
> What would your developer expect with
>
> <x>  <p>  '''0123'''^^xsd:integer .
> <x>  <p>  "123"^^xsd:integer .
>
> SELECT * WHERE { ?s<p>  ?o . FILTER( ?o = "123"^^xsd:integer ) }
>
> I would certainly expect two results, because I typed the literal. I would actually be surprised if the HTML version did not returned two results!
>

Some stores canonicalize on input.  It is also something we discussed 
here a while ago and the consensus then seemed to be that value-based 
processing was to be encouraged - including input canonicalization.

That would give one result as there is one triple.

	Andy



> ivan
>
>
>
> ----
> Ivan Herman, W3C Semantic Web Activity Lead
> Home: http://www.w3.org/People/Ivan/
> mobile: +31-641044153
> FOAF: http://www.ivan-herman.net/foaf.rdf
>
>
>
>
>
>
Received on Thursday, 17 May 2012 17:23:38 GMT

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