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

All Samples(55)  |  Call(52)  |  Derive(0)  |  Import(3)

src/o/c/ocean-HEAD/scripts/ocean_small_exemplary_data.py   ocean(Download)
import os
 
from py2neo import neo4j, node, rel
 
sys.path.append(os.path.join(os.path.dirname(__file__), '../don_corleone/'))
    # Creates type relations
    graph_db.create(
        rel(root, HAS_TYPE_RELATION, type_list[0]),
        rel(root, HAS_TYPE_RELATION, type_list[1]),
        rel(root, HAS_TYPE_RELATION, type_list[2]),
        rel(root, HAS_TYPE_RELATION, type_list[3])

src/o/c/ocean-HEAD/scripts/ocean_init_graph.py   ocean(Download)
 
from py2neo import neo4j
from py2neo import node, rel
 
sys.path.append(os.path.join(os.path.dirname(__file__), '../don_corleone/'))
    # Create instance relations
    graph_db.create(
        rel(types[1], HAS_INSTANCE_RELATION, users[0]),
        rel(types[1], HAS_INSTANCE_RELATION, users[1]),
        rel(types[1], HAS_INSTANCE_RELATION, users[2]),
        rel(types[1], HAS_INSTANCE_RELATION, users[3])

src/o/c/ocean-HEAD/scripts/ocean_small_exemplary_init.py   ocean(Download)
 
from py2neo import neo4j
from py2neo import node, rel
 
sys.path.append(os.path.join(os.path.dirname(__file__), '../don_corleone/'))
    # Create Website __has__ ContentSource relations
    graph_db.create(
        rel(websites[0], HAS_RELATION, content_sources[0]),
        rel(websites[1], HAS_RELATION, content_sources[1]),
        rel(websites[2], HAS_RELATION, content_sources[2])