Changes between Version 2 and Version 3 of cypher_queries
- Timestamp:
- Nov 8, 2015, 10:30:07 PM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
cypher_queries
v2 v3 2 2 3 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 -- 4 {{{ 5 MATCH (texts:TEXT)-[was_created_by]->(author:PERSON) 6 WHERE author.name_translit = "Šihāb al-Dīn Abū al-ʿAbbās Aḥmad ibn Rajab ibn Ṭaybuġā al-Majdī al-Šāfiʿī" 7 RETURN author, texts 8 }}} 9 7 10 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 MATCH (witnesses:WITNESS)-[is_part_of]->(title:TEXT) 13 WHERE title.label = "Risāla fī al-barāhīn ʿalā masāʾil al-jabr wa-ʾl-muqābala" 14 RETURN title, witnesses 15 }}} 11 16 12 17 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 -- 18 {{{ 19 MATCH (texts:TEXT)-[rel:is_commentary_on*]->(primary:TEXT) 20 WHERE primary.label = "Kitāb al-Išārāt wa-ʾl-tanbīhāt" 21 RETURN primary, texts 22 }}} 16 23 17 24 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 -- 25 {{{ 26 MATCH (authors:PERSON)<-[was_created_by]-(commentaries:TEXT)-[rel:is_commentary_on*]->(primary:TEXT) 27 WHERE primary.label = "Kitāb al-Išārāt wa-ʾl-tanbīhāt" 28 RETURN primary, commentaries, authors 29 }}} 21 30 22 31 5) List of all people who had other “roles” associated with a title (e.g. copyists , owners, patrons, teachers, students, etc.)