ResourceMap-class: ResourceMap provides methods to create, serialize and...

Description Slots Methods See Also Examples

Description

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.

Slots

relations

value of type "data.frame", containing RDF triples representing the relationship between package objects

world

a Redland RDF World object

storage

a Redland RDF Storage object

model

a Redland RDF Model object

id

a unique identifier for a ResourceMap instance

Methods

See Also

datapack

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
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)

ropensci/datapack documentation built on Aug. 11, 2018, 3:46 a.m.