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



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

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