ropensci / datapack

An R package to handle data packages
https://docs.ropensci.org/datapack
44 stars 9 forks source link

Add methods to parse a resource map and extract relationships #74

Closed gothub closed 7 years ago

gothub commented 7 years ago

The methods createFromTriples() and serializeRDF() take the relationships contained in a DataPackage and serialize them into an RDF file (ORE resource map) that conforms to the DataONE package specification

Add methods to support the inverse operation of parsing an RDF resource map and extracting the package relationships so that they can be loaded into a DataPackage. These methods will be added:

gothub commented 7 years ago

Added in commit 8d526e514be2f27a4efefb3d761d6fc0b5ac2737. In addition to the above description of getTriples(), this method also demotes package object identifiers by removing any prefix to the subject or object of relationships that contain a package identifier, e.g. remove the DataONE 'resolve' URI.