Class: RDF::URI

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

Instance Method Summary collapse

Instance Method Details

#as_json(*_args) ⇒ Object


13
14
15
# File 'lib/valkyrie/rdf_patches.rb', line 13

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