Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(6)  |  Call(6)  |  Derive(0)  |  Import(0)

src/m/e/mETL-0.1.8.7dev/metl/target/neo4jtarget.py   mETL(Download)
 
        if self.truncateLabel and self.resourceType == 'node':
            tx = self.session.create_transaction()
            cmd1 = 'MATCH (n:`%s`)-[r]-() DELETE n, r' % ( self.label )
            tx.append( cmd1 )
 
        elif self.truncateLabel and self.resourceType == 'relation':
            tx = self.session.create_transaction()
            cmd = 'MATCH (a)-[r:`%s`]-(b) DELETE r' % ( self.label )
            tx.append( cmd )

src/m/e/mETL-HEAD/metl/target/neo4jtarget.py   mETL(Download)
 
        if self.truncateLabel and self.resourceType == 'node':
            tx = self.session.create_transaction()
            cmd1 = 'MATCH (n:`%s`)-[r]-() DELETE n, r' % ( self.label )
            tx.append( cmd1 )
 
        elif self.truncateLabel and self.resourceType == 'relation':
            tx = self.session.create_transaction()
            cmd = 'MATCH (a)-[r:`%s`]-(b) DELETE r' % ( self.label )
            tx.append( cmd )

src/m/a/mad2-0.0.43/mad2/plugin/neo.py   mad2(Download)
 
    session = cypher.Session(app.conf.plugin.neo4j.uri)
    tx = session.create_transaction()
    tx.append(query_txt)
    res = tx.commit()
    print(query_txt)
    session = cypher.Session(app.conf.plugin.neo4j.uri)
    tx = session.create_transaction()
    tx.append(query_txt)
    res = tx.commit()