Learn R Programming

datapack (version 1.0.0)

ResourceMap-class: ResourceMap provides methods to create, serialize and deserialize an OAI ORE resource map.

Description

The Open Archives Initiative Object Reuse and Exchange (OAI-ORE) defines standards for the description and exchange of aggregrations of web resources, such as a DataPackage. A Resource Map describes the objects in a DataPackage and the relationships between these objects.

Arguments

Methods

{: Initialize a ResourceMap object} createFromTriples{: Get the data content of a specified data object} serializeRDF{: Get the Count of Objects in the Package}

See Also

datapack

Examples

Run this code
dp <- new("DataPackage")
dp <- 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")
relations <- getRelationships(dp)
resMap <- new("ResourceMap")
resMap <- createFromTriples(resMap, relations, getIdentifiers(dp))
tf <- tempfile(fileext=".rdf")
serializeRDF(resMap, file=tf)

Run the code above in your browser using DataLab