neo4jd3
neo4jd3 copied to clipboard
Neo4j data format
Hi May i know how to get the Neo4j data format using the CQL? Thanks a lot
@HongJianMou Do you get the Neo4j data?
with ajax call its possible
@souravprakashjena how it's possible? Do you have and example, please?
ya i will post it tomorrow
Okay @souravprakashjena =)
Did you fix it? I don‘t know how to get Neo4j data format either. @ander-oliveira @souravprakashjena @HongJianMou @laaron2008
从neo4j-community能导出neo4j-master格式文件@MelvinZang
@laaron2008 可以的,这句中文让我猝不及防
@laaron2008 不过老哥,我没找到你说的,能再具体点嘛
等晚上我给你发吧 @MelvinZang
@laaron2008 嗯嗯多谢了
curl -o ./neo4jd3-master/docs/json/neo4jData.json http://localhost:7474/db/data/transaction/commit " "-u neo4j:123456 -H 'Content-Type: application/json' -d " "'{"statements":[{ "statement":"MATCH path = (n)-[r]->(m) RETURN path", " ""resultDataContents":["graph"]}]}'" @MelvinZang
@laaron2008 thanks, I got it.
@laaron2008 太有用了,感谢
function newQuery(query) {
return (neopost({
statements: [{
statement: query,
resultDataContents: ["graph"]
}]
}));
}
function neopost(b) {
var CYPHER_URL = "http://localhost:7474/db/data/transaction/commit";
var AUTHORIZATION = "Auth_Key";
b = JSON.stringify(b);
return $.ajax({
type: "POST",
async: false,
beforeSend: function (b) {
AUTHORIZATION && b.setRequestHeader("Authorization", AUTHORIZATION)
},
url: CYPHER_URL,
contentType: "application/json",
data: b
})
};