Sha256: 62859f778702faabc95d629c5f085cf0218a81439f798f83f4704702dbe8930f
Contents?: true
Size: 492 Bytes
Versions: 3
Compression:
Stored size: 492 Bytes
Contents
# A generic vocabulary class, used to retrieve/differentiate third-party vocabularies (ontologies *and* concept schemes) module PublishMyData class Vocabulary include Tripod::Resource include AllFeatures def self.find_by_data_dump(data_dump_uri) all.where("?uri <#{RDF::VOID.dataDump}> <#{data_dump_uri}>").first end # override def slug uri_hash(self.uri) end private def uri_hash(uri) Digest::SHA1.hexdigest(uri) end end end
Version data entries
3 entries across 3 versions & 1 rubygems