Sha256: 7e82ee8f338cda5040c84824768665d791a9c91903838e3e8677d84d09d0ca8c
Contents?: true
Size: 1.02 KB
Versions: 12
Compression:
Stored size: 1.02 KB
Contents
module ActiveTriples ## # Defines module methods for registering an RDF::Repository for # persistence of Resources. # # This allows any triplestore (or other storage platform) with an # RDF::Repository implementation to be used for persistence of # resources that will be shared between ActiveFedora::Base objects. # # ActiveFedora::Rdf::Repositories.add_repository :blah, RDF::Repository.new # # Multiple repositories can be registered to keep different kinds of # resources seperate. This is configurable on subclasses of Resource # at the class level. # # @see Configurable module Repositories def add_repository(name, repo) raise "Repositories must be an RDF::Repository" unless repo.kind_of? RDF::Repository repositories[name] = repo end module_function :add_repository def clear_repositories! @repositories = {} end module_function :clear_repositories! def repositories @repositories ||= {} end module_function :repositories end end
Version data entries
12 entries across 12 versions & 1 rubygems