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

xsd:date vs. xsd:dateTime in the mapping of fields BT-536-Lot, BT-537-Lot, BT-78-Lot, BT-719-notice, BT-1451-Contract #8

Open
csnyulas opened this issue May 17, 2024 · 5 comments
Assignees
Labels
question Further information is requested for implementation

Comments

@csnyulas
Copy link
Contributor

Several eForms fields provide a date value, while the corresponding ePO property has xsd:dateTime as its range.

This is a problem, since we cannot generate a valid xsd:dateTime value only from a date value (without resorting to adding some artificial time component, which is not present in the input data), and xsd:date and xsd:dateTime have incompatible structure.

There are three potential solutions, each generating a separate problem:

  1. Create a valid xsd:dateTime value from a simple date, by adding a fictive time component suffix, such as T00:00:00 or T23:59:59, after the date. This is undesirable since the output will not be a true reflection of the input.
  2. In the output use the date value as it appears in the input, but type it xsd:dateTime. This will create an invalid RDF
  3. In the output use the date value as it appears in the input, and type it xsd:date. This will create an RDF that will raise SHACL violations against the ePO SHACL shapes.

OP suggested we implement option 3 for now, however the problem will be further discussed and potentially addressed in the ePO WGs.

Here is a list of fields where this problem occurs:

  • BT-536-Lot (Duration Start Date)
  • BT-537-Lot (Duration End Date)
  • BT-78-Lot (Security Clearance Deadline)
  • BT-719-notice (Change Procurement Documents Date)
  • BT-1451-Contract (WinnerDecisionDate)

and here are the related ePO classes and properties

  • epo:Period / epo:hasBeginning
  • epo:Period / epo:hasEnd
  • epo:SecurityClearanceTerm / epo:hasDeadline
  • epo:ChangeInformation / epo:hasProcurementDocumentChangeDate
  • epo:AwardDecision / epo:hasAwardDecisionDate
@cristianvasquez
Copy link
Contributor

I understand that using xsd:date or xsd:datetime in the Ontology depends on the legal aspects. Would this be correct @muricna ?

@muricna
Copy link

muricna commented May 31, 2024

Yes this is correct

@schivmeister
Copy link
Collaborator

Since there was no direct response to the question, we assume that these discrepancies are known and their limitations and/or workarounds accepted.

@andreea-pasare @AchillesDougalis is this issue known and recorded in the ePO WG?

@cristianvasquez
Copy link
Contributor

cristianvasquez commented Jul 5, 2024

dear @schivmeister

This is not a trivial choice, the data is heterogeneous.

The ePO is used not only for eForms but also to represent other sources. A significant challenge is that member states represent dates in various formats.

We still need a better overview of the data to make an informed decision.

One potential solution could be for the ePO to relax xsd:dateTime to an alternative type that allows both xsd:dateTime and xsd:date.

For the effects of this mapping exercise

xsd:date for legally binding values.

For any other
Looking at potential solutions 1 and 3 by @csnyulas , option 3 will raise SHACL validation errors, whereas 1 won't be the true reflection of the input. However, is the time component needed?

this can be answered by looking at the 'Competency questions' this data answers. (ontology team)

@muricna
Copy link

muricna commented Jul 8, 2024

For the current mappings we must use what ever is in the eForms even if it gives errors, however a long term solution should be found.

@schivmeister schivmeister added the question Further information is requested for implementation label Aug 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested for implementation
Projects
None yet
Development

No branches or pull requests

6 participants