MW2014 temp

Note: This is not really a blog post in its own right, just a "cheat sheet" with a fewe useful URLs and some Cypher queries so I will have something handy for "demo any where, any time" during the Museums and the Web 2014 conference.

http://gist.neo4j.org/?7817558
http://gist.neo4j.org/?8640853

http://www.cidoc-crm.org/comprehensive_intro.html

1.
// Get all Class Declarations
MATCH (n) RETURN n

2.
// Get E7 Activity and its friends
MATCH a_path= ((e7)--(friend))
WHERE e7.crm_id = 'E7'
RETURN a_path

3.
// Get E7 Activity and its friends minus its IS_A relationships.
MATCH a_path= ((e7)-[rel]-(friend))
WHERE e7.crm_id = 'E7' AND NOT type(rel) = 'IS_A'
RETURN a_path

4.
// Get E7 Activity and its friends
MATCH a_path= ((e7)--(friend))
WHERE e7.crm_id = 'E7'
RETURN a_path

5.
// Get E41 Appelation and its friends
MATCH a_path= ((e41)--(friend))
WHERE e41.crm_id = 'E7'
RETURN a_path

6.
// Get E41 Appelation and its friends
MATCH a_path= ((e41)-[*2]-(friend))
WHERE e41.crm_id = 'E41'
RETURN a_path

Uncaught exception thrown in shutdown function.

PDOException: SQLSTATE[42000]: Syntax error or access violation: 1142 DELETE command denied to user 'factminersAdmin'@'localhost' for table 'semaphore': DELETE FROM {semaphore} WHERE (value = :db_condition_placeholder_0) ; Array ( [:db_condition_placeholder_0] => 10436844763d4657b4c5a48.41382037 ) in lock_release_all() (line 269 of /var/www/webadmin/data/www/factminers.org/html/includes/lock.inc).