Did I find the right examples for you? yes no Crawl my project Python Jobs
All Samples(10) | Call(8) | Derive(2) | Import(0)
src/o/c/ocean-HEAD/scripts/ocean_init_graph.py ocean(Download)
graph_db.create(node()) my_batch = neo4j.WriteBatch(graph_db) my_batch.append_cypher('match (a)-[r]-(b) delete r;') # fix: do not delete the root
my_batch.submit() my_batch = neo4j.WriteBatch(graph_db) my_batch.append_cypher('match (e:Root) set e:Node;') my_batch.append_cypher('match (e:Root) set e.uuid="root";')
# Create type relations write_batch = neo4j.WriteBatch(graph_db) # Create instance relations
src/o/c/ocean-HEAD/scripts/ocean_small_exemplary_init.py ocean(Download)
read_batch = neo4j.ReadBatch(graph_db) write_batch = neo4j.WriteBatch(graph_db) ### Add websites ###
) my_batch = neo4j.WriteBatch(graph_db) my_batch.append_cypher('create index on :Node(uuid)') my_batch.append_cypher('create index on :ContentSource(link)')
src/o/c/ocean-HEAD/scripts/ocean_small_exemplary_data.py ocean(Download)
# Erases database data without the Root node write_batch = neo4j.WriteBatch(graph_db) write_batch.append_cypher('MATCH ()-[r]-() DELETE r') write_batch.append_cypher('MATCH n DELETE n')
) batch = neo4j.WriteBatch(graph_db) batch.append_cypher('CREATE INDEX ON :Node(uuid)') batch.submit()
src/n/e/neomodel-HEAD/neomodel/util.py neomodel(Download)
class CustomBatch(neo4j.WriteBatch): def __init__(self, graph, index_name, node='(unsaved)'): super(CustomBatch, self).__init__(graph) self.index_name = index_name self.node = node
src/n/e/neomodel-0.3.6/neomodel/util.py neomodel(Download)
class CustomBatch(neo4j.WriteBatch): def __init__(self, graph, index_name, node='(unsaved)'): super(CustomBatch, self).__init__(graph) self.index_name = index_name
src/o/c/ocean-HEAD/tests/lionfish_correctness_unit_tests.py ocean(Download)
) self._v_read_batch = neo4j.ReadBatch(graph_db) self._v_write_batch = neo4j.WriteBatch(graph_db) # ================ G E T B Y U U I D ================