4
4
margin:-100;
5
5
}
6
6
*/
7
- .imageblock .content img {
8
- max-width : 900px ;
9
- max-height : 300px ;
10
- }
11
- .deck h3 {
12
- display : block !important ;
13
- margin-bottom : 8px ;
14
- margin-top : 5px ;
15
- }
16
- .listingblock {
17
- margin : 8px ;
18
- }
19
- .pull-bottom {
20
- position : relative;
21
- bottom : 1em ;
22
- }
7
+ @import url ("//maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css" );
8
+
9
+ .slide { min-height : 50em !important ; }
10
+ .imageblock .content img , .image img {max-width : 900px ;max-height : 300px ;}
11
+ .deck > h3 , .deck > h4 {display : block !important ;margin-bottom : 8px ;margin-top : 5px ;}
12
+ .listingblock {margin : 8px ;}
13
+ pre .code .runnable { max-height : 10em ;}
14
+ .pull-bottom {position : relative;bottom : 1em ;}
15
+ .admonitionblock td .icon [class ^= "fa icon-" ]{font-size : 2.5em ;text-shadow : 1px 1px 2px rgba (0 , 0 , 0 , .5 );cursor : default}
16
+ .admonitionblock td .icon .icon-note : before {content : "\f05a" ;color : # 19407c }
17
+ .admonitionblock td .icon .icon-tip : before {content : "\f0eb" ;text-shadow : 1px 1px 2px rgba (155 , 155 , 0 , .8 );color : # 111 }
18
+ .admonitionblock td .icon .icon-warning : before {content : "\f071" ;color : # bf6900 }
19
+ .admonitionblock td .icon .icon-caution : before {content : "\f06d" ;color : # bf3400 }
20
+ .admonitionblock td .icon .icon-important : before {content : "\f06a" ;color : # bf0000 }
21
+ .admonitionblock .note .speaker { display : none; }
23
22
</ style >
24
23
< style type ="text/css " media ="screen ">
25
- # editor .maximize-editor .CodeMirror-code {
26
- font-size : 40px ;
27
- line-height : 45px ;
28
- }
29
- </ style > < article class ="guide ">
24
+ /* #editor.maximize-editor .CodeMirror-code { font-size:24px; line-height:26px; } */
25
+ </ style >
26
+ < article class ="guide " ng-controller ="AdLibDataController " style ="min-height:1000px; ">
30
27
< carousel class ="deck container-fluid ">
31
28
<!--slide class="row-fluid">
32
29
<div class="col-sm-3">
@@ -49,17 +46,18 @@ <h3>Restaurant Recommendations</h3>
49
46
50
47
51
48
49
+ < h4 style ="margin-top: 1em;margin-bottom: 1em; "> Restaurant Recommendations</ h4 >
52
50
53
51
54
52
55
53
< slide class ="row-fluid ">
56
54
< div class ="col-sm-12 ">
57
- < h3 > Introduction</ h3 >
55
+ < h3 style =" margin-bottom: 0.3em; " > Introduction</ h3 >
58
56
< br />
59
57
< div >
60
- < div class ="imageblock " style ="float: right ">
58
+ < div class ="imageblock " style ="float: right; ">
61
59
< div class ="content ">
62
- < img src ="https://dl.dropboxusercontent .com/u/14493611 /sushi_restaurants_nyc.svg " alt ="sushi restaurants nyc " height ="300 ">
60
+ < img src ="https://guides.neo4j .com/sushi_restaurants_nyc.svg " alt ="sushi restaurants nyc " height ="300 ">
63
61
</ div >
64
62
</ div >
65
63
< div class ="paragraph ">
@@ -82,20 +80,20 @@ <h3>Introduction</h3>
82
80
83
81
< slide class ="row-fluid ">
84
82
< div class ="col-sm-12 ">
85
- < h3 > Setup: Creating Friends, Restaurants in Cities and their Cusines</ h3 >
83
+ < h3 style =" margin-bottom: 0.3em; " > Setup: Creating Friends, Restaurants in Cities and their Cusines</ h3 >
86
84
< br />
87
85
< div >
88
86
< div class ="listingblock ">
89
87
< div class ="content ">
90
- < pre mode ="cypher " class ="highlight pre-scrollable code runnable " > < code class ="cypher language-cypher "> CREATE (philip:Person {name:"Philip"})-[:IS_FRIEND_OF]->(emil:Person {name:"Emil"}),
88
+ < pre mode ="cypher " class ="highlight pre-scrollable programlisting cm-s-neo code runnable standalone-example ng-binding " data-lang =" cypher " lang =" cypher " > <!-- code class="cypher language-cypher"-- > CREATE (philip:Person {name:"Philip"})-[:IS_FRIEND_OF]->(emil:Person {name:"Emil"}),
91
89
(philip)-[:IS_FRIEND_OF]->(michael:Person {name:"Michael"}),
92
90
(philip)-[:IS_FRIEND_OF]->(andreas:Person {name:"Andreas"})
93
- create (sushi:Cuisine {name:"Sushi"}), (nyc:City {name:"New York"}),
91
+ CREATE (sushi:Cuisine {name:"Sushi"}), (nyc:City {name:"New York"}),
94
92
(iSushi:Restaurant {name:"iSushi"})-[:SERVES]->(sushi),(iSushi)-[:LOCATED_IN]->(nyc),
95
93
(michael)-[:LIKES]->(iSushi),
96
94
(andreas)-[:LIKES]->(iSushi),
97
95
(zam:Restaurant {name:"Zushi Zam"})-[:SERVES]->(sushi),(zam)-[:LOCATED_IN]->(nyc),
98
- (andreas)-[:LIKES]->(zam)</ code > </ pre >
96
+ (andreas)-[:LIKES]->(zam)<!-- /code-- > </ pre >
99
97
</ div >
100
98
</ div >
101
99
</ div >
@@ -106,13 +104,13 @@ <h3>Setup: Creating Friends, Restaurants in Cities and their Cusines</h3>
106
104
107
105
< slide class ="row-fluid ">
108
106
< div class ="col-sm-12 ">
109
- < h3 > Philips Friends</ h3 >
107
+ < h3 style =" margin-bottom: 0.3em; " > Philips Friends</ h3 >
110
108
< br />
111
109
< div >
112
110
< div class ="listingblock ">
113
111
< div class ="content ">
114
- < pre mode ="cypher " class ="highlight pre-scrollable code runnable " > < code class ="cypher language-cypher "> MATCH (philip:Person {name:"Philip"})-[:IS_FRIEND_OF]-(person)
115
- RETURn person.name</ code > </ pre >
112
+ < pre mode ="cypher " class ="highlight pre-scrollable programlisting cm-s-neo code runnable standalone-example ng-binding " data-lang =" cypher " lang =" cypher " > <!-- code class="cypher language-cypher"-- > MATCH (philip:Person {name:"Philip"})-[:IS_FRIEND_OF]-(person)
113
+ RETURn person.name<!-- /code-- > </ pre >
116
114
</ div >
117
115
</ div >
118
116
</ div >
@@ -123,13 +121,13 @@ <h3>Philips Friends</h3>
123
121
124
122
< slide class ="row-fluid ">
125
123
< div class ="col-sm-12 ">
126
- < h3 > Restaurants in NYC and their cusines</ h3 >
124
+ < h3 style =" margin-bottom: 0.3em; " > Restaurants in NYC and their cusines</ h3 >
127
125
< br />
128
126
< div >
129
127
< div class ="listingblock ">
130
128
< div class ="content ">
131
- < pre mode ="cypher " class ="highlight pre-scrollable code runnable " > < code class ="cypher language-cypher "> MATCH (nyc:City {name:"New York"})<-[:LOCATED_IN]-(restaurant)-[:SERVES]->(cusine)
132
- RETURN nyc, restaurant, cusine</ code > </ pre >
129
+ < pre mode ="cypher " class ="highlight pre-scrollable programlisting cm-s-neo code runnable standalone-example ng-binding " data-lang =" cypher " lang =" cypher " > <!-- code class="cypher language-cypher"-- > MATCH (nyc:City {name:"New York"})<-[:LOCATED_IN]-(restaurant)-[:SERVES]->(cusine)
130
+ RETURN nyc, restaurant, cusine<!-- /code-- > </ pre >
133
131
</ div >
134
132
</ div >
135
133
</ div >
@@ -140,12 +138,12 @@ <h3>Restaurants in NYC and their cusines</h3>
140
138
141
139
< slide class ="row-fluid ">
142
140
< div class ="col-sm-12 ">
143
- < h3 > Graph Search Recommendation</ h3 >
141
+ < h3 style =" margin-bottom: 0.3em; " > Graph Search Recommendation</ h3 >
144
142
< br />
145
143
< div >
146
- < div class ="imageblock " style ="float: right ">
144
+ < div class ="imageblock " style ="float: right; ">
147
145
< div class ="content ">
148
- < img src ="https://dl.dropboxusercontent .com/u/14493611 /sushi_restaurants_nyc.png " alt ="sushi restaurants nyc " height ="300 ">
146
+ < img src ="https://guides.neo4j .com/sushi_restaurants_nyc.png " alt ="sushi restaurants nyc " height ="300 ">
149
147
</ div >
150
148
</ div >
151
149
< div class ="paragraph ">
@@ -161,31 +159,31 @@ <h3>Graph Search Recommendation</h3>
161
159
< div class ="paragraph ">
162
160
< p > To satisfy this question, we have to know who’s asking: < em > Philip</ em > and he’s asking for 4 connected facts</ p >
163
161
</ div >
164
- < div class ="ulist ">
162
+ < div class ="ulist " style =" margin-bottom:.4em; " >
165
163
< ul >
166
164
< li >
167
- < p > < em > People</ em > that are friends of < em > Philip</ em > </ p >
165
+ < em > People</ em > that are friends of < em > Philip</ em >
168
166
</ li >
169
167
< li >
170
- < p > < em > Restaurants</ em > located in < em > New York</ em > </ p >
168
+ < em > Restaurants</ em > located in < em > New York</ em >
171
169
</ li >
172
170
< li >
173
- < p > < em > Restaurants</ em > that server < em > Sushi</ em > </ p >
171
+ < em > Restaurants</ em > that server < em > Sushi</ em >
174
172
</ li >
175
173
< li >
176
- < p > < em > Restaurants</ em > that his < em > Friends</ em > like</ p >
174
+ < em > Restaurants</ em > that his < em > Friends</ em > like
177
175
</ li >
178
176
</ ul >
179
177
</ div >
180
178
< div class ="listingblock ">
181
179
< div class ="content ">
182
- < pre mode ="cypher " class ="highlight pre-scrollable code runnable " > < code class ="cypher language-cypher "> MATCH (philip:Person {name:"Philip"}),
180
+ < pre mode ="cypher " class ="highlight pre-scrollable programlisting cm-s-neo code runnable standalone-example ng-binding " data-lang =" cypher " lang =" cypher " > <!-- code class="cypher language-cypher"-- > MATCH (philip:Person {name:"Philip"}),
183
181
(philip)-[:IS_FRIEND_OF]-(friend),
184
182
(restaurant:Restaurant)-[:LOCATED_IN]->(:City {name:"New York"}),
185
183
(restaurant)-[:SERVES]->(:Cuisine {name:"Sushi"}),
186
184
(friend)-[:LIKES]->(restaurant)
187
- RETURN restaurant.name, collect(friend.name) as likers, count(*) as occurence
188
- ORDER BY occurence DESC</ code > </ pre >
185
+ RETURN restaurant.name, collect(friend.name) AS likers, count(*) AS occurence
186
+ ORDER BY occurence DESC<!-- /code-- > </ pre >
189
187
</ div >
190
188
</ div >
191
189
</ div >
0 commit comments