What is ldp?
Linked Data Platform client library for Ruby
Product Owner & Maintenance
ldp is a Core Component of the Samvera community. The documentation for what this means can be found here.
The Samvera community is here to help. Please see our support guide.
Add this line to your application's Gemfile:
And then execute:
Or install it yourself as:
$ gem install ldp
host = 'http://localhost:8080' client = Ldp::Client.new(host) resource = Ldp::Resource.new(client, host + '/rest/node/to/update') orm = Ldp::Orm.new(resource) # view the current title(s) orm.orm.value(RDF::DC11.title) # update the title orm.graph.delete([orm.resource.subject_uri, RDF::DC11.title, nil]) orm.graph.insert([orm.resource.subject_uri, RDF::DC11.title, 'a new title']) # save changes orm.save
If you're working on PR for this project, create a feature branch off of
This repository follows the Samvera Community Code of Conduct and language recommendations. Please do not create a branch called
master for this repository or as part of your pull request; the branch will either need to be removed or renamed before it can be considered for inclusion in the code base and history of this repository.
Set Rails version you want to test against. For example:
Ensure that the correct version of Rails is installed:
And run tests:
bundle exec rake rspec
- Increase the version number in
- Increase the same version number in
CHANGELOG.mdby running this command:
github_changelog_generator --user samvera --project ldp --token YOUR_GITHUB_TOKEN_HERE
- Commit these changes to the master branch
This software has been developed by and is brought to you by the Samvera community. Learn more at the Samvera website