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/'))
    type_list = [
        node(
            uuid=str(uuid.uuid1()),
            app_label=APP_LABEL,
            name=APP_LABEL+':'+NEOUSER_TYPE_MODEL_NAME,
            model_name=NEOUSER_TYPE_MODEL_NAME
        ),
        node(
            uuid=str(uuid.uuid1()),
        ),
        node(
            uuid=str(uuid.uuid1()),
            app_label=APP_LABEL,
            name=APP_LABEL+':'+CONTENT_SOURCE_TYPE_MODEL_NAME,
            model_name=CONTENT_SOURCE_TYPE_MODEL_NAME
        ),
        node(
            uuid=str(uuid.uuid1()),

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/'))
    websites = [
        node(
            uuid='97678546-a07d-11e3-9f3a-2cd05ae1c39b',
            link='http://www.gry-online.pl/',
            title='GRY-OnLine',
            language='pl',
        ),
        node(
            uuid='976787bc-a07d-11e3-9f3a-2cd05ae1c39b',
        ),
        node(
            uuid='97678938-a07d-11e3-9f3a-2cd05ae1c39b',
            link='http://www.tvn24.pl/',
            title='TVN24.pl - Wiadomosci z kraju i ze swiata',
    content_sources_list = [
        node(
            uuid='977466da-a07d-11e3-9f3a-2cd05ae1c39b',
            link='http://www.gry-online.pl/rss/news.xml',
            title='GRY-OnLine Wiadomosci',

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/'))
    if nodes_count == [0]:
        # Create root
        graph_db.create(node())
 
    my_batch = neo4j.WriteBatch(graph_db)
    types = [
        node(
            uuid='970f37f6-a07d-11e3-9f3a-2cd05ae1c39b',
            app_label=APP_LABEL,
            name=APP_LABEL+':'+WEBSITE_TYPE_MODEL_NAME,
            model_name=WEBSITE_TYPE_MODEL_NAME
        ),
        node(
            uuid='970f6d5c-a07d-11e3-9f3a-2cd05ae1c39b',
        ),
        node(
            uuid='970f9b7e-a07d-11e3-9f3a-2cd05ae1c39b',
            app_label=APP_LABEL,
            name=APP_LABEL+':'+CONTENT_TYPE_MODEL_NAME,