Class: YAML_LD::Writer
- Inherits:
-
JSON::LD::Writer
- Object
- RDF::Writer
- JSON::LD::Writer
- YAML_LD::Writer
- Defined in:
- vendor/bundler/ruby/3.3.0/bundler/gems/yaml-ld-2d2ba8e32d66/lib/yaml_ld/writer.rb
Overview
A YAML-LD serializer in Ruby.
Constant Summary
Constants included from RDF::Util::Logger
Instance Attribute Summary
Attributes inherited from JSON::LD::Writer
Attributes inherited from RDF::Writer
Instance Method Summary collapse
-
#initialize(output = $stdout, **options) {|writer| ... } ⇒ Writer
constructor
Initializes the YAML-LD writer instance.
Methods inherited from JSON::LD::Writer
accept?, options, #write_epilogue, #write_prologue, #write_quad, #write_triple
Methods included from RDF::Util::Logger
#log_debug, #log_depth, #log_error, #log_fatal, #log_info, #log_recover, #log_recovering?, #log_statistics, #log_warn, #logger
Methods included from JSON::LD::Utils
#add_value, #as_array, #as_resource, #blank_node?, #compare_values, #graph?, #has_value?, #index?, #list?, #node?, #node_or_ref?, #node_reference?, #property?, #simple_graph?, #value?
Methods included from JSON::LD::StreamingWriter
#stream_epilogue, #stream_prologue, #stream_statement
Methods inherited from RDF::Writer
accept?, #base_uri, buffer, #canonicalize?, dump, each, #encoding, #escaped, #flush, for, format, #format_list, #format_literal, #format_node, #format_quotedTriple, #format_term, #format_tripleTerm, #format_uri, #node_id, open, options, #prefix, #prefixes, #prefixes=, #puts, #quoted, to_sym, #to_sym, #uri_for, #validate?, #write_comment, #write_epilogue, #write_prologue, #write_statement, #write_triple, #write_triples
Methods included from RDF::Util::Aliasing::LateBound
Methods included from RDF::Writable
#<<, #insert, #insert_graph, #insert_reader, #insert_statement, #insert_statements, #writable?
Methods included from RDF::Util::Coercions
Constructor Details
#initialize(output = $stdout, **options) {|writer| ... } ⇒ Writer
Initializes the YAML-LD writer instance.
38 39 40 |
# File 'vendor/bundler/ruby/3.3.0/bundler/gems/yaml-ld-2d2ba8e32d66/lib/yaml_ld/writer.rb', line 38 def initialize(output = $stdout, **, &block) super(output, **.merge(serializer: YAML_LD::API.method(:serializer)), &block) end |