将Neo4j Query转换为asp.net查询

时间:2018-01-06 07:45:09

标签: asp.net neo4j cypher

我有一个在Neo4j平台上运行的查询,但我试图在asp.net的网页上运行该查询但是它没有返回结果 任何帮助。? 这是查询

match(p:Paper)-[:publish]->(j:Journal)
match(j:Journal)-[:held]->(y:Year)
where p.Name =~ ".*Relational.*"
return p.Name,p,y,y.Name;  

这是我的.net查询

var temp = QueryManager.c.Cypher
          .Match("(auth:Author)-[writes]->(p:Paper)")
          .Match("(p:Paper)-[publish]->(j:Journal)")
          .Match("(j:Journal)-[held]->(y:Year)")
          .Where((Paper p) => p.Name == "~.*Relational.*")
          .Return((auth, p, j, y) => new
          {
              author_detail = auth.As<Author>(),

              paper_detail = p.As<Paper>(),

              jour_detail = j.As<Journal>(),

              year_detail = y.As<Year>()

          });          

0 个答案:

没有答案