Sha256: e833774c117f481a22c3deb13c9af9674148ba573b18da1bc878e36a5a8b0a87

Contents?: true

Size: 1.63 KB

Versions: 1

Compression:

Stored size: 1.63 KB

Contents

#
# Vocabulary generator config
#
# The value of each outer key consists of attribute names and values for the RDF::VocabularyLoader
# instance created to generate that vocabulary by `RDF::Vocab.generate`.
#
# Example:
#
#   premis:
#     module_name: RDF::PREMIS
#     class_name: V1
#     uri: http://www.loc.gov/premis/rdf/v1#
#     source: http://www.loc.gov/premis/rdf/v1.rdf
#
#   RDF::Vocab.generate("premis") will create and run an instance of RDF::VocabularyLoader like so:
#  
#   loader = RDF::VocabularyLoader.new
#   loader.module_name = "RDF::PREMIS"
#   loader.class_name = "V1
#   loader.uri = "http://www.loc.gov/premis/rdf/v1#"
#   loader.source = "http://www.loc.gov/premis/rdf/v1.rdf"
#   loader.run
#
#   while will generate the vocabulary:
#
#   module RDF::PREMIS
#     class V1 < StrictVocabulary("http://www.loc.gov/premis/rdf/v1#")
#
#     [...]
#
ldp:
  class_name: LDP
  uri: http://www.w3.org/ns/ldp#
  source: http://www.w3.org/ns/ldp
mads:
  class_name: MADS
  uri: http://www.loc.gov/mads/rdf/v1#
  source: http://www.loc.gov/standards/mads/rdf/v1.rdf
marc_relators:
  class_name: MARC_RELATORS
  uri: http://id.loc.gov/vocabulary/relators/
  source: http://id.loc.gov/vocabulary/relators.nt
mods:
  class_name: MODS
  uri: http://www.loc.gov/mods/rdf/v1#
  source: http://www.loc.gov/standards/mods/modsrdf/v1/modsrdf.owl
premis_v1:
  module_name: RDF::PREMIS
  class_name: V1
  uri: http://www.loc.gov/premis/rdf/v1#
  source: http://www.loc.gov/premis/rdf/v1.rdf
premis_event_type:
  class_name: PremisEventType
  uri: http://id.loc.gov/vocabulary/preservation/eventType/
  source: http://id.loc.gov/vocabulary/preservation/eventType.nt

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rdf-vocab-0.2.0 lib/rdf-vocab/config/vocab.yml