[redland-dev] [Redland Language Bindings 0000498]: 'parse_string_into_model' calls 'parse_string_as_stream' with an incorrect number of parameters in Ruby binding
Mantis Bug Tracker
mantis-bug-sender at librdf.org
Wed Mar 7 10:47:03 EST 2012
The following issue has been SUBMITTED.
======================================================================
http://bugs.librdf.org/mantis/view.php?id=498
======================================================================
Reported By: jmfernandez
Assigned To:
======================================================================
Project: Redland Language Bindings
Issue ID: 498
Category: api
Reproducibility: always
Severity: major
Priority: normal
Status: new
Binding Language (java, perl, php, python, ruby, tcl): ruby
======================================================================
Date Submitted: 2012-03-07 15:47
Last Modified: 2012-03-07 15:47
======================================================================
Summary: 'parse_string_into_model' calls
'parse_string_as_stream' with an incorrect number of parameters in Ruby binding
Description:
In Ruby binding, instance method 'parse_string_into_model', from Redland::Parser
class, internally calls method 'parse_string_as_stream' with an incorrect number
of parameters when:
a) parse_string_into_model is called with the 'context' parameter set to
something which is not nil.
b) Redland::Parser instance has a context.
The relevant error messages are:
/usr/lib64/ruby/1.8/rdf/redland/parser.rb:142:in `parse_string_as_stream': wrong
number of arguments (3 for 2) (ArgumentError)
from /usr/lib64/ruby/1.8/rdf/redland/parser.rb:142:in
`parse_string_into_model'
Steps to Reproduce:
Try any of these code snippets:
require 'rdf/redland'
storage=Redland::TripleStore.new("memory")
model=Redland::Model.new(storage)
parser=Redland::Parser.new()
content='<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"/>'
parser.parse_string_into_model(model,content,'file:/','http://www.nowhere.org/')
The other code snippet:
require 'rdf/redland'
storage=Redland::TripleStore.new("memory")
model=Redland::Model.new(storage)
parser=Redland::Parser.new()
parser.context='http://www.nowhere.org/'
content='<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"/>'
parser.parse_string_into_model(model,content,'file:/')
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2012-03-07 15:47 jmfernandez New Issue
======================================================================
More information about the redland-dev
mailing list