Skip to content

Instantly share code, notes, and snippets.

View herlimenezes's full-sized avatar

Herli Menezes herlimenezes

View GitHub Profile
#!/usr/bin/env python
#
# script simples, para testar a extracao de dados de um documento xml
# a partir de uma sugestao em outro contexto, de machine learning, no stackoverflow
# respondendo a questao 6378350
# versao modificada do testeRBIE-7
#
import codecs
import pprint
import xml.etree.ElementTree as ET
@herlimenezes
herlimenezes / testePy2neo_v2.py
Created October 7, 2013 12:55
This is a test script to create a graph from information read from a xml dataset. There were some issues, coming from an unhandled type error.
#!/usr/bin/env python
#
from py2neo import neo4j, cypher
from py2neo import node, rel
# calls database service of Neo4j
#
graph_db = neo4j.GraphDatabaseService("http://localhost:7474/db/data/")
#