Module: BEL::Translator::Plugins::Rdfxml
- Defined in:
- lib/bel/translator/plugins/rdfxml.rb
Constant Summary collapse
- ID =
:rdfxml
- NAME =
'RDF/XML RDF Translator'
- DESCRIPTION =
'A translator that can read/write BEL nanopubs to RDF/XML.'
- MEDIA_TYPES =
%i(application/rdf+xml)
- EXTENSIONS =
%i(rdf)
Class Method Summary collapse
- .create_translator(options = {}) ⇒ Object
- .description ⇒ Object
- .file_extensions ⇒ Object
- .id ⇒ Object
- .media_types ⇒ Object
- .name ⇒ Object
Class Method Details
.create_translator(options = {}) ⇒ Object
11 12 13 14 15 16 17 18 19 |
# File 'lib/bel/translator/plugins/rdfxml.rb', line 11 def self.create_translator( = {}) require 'rdf' require 'rdf/rdfxml' require_relative 'rdf/graph_translator' BELRDF::GraphTranslator.new( ID, [:write_schema] ) end |
.description ⇒ Object
29 30 31 |
# File 'lib/bel/translator/plugins/rdfxml.rb', line 29 def self.description DESCRIPTION end |
.file_extensions ⇒ Object
37 38 39 |
# File 'lib/bel/translator/plugins/rdfxml.rb', line 37 def self.file_extensions EXTENSIONS end |
.id ⇒ Object
21 22 23 |
# File 'lib/bel/translator/plugins/rdfxml.rb', line 21 def self.id ID end |
.media_types ⇒ Object
33 34 35 |
# File 'lib/bel/translator/plugins/rdfxml.rb', line 33 def self.media_types MEDIA_TYPES end |
.name ⇒ Object
25 26 27 |
# File 'lib/bel/translator/plugins/rdfxml.rb', line 25 def self.name NAME end |