diff --git a/index.html b/index.html index 07e66ace..1748742b 100644 --- a/index.html +++ b/index.html @@ -5503,8 +5503,11 @@

Algorithm

of value equals xsd:boolean, set converted value to true if the lexical form - of value matches true, or false - if it matches false. If it matches neither, + + of value matches "true" or "1", or false + if it matches "false" or "0". + + If it matches neither, set type to xsd:boolean.
  • Otherwise, if the datatype IRI diff --git a/tests/fromRdf/0027-in.nq b/tests/fromRdf/0027-in.nq index 8336cb89..03ea5251 100644 --- a/tests/fromRdf/0027-in.nq +++ b/tests/fromRdf/0027-in.nq @@ -1,6 +1,9 @@ "true"^^ . "false"^^ . + "1"^^ . + "0"^^ . + "True"^^ . "False"^^ . diff --git a/tests/fromRdf/0027-out.jsonld b/tests/fromRdf/0027-out.jsonld index dde170cf..1744119d 100644 --- a/tests/fromRdf/0027-out.jsonld +++ b/tests/fromRdf/0027-out.jsonld @@ -6,6 +6,13 @@ {"@value": false} ] }, + { + "@id": "http://example.com/boolean-number", + "http://example.com/example": [ + {"@value": true}, + {"@value": false} + ] + }, { "@id": "http://example.com/boolean-object", "http://example.com/example": [