jena-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andy Seaborne <andy.seabo...@epimorphics.com>
Subject Re: sparql versus ^^ types
Date Fri, 10 Dec 2010 16:53:02 GMT


On 10/12/10 16:39, Benson Margulies wrote:
> Protege persuaded me to put types in my Ontology. So (as viewed by
> tdbdump), I have quads like:
>
> <urn:basistech.com:analysis#9>
> <http://www.basistech.com/ontologies/2010/6/rex.owl#hasOriginalText>
> "Fredrick Chopin"^^<http://www.w3.org/2001/XMLSchema#string>
> <urn:misc-test>  .
>
> should the following sparql match that?
>
> SELECT ?x where { ?x
> <http://www.basistech.com/ontologies/2010/6/rex.owl#hasOriginalText>
> "Fredrick Chopin" }

Not in TDB.  Simple literals (plain literals without language tag) do 
not match xsd:string.

SELECT ?x where { ?x
    <http://www.basistech.com/ontologies/2010/6/rex.owl#hasOriginalText>
    "Fredrick Chopin"^^xsd:string
}

TDB could canonicalise the input to make "" and ""^^xsd:string the same.

	Andy

Mime
View raw message