module LD::Patch
**‘LD::Patch`** is a Linked Data Patch
extension for RDF.rb.
@author [Gregg Kellogg](greggkellogg.net/)
Public Class Methods
parse(input, **options)
click to toggle source
Parse the given LD
Patch
‘input` string.
@example
query = LD::Patch.parse("Add { <http://example.org/s2> <http://example.org/p2> <http://example.org/o2> } .")
@param [IO, StringIO, String, to_s] input @param [Hash{Symbol => Object}] options @option options [#to_s] :base_uri (nil)
the base URI to use when resolving relative URIs
@option (see LD::Patch::Parser#initialize) @return [SPARQL::Algebra::Operator] The executable parsed Patch
# File lib/ld/patch.rb, line 31 def self.parse(input, **options) LD::Patch::Parser.new(input, **options).parse end