Changes between Version 1 and Version 2 of cypher_queries


Ignore:
Timestamp:
Nov 8, 2015, 10:25:30 PM (8 years ago)
Author:
arussell
Comment:

--

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 ==
    22
    331)      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-- 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 --
    772)      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
     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 --
    1111
    12123)      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
     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 --
    1616
    17174)      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
     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 --
    2121
    22225)      List of all people who had other “roles” associated with a title (e.g. copyists , owners, patrons, teachers, students, etc.)