Sha256: f530dc0c97756c81ad31f2f16dc3f8a453703413366bb10bbdcf114635bfae48
Contents?: true
Size: 1.02 KB
Versions: 6
Compression:
Stored size: 1.02 KB
Contents
module ActiveFedora::Rdf ## # 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
6 entries across 6 versions & 1 rubygems