Class: Pho::Update::ResourceStatement

Inherits:
Statement
  • Object
show all
Defined in:
lib/pho/changeset.rb

Instance Attribute Summary

Attributes inherited from Statement

#object, #predicate, #subject

Instance Method Summary collapse

Methods inherited from Statement

create_literal, create_resource, #to_rdf

Constructor Details

#initialize(subject, predicate, object) ⇒ ResourceStatement

Create a Statement referring to a resource

subject:: URI of subject of triple
predicate:: URI of predicate of triple
object:: resource uri


128
129
130
# File 'lib/pho/changeset.rb', line 128

def initialize(subject, predicate, object)
 super(subject, predicate, object)
end

Instance Method Details

#==(other) ⇒ Object



132
133
134
135
136
137
138
139
# File 'lib/pho/changeset.rb', line 132

def ==(other)
 if other == nil
   return false
 end
 return @subject == other.subject &&
       @predicate == other.predicate &&
       @object == other.object
end