| 1 | ==Cypher examples for use in Neo4j Browser== |
| 2 | |
| 3 | 1) List of all titles for an author. This should include variant versions for a title. |
| 4 | --MATCH (texts:TEXT)-[was_created_by]->(author:PERSON) |
| 5 | --WHERE author.name_translit = "Šihāb al-Dīn Abū al-ʿAbbās Aḥmad ibn Rajab ibn Ṭaybuġā al-Majdī al-Šāfiʿī" |
| 6 | --RETURN author, texts |
| 7 | 2) List of all witnesses for a title (the list should distinguish which witnesses go with a particular title version) |
| 8 | --MATCH (witnesses:WITNESS)-[is_part_of]->(title:TEXT) |
| 9 | --WHERE title.label = "Risāla fī al-barāhīn ʿalā masāʾil al-jabr wa-ʾl-muqābala" |
| 10 | --RETURN title, witnesses |
| 11 | |
| 12 | 3) List of all commentaries and super-commentaries on a given title |
| 13 | --MATCH (texts:TEXT)-[rel:is_commentary_on*]->(primary:TEXT) |
| 14 | --WHERE primary.label = "Kitāb al-Išārāt wa-ʾl-tanbīhāt" |
| 15 | --RETURN primary, texts |
| 16 | |
| 17 | 4) List of all authors who wrote in connection with a particular title (commentaries, super-commentaries) |
| 18 | --MATCH (authors:PERSON)<-[was_created_by]-(commentaries:TEXT)-[rel:is_commentary_on*]->(primary:TEXT) |
| 19 | --WHERE primary.label = "Kitāb al-Išārāt wa-ʾl-tanbīhāt" |
| 20 | --RETURN primary, commentaries, authors |
| 21 | |
| 22 | 5) List of all people who had other “roles” associated with a title (e.g. copyists , owners, patrons, teachers, students, etc.) |
| 23 | * currently no specialised interface (PERSON -*- TITLE) |
| 24 | |
| 25 | 6) Bring up people associated with a particular title (not just one huge list of people, but be able to distinguish author, student, teacher) |
| 26 | * see 5)? |
| 27 | |
| 28 | 7) Bring up people associated with a particular witness (not just one huge list of people, but be able to distinguish owner, say, from commentator) |
| 29 | * currently no specialised interface (PERSON -*- WITNESS) |
| 30 | |
| 31 | 8) Bring up all the works dedicated to a particular “patron” (e.g., Ulugh Beg) |
| 32 | * possible with OpenMind, Drupal and Popoto (TEXT was-dedicated-to PERSON) |
| 33 | |
| 34 | 9) Bring up all owners of a particular codex |
| 35 | * possible with OpenMind, Drupal and Popoto (PERSON <was-owned-by CODEX) |
| 36 | |
| 37 | 10) Bring up all codices owned by a single person |
| 38 | * possible with OpenMind, Drupal and Popoto (CODEX was-owned-by PERSON) |
| 39 | |
| 40 | 11) Create a Table of contents for a particular codex |
| 41 | * list of witnesses possible with OpenMind, Drupal and Popoto (WITNESS part-of CODEX) |
| 42 | |
| 43 | 12) Bring up all works studied in a madrasa (institution event) |
| 44 | |
| 45 | 13) Search for specific words in incipits, explicits and colophons |
| 46 | * full text search necessary |
| 47 | |
| 48 | 14) Find copying dates in a certain range |