Debian Codegraph @

tests/sparql/ValueTesting/typePromotion-decimal-decimal-fail.rq

raw
1 # Negative test: product of type promotion within the xsd:decimal type tree.
2 # $Id$
3
4 PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
5 PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
6 SELECT ?one ?two
7 WHERE { ?one rdfs:value ?oneL .
8 ?two rdfs:value ?twoL .
9 FILTER ( datatype(?oneL) = xsd:unsignedByte &&
10 datatype(?twoL) = xsd:unsignedShort &&
11 datatype(?oneL + ?twoL) = xsd:unsignedShort ) }