diff --git a/Database structure.md b/Database structure.md index d45452e..55dcd47 100644 --- a/Database structure.md +++ b/Database structure.md @@ -3,9 +3,12 @@ Author: Alexander Ilin-Tomich (ailintom@uni-mainz.de) Johannes Gutenberg University Mainz Funded by the Fritz Thyssen Foundation as part of the project [Umformung und Variabilität im Korpus altägyptischer Personennamen 2055-1550 v.Chr.](https://www.aegyptologie.uni-mainz.de/umformung-und-variabilitaet-1/) + # Database structure -## Conventions , -Data are stored in a MySQL database. It is planned to export the data into an ontology-based machine-readable format (RDF); hence, equivalent classes and propertied in established ontologies are cited in this document. + +## Conventions + +Data are stored in a MySQL database. Data is also exported into an ontology-based machine-readable format (RDF); hence, equivalent classes and propertied in established ontologies are cited in this document. For the sake of compatibility with other relational database management systems only the following datatypes are used: * `CHAR` (standard SQL data type `NATIONAL CHARACTER`) for short attributes; * `VARCHAR(255)` (standard SQL data type `NATIONAL CHARACTER VARYING (255)`) for fields with a fixed set of values; diff --git a/PHP/ontology/pnmold.owl b/PHP/ontology/pnmold.owl new file mode 100644 index 0000000..81cdc3e --- /dev/null +++ b/PHP/ontology/pnmold.owl @@ -0,0 +1,1235 @@ + + + + Persons and Names of the Middle Kingdom ontology + pnm + 2 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + A statement about a bond has an object. + bond_statement_object + + + + + + + + + + A statement about a bond has a predicate. + bond_statement_predicate + + + + + + + + + + A statement about a bond has a subject. + bond_statement_subject + + + + + + + + + + The entity referred to in a document + document_refers_to + + + + + + + + + + A spelling has an alternative reading + has_alternative_reading + + + + + + + + + + + An event has caused a find group (context) to be deposited + + + + + + + + + + There exists a statement concerning the identity of an attestated person with a person known from other sources. + has_identity_statement + + + + + + + + + + has_lexical_entry_usage + + + + + + + + + + + Indicates a name type (either formal or semantic), to which a personal name belongs. + has_name_type + + + + + + + + + + + the bibliographic reference has a type + has_reference_type + + + + + + + + + + + The inscription is written in a script. + has_script + + + + + + + + + + A spelled form of a personal name is attested in an inscription for a person + has_spelled_personal_name + + + + + + + + + + A form of a lexical entry has a particular written representation. + has_spelling + + + + + + + + + + has_spelling_usage + + + + + + + + + + + The inscription has principal content. + has_text_content + + + + + + + + + + A person attested in an inscription bears a title according to the inscription + has_title + + + + + + + + + + The usage of a lexical entry (name, spelling, title) is defined in terms of space or time. + has_usage + + + + + + + + + + A title is a variant of another title + is_a_variant_of + + + + + + + + + + Temporal and spatial framework of a person's life + lived + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + A spelling can alsobe read as a different personal name + reads_as + + + + + + + + + + Identity statement refers to a person + refers_to + + + + + + + + + + A dating criterion favours a certain period + + + + + + + + + + A production place criterion favours a certain production place or region + + + + + + + + + + A title refers to a holder of another title + refers_to_title + + + + + + + + + + A title specificates another title + specificates + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Representation of a lexical entry by means of the Egyptological transliteration. + Egyptological_transliteration + ägyptologische Traskription + + + + + + + + + + The find group has a description of architectural features. + architecture + + + + + + + + + + Gender of a person as attested in an inscription. + attested_gender + + + + + + + + + + A list of personal names attested for a person in an inscription + attested_personal_names + + + + + + + + + + A list of titles attested for a person in an inscription + attested_title_string + + + + + + + + + The bibliographical description of a BibliographicResource in the CSL JSON format + csl_json + + + + + + + + + + The find group has a description of finds. + finds + + + + + + + + gender + + + + + + + + + + The entity has a reasoning for the dating. + has_dating_note + + + + + + + + + A find group has an exact location within a place + + + + + + + + + + The entity has a reasoning for the installation place. + has_installation_place_note + + + + + + + + + + The entity has a reasoning for the location. + has_location_note + + + + + + + + + + The inscription has a reasoning for establishing its origin . + has_origin_note + + + + + + + + + + The entity has a reasoning for the production place. + has_production_place_note + + + + + + + + + + The entity has a reasoning for the provenance. + has_provenance_note + + + + + + + + + The identity statement is supported by certain arguments or is contradicted by certain arguments. + has_reasoning + + + + + + + + + + The entity has a reasoning for establishing the usage area. + has_usage_area_note + + + + + + + + + The entity is used by holders of a patrticular gender. + has_usage_gender + + + + + + + + + A name, spelling, title has a usage period. + has_usage_period + + + + + + + + + + The entity has a reasoning for establishing the usage period. + has_usage_period_note + + + + + + + + + Transliterated exact expression of the bond in lowercase Unicode as attested in the inscription; *example: sꜣ⸗f* + has_wording + + + + + + + + + + The find group has or has no human remans. + human_remains + + + + + + + + + + The object was originally installed at. + installation_place + + + + + + + + + the most recent king explicitly named on the object. + last_king_mentioned + + + + + + + + + Location of the first attestation of a person in an inscription. + location_in_the_inscription + + + + + + + + + The inscription has indications of origins. + origin + + + + + + + + + person_gender + + + + + + + + + + A list of personal names held by a person + person_personal_names + + + + + + + + + + A list of titles held by a person + person_title_string + + + + + + + + Name or names of a person as attested in an inscription or in multiple inscriptions. + personal_names + + + + + + + + The location in the source where an object is referred to (typically, page numbers) + + + + + + + + + Status of a person in regard to the inscribed object (owner, patron). + status_in_the_inscription + + + + + + + + Title string of a person as attested in an inscription or across inscriptions. + title_string + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + A bond between two persons attested in an inscription, as attested in the same inscription + + + + + + + + + Bibliographic reference (the fact that a document refers to an entity) + biblio_ref + + + + + + + + + A bond between two entries + bond + + + + + + + + + + + + + + + + + A criterion for dating or establishing the production place + criterion + + + + + + + + + It is stated that a person attested in an inscription is identical to a person known from other sources. + + + + + + + + + + + + + + + + + + + + + + + + + + Attestation of a person in an inscription. + person_attestation + + + + + + + + + + A name of a person (or an animal) as a lexical entry. + personal_name + + + + + + + + + A bond between two persons. + + + + + + + + + + + + + + + + + The script of the inscription. + script + + + + + + + + + A particular written representation (orthographical variant, spelling) of a form. + spelling + + + + + + + + + The principal content of the inscription. + text_content + + + + + + + + + + Egyptian title + + + + + + + + + Usage of a lexical entry as a period. + usage + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + description + + + + + + + + + + + + + + + + + + + + + + + + + List of corresponding lemma numbers in R. Hannig, Ägyptisches Wörterbuch II: Mittleres Reich und Zweite Zwischenzeit, separated by semicolons + + + + + + + + + hieroglyphic_transcription + + + + + + + + + the identification of a person in an inscription with a person known from other inscriptions is accepted + + + + + + + + + the identification of a person in an inscription with a person known from other inscriptions is weak + + + + + + + + + the identification of a person in an inscription with a person known from other inscriptions is rejected + + + + + + + + + + + + + + + + + + + + + + + + + A web-address of the online collection search + + + + + + + + + partial_hieroglyphic_transcription + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Reference(s) to Ranke, Die Ägyptischen Personennamen + + + + + + + + + Reference to Scheele-Schweitzer, Die Personennamen des Alten Reiches + + + + + + + + + + + + + + + + + + + + + + + + + ID or list of IDs in the Topographical Bibliography + + + + + + + + + translation + + + + + + + + + List of corresponding lemma numbers in Ward, Index of Egyptian Administrative and Religious Titles of the Middle Kingdom and Fischer, Egyptian Titles of the Middle Kingdom. A Supplement to Wm. Ward's Index + + + + + + + diff --git a/PHP/views/footer.php b/PHP/views/footer.php index 25dbf52..860e353 100644 --- a/PHP/views/footer.php +++ b/PHP/views/footer.php @@ -14,7 +14,7 @@

- Copyright 2021 Alexander Ilin-Tomich. + Copyright 2022 Alexander Ilin-Tomich. Content licensed under CC BY 4.0, except for logos. RDF version via SPARQL endpoint. Dataset under doi:10.5281/zenodo.1411391. Source code on GitHub.

diff --git a/PHP/views/personView.php b/PHP/views/personView.php index 292ca45..e53b227 100644 --- a/PHP/views/personView.php +++ b/PHP/views/personView.php @@ -12,11 +12,9 @@ * ['persons_id', 'title', 'gender', 'title_string', 'personal_name', 'dating', 'dating_note', 'region', 'region_note', 'note'] */ -class personView extends View -{ +class personView extends View { - public function echoRender(&$data) - { + public function echoRender(&$data) { $placesMV = new placesMicroView(); $personMV = new personsMicroView(); $attView = new attestationsMicroView(); @@ -29,43 +27,43 @@ public function echoRender(&$data) Name renderGender($data->get('gender')) ?> - get('title_string')) ? null : '' . $data->get('title_string') . '') ?> + get('title_string')) ? null : '' . $data->get('title_string') . '') ?> get('personal_name') ?>

- descriptionElement('Date', $data->get('dating'), $data->get('dating_note'), 'period'), - $this->descriptionElement('Origin', $placesMV->render($data->get('region')), $data->get('region_note'), 'place'), - $this->descriptionElement('Note', $data->get('note'), null, 'note'), - $this->descriptionElement('Bibliography', $this->renderBiblio($data->get('bibliography'))); - ?> -
get('bonds')->count > 0) { - echo '

Bonds

'; - echo $this->renderBonds($data->get('bonds')->data, $personMV); - } - $objAtt = $data->get('attestations'); + descriptionElement('Date', $data->get('dating'), $data->get('dating_note'), 'period'), + $this->descriptionElement('Origin', $placesMV->render($data->get('region')), $data->get('region_note'), 'place'), + $this->descriptionElement('Note', $data->get('note'), null, 'note'), + $this->descriptionElement('Bibliography', $this->renderBiblio($data->get('bibliography'))); ?> + get('bonds')->count > 0) { + echo '

Bonds

'; + echo $this->renderBonds($data->get('bonds')->data, $personMV); + } + $objAtt = $data->get('attestations'); + ?>

Attestations