diff options
author | Jörn Hees <joernhees@users.noreply.github.com> | 2016-06-07 10:14:34 +0200 |
---|---|---|
committer | Jörn Hees <joernhees@users.noreply.github.com> | 2016-06-07 10:14:34 +0200 |
commit | e41617bf7eec79ae211f048845840c9786b06a2e (patch) | |
tree | d91333010ddfeb75c252249f5ce141b23748f514 | |
parent | 5ee60ff3cb55d92e93729b01c2268282562af13d (diff) | |
parent | a67596512237cb490e21de9c93e3e950ffe8825b (diff) | |
download | rdflib-e41617bf7eec79ae211f048845840c9786b06a2e.tar.gz |
Merge pull request #636 from white-gecko/white-gecko-patch-gYear
Add support for xsd:gYear and xsd:gYearMonth, closes #635
-rw-r--r-- | rdflib/term.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/rdflib/term.py b/rdflib/term.py index 561c3e60..e2dd387d 100644 --- a/rdflib/term.py +++ b/rdflib/term.py @@ -1440,6 +1440,8 @@ XSDToPython = { None : None, # plain literals map directly to value space URIRef(_XSD_PFX + 'time'): parse_time, URIRef(_XSD_PFX + 'date'): parse_date, + URIRef(_XSD_PFX + 'gYear'): parse_date, + URIRef(_XSD_PFX + 'gYearMonth'): parse_date, URIRef(_XSD_PFX + 'dateTime'): parse_datetime, URIRef(_XSD_PFX + 'string'): None, URIRef(_XSD_PFX + 'normalizedString'): None, |