summaryrefslogtreecommitdiff
path: root/test/DAWG/data-r2/boolean-effective-value/data-2.ttl
blob: 0aca15f69823a510d007b48798ed95932563b5d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
@prefix : <http://example.org/ns#> .
@prefix xsd:        <http://www.w3.org/2001/XMLSchema#> .

# These object values are true by the boolean effective value rule.
:x1 :p    "1"^^xsd:integer .
:x2 :p    "foo" .
:x3 :p    "0.01"^^xsd:double .
:x4 :p    "true"^^xsd:boolean .

# These are false
:y1 :p    "0"^^xsd:integer .
:y2 :p    "0.0"^^xsd:double .
:y3 :p    "" .
:y4 :p    "false"^^xsd:boolean .

# Optionals
:x1 :q    "true"^^xsd:boolean .
:x2 :q    "false"^^xsd:boolean .
:x3 :q    "foo"^^:unknown .