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

Re: Publish RDF Concepts as revised WD? (was: Re: Agenda 16 May telecon)

From: Ivan Herman <ivan@w3.org>
Date: Thu, 17 May 2012 18:32:37 +0200
Cc: Richard Cyganiak <richard@cyganiak.de>, Guus Schreiber <guus.schreiber@vu.nl>, RDF WG <public-rdf-wg@w3.org>
Message-Id: <1A74F0E2-271E-4018-A3AB-80D172220738@w3.org>
To: Steve Harris <steve.harris@garlik.com>

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!

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 16:29:30 GMT

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