[Virtuoso-users] Inserting data into an arbitrary graph with HTTP
All, We need to insert a few hundred triples in a certain graph over HTTP and we are struggling to do that. The graph name we use is not dereferenceable, i.e. there is no server there, thus we have to insert into it by name only. Our preferred way to do this is using SPARUL INSERT DATA, but the SQL compiled from this query becomes more than 1 lines for less than 200 triples, so it is at present unsuitable for any large amounts of data. I have sent a feature request about this, but we need a more immediate workaround. I've gone over http://docs.openlinksw.com/virtuoso/rdfinsertmethods.html but it seems like none of the HTTP methods lets us insert into an arbitrary graph, the DAV methods seem to require a graph name connected to the WebDAV server, and that doesn't work well for us. Nor do LOAD, as the data is not available on a server. So, what options are there to insert data into an arbitrary graph using HTTP? Kind regards Kjetil Kjernsmo -- Senior Knowledge Engineer / SPARQL FR Editor Mobile: +47 986 48 234 Email: kjetil.kjern...@computas.com Web: http://www.computas.com/ | SHARE YOUR KNOWLEDGE | Computas AS PO Box 482, N-1327 Lysaker | Phone:+47 6783 1000 | Fax:+47 6783 1001
Re: [Virtuoso-users] Inserting data into an arbitrary graph with HTTP
Hi Kjetil, Try one of these PL functions: DB.DBA.TTLP_MT() DB.DBA.RDF_LOAD_RDFXML_MT() Take care, Fred All, We need to insert a few hundred triples in a certain graph over HTTP and we are struggling to do that. The graph name we use is not dereferenceable, i.e. there is no server there, thus we have to insert into it by name only. Our preferred way to do this is using SPARUL INSERT DATA, but the SQL compiled from this query becomes more than 1 lines for less than 200 triples, so it is at present unsuitable for any large amounts of data. I have sent a feature request about this, but we need a more immediate workaround. I've gone over http://docs.openlinksw.com/virtuoso/rdfinsertmethods.html but it seems like none of the HTTP methods lets us insert into an arbitrary graph, the DAV methods seem to require a graph name connected to the WebDAV server, and that doesn't work well for us. Nor do LOAD, as the data is not available on a server. So, what options are there to insert data into an arbitrary graph using HTTP? Kind regards Kjetil Kjernsmo
Re: [Virtuoso-users] Inserting data into an arbitrary graph with HTTP
Hi Kjetil, Try one of these PL functions: DB.DBA.TTLP_MT() DB.DBA.RDF_LOAD_RDFXML_MT() Yeah, I am aware of them, but how can we use them from the SPARQL endpoint? Right, you will need an ODBC connection to send them. Otherwise I don't think you can do this via the SPARQL endpoint. Take care, Fred
Re: [Virtuoso-users] controlling query time limits from the sparql endpoint
Hi Alan, Currently the only timeout that can be specified is as a parameter to a query against the SPARQL endpoint , as timeout=value for example: http://demo.openlinksw.com/sparql?default-graph-uri=http%3A%2F% 2Fdemo.openlinksw.com%2Fdataspace%2Fperson%2Fdemoshould- sponge=query=select+distinct+%3FURI+%3FObjectType+where+{%3FURI+a+% 3FObjectType}+limit+50format=text%2Fhtmldebug=ontimeout=1000 It is already on the todo list to have have pragma's for all the options in the SPARQL section of the ini file to be added such that they can be specified in queries, which hopefully will be in the next release. The supported pragma's (define's) are listed at: http://docs.openlinksw.com/virtuoso/rdfiridereferencing.html Best Regards Hugh Williams Professional Services OpenLink Software Web: http://www.openlinksw.com Support: http://support.openlinksw.com Forums: http://boards.openlinksw.com/support On 26 May 2009, at 21:15, Alan Bawden wrote: Is there a way to control the various time limits set on a query (such as MaxQueryCostEstimationTime or MaxQueryExecutionTime) from the SPARQL endpoint? Perhaps by prefixing the query with a 'DEFINE', or perhaps by adding a additional parameter to the query URI? (And BTW, is there documentation somewhere of all the things you can 'DEFINE'?) -- Alan Bawden baw...@creativecommons.org -- Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT is a gathering of tech-side developers brand creativity professionals. Meet the minds behind Google Creative Lab, Visual Complexity, Processing, iPhoneDevCamp as they present alongside digital heavyweights like Barbarian Group, R/GA, Big Spaceship. http://p.sf.net/sfu/creativitycat-com ___ Virtuoso-users mailing list Virtuoso-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/virtuoso-users