curlRequestCypher: Execute Cypher query

Description Usage Arguments Value Note Author(s) References See Also Examples

View source: R/curlRequestCypher.R

Description

execute query using Cypher as an input. The function calls curlPerform from RCurl for sending HTTP request to the graph database.

Usage

1
curlRequestCypher(querystring)

Arguments

querystring

string of Cypher

Value

list of quried results. Return NULL if found nothing.

Note

Need to set db location

Author(s)

Kwanjeera W kwanich@ucdavis.edu

References

The RCurl package http://www.inside-r.org/packages/cran/RCurl

See Also

curlRequestUrlToDF, curlRequestUrlToList, curlPerform, http://neo4j.com/docs/milestone/introduction.html

Examples

1
2
3
# Query metabolites by database id 
#querystring <- "UNWIND ['G7','G8'] AS x WITH x MATCH (node:Metabolite) WHERE lower(node.GID) = lower(x) RETURN DISTINCT node" 
#result <- curlRequestCypher(querystring)

kwanjeeraw/grinn documentation built on May 20, 2019, 7:07 p.m.