Sha256: e9efe7a68f41883e2914ef50d8fa1c95df82b306adb5782580cb1dd79c7fc388

Contents?: true

Size: 432 Bytes

Versions: 31

Compression:

Stored size: 432 Bytes

Contents

module Krikri::LDP
  module RdfSource
    extend ActiveSupport::Concern
    include Krikri::LDP::Resource

    def save(headers = {})
      result = super(dump(:ttl))
      get
      result
    end

    def get(*args)
      result = super
      reload
      result
    end

    def reload
      return super unless !node? && exists?
      clear
      self << RDF::Reader.for(:ttl).new(@http_cache.body).statements
    end
  end
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
krikri-0.13.2 lib/krikri/ldp/rdf_source.rb~
krikri-0.13.1 lib/krikri/ldp/rdf_source.rb~
krikri-0.13.0 lib/krikri/ldp/rdf_source.rb~
krikri-0.12.4 lib/krikri/ldp/rdf_source.rb~
krikri-0.11.2 lib/krikri/ldp/rdf_source.rb~
krikri-0.11.1 lib/krikri/ldp/rdf_source.rb~
krikri-0.11.0 lib/krikri/ldp/rdf_source.rb~
krikri-0.10.1 lib/krikri/ldp/rdf_source.rb~
krikri-0.8.9 lib/krikri/ldp/rdf_source.rb~
krikri-0.8.8 lib/krikri/ldp/rdf_source.rb~
krikri-0.8.7 lib/krikri/ldp/rdf_source.rb~
krikri-0.8.6 lib/krikri/ldp/rdf_source.rb~
krikri-0.8.5 lib/krikri/ldp/rdf_source.rb~
krikri-0.8.4 lib/krikri/ldp/rdf_source.rb~
krikri-0.8.2 lib/krikri/ldp/rdf_source.rb~
krikri-0.8.0 lib/krikri/ldp/rdf_source.rb~
krikri-0.7.3 lib/krikri/ldp/rdf_source.rb~
krikri-0.7.2 lib/krikri/ldp/rdf_source.rb~
krikri-0.7.1 lib/krikri/ldp/rdf_source.rb~
krikri-0.6.0 lib/krikri/ldp/rdf_source.rb~