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

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 UTC