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

updated ismi sample data for development branch #104

Merged
merged 6 commits into from
Nov 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 16 additions & 18 deletions examples/use-cases/ismi/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could turn this into a markdown relative link at some point, but this is fine for now. I think we're going to need to restructure the examples and notebooks anyway now that we have a few more of them.

104 changes: 104 additions & 0 deletions examples/use-cases/ismi/data/ismi-crm-date-samples.ttl
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix crm: <http://www.cidoc-crm.org/cidoc-crm/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
# prefix for date and calendar type URIs
@prefix datetype: <http://content.mpiwg-berlin.mpg.de/ns/ismi/type/date/> .
@prefix calendartype: <http://content.mpiwg-berlin.mpg.de/ns/ismi/type/calendar/> .
# prefix for sample data
@prefix : <http://content.mpiwg-berlin.mpg.de/ns/ismi/> .

# 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)" .
186 changes: 0 additions & 186 deletions examples/use-cases/ismi/data/ismi-om4-date-samples.json

This file was deleted.

Loading