We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 13d2afb + f547599 commit f844d4dCopy full SHA for f844d4d
rdflib/term.py
@@ -1481,7 +1481,7 @@ def _castPythonToLiteral(obj):
1481
URIRef(_XSD_PFX + 'normalizedString'): None,
1482
URIRef(_XSD_PFX + 'token'): None,
1483
URIRef(_XSD_PFX + 'language'): None,
1484
- URIRef(_XSD_PFX + 'boolean'): lambda i: i.lower() in ['1', 'true'],
+ URIRef(_XSD_PFX + 'boolean'): lambda i: i.lower() == 'true',
1485
URIRef(_XSD_PFX + 'decimal'): Decimal,
1486
URIRef(_XSD_PFX + 'integer'): long_type,
1487
URIRef(_XSD_PFX + 'nonPositiveInteger'): int,
0 commit comments