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

Reply via email to