LinkedResearchMetadata
Metadata extraction from the Pure Research Information System and transformation of the metadata into RDF.
Status
Installation
Add this line to your application's Gemfile:
gem 'linked_research_metadata'
And then execute:
$ bundle
Or install it yourself as:
$ gem install linked_research_metadata
Usage
Configuration
Create a hash for passing to a transformer.
# Pure host with authentication.
config = {
url: ENV['PURE_URL'],
username: ENV['PURE_USERNAME'],
password: ENV['PURE_PASSWORD'],
minting_uri: 'http://data.example.com'
}
# Pure host without authentication.
config = {
url: ENV['PURE_URL'],
minting_uri: 'http://data.example.com'
}
Transformation
Create a metadata transformer for a Pure dataset.
transformer = LinkedResearchMetadata::Transformer::Dataset.new config
Give it a Pure identifier...
graph = transformer.transform uuid: 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'
...and get an RDF graph.