| ResourceMap-class | R Documentation |
The Open Archives Initiative Object Reuse and Exchange (OAI-ORE) defines standards for the description and exchange of aggregations of web resources, such as a DataPackage. A Resource Map describes the objects in a DataPackage and the relationships between these objects.
relationsvalue of type "data.frame", containing RDF triples representing the relationship between package objects
worlda Redland RDF World object
storagea Redland RDF Storage object
modela Redland RDF Model object
ida unique identifier for a ResourceMap instance
initialize: Initialize a ResourceMap object.
createFromTriples: Populate a ResourceMap with RDF relationships from data.frame.
getTriples: Get the RDF relationships stored in the ResourceMap.
parseRDF: Parse an RDF/XML resource map from a file.
serializeRDF: Write the ResourceMap relationships to a file.
datapack
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))
## Not run:
tf <- tempfile(fileext=".rdf")
serializeRDF(resMap, file=tf)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.