lib/activerdf_sparql-1.3.6/lib/activerdf_sparql/sparql_sesame_api.rb
def add(s,p,o,c=nil)

    # check illegal input
    raise(ActiveRdfError, "adding non-resource #{s} while adding (#{s},#{p},#{o},#{c})") unless s.respond_to?(:uri)
    raise(ActiveRdfError, "adding non-resource #{p} while adding (#{s},#{p},#{o},#{c})") unless p.respond_to?(:uri)
    s = s.to_s if s != nil
    p = p.to_s if p != nil
    o = o.to_s if o != nil
    c = c.to_s if c != nil
    response = @bridge.insert(s,p,o,c)
  end
# adds triple(s,p,o) to datastore
# s,p must be resources, o can be primitive data or resource
adds triple(s,p,o) to datastore
s,p must be resources, o can be primitive data or resource
adds triple ( s p o ) to datastore s p must be resources o can be primitive data or resource
def add(s,p,o,c=nil)
    raise(ActiveRdfError, "adding non-resource #{s} while adding (#{s},#{p},#{o},#{c})") unless s.respond_to?(:uri)
    raise(ActiveRdfError, "adding non-resource #{p} while adding (#{s},#{p},#{o},#{c})") unless p.respond_to?(:uri)
    s = s.to_s if s != nil
    p = p.to_s if p != nil
    o = o.to_s if o != nil
    c = c.to_s if c != nil
    response = @bridge.insert(s,p,o,c)
  end
def add ( s , p , o , c = nil ) raise ( ActiveRdfError , "adding non-resource #{s} while adding (#{s},#{p},#{o},#{c})" ) unless s . respond_to? ( :uri ) raise ( ActiveRdfError , "adding non-resource #{p} while adding (#{s},#{p},#{o},#{c})" ) unless p . respond_to? ( :uri ) s = s . to_s if s != nil p = p . to_s if p != nil o = o . to_s if o != nil c = c . to_s if c != nil response = @bridge . insert ( s , p , o , c ) end
adds triple(s,p,o) to datastore
s,p must be resources, o can be primitive data or resource
adds triple ( s p o ) to datastore s p must be resources o can be primitive data or resource
# check illegal input
s
p
o
c