Did I find the right examples for you? yes no Crawl my project Python Jobs
All Samples(7) | Call(7) | Derive(0) | Import(0)
src/o/c/ocean-HEAD/scripts/ocean_small_exemplary_data.py ocean(Download)
read_batch = neo4j.ReadBatch(graph_db) read_batch.append_cypher('MATCH n RETURN count(n)') print 'Nodes in graph initially ', read_batch.submit() print 'Erasing nodes and relations' read_batch.clear()
# Sanity check read_batch.append_cypher('MATCH (n) RETURN count(n)') result = read_batch.submit() print 'Nodes in graph erased. Sanity check : ', result read_batch.clear()
src/o/c/ocean-HEAD/graph_workers/neo4j_wrapper.py ocean(Download)
my_batch = neo4j.ReadBatch(graph_db) my_batch.append_cypher(cypher_query, params) result = my_batch.submit() if type(result) is py2neo.neo4j.Node: return [result] if type(result[0]) is py2neo.neo4j.Node: return result
"and w.title = {news_title} \n" + "RETURN count(w)" my_batch.append_cypher(cypher_query, {"news_title" : news_title.encode("utf8")}) results = my_batch.submit() return results[0]
""" ) results = my_batch.submit() metanode = None for node in results[0]:
src/k/a/kaiso-0.17.1/kaiso/persistence.py kaiso(Download)
# When upgrading to py2neo 1.6, consider changing this to batch.stream batch_result = batch.submit() def first_or_none(list_):
src/k/a/kaiso-HEAD/kaiso/persistence.py kaiso(Download)
# When upgrading to py2neo 1.6, consider changing this to batch.stream batch_result = batch.submit() def first_or_none(list_):