Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds basic support of xsd:duration #808

Merged
merged 1 commit into from
May 14, 2018
Merged

Adds basic support of xsd:duration #808

merged 1 commit into from
May 14, 2018

Conversation

Tpt
Copy link
Contributor

@Tpt Tpt commented Feb 11, 2018

Uses isodate.parse_duration that converts a duration ISO string to timedelta if possible and if not fallbacks to the Duration type of the isodate library.

Supports also xsd:yearMonthDuration and xsd:dayTimeDuration.
xsd:dayTimeDuration is the exact match of the set of durations supported by timedelta.

Uses isodate.parse_duration that converts a duration ISO string
to timedelta if possible and if not fallbacks to its Duration type.

Supports also xsd:yearMonthDuration and xsd:dayTimeDuration
xsd:dayTimeDuration is the exact match of the set of durations
supported by timedelta
@coveralls
Copy link

coveralls commented Feb 11, 2018

Coverage Status

Coverage decreased (-0.06%) to 65.231% when pulling 1a09dea on Tpt:duration into 300db62 on RDFLib:master.

@gromgull
Copy link
Member

Hmm - somewhere in the back of my head I remember that the SPARQL test-suite actually tests that you don't support some data-types not defined in SPARQL. Clearly this isn't one of them though - thanks!

@gromgull gromgull merged commit 3a76836 into RDFLib:master May 14, 2018
@Tpt
Copy link
Contributor Author

Tpt commented May 14, 2018

Thank you!

@Tpt Tpt deleted the duration branch May 14, 2018 19:28
@joernhees joernhees added this to the rdflib 5.0.0 milestone Oct 27, 2018
@joernhees joernhees added enhancement New feature or request parsing Related to a parsing. serialization Related to serialization. labels Oct 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request parsing Related to a parsing. serialization Related to serialization.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants