fetchRelationship: Query relationships with url

Description Usage Arguments Value Note Examples

Description

retrieve relationship information from the database with url. The results include source node, target node, relationship type, dataSource and properties, if applicable.

Usage

1

Arguments

url

a string specifying relationship url.

returnas

a string specifying output type. It can be one of dataframe, list, json. Default is dataframe.

Value

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.

Note

curlRequest.TRANSACTION is used in other functions to improve speed.

Examples

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")

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