Skip to content

Instantly share code, notes, and snippets.

@suhajdab
Forked from Pimsepinnen/peoplebooksandcities
Last active August 29, 2015 14:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save suhajdab/becc3edf4e511aeb4924 to your computer and use it in GitHub Desktop.
Save suhajdab/becc3edf4e511aeb4924 to your computer and use it in GitHub Desktop.

Veberöds historia

create
// buildings
  (church:Building {name:'Veberöds kyrka', founded: 1200, geolocation: '55.6347487,13.4897019'}),
  (ica:Building {name: 'A. Frantz', founded: 1950, geolocation: '55.636614,13.490268'}),
  (house:Building {name: 'Johansson estate', geolocation: ''}),

// people
  (prs:Person {name:'Johan Johansson', born:1804, deceased: 1888}),

// maps
  (oldmap:Map {name:'1694 - Veberöd',file:'1694 - Veberöd.png'}),

// photos
  (oldphoto:Photo {name:'A. Frantz', file:'', datetime: '1906', geolocation: '', direction: '', bearing: ''}),
  (:Photo {name: 'Novakliniken, Qvinnohälsa', file: '', datetime: '2015', geolocation: '', direction: '', bearing: ''}),

// relationship
  (church)-[:APPEARS_ON {rect:[1,1,20,20]}]->(oldmap),
  (church)-[:APPEARS_ON {rect:[2,2,40,40]}]->(oldphoto),
  (ica)-[:APPEARS_ON {rect:[22,22,450,450]}]->(oldphoto),
  (ica)-[:OWNED_BY {fromdate: 1845, todate: 1855}]->(prs),
  (ica)-[:EMPLOYEE {fromdate:1845, todate:1855}]->(prs),
  (house)-[:INHABITED_BY {fromdate:1830, todate: 1875}]->(prs)
  return church as node;

Testing 1, 2, 3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment