-
Notifications
You must be signed in to change notification settings - Fork 0
/
cloudburst-beer-graph.json
executable file
·1 lines (1 loc) · 9.74 KB
/
cloudburst-beer-graph.json
1
{"categories":[{"id":4,"name":"Aroma","color":"#ECB5C9","size":1,"icon":"no-icon","labels":["Aroma"],"properties":[{"name":"aroma","exclude":false,"isCaption":true,"dataType":"string"},{"name":"name","exclude":false,"isCaption":false,"dataType":"string"},{"name":"indexes","exclude":false,"isCaption":false,"dataType":"array"},{"name":"constraints","exclude":false,"isCaption":false,"dataType":"array"}],"caption":[""],"createdAt":1625382517154,"lastEditedAt":1637203294668,"styleRules":[]},{"id":1,"name":"Hop","color":"#FFC454","size":1,"icon":"no-icon","labels":["Hop"],"properties":[{"name":"name","exclude":false,"isCaption":true,"dataType":"string"},{"name":"description","exclude":false,"isCaption":false,"dataType":"string"},{"name":"aroma_profile","exclude":false,"isCaption":false,"dataType":"array"},{"name":"country","exclude":false,"isCaption":false,"dataType":"string"},{"name":"data_file","exclude":false,"isCaption":false,"dataType":"string"},{"name":"hop_id","exclude":false,"isCaption":false,"dataType":"string"},{"name":"styles","exclude":false,"isCaption":false,"dataType":"array"},{"name":"idx","exclude":false,"isCaption":false,"dataType":"bigint"},{"name":"data_source","exclude":false,"isCaption":false,"dataType":"string"},{"name":"is_blend","exclude":false,"isCaption":false,"dataType":"boolean"},{"name":"indexes","exclude":false,"isCaption":false,"dataType":"array"},{"name":"constraints","exclude":false,"isCaption":false,"dataType":"array"}],"caption":[""],"createdAt":1622781081271,"lastEditedAt":1637203294694,"styleRules":[]},{"id":2,"name":"Beer","color":"#F79767","size":1,"icon":"no-icon","labels":["Beer"],"properties":[{"name":"name","exclude":false,"isCaption":true,"dataType":"string"},{"name":"abv","exclude":false,"isCaption":false,"dataType":"number"},{"name":"description","exclude":false,"isCaption":false,"dataType":"string"},{"name":"style","exclude":false,"isCaption":false,"dataType":"string"},{"name":"style_abv_z_score","exclude":false,"isCaption":false,"dataType":"number"},{"name":"indexes","exclude":false,"isCaption":false,"dataType":"array"},{"name":"constraints","exclude":false,"isCaption":false,"dataType":"array"}],"caption":[""],"createdAt":1622781081271,"lastEditedAt":1637203294717,"styleRules":[{"type":"range","size":1,"minSize":1,"maxSize":2,"minColor":"#ffffff","midColor":"#81CCA8","maxColor":"#e86507","minPoint":"8.3","maxPoint":"8.3","color":"#ee8e49","basedOn":"abv_number","valuesMapper":[],"existingValues":[],"maxSizeValue":"8.3","maxColorValue":"9","minSizeValue":"8.3","minColorValue":"3","applyColor":true,"applySize":false,"id":"rule:1636773066767"}]},{"id":3,"name":"Style","color":"#2ed3d3","size":1,"icon":"no-icon","labels":["Style"],"properties":[{"name":"style","exclude":false,"isCaption":true,"dataType":"string"},{"name":"abv_mean","exclude":false,"isCaption":false,"dataType":"number"},{"name":"abv_std","exclude":false,"isCaption":false,"dataType":"number"},{"name":"name","exclude":false,"isCaption":false,"dataType":"string"},{"name":"indexes","exclude":false,"isCaption":false,"dataType":"array"},{"name":"constraints","exclude":false,"isCaption":false,"dataType":"array"}],"caption":[""],"createdAt":1622781081271,"lastEditedAt":1637203294751,"styleRules":[{"id":"rule:1636776199923","type":"range","size":1,"minSize":1,"maxSize":2,"minColor":"#7af6fc","midColor":"#81CCA8","maxColor":"#0ad2e9","minPoint":"5.766666666666666","maxPoint":"8.364406779661017","color":"#0ad2e9","basedOn":"abv_mean_number","valuesMapper":[],"existingValues":[],"applyColor":true,"applySize":false,"condition":"has-property","maxSizeValue":"8.364406779661017","maxColorValue":"8.364406779661017","minSizeValue":"5.766666666666666","minColorValue":"5.766666666666666"}]}],"name":"cloudburst-beer-graph","id":"8354e2f0-c5ab-11eb-bfa3-bb4c38647d83","labels":{"Beer":[{"propertyKey":"name","type":"Beer","dataType":"string"},{"propertyKey":"abv","type":"Beer","dataType":"number"},{"propertyKey":"description","type":"Beer","dataType":"string"},{"propertyKey":"style","type":"Beer","dataType":"string"},{"propertyKey":"style_abv_z_score","type":"Beer","dataType":"number"}],"Style":[{"propertyKey":"style","type":"Style","dataType":"string"},{"propertyKey":"abv_std","type":"Style","dataType":"number"},{"propertyKey":"abv_mean","type":"Style","dataType":"number"}],"Aroma":[{"propertyKey":"aroma","type":"Aroma","dataType":"string"}],"Hop":[{"propertyKey":"name","type":"Hop","dataType":"string"},{"propertyKey":"description","type":"Hop","dataType":"string"},{"propertyKey":"idx","type":"Hop","dataType":"bigint"},{"propertyKey":"aroma_profile","type":"Hop","dataType":"array"},{"propertyKey":"country","type":"Hop","dataType":"string"},{"propertyKey":"styles","type":"Hop","dataType":"array"},{"propertyKey":"hop_id","type":"Hop","dataType":"string"},{"propertyKey":"is_blend","type":"Hop","dataType":"boolean"},{"propertyKey":"data_source","type":"Hop","dataType":"string"},{"propertyKey":"data_file","type":"Hop","dataType":"string"}]},"relationshipTypes":[{"properties":[],"name":"CONTAINS","id":"CONTAINS","styleRules":[{"type":"single","size":1,"minSize":1,"maxSize":2,"minColor":"#D5EEE2","midColor":"#81CCA8","maxColor":"#428C6A","minPoint":"unprocessed","maxPoint":"unprocessed","color":"#FFE081","basedOn":"_other","valuesMapper":[],"existingValues":[],"applyColor":false,"applySize":false,"id":"rule:1636773070224"}],"size":1},{"properties":[],"name":"STYLE","id":"STYLE","styleRules":[]},{"properties":[],"name":"HAS_AROMA","id":"HAS_AROMA","styleRules":[]}],"palette":{"colors":["#FFE081","#C990C0","#F79767","#57C7E3","#F16667","#D9C8AE","#8DCC93","#ECB5C9","#4C8EDA","#FFC454","#DA7194","#569480","#848484","#D9D9D9"],"currentIndex":8},"createdAt":1622862599839,"lastEditedAt":1622862599839,"templates":[{"name":"Display the database schema. Requires APOC plugins to be installed.","id":"tmpl:1625383358241","createdAt":1625383358241,"text":"show schema","cypher":"CALL db.schema.visualization() YIELD nodes, relationships\nUNWIND nodes as node\nwith node, relationships\nWHERE apoc.node.labels(node) <> [\"Bloom_Perspective\"]\nRETURN collect(node) AS nodes, relationships","params":[],"hasCypherErrors":false},{"name":"Aroma notes for a particular hop","id":"tmpl:1625382904466","createdAt":1625382904466,"text":"aroma notes for hop $a","cypher":"match path = (h:Hop)-[]-(a:Aroma)\nwhere h.name = $a\nreturn path","params":[{"name":"$a","dataType":"String","collapsed":false,"suggestionLabel":"Hop","suggestionProp":"name","suggestionBoolean":false,"cypher":null}],"hasCypherErrors":false},{"name":"Find hops with certain aroma note","id":"tmpl:1625382762254","createdAt":1625382762254,"text":"hops with aroma $a","cypher":"match path = (a:Aroma)-[e]-(h:Hop)\nwhere a.aroma = $a\nreturn path","params":[{"name":"$a","dataType":"String","collapsed":false,"suggestionLabel":"Aroma","suggestionProp":"aroma","suggestionBoolean":false,"cypher":null}],"hasCypherErrors":false},{"name":"Find a beer by name","id":"tmpl:1622851172738","createdAt":1622851172738,"text":"beer named $a","cypher":"match path = (s:Style)-[]-(b:Beer)\nwhere toLower(b.name) = toLower($a)\nwith path,b\noptional match (b)-[e]-(h:Hop)\noptional match (h:Hop)-[e2]-(a:Aroma)\nreturn path, e,e2,h,a","params":[{"name":"$a","dataType":"String","collapsed":false,"suggestionLabel":null,"suggestionProp":null,"suggestionBoolean":false,"cypher":"//union all for lowercase matches too\nmatch (b:Beer)\nreturn toLower(b.name) as name\nUNION ALL\nmatch (b:Beer)\nreturn b.name as name"}],"hasCypherErrors":false},{"name":"Find beers by style","id":"tmpl:1622850558381","createdAt":1622850558381,"text":"beers with style $a","cypher":"match path = (s:Style)-[]-(b:Beer)\nwhere s.style = $a\nwith path,b\noptional match (b)-[e]-(h:Hop)\nreturn path, e,h","params":[{"name":"$a","dataType":"String","suggestionLabel":"Style","suggestionProp":"style","cypher":null}],"hasCypherErrors":false},{"name":"Find beers containing a particular hop","id":"tmpl:1622781094561","createdAt":1622781094561,"text":"beers with hop named $a","cypher":"with $a as name\nmatch path = (s:Style)-[]-(b:Beer)-[]-(h:Hop)\nwhere toLower(h.name) = toLower($a)\nreturn path","params":[{"name":"$a","dataType":"String","collapsed":false,"suggestionLabel":null,"suggestionProp":null,"suggestionBoolean":false,"cypher":"//allow lowercase matches using union all\nmatch (h:Hop)\nreturn toLower(h.name) as name\nUNION ALL\nmatch (h:Hop)\nreturn h.name as name"}],"hasCypherErrors":false},{"name":"Find beers and styles containing two separate hops (if any)","id":"tmpl:1622781090180","createdAt":1622781090180,"text":"beers with hop pair $a $b","cypher":"match path = (s:Style)-[]-(b:Beer)-[]-(h1:Hop)\nwhere h1.name = $a\nwith path, b\nmatch sidepath = (b:Beer)-[]-(h2:Hop)\nwhere h2.name = $b\nreturn path, sidepath","params":[{"name":"$a","dataType":"String","suggestionLabel":"Hop","suggestionProp":"name","cypher":null},{"name":"$b","dataType":"String","suggestionLabel":"Hop","suggestionProp":"name","cypher":null}],"hasCypherErrors":false}],"hiddenRelationshipTypes":[],"hiddenCategories":[],"hideUncategorisedData":false,"parentPerspectiveId":"b671d9e0-c4ed-11eb-b76c-2f2227da55c4","metadata":{"pathSegments":[{"source":"Beer","relationshipType":"STYLE","target":"Style"},{"source":"Hop","relationshipType":"HAS_AROMA","target":"Aroma"},{"source":"Beer","relationshipType":"CONTAINS","target":"Hop"}],"indexes":[{"label":"Aroma","type":"native","propertyKeys":["aroma"]},{"label":"Beer","type":"native","propertyKeys":["name"]},{"label":"Hop","type":"native","propertyKeys":["name"]},{"label":"Style","type":"native","propertyKeys":["style"]},{"type":"full-text","state":"ONLINE","tokenNames":["Beer","Hop"],"name":"name_and_descriptions","propertyNames":["name","description"],"provider":{"key":"fulltext","version":"1.0"}}],"stats":{"labels":{},"relationshipTypes":{"CONTAINS":952,"HAS_AROMA":474,"STYLE":446}}},"version":"1.9.0","isAuto":false}