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

Added new DateTime functions #705

Merged
merged 188 commits into from Jul 13, 2023
Merged

Added new DateTime functions #705

merged 188 commits into from Jul 13, 2023

Conversation

DRovara
Copy link
Collaborator

@DRovara DRovara commented Jul 12, 2023

Added support for the following new DateTime SPARQL functions:

  • dateTrunc
  • week-from-dateTime, quarter-from-dateTime... (decade, century, millennium, milliseconds, microseconds)

Regarding dateTrunc:
Format:

obdaf:dateTrunc(date: xsd:dateTime, date-part: xsd:string) -> xsd:dateTime`

Not all granularities are supported by all dialects.
Only constants are supported for the date-part parameter.

Regarding extraction functions:
Not all granularities are supported by all dialects, but I implemented alternative approaches to extract all granularities anyways.

Prefix obdaf: <https://w3id.org/obda/functions#>

bcogrel and others added 30 commits February 20, 2023 18:17
…olumns to unique constraints if they exist, when they are necessary.
…ecognize union relations were different, added AddForeignKey support for union lens
…ew version of unique constraint inference for UnionNodes
…disjoint columns if they are not already unique by themselves. Also removed unnecessary warning from JsonUnionLens
…c JSON element keys (instead, a BasicLens should be added manually above it)
…lightweight tests for nested data structure access
…attenLens (currently hardcoded to ARRAY<STRING>, should be made generic)
@DRovara DRovara self-assigned this Jul 12, 2023
@DRovara DRovara requested a review from bcogrel July 12, 2023 14:03
@bcogrel bcogrel added this to the v5.1.0 milestone Jul 13, 2023
@bcogrel bcogrel marked this pull request as ready for review July 13, 2023 14:13
@bcogrel bcogrel merged commit cc3747b into version5 Jul 13, 2023
16 checks passed
@bcogrel bcogrel deleted the feature/new-datetime-functions branch July 13, 2023 15:40
@bcogrel
Copy link
Member

bcogrel commented Jul 13, 2023

Thanks Damian, great features!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants