Thank you Robert.
Finally, the problem was solved.
More specifically, The problem was at line 5
PREFIX map: <file:/C:/Program%20Files/d2r-update-server/iswc2.n3#>
Probably it is because of Program%20Files.
I changed path
PREFIX map: <file:/C:/d2r-update-server/iswc3.n3#>
and it runs.
Thank you for your replies.
Vivi.
--- Στις Τετ., 22/12/10, ο/η Robert Butler <[email protected]> έγραψε:
Από: Robert Butler <[email protected]>
Θέμα: Re: [d2rq-dev] Fw: can't execute modify/delete/insert
Προς: "Vivi kasse" <[email protected]>
Κοιν.: "[email protected]"
<[email protected]>
Ημερομηνία: Τετάρτη, 22 Δεκέμβριος 2010, 13:28
This is failing during query parse according to the error. I would double check
your query syntax. I notice you used single quotes instead of double quotes
around the literals, and I'm pretty sure that's causing the issue here. Lookup
the SPARQL spec and double check that you are using the right syntax.
Robert
On Dec 22, 2010, at 2:41 AM, Vivi kasse <[email protected]> wrote:
Anybody??
I can't explain what is going on. I am almost sure that the problem is with the
generated mapping file, but why???
Could you help me, please??
Thank you.
Vivi.
--- Στις Τρίτ., 21/12/10, ο/η Vivi kasse <[email protected]> έγραψε:
Από: Vivi kasse <[email protected]>
Θέμα: can't execute modify/delete/insert
Προς: [email protected]
Ημερομηνία: Τρίτη, 21 Δεκέμβριος 2010, 18:46
Hello,
I am trying to use D2R Server Update, but without success.
More specifically,
I have installed d2r server update on windows XP and i have established the
database example iswc in mysql .
After that i run the following command that creates successfully the mapping
file iswc.n3:
generate-mapping -u root -o iswc.n3 -b http://localhost/8080/
jdbc:mysql://localhost/iswc
After that i run the following command:
d2r-server -p 8080 iswc.n3 and i open my browser to the following address:
localhost:8080.
>From there, i can access localhost:8080/snorql where i am supposed to query
>(select/construct) and update (delete/insert) my database.
I can query(execute select and construct queries and i suppose that i can also
execute ask and describe) my database but can't modify it.
When i am trying to run
the following query:
MODIFY DELETE {
?person <http://localhost:8080/vocab/resource/persons_Phone>
'222-222-2222'
}
INSERT {
?person <http://localhost:8080/vocab/resource/persons_Phone>
'310-448-8794'
}
WHERE {
?person <http://localhost:8080/vocab/resource/persons_FirstName>
'Yolanda'
}
i get the following response:
HTTP ERROR: 500INTERNAL_SERVER_ERROR
RequestURI=/sparqlupdatePowered by Jetty://
and in the prompt i get:
18:36:41 WARN Servlet :: Internal server error
com.hp.hpl.jena.query.QueryParseException: Encountered " "<" "< "" at line 5, co
lumn 13.
Was expecting:
<IRIref> ...
at com.hp.hpl.jena.sparql.lang.ParserSPARQLUpdate._parse(ParserSPARQLUpd
ate.java:63)
at com.hp.hpl.jena.sparql.lang.ParserSPARQLUpdate.parse(ParserSPARQLUpda
te.java:48)
at org.joseki.processors.SPARQLUpdate.execOperation(SPARQLUpdate.java:69
)
at
org.joseki.processors.ProcessorBase.exec(ProcessorBase.java:112)
at org.joseki.ServiceRequest.exec(ServiceRequest.java:36)
at org.joseki.Dispatcher.dispatch(Dispatcher.java:59)
at org.joseki.http.Servlet.doCommon(Servlet.java:177)
at org.joseki.http.ServletUpdate.doPost(ServletUpdate.java:39)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487
)
at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:3
62)
at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.jav
a:216)
at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:1
81)
at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:7
26)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:1
52)
at org.mortbay.jetty.Server.handle(Server.java:324)
at
org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:50
5)
at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnectio
n.java:843)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:648)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.
java:228)
at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.j
ava:488)
I haven't changed anything in the generated mapping file. I can dispose it if
it is required.
When i use the example
mapping file
http://www4.wiwiss.fu-berlin.de/bizer/D2RQ/example/mapping-iswc.n3 there is no
problem. I can modify the database without any problem.
What is going on?? Could you help me??
Thank you in advance.
Vivi.
------------------------------------------------------------------------------
Forrester recently released a report on the Return on Investment (ROI) of
Google Apps. They found a 300% ROI, 38%-56% cost savings, and break-even
within 7 months. Over 3 million businesses have gone Google with Google Apps:
an online email calendar, and document program that's accessible from your
browser. Read the Forrester report:
http://p.sf.net/sfu/googleapps-sfnew_______________________________________________
d2rq-map-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/d2rq-map-devel
------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and,
should the need arise, upgrade to a full multi-node Oracle RAC database
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
d2rq-map-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/d2rq-map-devel