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

explore possibilities to allow for flexible/fuzzy dates #771

Open
sennierer opened this issue Apr 10, 2024 · 5 comments
Open

explore possibilities to allow for flexible/fuzzy dates #771

sennierer opened this issue Apr 10, 2024 · 5 comments

Comments

@sennierer
Copy link
Collaborator

date_of_birth and date_of_death are DateFields and therefore need ISO-Dates: abc_E21_Person
this is not flexible enough for most of the projects. We need a way of allowing people to define fuzzy/inaccurate dates. In vanilla we had written_dates and subsequently tried to parse the chars into dates.

@sennierer
Copy link
Collaborator Author

Maybe use that https://github.com/ixc/python-edtf

@gythaogg
Copy link
Contributor

gythaogg commented Apr 10, 2024

A JSON field that contains the possibility to store the written form (like 1100-1160 or 11th century) and the start date and end date to represent a range instead of a single date?
Don't feel strongly about it - just thought of it. Not sure if it has an advantage over having the date in several fields as we did in TempEntity.

@sennierer
Copy link
Collaborator Author

Kay: https://github.com/scrapinghub/dateparser

@sennierer
Copy link
Collaborator Author

Richard: we could just add the lower and upper bounds values for the dates in abc classes and leave the implementation to projects

@sennierer
Copy link
Collaborator Author

Birger: there is an API that allows fields to add more fields when they are added to the class (contribute_to_class, apis_core_legacy.entity_relation_field_generator.py)

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

No branches or pull requests

2 participants