Sha256: 5a874b2f7b5fbddf46e6f477340547a2ea505d9e2dd7c6586f40e6e1cc453fc5
Contents?: true
Size: 422 Bytes
Versions: 2
Compression:
Stored size: 422 Bytes
Contents
# frozen_string_literal: true require "json/ld" module Bolognese module Writers module RdfXmlWriter # preload schema_org context ::JSON::LD::Context.add_preloaded( 'http://schema.org/', ::JSON::LD::Context.new.parse('resources/schema_org/jsonldcontext.json') ) def rdf_xml graph.dump(:rdfxml, prefixes: { schema: "http://schema.org/" }) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
bolognese-1.5.13 | lib/bolognese/writers/rdf_xml_writer.rb |
bolognese-1.5.11 | lib/bolognese/writers/rdf_xml_writer.rb |