在Neo4J中获取关系

时间:2015-02-25 18:12:52

标签: neo4j cypher

我有兴趣从neo4j获取关系。基本上,在检索一些关系后,它看起来像下面的json:

{
    "r": {
      "_nodeNeo4j": {
        "version": "1.1.1",
        "constructor": "Relationship"
      },
      "_data": {
        "extensions": {},
        "start": "http://localhost:7474/db/data/node/1",
        "self": "http://localhost:7474/db/data/relationship/65",
        "property": "http://localhost:7474/db/data/relationship/65/properties/{key}",
        "properties": "http://localhost:7474/db/data/relationship/65/properties",
        "type": "FOLLOWS",
        "end": "http://localhost:7474/db/data/node/79",
        "metadata": {
          "id": 65,
          "type": "FOLLOWS"
        },
        "data": {}
      }
    }
  }

但是,我有兴趣只检索几个属性而不是全部。

1)我怎样才能只检索部分数据?

2)此外,创建是否有自己的时间戳,还是我必须设置外部属性来跟踪创建关系的时间?

0 个答案:

没有答案