@@ -0,0 +1,2297 @@
+package org.opencb.bionetdb.core.neo4j.query;%0A%0Aimport org.junit.Test;%0Aimport org.opencb.bionetdb.core.api.query.NodeQuery;%0Aimport org.opencb.bionetdb.core.api.query.PathQuery;%0Aimport org.opencb.bionetdb.core.network.Node;%0Aimport org.opencb.commons.datastore.core.QueryOptions;%0A%0Aimport java.util.ArrayList;%0Aimport java.util.List;%0A%0Aimport static org.junit.Assert.*;%0A%0A/**%0A * Created by joaquin on 2/19/18.%0A */%0Apublic class Neo4JQueryParserTest %7B%0A    @Test%0A    public void parseNode() throws Exception %7B%0A        Neo4JQueryParser parser = new Neo4JQueryParser();%0A        NodeQuery query = new NodeQuery(Node.Type.PROTEIN);%0A        query.put(%22name%22, %22RDH11%22);%0A        String cypher = parser.parseNode(query, QueryOptions.empty());%0A        System.out.println(cypher);%0A    %7D%0A%0A    @Test%0A    public void parsePath() throws Exception %7B%0A        Neo4JQueryParser parser = new Neo4JQueryParser();%0A        NodeQuery srcQuery = new NodeQuery(Node.Type.CATALYSIS);%0A        NodeQuery destQuery = new NodeQuery(Node.Type.SMALL_MOLECULE);%0A        //query.put(%22name%22, %22RDH11%22);%0A        PathQuery pathQuery = new PathQuery(srcQuery, destQuery, null);%0A        String cypher = parser.parsePath(pathQuery, QueryOptions.empty());%0A        System.out.println(cypher);%0A    %7D%0A%0A    @Test%0A    public void parseNodesForNetwork() throws Exception %7B%0A        Neo4JQueryParser parser = new Neo4JQueryParser();%0A        List%3CNodeQuery%3E nodeQueries = new ArrayList%3C%3E();%0A        nodeQueries.add(new NodeQuery(Node.Type.PROTEIN));%0A        nodeQueries.add(new NodeQuery(Node.Type.SMALL_MOLECULE));%0A        nodeQueries.add(new NodeQuery(Node.Type.COMPLEX));%0A        String cypher = parser.parseNodesForNetwork(nodeQueries, QueryOptions.empty());%0A        System.out.println(cypher);%0A    %7D%0A%0A    @Test%0A    public void parsePathsForNetwork() throws Exception %7B%0A        Neo4JQueryParser parser = new Neo4JQueryParser();%0A        List%3CPathQuery%3E pathQueries = new ArrayList%3C%3E();%0A%0A        pathQueries.add(new PathQuery(new NodeQuery(Node.Type.PROTEIN), new NodeQuery(Node.Type.CATALYSIS), null));%0A        pathQueries.add(new PathQuery(new NodeQuery(Node.Type.COMPLEX), new NodeQuery(Node.Type.SMALL_MOLECULE), null));%0A        String cypher = parser.parsePathsForNetwork(pathQueries, QueryOptions.empty());%0A        System.out.println(cypher);%0A    %7D%0A%7D

add NeoJ query parser tests