Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CRUDServlet.Put assumes objects are URI #33

Closed
GoogleCodeExporter opened this issue Apr 19, 2015 · 2 comments
Closed

CRUDServlet.Put assumes objects are URI #33

GoogleCodeExporter opened this issue Apr 19, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

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
Copy link
Author

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
Copy link
Author

Fixed with r861

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

  • Changed state: Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant