Description Usage Arguments Value Note Examples
retrieve relationship information from the database with url. The results include source node, target node, relationship type, dataSource and properties, if applicable.
1 | fetchRelationship(url, returnas)
|
url |
a string specifying relationship url. |
returnas |
a string specifying output type. It can be one of dataframe, list, json. Default is dataframe. |
relationship information with the following components:
source, target
= node grinn id
sourcename, targetname
= node name
sourcelabel, targetlabel
= node type
sourcexref, targetxref
= node cross references
type
= relationship type
datasource
= relationship resource
properties
= relationship properties
Return empty list or data frame if error or found nothing.
curlRequest.TRANSACTION is used in other functions to improve speed.
1 2 3 4 | # Query genes by name
#result <- fetchRelationship("http://localhost:7474/db/data/relationship/0")
#result <- fetchRelationship("http://localhost:7474/db/data/node/0/relationships/out")
#result <- fetchRelationship("http://localhost:7474/db/data/node/0/relationships/in")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.