Sha256: 012a60097f63a05427ea8b3bb80132047cb1e11c294773d5b1b78cc1b6b2fd68
Contents?: true
Size: 1.73 KB
Versions: 1
Compression:
Stored size: 1.73 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`. # # Note that "module_name" defaults to "RDF::Vocab" (instead of "RDF" as with `RDF::VocabularyLoader`). # # Example: # # mods: # class_name: MODS # uri: http://www.loc.gov/mods/rdf/v1# # source: http://www.loc.gov/standards/mods/modsrdf/v1/modsrdf.owl # # RDF::Vocab.generate("mods") will create and run an instance of RDF::VocabularyLoader like so: # # loader = RDF::VocabularyLoader.new # loader.module_name = "RDF::Vocab" # loader.class_name = "MODS" # loader.uri = "http://www.loc.gov/mods/rdf/v1#" # loader.source = "http://www.loc.gov/standards/mods/modsrdf/v1/modsrdf.owl" # # which will generate the vocabulary: # # module RDF::Vocab # class MODS < StrictVocabulary("http://www.loc.gov/mods/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: MARCRelators 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::Vocab::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.3.0 | lib/rdf-vocab/config/vocab.yml |