Re: Fuseki Server Warning Message
On 20/06/12 04:38, Don S wrote: HI, Thank you for the valuable suggestions.My real concern is updating the tuples in the file rather than updating the database. As you mentioned earlier it is only updating the databases. So is their any way to update the file either by script control or by programming in eclipse . Use Model.write() If you want remote access and update to a file, then update it locally, and copy it back to the original place by some means outside of Jena. So far I configured the fuseki server, preload the data using tdbloader and can update it using http://localhost:3030/sparql.**tplhttp://localhost:3030/sparql.tpl . Another doubt is what is the difference between loading RDF data into default graph of the server using S-Put ruby s-put http://localhost:3030/ds/data default search.owl and preloading the file to /ds using tdbloader. java -Xmx1200M -classpath ../lib/*; tdb.tdbloader --loc=./TD ./ds2/search.owl As I assumed only the second one is applicable in terms of updating the tuples. Both put data into the default graph of the datatset /ds. Personally, I use the PUT method unless the data is large enough to make running the bulk loader worth it (e.g. 30s+). The PUT (SPARQL Graph Store Protocol) is more convenient. What will happen if we run both the commands. Really appreciating to answer my queries. The data will be read in the database twice - in RDF terms, a graph is a set of triples (no duplicates) but bNodes are allocated new identifiers for each time a file is read. Just don't do it - a database is persistent state. Andy Regards On Tue, Jun 19, 2012 at 12:17 AM, Andy Seabornea...@apache.org wrote: On 19/06/12 05:09, Don S wrote: HI, I was experiencing with http://localhost:3030/sparql.**tplhttp://localhost:3030/sparql.tplfor updating the tuples and search queries. The Update command is PREFIX owl:http://localhost:3030/**ds2/search.owl#http://localhost:3030/ds2/search.owl# This should be the URI for OWL PREFIX owl:http://www.w3.org/2002/07/**owl#http://www.w3.org/2002/07/owl# Setting it to the service has no special effect. PREFIX xsd:http://www.w3.org/2001/**XMLSchema#http://www.w3.org/2001/XMLSchema# INSERT DATA { http://localhost:3030/ds2/**search.owl#name1http://localhost:3030/ds2/search.owl#name1 owl:hasFirstname Rex ^^ xsd:string; } It is updating the tuples but when I look at the server log I saw lot of warning messages. This is now fixed with a temporary workaround in the development snapshot build of 0.2.3 last night. It is recorded as JENA-260. The transaction did successfully commit. The warning is spurious (and long). 12:32:05 INFO Server :: Fuseki 0.2.3-SNAPSHOT 20120614-0506 My doubt is after updating the tuples, why I was not able to see the updated owl file rather I can see the updated results only through http://localhost:3030/sparql.**tplhttp://localhost:3030/sparql.tplwith SPARQL query. Because Fuseki updates tehd ataabse, not any file you loaded into the database. Data is copied on loading into the database. The database is in /TD. Even after restarting the window and again giving the search query PREFIX owl:http://localhost:3030/**ds2/search.owl#http://localhost:3030/ds2/search.owl# SELECT * WHERE { ?Person owl:hasFirstname ?hasFirstname. } I am getting the results with the updated tuples.I am confusing where it is actually storing. Still cannot able to figure out.Or we cannot see these updated tuples physically? Through query of /TD Here is my server configuration java -Xmx1200M -jar fuseki-server.jar --update --loc=/TD /ds2, but if I change to (*--loc=./TD*) and give the search query command it will display the tuples present inside search.owl file excluded the tuples added using the browser. /TD and ./TD are different directories. You have two databases. Any solution for this. Thanks
Re: Fuseki Server Warning Message
On 19/06/12 05:09, Don S wrote: HI, I was experiencing with http://localhost:3030/sparql.tpl for updating the tuples and search queries. The Update command is PREFIX owl:http://localhost:3030/ds2/search.owl# This should be the URI for OWL PREFIX owl: http://www.w3.org/2002/07/owl# Setting it to the service has no special effect. PREFIX xsd:http://www.w3.org/2001/XMLSchema# INSERT DATA { http://localhost:3030/ds2/search.owl#name1 owl:hasFirstname Rex ^^ xsd:string; } It is updating the tuples but when I look at the server log I saw lot of warning messages. This is now fixed with a temporary workaround in the development snapshot build of 0.2.3 last night. It is recorded as JENA-260. The transaction did successfully commit. The warning is spurious (and long). 12:32:05 INFO Server :: Fuseki 0.2.3-SNAPSHOT 20120614-0506 My doubt is after updating the tuples, why I was not able to see the updated owl file rather I can see the updated results only through http://localhost:3030/sparql.tpl with SPARQL query. Because Fuseki updates tehd ataabse, not any file you loaded into the database. Data is copied on loading into the database. The database is in /TD. Even after restarting the window and again giving the search query PREFIX owl:http://localhost:3030/ds2/search.owl# SELECT * WHERE { ?Person owl:hasFirstname ?hasFirstname. } I am getting the results with the updated tuples.I am confusing where it is actually storing. Still cannot able to figure out.Or we cannot see these updated tuples physically? Through query of /TD Here is my server configuration java -Xmx1200M -jar fuseki-server.jar --update --loc=/TD /ds2, but if I change to (*--loc=./TD*) and give the search query command it will display the tuples present inside search.owl file excluded the tuples added using the browser. /TD and ./TD are different directories. You have two databases. Any solution for this. Thanks
Fuseki Server Warning Message
HI, I was experiencing with http://localhost:3030/sparql.tpl for updating the tuples and search queries. The Update command is PREFIX owl: http://localhost:3030/ds2/search.owl# PREFIX xsd: http://www.w3.org/2001/XMLSchema# INSERT DATA { http://localhost:3030/ds2/search.owl#name1 owl:hasFirstname Rex ^^ xsd:string; } It is updating the tuples but when I look at the server log I saw lot of warning messages. java -Xmx1200M -jar fuseki-server.jar --update --loc=/TD /ds2 12:32:05 INFO Server :: TDB dataset: directory=/TD 12:32:05 INFO Server :: Dataset path = /ds2 12:32:05 INFO Server :: Fuseki 0.2.3-SNAPSHOT 20120614-0506 12:32:05 INFO Server :: Jetty 7.x.y-SNAPSHOT 12:32:05 INFO Server :: Started 2012/06/19 12:32:05 PDT on port 3030 12:33:13 INFO Fuseki :: [1] POST http://localhost:3030/ds2/update 12:33:13 WARN SPARQL_Update$HttpActionUpdate :: Transaction still active in end Writer - no commit or abort seen (forced abort) 12:33:13 WARN SPARQL_Update$HttpActionUpdate :: Exception in forced abort (trying to continue) com.hp.hpl.jena.tdb.transaction.TDBTransactionException: Transaction has already committed or abortedat com.hp.hpl.jena.tdb.transaction.Transaction.abortTransaction.java:146) at com.hp.hpl.jena.tdb.transaction.DatasetGraphTxn.abort(DatasetGraphTxn.java:45) at com.hp.hpl.jena.tdb.transaction.DatasetGraphTransaction._abort(DatasetGraphTransaction.java:138) at com.hp.hpl.jena.tdb.migrate.DatasetGraphTrackActive.abort(DatasetGraphTrackActive.java:68) at org.apache.jena.fuseki.servlets.HttpAction.endWrite(HttpAction.java:120) at org.apache.jena.fuseki.servlets.SPARQL_Update.execute(SPARQL_Update.java:239) at org.apache.jena.fuseki.servlets.SPARQL_Update.executeForm(SPARQL_Update.java:226) at org.apache.jena.fuseki.servlets.SPARQL_Update.perform(SPARQL_Update.java:122) at org.apache.jena.fuseki.servlets.SPARQL_ServletBase.doCommon(SPARQL_ServletBase.java:92) at org.apache.jena.fuseki.servlets.SPARQL_Update.doPost(SPARQL_Update.java:78) at javax.servlet.http.HttpServlet.service(HttpServlet.java:727) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:547) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:480) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:225) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:941) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:409) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:186) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:875) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:110) at org.eclipse.jetty.server.Server.handle(Server.java:349) at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:441) at org.eclipse.jetty.server.HttpConnection$RequestHandler.content(HttpConnection.java:936) at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:801) at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:224) at org.eclipse.jetty.server.BlockingHttpConnection.handle(BlockingHttpConnection.java:50) atorg.eclipse.jetty.server.nio.BlockingChannelConnector$BlockingChannelEndPoint.run(BlockingChannelConnector.java:293) at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:598) at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:533) at java.lang.Thread.run(Unknown Source) 12:33:13 INFO Fuseki :: [1] 200 OK My doubt is after updating the tuples, why I was not able to see the updated owl file rather I can see the updated results only through http://localhost:3030/sparql.tpl with SPARQL query. Even after restarting the window and again giving the search query PREFIX owl:http://localhost:3030/ds2/search.owl# SELECT * WHERE { ?Person owl:hasFirstname ?hasFirstname. } I am getting the results with the updated tuples.I am confusing where it is actually storing. Still cannot able to figure out.Or we cannot see these updated tuples physically? Here is my server configuration java -Xmx1200M -jar fuseki-server.jar --update --loc=/TD /ds2, but if I change to (*--loc=./TD*) and give the search query command it will display the tuples present inside search.owl file excluded the tuples added using the browser. Any solution for this. Thanks