Module: LD::Patch

Defined in:
lib/ld/patch.rb,
lib/ld/patch/parser.rb,
lib/ld/patch/algebra.rb,
lib/ld/patch/terminals.rb

Overview

**‘LD::Patch`** is a Linked Data Patch extension for RDF.rb.

Author:

Defined Under Namespace

Modules: Algebra, Meta, Terminals, VERSION Classes: Error, ParseError, Parser

Class Method Summary collapse

Class Method Details

.parse(input, options = {}) ⇒ Object

Parse the given LD Patch ‘input` string.

Examples:

query = LD::Patch.parse("Add { <http://example.org/s2> <http://example.org/p2> <http://example.org/o2> } .")

Parameters:

  • input (IO, StringIO, String, #to_s)
  • options (Hash{Symbol => Object}) (defaults to: {})

Returns:

  • (Object)

    The parsed Patch



28
29
30
# File 'lib/ld/patch.rb', line 28

def self.parse(input, options = {})
  LD::Patch::Parser.new(input, options).parse
end