[Mulgara-general] Simple Rest Example Help
Mark
javamark at gmail.com
Wed Feb 24 22:47:49 UTC 2010
I am trying to try out a simple REST style example
1) Launch Mulgara with:
java -jar mulgara-2.1.7.jar
2) Insert a statment using PUT statement with the Firefox Poster plugin:
URL: http://localhost:8080/sparql/
Then I add four parameters:
s http://name/mark
p http://name/surname
o java
graph test:data
the content type is set as: application/x-www-form-urlencoded
therfore the parameter body is:
s=http%3A%2F%2Fname%2Fmark&p=http%3A%2F%2Fname%2Fsurname&graph=test%3Adata&o=java
when I submit this, I get:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
<title>Error 400 No graph parameter defined.</title>
</head>
<body><h2>HTTP ERROR: 400</h2><pre>*No graph parameter defined.*</pre>
<p>RequestURI=/sparql/</p><p><i><small><a
href="http://jetty.mortbay.org/">Powered
by Jetty://</a></small></i></p><br/>
Any ideas?
I would love to see a simple programatic restful client example using
HttpClient for example?
Thanks in advance
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mulgara.org/pipermail/mulgara-general/attachments/20100224/5c9b0959/attachment.htm>
More information about the Mulgara-general
mailing list