anjulmyaccount / cumulusrdf

Automatically exported from code.google.com/p/cumulusrdf
0 stars 0 forks source link

CRUDServlet.Put assumes objects are URI #33

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
Send a PUT request with 

s=<http://a.b.c#d>
p=<http://a.b.c#e>
o="A literal"

s2=<http://a.b.c#d>
p2=<http://a.b.c#e>
o2="Another literal"

What is the expected output? What do you see instead?
I would expect the following triple on the store

<http://a.b.c#d> <http://a.b.c#e> Another literal"

Instead, the servlet throws an exception because the object is always supposed 
to be a valid URI (i.e. the following line URI o = valueFactory.createURI("A 
Literal") fails)

Original issue reported on code.google.com by a.gazzarini@gmail.com on 5 Feb 2014 at 3:40

GoogleCodeExporter commented 9 years ago
I will solve the issue by changing 

Value o / o2 = valueFactory.createURI("A Literal")

with 

Value o / o2 = NTriplesUtil.parseValue(o, _valueFactory)

Original comment by a.gazzarini@gmail.com on 5 Feb 2014 at 3:42

GoogleCodeExporter commented 9 years ago
Fixed with r861

Original comment by a.gazzarini@gmail.com on 6 Feb 2014 at 6:58