diff --git a/examples/use-cases/ismi/README.md b/examples/use-cases/ismi/README.md index 2340bc9..e18c797 100644 --- a/examples/use-cases/ismi/README.md +++ b/examples/use-cases/ismi/README.md @@ -2,23 +2,21 @@ The [Islamic Scientific Manuscript Initiative project](https://ismi.mpwig-berlin.mpg.de) aims to collect information about all Islamic Manuscripts in the exact sciences from the 9th to the 19th centuries CE. -The old [ISMI database](https://gitlab.gwdg.de/MPIWG/Department-II/ismi-project) database OpenMind (OM4) stores historical dates as JSON objects with the following structure: +The new [ISMI database](https://gitlab.gwdg.de/MPIWG/Department-II/ismi-project) stores historical dates as CIDOC-CRM RDF objects with the following structure: -- `state` - - "unknown": no date - - "not checked": unparsed date in `date_in_text` - - "known": date or date range entered in specified calendar - - `calendar_type`: calendar the date was entered in - - "Julian", "Islamic", "Gregorian" - - `input_form`: date type - - "Year" - - `from`: first day, `until`: last day of year (dates in Gregorian calendar, ambiguity of +-2 days when entered in Islamic calendar) - - "Range" - - `from`: first day, `until`: last day of range (dates in Gregorian calendar, ambiguity of +-2 days when entered in Islamic calendar) - - "Date" - - `date`: given day (date in Gregorian calendar, ambiguity of +-2 days when entered in Islamic calendar) - - `additional_info`: textual note with additional information +- `crm:E52_Time-Span` + - `crm:P2_has_type`: date type + - "datetype:day" + - `crm:P82_at_some_time_within`: given day (xsd:date) + - "datetype:year" + - `crm:P82a_begin_of_the_begin`: first day (xsd:date), `crm:P82b_end_of_the_end`: last day of year (xsd:date) + - "datetype:range" + - `crm:P82a_begin_of_the_begin`: first day (xsd:date), `crm:P82b_end_of_the_end`: last day of range (xsd:date) + - `crm:P1_is_identified_by` + - `crm:E41_Appellation` + - `rdfs:label`: textual representation of timespan (e.g. "901 Rabīʿ I 14 (islamic)") + - `crm:P2_has_type`: calendar type (calendar the date was entered in) + - "calendartype:julian", "calendartype:islamic", "calendartype:gregorian" + - `crm:P3_has_note`: textual note with additional information -We plan to extract as much as possible of this data in the migration to the new RDF database with a CIDOC-CRM-based data model. - -A sample file with dates of each type can be found in `data/ismi-om4-date-samples.json` +A sample file with dates of each type can be found in `data/ismi-crm-date-samples.ttl` diff --git a/examples/use-cases/ismi/data/ismi-crm-date-samples.ttl b/examples/use-cases/ismi/data/ismi-crm-date-samples.ttl new file mode 100644 index 0000000..4c5a115 --- /dev/null +++ b/examples/use-cases/ismi/data/ismi-crm-date-samples.ttl @@ -0,0 +1,104 @@ +@prefix rdfs: . +@prefix crm: . +@prefix xsd: . +# prefix for date and calendar type URIs +@prefix datetype: . +@prefix calendartype: . +# prefix for sample data +@prefix : . + +# day-precision date in islamic calendar +:date1 a crm:E52_Time-Span ; + crm:P2_has_type datetype:day ; + crm:P82_at_some_time_within "1495-12-11"^^xsd:date ; + crm:P3_has_note "day-precision date in islamic calendar" ; + crm:P1_is_identified_by :date1-label . +:date1-label a crm:E41_Appellation ; + crm:P2_has_type calendartype:islamic ; + rdfs:label "901 Rabīʿ I 14 (islamic)" . + +# year-precision date in islamic calendar +:date2 a crm:E52_Time-Span ; + crm:P2_has_type datetype:year ; + crm:P82a_begin_of_the_begin "1479-04-03"^^xsd:date ; + crm:P82b_end_of_the_end "1480-03-21"^^xsd:date ; + crm:P3_has_note "year-precision date in islamic calendar" ; + crm:P1_is_identified_by :date2-label . +:date2-label a crm:E41_Appellation ; + crm:P2_has_type calendartype:islamic ; + rdfs:label "884 (islamic)" . + +# range-type (century in islamic calendar) date in islamic calendar +:date3 a crm:E52_Time-Span ; + crm:P2_has_type datetype:range ; + crm:P82a_begin_of_the_begin "1494-10-11"^^xsd:date ; + crm:P82b_end_of_the_end "1591-10-18"^^xsd:date ; + crm:P3_has_note "range-type (century in islamic calendar) date in islamic calendar" ; + crm:P1_is_identified_by :date3-label . +:date3-label a crm:E41_Appellation ; + crm:P2_has_type calendartype:islamic ; + rdfs:label "900 Muḥarram 1 - 999 Ḏu al-Ḥijjaẗ 29 (islamic)" . + +# day-precision date in gregorian calendar +:date4 a crm:E52_Time-Span ; + crm:P2_has_type datetype:day ; + crm:P82_at_some_time_within "1830-02-08"^^xsd:date ; + crm:P3_has_note "day-precision date in gregorian calendar" ; + crm:P1_is_identified_by :date4-label . +:date4-label a crm:E41_Appellation ; + crm:P2_has_type calendartype:gregorian ; + rdfs:label "1830 February 8 (gregorian)" . + +# year-precision date in gregorian calendar +:date5 a crm:E52_Time-Span ; + crm:P2_has_type datetype:year ; + crm:P82a_begin_of_the_begin "1796-01-01"^^xsd:date ; + crm:P82b_end_of_the_end "1796-12-31"^^xsd:date ; + crm:P3_has_note "year-precision date in gregorian calendar" ; + crm:P1_is_identified_by :date5-label . +:date5-label a crm:E41_Appellation ; + crm:P2_has_type calendartype:gregorian ; + rdfs:label "1796 (gregorian)" . + +# range-type (century in gregorian calendar) date in gregorian calendar +:date6 a crm:E52_Time-Span ; + crm:P2_has_type datetype:range ; + crm:P82a_begin_of_the_begin "1600-01-01"^^xsd:date ; + crm:P82b_end_of_the_end "1699-12-31"^^xsd:date ; + crm:P3_has_note "range-type (century in gregorian calendar) date in gregorian calendar" ; + crm:P1_is_identified_by :date6-label . +:date6-label a crm:E41_Appellation ; + crm:P2_has_type calendartype:gregorian ; + rdfs:label "1600 January 1 - 1699 December 31 (gregorian)" . + +# day-precision date in julian calendar +:date7 a crm:E52_Time-Span ; + crm:P2_has_type datetype:day ; + crm:P82_at_some_time_within "1035-06-04"^^xsd:date ; + crm:P3_has_note "day-precision date in julian calendar" ; + crm:P1_is_identified_by :date7-label . +:date7-label a crm:E41_Appellation ; + crm:P2_has_type calendartype:julian ; + rdfs:label "1035 May 29 (julian)" . + +# year-precision date in julian calendar +:date8 a crm:E52_Time-Span ; + crm:P2_has_type datetype:year ; + crm:P82a_begin_of_the_begin "1013-01-07"^^xsd:date ; + crm:P82b_end_of_the_end "1014-01-06"^^xsd:date ; + crm:P3_has_note "year-precision date in julian calendar" ; + crm:P1_is_identified_by :date8-label . +:date8-label a crm:E41_Appellation ; + crm:P2_has_type calendartype:julian ; + rdfs:label "1013 (julian)" . + +# range-type (century in julian calendar) date in julian calendar +:date9 a crm:E52_Time-Span ; + crm:P2_has_type datetype:range ; + crm:P82a_begin_of_the_begin "1200-01-08"^^xsd:date ; + crm:P82b_end_of_the_end "1300-01-07"^^xsd:date ; + crm:P3_has_note "range-type (century in julian calendar) date in julian calendar" ; + crm:P1_is_identified_by :date9-label . +:date9-label a crm:E41_Appellation ; + crm:P2_has_type calendartype:julian ; + rdfs:label "1200 January 1 - 1299 December 31 (julian)" . diff --git a/examples/use-cases/ismi/data/ismi-om4-date-samples.json b/examples/use-cases/ismi/data/ismi-om4-date-samples.json deleted file mode 100644 index 4300195..0000000 --- a/examples/use-cases/ismi/data/ismi-om4-date-samples.json +++ /dev/null @@ -1,186 +0,0 @@ -[ - { - "state": "unknown" - }, - { - "date_in_text": "8th/14th century", - "state": "not checked" - }, - { - "additional_info": "year 1233 in Julian calendar", - "calendar_type": "Julian", - "from": { - "ambiguity": 0, - "century": 13, - "dayOfMonth": 8, - "dayOfYear": 8, - "month": 1, - "year": 1232 - }, - "input_form": "Year", - "state": "known", - "until": { - "ambiguity": 0, - "century": 13, - "dayOfMonth": 7, - "dayOfYear": 7, - "month": 1, - "year": 1233 - }, - "year": 1232 - }, - { - "additional_info": "year 1205 in Islamic calendar", - "calendar_type": "Islamic", - "from": { - "ambiguity": 2, - "century": 18, - "dayOfMonth": 10, - "dayOfYear": 253, - "month": 9, - "year": 1790 - }, - "input_form": "Year", - "state": "known", - "until": { - "ambiguity": 2, - "century": 18, - "dayOfMonth": 29, - "dayOfYear": 241, - "month": 8, - "year": 1791 - }, - "year": 1205 - }, - { - "additional_info": "year 1564 in Gregorian calendar", - "calendar_type": "Gregorian", - "from": { - "ambiguity": 0, - "century": 16, - "dayOfMonth": 1, - "dayOfYear": 1, - "month": 1, - "year": 1564 - }, - "input_form": "Year", - "state": "known", - "until": { - "ambiguity": 0, - "century": 16, - "dayOfMonth": 31, - "dayOfYear": 366, - "month": 12, - "year": 1564 - }, - "year": 1564 - }, - { - "additional_info": "3. Martius(3) 1481 (1481-03-03) in Julian calendar (1481-03-12 Gregorian)", - "calendar_type": "Julian", - "date": { - "ambiguity": 0, - "century": 15, - "dayOfMonth": 12, - "dayOfYear": 71, - "month": 3, - "year": 1481 - }, - "input_form": "Date", - "state": "known" - }, - { - "additional_info": "6. Muḥarram(1) 888 in Islamic calendar (1483-02-23[+-2] Gregorian)", - "calendar_type": "Islamic", - "date": { - "ambiguity": 2, - "century": 15, - "dayOfMonth": 23, - "dayOfYear": 54, - "month": 2, - "year": 1483 - }, - "input_form": "Date", - "state": "known" - }, - { - "additional_info": "1. September(9) 1621 in Gregorian calendar", - "calendar_type": "Gregorian", - "date": { - "ambiguity": 0, - "century": 17, - "dayOfMonth": 1, - "dayOfYear": 244, - "month": 9, - "year": 1621 - }, - "input_form": "Date", - "state": "known" - }, - { - "additional_info": "1. Ianuarius(1) 811 - 31. December(12) 811 in Julian calendar", - "calendar_type": "Julian", - "from": { - "ambiguity": 0, - "century": 9, - "dayOfMonth": 5, - "dayOfYear": 5, - "month": 1, - "year": 811 - }, - "input_form": "Range", - "state": "known", - "until": { - "ambiguity": 0, - "century": 9, - "dayOfMonth": 4, - "dayOfYear": 4, - "month": 1, - "year": 812 - } - }, - { - "additional_info": "1. Muḥarram(1) 1000 - 29. Ḏu al-Ḥijjaẗ(12) 1024 in Islamic calendar", - "calendar_type": "Islamic", - "from": { - "ambiguity": 2, - "century": 16, - "dayOfMonth": 19, - "dayOfYear": 292, - "month": 10, - "year": 1591 - }, - "input_form": "Range", - "state": "known", - "until": { - "ambiguity": 2, - "century": 17, - "dayOfMonth": 19, - "dayOfYear": 19, - "month": 1, - "year": 1616 - } - }, - { - "additional_info": "1650-01-01 - 1699-01-01 in Gregorian calendar", - "calendar_type": "Gregorian", - "from": { - "ambiguity": 0, - "century": 17, - "dayOfMonth": 1, - "dayOfYear": 1, - "month": 1, - "year": 1650 - }, - "input_form": "Range", - "state": "known", - "until": { - "ambiguity": 0, - "century": 17, - "dayOfMonth": 1, - "dayOfYear": 1, - "month": 1, - "year": 1699 - } - } -]