Changes between Version 1 and Version 2 of cypher_queries
- Timestamp:
- Nov 8, 2015, 10:25:30 PM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
cypher_queries
v1 v2 1 == Cypher examples for use in Neo4j Browser==1 == Cypher examples for use in Neo4j Browser == 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, texts4 -- 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 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, witnesses8 -- 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 11 12 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, texts13 -- 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 16 17 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, authors18 -- 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 21 22 22 5) List of all people who had other “roles” associated with a title (e.g. copyists , owners, patrons, teachers, students, etc.)