Add Controlled Vocabularies & Properties - OregonDigital/oregondigital GitHub Wiki

Create New Terms

Follow principles and steps for OpaqueNamespace

Use Oregon Digital Git Best Practices.

Add to configuration / initializer

Configure controlled vocabularies

When strict => true, a local copy is generated.

Fetch

Run rake task

gen_vocab

Rake task loads vocabularies

Add / Modify class

Oregon Digital Controlled Vocabularies

[Oregon Digital Predicate Vocabularies] (https://github.com/OregonDigital/oregondigital/blob/master/lib/oregon_digital/vocabularies/)

Add to class to model

Create a branch For properties with controlled vocabularies, add :class_name to property in Oregon Oregon Datastream model

  property :rights, :predicate => RDF::DC.rights, :class_name => OregonDigital::ControlledVocabularies::RightsStatement do |index|
    index.as :displayable
  end

Background Information

Controlled Vocabs in RDF

T Johnson Gist