Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sample code seems to not work #104

Open
markwilkinson opened this issue Sep 24, 2018 · 0 comments
Open

sample code seems to not work #104

markwilkinson opened this issue Sep 24, 2018 · 0 comments

Comments

@markwilkinson
Copy link

Using the sample code as a template for a simple transaction (latest gem):

require 'ldp'
host = 'http://localhost:8890'
client = Ldp::Client.new(host)
resource = Ldp::Resource.new(client, host + 'DAV/home/dba/LDP/container/mydata')
orm = Ldp::Orm.new(resource)
orm.graph.insert([orm.resource.subject_uri, RDF::DC11.title, 'a new title']) # FAIL HERE

/home/markw/.rvm/gems/ruby-2.4.1/gems/ldp-1.0.0/lib/ldp/orm.rb:25:in block in graph': undefined method graph' for #Ldp::Resource:0x000000015c7758 (NoMethodError)
from /home/markw/.rvm/gems/ruby-2.4.1/gems/activesupport-5.2.1/lib/active_support/notifications.rb:170:in instrument' from /home/markw/.rvm/gems/ruby-2.4.1/gems/ldp-1.0.0/lib/ldp.rb:41:in instrument'
from /home/markw/.rvm/gems/ruby-2.4.1/gems/ldp-1.0.0/lib/ldp/orm.rb:24:in graph' from ldp.rb:12:in

'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Backlog
Development

No branches or pull requests

1 participant