Skip to content
Linked Data Platform.rb client
Branch: master
Clone or download
randalldfloyd Merge pull request #109 from jrgriffiniii/issues-108-jrgriffiniii-tes…
…t-rails-ruby-latest

Updates the CircleCI configuration to test against Rails release 5.1.7 and Ruby releases 2.6.3, 2.5.5, and 2.4.6
Latest commit a47a6f1 May 10, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci
bin
lib
spec Merge pull request #85 from samvera/fix_conditional Mar 14, 2018
.gitignore
CODE_OF_CONDUCT.md
CONTRIBUTING.md
Gemfile
LICENSE.txt
README.md Updating the product owner to @randalldfloyd May 6, 2019
Rakefile
SUPPORT.md
ldp.gemspec

README.md

Ldp.rb

Code: Build Status Version Coverage Status

Docs: Contribution Guidelines Apache 2.0 License

Jump In: Slack Status

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.

Product Owner

randalldfloyd

Help

The Samvera community is here to help. Please see our support guide.

Installation

Add this line to your application's Gemfile:

gem 'ldp'

And then execute:

$ bundle

Or install it yourself as:

$ gem install ldp

Usage

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

Acknowledgments

This software has been developed by and is brought to you by the Samvera community. Learn more at the Samvera website

Samvera Logo

You can’t perform that action at this time.