http://neo4j.com/docs/developer-manual/current/
brew install asciidoctor
sudo gem install tilt thread_safe
docker run -e NEO4J_AUTH=none -p 7474:7474 -p 7687:7687 -it -v $(pwd)/docker/neo4j/conf:/var/lib/neo4j/conf neo4j
:play https://raw.githubusercontent.com/benkeil/neo4j-sample/master/html/servicemap.html
Format the query to json
cat example/currency-service-v1.cql | jq -Rs -f jq.statement.json
Send it to the REST api
cat example/currency-service-v1.cql | jq -Rs -f jq.statement.json | curl -H "Accept: application/json" -H "Content-Type: application/json" -d@- http://localhost:7474/db/data/transaction/commit
Send every file to the REST api
for file in $(ls example/); do cat example/$file | jq -Rs -f jq.statement.json | curl -H "Accept: application/json" -H "Content-Type: application/json" -d@- http://localhost:7474/db/data/transaction/commit; done
Get all things written in a specific language
match (l:Language)-[*]-(s)
where l.name in ["java", "php"] and (s:Cronjob or s:Service)
return s
Get everything of "your" service
match (s {name:"mls-report-service-v1"})-[]-(n) return s,n