We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b8433b6 commit f17b70cCopy full SHA for f17b70c
README
@@ -1,4 +1,4 @@
1
-usage: HTTP GET http://localhost:8080/hack17/SOME_ARTICLE_NAME
+usage: HTTP GET http://localhost:8080/graph/SOME_ARTICLE_NAME
2
3
response: {
4
"data": [
runner.py
@@ -10,7 +10,7 @@ def get_db():
10
def get_graph(article):
11
db = get_db()
12
# query = 'MATCH (p:Page {title:{0}})<-[:Link]-(o:Page) RETURN o.title as link_title LIMIT {1}'.format(article, 100)
13
- query = 'MATCH (p:Page {title:"Ireland"})<-[:Link]-(o:Page) RETURN o.title as link'
+ query = 'MATCH (p:Page {title:"%s"})<-[:Link]-(o:Page) RETURN o.title as link' % article.replace("_"," ")
14
results = db.run(query)
15
nodes = []
16
rels = []
0 commit comments