Sha256: 5ae2bf9aaa6ed09da0fe1ba829619613f57e65048afc223561851d23a44c543c
Contents?: true
Size: 418 Bytes
Versions: 2
Compression:
Stored size: 418 Bytes
Contents
# frozen_string_literal: true require "json/ld" module Bolognese module Writers module TurtleWriter # preload schema_org context ::JSON::LD::Context.add_preloaded( 'http://schema.org/', ::JSON::LD::Context.new.parse('resources/schema_org/jsonldcontext.json') ) def turtle graph.dump(:ttl, 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/turtle_writer.rb |
bolognese-1.5.11 | lib/bolognese/writers/turtle_writer.rb |