Retrieve relationships of package objects

Share:

Description

Relationships of objects in a package are defined using the 'insertRelationship' call and retrieved using getRetaionships. These relationships are returned in a data frame with 'subject', 'predicate', 'objects' as the columns, ordered by "subject"

Usage

1
2
3
4
getRelationships(x, ...)

## S4 method for signature 'DataPackage'
getRelationships(x, ...)

Arguments

x

A DataPackage object

...

(Not yet used)

See Also

DataPackage-class

Examples

1
2
3
4
5
dp <- new("DataPackage")
insertRelationship(dp, "/Users/smith/scripts/genFields.R",
    "http://www.w3.org/ns/prov#used",
    "https://knb.ecoinformatics.org/knb/d1/mn/v1/object/doi:1234/_030MXTI009R00_20030812.40.1")
rels <- getRelationships(dp)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.