Class: RDF::Literal

Inherits:
Object
  • Object
show all
Defined in:
lib/valkyrie/rdf_patches.rb

Instance Method Summary collapse

Instance Method Details

#as_json(*_args) ⇒ Object


8
9
10
# File 'lib/valkyrie/rdf_patches.rb', line 8

def as_json(*_args)
  ::JSON::LD::API.fromRdf([RDF::Statement.new(RDF::URI(""), RDF::URI(""), self)])[0][""][0]
end