You can subscribe to this list here.
2008 |
Jan
|
Feb
|
Mar
(2) |
Apr
(7) |
May
|
Jun
(4) |
Jul
(2) |
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
---|---|---|---|---|---|---|---|---|---|---|---|---|
2009 |
Jan
|
Feb
|
Mar
(10) |
Apr
(4) |
May
(10) |
Jun
|
Jul
|
Aug
(4) |
Sep
(5) |
Oct
|
Nov
|
Dec
(2) |
2010 |
Jan
(5) |
Feb
(1) |
Mar
|
Apr
(1) |
May
|
Jun
(2) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2011 |
Jan
(4) |
Feb
(5) |
Mar
(2) |
Apr
|
May
|
Jun
|
Jul
|
Aug
(6) |
Sep
(6) |
Oct
|
Nov
|
Dec
|
2012 |
Jan
(4) |
Feb
(5) |
Mar
|
Apr
|
May
(3) |
Jun
(1) |
Jul
(1) |
Aug
(11) |
Sep
(4) |
Oct
(6) |
Nov
|
Dec
(3) |
2013 |
Jan
|
Feb
(1) |
Mar
(11) |
Apr
(5) |
May
|
Jun
|
Jul
|
Aug
(8) |
Sep
(3) |
Oct
(9) |
Nov
|
Dec
|
2014 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(2) |
Oct
(2) |
Nov
|
Dec
|
From: Visser, D. <dv...@id...> - 2012-08-30 16:40:41
|
Carlos: Thanks for this release. I was able to eliminate custom urllib2-calling code due to the 'update' parameter fix. Best regards, Dale Visser -----Original Message----- From: Carlos Tejo [mailto:car...@fu...] Sent: Tuesday, August 28, 2012 6:01 AM To: spa...@li... Subject: [sparql-wrapper-devel] [ANN] SPARQL Wrapper 1.5.2 released We've just publish a new release (1.5.2) of the Python SPARQL Wrapper with this changes: - Implemented update operation according the latest SPARQL 1.1 Protocol drafts (i.e., switching to 'update' parameter) New packages have been uploaded to SourceForge [1] and to PyPI [2] for installing with easy_install; Debian package will be available in the following days. The documentation of the library has been also properly updated [3]. Thanks a lot for the feedback provided that encourage us to do that changes. If you find any issue with this new release, please don't hesitate to contact us. Best regards, Carlos Tejo [1] https://sourceforge.net/projects/sparql-wrapper/files/sparql-wrapper-python/1.5.2/ [2] http://pypi.python.org/pypi/SPARQLWrapper/1.5.2 [3] http://sparql-wrapper.sourceforge.net/resources/doc/ ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ sparql-wrapper-devel mailing list spa...@li... https://lists.sourceforge.net/lists/listinfo/sparql-wrapper-devel |
From: Visser, D. <dv...@id...> - 2012-08-28 16:03:06
|
Sergio: No, I have not tested code past v1.5.1, and not with Surf. I look forward to the new release, and intend to integrate it with my code. With every release, I have been able to eliminate more of my own code. :-) Best regards, Dale -----Original Message----- From: Sergio Fernández [mailto:se...@wi...] Sent: Tuesday, August 28, 2012 2:45 AM To: spa...@li... Subject: Re: [sparql-wrapper-devel] SPARQLWrapper issue might be related to problems in SURFRDF with Virtuoso, 4Store and Jena Fuseki Dear Dale, standalone I know it works, but did you test it together with SuRF? We'll perform some more tests, and by the end of this week I think we be able to publish a new release solving this issue. Thanks all of you for your help. Cheers, On 27 August 2012 18:10, Visser, Dale <dv...@id...> wrote: > Sergio: > > Thank you. That worked. > > Best regards, > Dale > > -----Original Message----- > From: Sergio Fernández [mailto:se...@wi...] > Sent: Saturday, August 25, 2012 7:24 AM > To: spa...@li... > Subject: Re: [sparql-wrapper-devel] SPARQLWrapper issue might be > related to problems in SURFRDF with Virtuoso, 4Store and Jena Fuseki > > Hi, > > On 24 August 2012 17:54, Visser, Dale <dv...@id...> wrote: >> I'm interested in seeing this update. When I checkout the trunk, I >> only see up to revision 154 though. > > Really? Which repository are you using? Because: > > sergio@krusty:~/tmp$ svn co > https://sparql-wrapper.svn.sourceforge.net/svnroot/sparql-wrapper/trun > k > sparqlwrapper > ... > Checked out revision 166. > > I know that sometimes SourceForge is not the easiest place where find the things... Please, tell me if you could get the right code. > > Cheers, > > -- > > Sergio Fernández <se...@wi...> > > ---------------------------------------------------------------------- > -------- > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. > Discussions will include endpoint security, mobile security and the > latest in malware threats. > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > sparql-wrapper-devel mailing list > spa...@li... > https://lists.sourceforge.net/lists/listinfo/sparql-wrapper-devel > ---------------------------------------------------------------------- > -------- > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. > Discussions will include endpoint security, mobile security and the > latest in malware threats. > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > sparql-wrapper-devel mailing list > spa...@li... > https://lists.sourceforge.net/lists/listinfo/sparql-wrapper-devel -- Sergio Fernández <se...@wi...> ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ sparql-wrapper-devel mailing list spa...@li... https://lists.sourceforge.net/lists/listinfo/sparql-wrapper-devel |
From: Carlos T. <car...@fu...> - 2012-08-28 11:29:22
|
We've just publish a new release (1.5.2) of the Python SPARQL Wrapper with this changes: - Implemented update operation according the latest SPARQL 1.1 Protocol drafts (i.e., switching to 'update' parameter) New packages have been uploaded to SourceForge [1] and to PyPI [2] for installing with easy_install; Debian package will be available in the following days. The documentation of the library has been also properly updated [3]. Thanks a lot for the feedback provided that encourage us to do that changes. If you find any issue with this new release, please don't hesitate to contact us. Best regards, Carlos Tejo [1] https://sourceforge.net/projects/sparql-wrapper/files/sparql-wrapper-python/1.5.2/ [2] http://pypi.python.org/pypi/SPARQLWrapper/1.5.2 [3] http://sparql-wrapper.sourceforge.net/resources/doc/ |
From: Sergio F. <se...@wi...> - 2012-08-28 10:37:29
|
Here some clues about the origins of this new parameter which caused the issue: http://lists.w3.org/Archives/Public/public-rdf-dawg/2009JulSep/0141.html Seems that there was no consensus within the WG. Looks that the argument of having different parameter is about be able to reject update operations without needing to parse the query. As I said, not really a benefit from my point of view. Cheers, On 28 August 2012 08:45, Sergio Fernández <se...@wi...> wrote: > Dear Dale, > > standalone I know it works, but did you test it together with SuRF? > > We'll perform some more tests, and by the end of this week I think we > be able to publish a new release solving this issue. > > Thanks all of you for your help. > > Cheers, > > On 27 August 2012 18:10, Visser, Dale <dv...@id...> wrote: >> Sergio: >> >> Thank you. That worked. >> >> Best regards, >> Dale >> >> -----Original Message----- >> From: Sergio Fernández [mailto:se...@wi...] >> Sent: Saturday, August 25, 2012 7:24 AM >> To: spa...@li... >> Subject: Re: [sparql-wrapper-devel] SPARQLWrapper issue might be related to problems in SURFRDF with Virtuoso, 4Store and Jena Fuseki >> >> Hi, >> >> On 24 August 2012 17:54, Visser, Dale <dv...@id...> wrote: >>> I'm interested in seeing this update. When I checkout the trunk, I >>> only see up to revision 154 though. >> >> Really? Which repository are you using? Because: >> >> sergio@krusty:~/tmp$ svn co >> https://sparql-wrapper.svn.sourceforge.net/svnroot/sparql-wrapper/trunk >> sparqlwrapper >> ... >> Checked out revision 166. >> >> I know that sometimes SourceForge is not the easiest place where find the things... Please, tell me if you could get the right code. >> >> Cheers, >> >> -- >> >> Sergio Fernández <se...@wi...> >> >> ------------------------------------------------------------------------------ >> Live Security Virtual Conference >> Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >> _______________________________________________ >> sparql-wrapper-devel mailing list >> spa...@li... >> https://lists.sourceforge.net/lists/listinfo/sparql-wrapper-devel >> ------------------------------------------------------------------------------ >> Live Security Virtual Conference >> Exclusive live event will cover all the ways today's security and >> threat landscape has changed and how IT managers can respond. Discussions >> will include endpoint security, mobile security and the latest in malware >> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >> _______________________________________________ >> sparql-wrapper-devel mailing list >> spa...@li... >> https://lists.sourceforge.net/lists/listinfo/sparql-wrapper-devel > > > > -- > > Sergio Fernández <se...@wi...> -- Sergio Fernández <se...@wi...> |
From: Sergio F. <se...@wi...> - 2012-08-28 09:22:18
|
Hi all, after clarify the issue with the new repository [1], we must switch to the new code repository at sourceforge [2][3]. Please, take this into account before performing new commits. Unfortunately you can't simply run "svn switch" to teh new url, because the UUID doesn't match in both repositories; so you may need to get a fresh checkout. Cheers, [1] https://sourceforge.net/p/forge/site-support/354/ [2] https://sourceforge.net/p/sparql-wrapper/code/24/tree/ [3] svn://svn.code.sf.net/p/sparql-wrapper/code/trunk sparql-wrapper-code -- Sergio Fernández <se...@wi...> |
From: Sergio F. <se...@wi...> - 2012-08-28 06:45:17
|
Dear Dale, standalone I know it works, but did you test it together with SuRF? We'll perform some more tests, and by the end of this week I think we be able to publish a new release solving this issue. Thanks all of you for your help. Cheers, On 27 August 2012 18:10, Visser, Dale <dv...@id...> wrote: > Sergio: > > Thank you. That worked. > > Best regards, > Dale > > -----Original Message----- > From: Sergio Fernández [mailto:se...@wi...] > Sent: Saturday, August 25, 2012 7:24 AM > To: spa...@li... > Subject: Re: [sparql-wrapper-devel] SPARQLWrapper issue might be related to problems in SURFRDF with Virtuoso, 4Store and Jena Fuseki > > Hi, > > On 24 August 2012 17:54, Visser, Dale <dv...@id...> wrote: >> I'm interested in seeing this update. When I checkout the trunk, I >> only see up to revision 154 though. > > Really? Which repository are you using? Because: > > sergio@krusty:~/tmp$ svn co > https://sparql-wrapper.svn.sourceforge.net/svnroot/sparql-wrapper/trunk > sparqlwrapper > ... > Checked out revision 166. > > I know that sometimes SourceForge is not the easiest place where find the things... Please, tell me if you could get the right code. > > Cheers, > > -- > > Sergio Fernández <se...@wi...> > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > sparql-wrapper-devel mailing list > spa...@li... > https://lists.sourceforge.net/lists/listinfo/sparql-wrapper-devel > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > sparql-wrapper-devel mailing list > spa...@li... > https://lists.sourceforge.net/lists/listinfo/sparql-wrapper-devel -- Sergio Fernández <se...@wi...> |
From: Visser, D. <dv...@id...> - 2012-08-27 16:11:10
|
Sergio: Thank you. That worked. Best regards, Dale -----Original Message----- From: Sergio Fernández [mailto:se...@wi...] Sent: Saturday, August 25, 2012 7:24 AM To: spa...@li... Subject: Re: [sparql-wrapper-devel] SPARQLWrapper issue might be related to problems in SURFRDF with Virtuoso, 4Store and Jena Fuseki Hi, On 24 August 2012 17:54, Visser, Dale <dv...@id...> wrote: > I'm interested in seeing this update. When I checkout the trunk, I > only see up to revision 154 though. Really? Which repository are you using? Because: sergio@krusty:~/tmp$ svn co https://sparql-wrapper.svn.sourceforge.net/svnroot/sparql-wrapper/trunk sparqlwrapper ... Checked out revision 166. I know that sometimes SourceForge is not the easiest place where find the things... Please, tell me if you could get the right code. Cheers, -- Sergio Fernández <se...@wi...> ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ sparql-wrapper-devel mailing list spa...@li... https://lists.sourceforge.net/lists/listinfo/sparql-wrapper-devel |
From: Sergio F. <se...@wi...> - 2012-08-25 11:24:12
|
Hi, On 24 August 2012 17:54, Visser, Dale <dv...@id...> wrote: > I'm interested in seeing this update. When I checkout the trunk, I only see > up to revision 154 though. Really? Which repository are you using? Because: sergio@krusty:~/tmp$ svn co https://sparql-wrapper.svn.sourceforge.net/svnroot/sparql-wrapper/trunk sparqlwrapper ... Checked out revision 166. I know that sometimes SourceForge is not the easiest place where find the things... Please, tell me if you could get the right code. Cheers, -- Sergio Fernández <se...@wi...> |
From: Visser, D. <dv...@id...> - 2012-08-24 15:54:15
|
I'm interested in seeing this update. When I checkout the trunk, I only see up to revision 154 though. -----Original Message----- From: Sergio Fernández [mailto:se...@wi...] Sent: Friday, August 24, 2012 6:56 AM To: spa...@li... Subject: Re: [sparql-wrapper-devel] SPARQLWrapper issue might be related to problems in SURFRDF with Virtuoso, 4Store and Jena Fuseki Hi Laurens, in the last release we included support for different read/write endpoints, see: http://sparql-wrapper.sourceforge.net/resources/doc/SPARQLWrapper.Wrapper.SPARQLWrapper-class.html#__init__ Not sure if the SuRF plugins considered such feature. Anyway, back to the reported issue: checking the latest SPARQL 1.1 drafts (http://www.w3.org/TR/sparql11-protocol/#update-operation) I surprisingly discovered that they have decided to use different http parameters for update operations. FMPOV that's not a good idea and I can't understand the benefits, specially from the clide-side of the SPARQL HTTP Protocol. But of course we must implement the protocol as it is specified. I've just added support to the 'update' parameter in the source code repository (r166). Could you please check if it works with SuRF as expected? Thanks for pointing us the issue. Cheers, On 24 August 2012 12:22, Laurens De Vocht <lau...@gm...> wrote: > Hi all, > > > There seems to be a problem with the SPARQL Wrapper when it is doing a > POST request to a SPARQL endpoint. Problem with the update= variable > in the post request. > > See related thread: > https://groups.google.com/forum/?fromgroups=#!topic/surfrdf/AxuZ-gGD64 > c > > > Kind regards, > > > Laurens > > ---------------------------------------------------------------------- > -------- > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. > Discussions will include endpoint security, mobile security and the > latest in malware threats. > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > sparql-wrapper-devel mailing list > spa...@li... > https://lists.sourceforge.net/lists/listinfo/sparql-wrapper-devel > -- Sergio Fernández <se...@wi...> ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ sparql-wrapper-devel mailing list spa...@li... https://lists.sourceforge.net/lists/listinfo/sparql-wrapper-devel |
From: Sergio F. <se...@wi...> - 2012-08-24 11:26:54
|
Hi Laurens, in the last release we included support for different read/write endpoints, see: http://sparql-wrapper.sourceforge.net/resources/doc/SPARQLWrapper.Wrapper.SPARQLWrapper-class.html#__init__ Not sure if the SuRF plugins considered such feature. Anyway, back to the reported issue: checking the latest SPARQL 1.1 drafts (http://www.w3.org/TR/sparql11-protocol/#update-operation) I surprisingly discovered that they have decided to use different http parameters for update operations. FMPOV that's not a good idea and I can't understand the benefits, specially from the clide-side of the SPARQL HTTP Protocol. But of course we must implement the protocol as it is specified. I've just added support to the 'update' parameter in the source code repository (r166). Could you please check if it works with SuRF as expected? Thanks for pointing us the issue. Cheers, On 24 August 2012 12:22, Laurens De Vocht <lau...@gm...> wrote: > Hi all, > > > There seems to be a problem with the SPARQL Wrapper when it is doing a POST > request to a SPARQL endpoint. Problem with the update= variable in the post > request. > > See related thread: > https://groups.google.com/forum/?fromgroups=#!topic/surfrdf/AxuZ-gGD64c > > > Kind regards, > > > Laurens > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > sparql-wrapper-devel mailing list > spa...@li... > https://lists.sourceforge.net/lists/listinfo/sparql-wrapper-devel > -- Sergio Fernández <se...@wi...> |
From: Laurens De V. <lau...@gm...> - 2012-08-24 10:22:27
|
Hi all, There seems to be a problem with the SPARQL Wrapper when it is doing a POST request to a SPARQL endpoint. Problem with the update= variable in the post request. See related thread: https://groups.google.com/forum/?fromgroups=#!topic/surfrdf/AxuZ-gGD64c Kind regards, Laurens |
From: Carlos T. <car...@fu...> - 2012-07-10 08:54:49
|
We've just publish a new release (1.5.1) of the Python SPARQL Wrapper with this changes: - Added the posibility to use two different endpoints for reading and writing operations - New print_result() function for users testing New packages have been uploaded to SourceForge [1] and to PyPI [2] for installing with easy_install; Debian package will be available in the following days. The documentation of the library has been also properly updated [3]. Thanks a lot for the feedback provided that encourage us to do that changes. If you find any issue with this new release, please don't hesitate to contact us. Best regards, Carlos Tejo [1] http://sourceforge.net/projects/sparql-wrapper/files [2] http://pypi.python.org/pypi/SPARQLWrapper/1.5.1 [3] http://sparql-wrapper.sourceforge.net/resources/doc/ Carlos Tejo Alonso CTIC-Centro Tecnológico Parque Científico y Tecnológico de Gijón c/ Ada Byron, 39 Edificio Centros Tecnológicos 33203 Gijón - Asturias - Spain Tel.: +34 984 29 12 12 Fax: +34 984 39 06 12 E-mail: car...@fu... http://www.fundacionctic.org Privacy Policy: http://www.fundacionctic.org/privacidad |
From: Sergio F. <se...@wi...> - 2012-06-21 15:23:11
|
Hi, it's something that I don't like, but some implementations, typically those which are Sesame-based implementations, provide a different endpoint URI for performing write operations. So I guess that's something we should transparently support in the wrapper. What do you think? I've just added a preliminary implementation of such feature in the code repository (r151), while keeping back-ward compatibility of the API. I performed some tests, and looks to work fine; although I'd like to test it with more detail and write some unit tests before include it in the next release. Greetings, -- Sergio Fernández Salzburg Research +43 662 2288 318 Jakob-Haringer Strasse 5/II A-5020 Salzburg (Austria) http://www.salzburgresearch.at |
From: Sergio F. <se...@wi...> - 2012-05-11 13:32:11
|
Well, currently I'm not using Sesame for my developments, but according the documentation it looks you are using a wrong endpoint: http://www.openrdf.org/doc/sesame2/system/ch08.html#d0e320 Such statement endpoint doesn't support the SPARQL HTTP Protocol, which is what the SPARQL Wrapper implements. So I guess you should use this endpoint for your queries: http://localhost:8080/openrdf-sesame/repositories/test Further details at http://www.openrdf.org/doc/sesame2/system/ch08.html#d0e247 Please, tell me if this solves your problems. Cheers, On 11 May 2012 14:05, Sergio Fernández <se...@wi...> wrote: > Hi Dale, > > looks that Sesame is not happy with the format requested by the > wrapper (I guess the default one is XML) by POST. > > Try a couple of things: > > * First try to use JSON as format: > > sparql.setReturnFormat(JSON) > > * If if doesn't work, please provide us more details by catching the exception: > > try: > (you stuff here) > except Exception, e: > print e > > Hope this helps. > > Cheers, > > > On 7 May 2012 20:16, Visser, Dale <dv...@id...> wrote: >> I have downloaded and ‘installed’ SPARQLWrapper 1.5.0. I have a local Sesame >> instance set up, and I am attempting to run the following script: >> >> >> >> from SPARQLWrapper import SPARQLWrapper, POST >> >> >> >> sparql = >> SPARQLWrapper("http://localhost:8080/openrdf-sesame/repositories/test/statements") >> >> query = open('../src/addbook.sparql').read() >> >> sparql.setQuery(query) >> >> sparql.setMethod(POST) >> >> print "HTTP Method: ", sparql.method >> >> print "Query:\n", sparql.queryString >> >> print "Parsed Query Type: ", sparql.queryType >> >> result = sparql.query() >> >> n3text = result.convert() >> >> print results >> >> >> >> The result of running the script is here (shows the contents of the SPARQL >> query text file): >> >> >> >> dale@dale-VirtualBox:~/git/3153/sesame_test/python$ python >> TestSPARQLWrapper.py >> >> HTTP Method: POST >> >> Query: >> >> PREFIX dc: <http://purl.org/dc/elements/1.1/> >> >> INSERT DATA >> >> { <http://example/book3> dc:title "A new book" ; >> >> dc:creator "A.N.Other" . >> >> } >> >> Parsed Query Type: INSERT >> >> Traceback (most recent call last): >> >> File "TestSPARQLWrapper.py", line 10, in <module> >> >> result = sparql.query() >> >> File "/usr/local/lib/python2.7/dist-packages/SPARQLWrapper/Wrapper.py", >> line 377, in query >> >> File "/usr/local/lib/python2.7/dist-packages/SPARQLWrapper/Wrapper.py", >> line 356, in _query >> >> urllib2.HTTPError: HTTP Error 415: Unsupported Media Type >> >> >> >> Does anyone know why Sesame is returning the 415 code? >> >> >> >> Best regards, >> >> Dale >> >> >> ------------------------------------------------------------------------------ >> Live Security Virtual Conference >> Exclusive live event will cover all the ways today's security and >> threat landscape has changed and how IT managers can respond. Discussions >> will include endpoint security, mobile security and the latest in malware >> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >> _______________________________________________ >> sparql-wrapper-devel mailing list >> spa...@li... >> https://lists.sourceforge.net/lists/listinfo/sparql-wrapper-devel >> > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > sparql-wrapper-devel mailing list > spa...@li... > https://lists.sourceforge.net/lists/listinfo/sparql-wrapper-devel -- Sergio Fernández <se...@wi...> |
From: Sergio F. <se...@wi...> - 2012-05-11 12:31:17
|
Hi Dale, looks that Sesame is not happy with the format requested by the wrapper (I guess the default one is XML) by POST. Try a couple of things: * First try to use JSON as format: sparql.setReturnFormat(JSON) * If if doesn't work, please provide us more details by catching the exception: try: (you stuff here) except Exception, e: print e Hope this helps. Cheers, On 7 May 2012 20:16, Visser, Dale <dv...@id...> wrote: > I have downloaded and ‘installed’ SPARQLWrapper 1.5.0. I have a local Sesame > instance set up, and I am attempting to run the following script: > > > > from SPARQLWrapper import SPARQLWrapper, POST > > > > sparql = > SPARQLWrapper("http://localhost:8080/openrdf-sesame/repositories/test/statements") > > query = open('../src/addbook.sparql').read() > > sparql.setQuery(query) > > sparql.setMethod(POST) > > print "HTTP Method: ", sparql.method > > print "Query:\n", sparql.queryString > > print "Parsed Query Type: ", sparql.queryType > > result = sparql.query() > > n3text = result.convert() > > print results > > > > The result of running the script is here (shows the contents of the SPARQL > query text file): > > > > dale@dale-VirtualBox:~/git/3153/sesame_test/python$ python > TestSPARQLWrapper.py > > HTTP Method: POST > > Query: > > PREFIX dc: <http://purl.org/dc/elements/1.1/> > > INSERT DATA > > { <http://example/book3> dc:title "A new book" ; > > dc:creator "A.N.Other" . > > } > > Parsed Query Type: INSERT > > Traceback (most recent call last): > > File "TestSPARQLWrapper.py", line 10, in <module> > > result = sparql.query() > > File "/usr/local/lib/python2.7/dist-packages/SPARQLWrapper/Wrapper.py", > line 377, in query > > File "/usr/local/lib/python2.7/dist-packages/SPARQLWrapper/Wrapper.py", > line 356, in _query > > urllib2.HTTPError: HTTP Error 415: Unsupported Media Type > > > > Does anyone know why Sesame is returning the 415 code? > > > > Best regards, > > Dale > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > sparql-wrapper-devel mailing list > spa...@li... > https://lists.sourceforge.net/lists/listinfo/sparql-wrapper-devel > |
From: Visser, D. <dv...@id...> - 2012-05-07 18:16:32
|
I have downloaded and 'installed' SPARQLWrapper 1.5.0. I have a local Sesame instance set up, and I am attempting to run the following script: from SPARQLWrapper import SPARQLWrapper, POST sparql = SPARQLWrapper("http://localhost:8080/openrdf-sesame/repositories/test/statements") query = open('../src/addbook.sparql').read() sparql.setQuery(query) sparql.setMethod(POST) print "HTTP Method: ", sparql.method print "Query:\n", sparql.queryString print "Parsed Query Type: ", sparql.queryType result = sparql.query() n3text = result.convert() print results The result of running the script is here (shows the contents of the SPARQL query text file): dale@dale-VirtualBox:~/git/3153/sesame_test/python$ python TestSPARQLWrapper.py HTTP Method: POST Query: PREFIX dc: <http://purl.org/dc/elements/1.1/> INSERT DATA { <http://example/book3> dc:title "A new book" ; dc:creator "A.N.Other" . } Parsed Query Type: INSERT Traceback (most recent call last): File "TestSPARQLWrapper.py", line 10, in <module> result = sparql.query() File "/usr/local/lib/python2.7/dist-packages/SPARQLWrapper/Wrapper.py", line 377, in query File "/usr/local/lib/python2.7/dist-packages/SPARQLWrapper/Wrapper.py", line 356, in _query urllib2.HTTPError: HTTP Error 415: Unsupported Media Type Does anyone know why Sesame is returning the 415 code? Best regards, Dale |
From: Carlos T. <car...@fu...> - 2012-02-02 12:05:57
|
[previous message is bad formatted] We've just publish a new release (1.5.0) of the Python SPARQL Wrapper with this changes: - Added Python 3.x support (feature request #3022722) - Update handling 500's coming from SPARQL endpoint (feature request #3198363) - Warning when returned format would be different than the requested one New packages have been uploaded to SourceForge [1] and to PyPI [2] for installing with easy install; on Debian package will be available inthe following days. The documentation of the library has been also properly updated [3]. Thanks a lot for the feedback provided that encourage us to do that changes. If you find any issue with this new release, please don't hesitate to contact us. Best regards, Carlos Tejo [1] http://sourceforge.net/projects/sparql-wrapper/files [2] http://pypi.python.org/pypi/SPARQLWrapper/1.5.0 [3] http://sparql-wrapper.sourceforge.net/resources/doc/ Carlos Tejo Alonso CTIC-Centro Tecnológico Parque Científico y Tecnológico de Gijón c/ Ada Byron, 39 Edificio Centros Tecnológicos 33203 Gijón - Asturias - Spain Tel.: +34 984 29 12 12 Fax: +34 984 39 06 12 E-mail: car...@fu... http://www.fundacionctic.org Privacy Policy: http://www.fundacionctic.org/privacidad |
From: Carlos T. <car...@fu...> - 2012-02-02 11:57:54
|
We've just publish a new release (1.5.0) of the Python SPARQL Wrapper with this changes:- Added Python 3.x support (feature request #3022722) - Update handling 500's coming from SPARQL endpoint (feature request #3198363) - Warning when returned format would be different than the requested one New packages have been uploaded to SourceForge [1] and to PyPI [2] forinstalling with easy install; on Debian package will be available inthe following days. The documentation of the library has been alsoproperly updated [3]. Thanks a lot for the feedback provided that encourage us to do that changes. If you find any issue with this new release, please don't hesitate tocontact us. Best regards, Carlos Tejo [1] http://sourceforge.net/projects/sparql-wrapper/files[2] http://pypi.python.org/pypi/SPARQLWrapper/1.5.0[3] http://sparql-wrapper.sourceforge.net/resources/doc/ Carlos Tejo Alonso CTIC-Centro Tecnológico Parque Científico y Tecnológico de Gijón c/ Ada Byron, 39 Edificio Centros Tecnológicos 33203 Gijón - Asturias - Spain Tel.: +34 984 29 12 12 Fax: +34 984 39 06 12 E-mail: car...@fu... http://www.fundacionctic.org Privacy Policy: http://www.fundacionctic.org/privacidad |
From: Sergio F. <ser...@fu...> - 2012-02-02 09:13:00
|
Anyway as a user perspective we agree we added that could be a bit confusing. So we added a warning message when the wrapper comes up with such situation. You could get it at the upcoming release. Thanks for your useful comments! Cheers, 2012/2/1 Sergio Fernández <ser...@fu...>: > Dear Stuart, > > such SPARQL endpoint looks not to support results as JSON. Remember > that according the current specification [1], only XML results are > mandatory. What you could expect on HTTP is a 406 status code, but I > guess they are not managing the Accept header [2] > > In conclusion, sorry, but the reported issue is on the server side, > not in the client. > > Greetings, > > [1] http://www.w3.org/TR/rdf-sparql-protocol/#query-Out-Message > [2] http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html > > > On 1 February 2012 20:25, Stuart Axon <st...@ya...> wrote: >> Hi, >> Cheers for sparql-wrapper - seem to be getting stuck at an early hurdle: >> >> >> When I run the program below I was expecting json, but get an XML Minidom >> object, this seems not quite right ? >> >> [python 2.7 on ubuntu oneiric ocelot] >> >> #!/bin/env python >> from SPARQLWrapper import SPARQLWrapper, JSON >> >> query = """ >> PREFIX geo: <http://www.geonames.org/ontology#> >> PREFIX wgs: <http://www.w3.org/2003/01/geo/wgs84_pos#> >> SELECT DISTINCT ?an ?lat ?long ?name ?population >> WHERE >> { ?a >> a mo:MusicArtist; >> foaf:based_near ?place; >> foaf:name ?an; >> foaf:made ?alb. >> # ?alb tags:taggedWithTag <http://dbtune.org/jamendo/tag/idm>. >> ?place >> geo:name ?name; >> geo:population ?population; >> wgs:lat ?lat; >> wgs:long ?long >> } >> ORDER BY ?population >> """ >> >> sparql = SPARQLWrapper("http://dbtune.org/jamendo/sparql/") >> sparql.setQuery(query) >> sparql.setReturnFormat(JSON) >> results = sparql.query().convert() >> >> print results >> >> >> ------------------------------------------------------------------------------ >> Keep Your Developer Skills Current with LearnDevNow! >> The most comprehensive online learning library for Microsoft developers >> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, >> Metro Style Apps, more. Free future releases when you subscribe now! >> http://p.sf.net/sfu/learndevnow-d2d >> _______________________________________________ >> sparql-wrapper-devel mailing list >> spa...@li... >> https://lists.sourceforge.net/lists/listinfo/sparql-wrapper-devel >> > > > > -- > Sergio Fernández > CTIC - Technological Center > Parque Científico y Tecnológico de Gijón > C/ Ada Byron, 39 Edificio Centros Tecnológicos > 33203 Gijón - Asturias - Spain > Tel.: +34 984 29 12 12 > Fax: +34 984 39 06 12 > E-mail: ser...@fu... > http://www.fundacionctic.org > Privacy Policy: http://www.fundacionctic.org/privacidad -- Sergio Fernández CTIC - Technological Center Parque Científico y Tecnológico de Gijón C/ Ada Byron, 39 Edificio Centros Tecnológicos 33203 Gijón - Asturias - Spain Tel.: +34 984 29 12 12 Fax: +34 984 39 06 12 E-mail: ser...@fu... http://www.fundacionctic.org Privacy Policy: http://www.fundacionctic.org/privacidad |
From: Sergio F. <ser...@fu...> - 2012-02-01 21:47:18
|
Dear Stuart, such SPARQL endpoint looks not to support results as JSON. Remember that according the current specification [1], only XML results are mandatory. What you could expect on HTTP is a 406 status code, but I guess they are not managing the Accept header [2] In conclusion, sorry, but the reported issue is on the server side, not in the client. Greetings, [1] http://www.w3.org/TR/rdf-sparql-protocol/#query-Out-Message [2] http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html On 1 February 2012 20:25, Stuart Axon <st...@ya...> wrote: > Hi, > Cheers for sparql-wrapper - seem to be getting stuck at an early hurdle: > > > When I run the program below I was expecting json, but get an XML Minidom > object, this seems not quite right ? > > [python 2.7 on ubuntu oneiric ocelot] > > #!/bin/env python > from SPARQLWrapper import SPARQLWrapper, JSON > > query = """ > PREFIX geo: <http://www.geonames.org/ontology#> > PREFIX wgs: <http://www.w3.org/2003/01/geo/wgs84_pos#> > SELECT DISTINCT ?an ?lat ?long ?name ?population > WHERE > { ?a > a mo:MusicArtist; > foaf:based_near ?place; > foaf:name ?an; > foaf:made ?alb. > # ?alb tags:taggedWithTag <http://dbtune.org/jamendo/tag/idm>. > ?place > geo:name ?name; > geo:population ?population; > wgs:lat ?lat; > wgs:long ?long > } > ORDER BY ?population > """ > > sparql = SPARQLWrapper("http://dbtune.org/jamendo/sparql/") > sparql.setQuery(query) > sparql.setReturnFormat(JSON) > results = sparql.query().convert() > > print results > > > ------------------------------------------------------------------------------ > Keep Your Developer Skills Current with LearnDevNow! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-d2d > _______________________________________________ > sparql-wrapper-devel mailing list > spa...@li... > https://lists.sourceforge.net/lists/listinfo/sparql-wrapper-devel > -- Sergio Fernández CTIC - Technological Center Parque Científico y Tecnológico de Gijón C/ Ada Byron, 39 Edificio Centros Tecnológicos 33203 Gijón - Asturias - Spain Tel.: +34 984 29 12 12 Fax: +34 984 39 06 12 E-mail: ser...@fu... http://www.fundacionctic.org Privacy Policy: http://www.fundacionctic.org/privacidad |
From: Stuart A. <st...@ya...> - 2012-02-01 19:25:17
|
Hi, Cheers for sparql-wrapper - seem to be getting stuck at an early hurdle: When I run the program below I was expecting json, but get an XML Minidom object, this seems not quite right ? [python 2.7 on ubuntu oneiric ocelot] #!/bin/env python from SPARQLWrapper import SPARQLWrapper, JSON query = """ PREFIX geo: <http://www.geonames.org/ontology#> PREFIX wgs: <http://www.w3.org/2003/01/geo/wgs84_pos#> SELECT DISTINCT ?an ?lat ?long ?name ?population WHERE { ?a a mo:MusicArtist; foaf:based_near ?place; foaf:name ?an; foaf:made ?alb. # ?alb tags:taggedWithTag <http://dbtune.org/jamendo/tag/idm>. ?place geo:name ?name; geo:population ?population; wgs:lat ?lat; wgs:long ?long } ORDER BY ?population """ sparql = SPARQLWrapper("http://dbtune.org/jamendo/sparql/") sparql.setQuery(query) sparql.setReturnFormat(JSON) results = sparql.query().convert() print results |
From: Thomas K. <th...@kl...> - 2012-01-20 22:37:51
|
Thanks, Sergio. Let me know if any issues come up, or if I can help with testing etc. Best wishes, Thomas 2012/1/20 Sergio Fernández <ser...@fu...> > Dear Thomas, > > thanks so much for the proposed patch. I applied most of them on the > svn, tested with the recent RDFLib release. > > About the tests that currently failed, I guess there is no mandatory > result for those requests right now, so code is actaully not valid. > Anyway we are keeping them on the test suite for future testing. > > Hope next week we would publish a new release with these changes and > some others. > > Thanks for your collaboration! > > Cheers, > > > On 10 January 2012 21:45, Thomas Kluyver <ta...@gm...> wrote: > > The attached patch against trunk gets SPARQLWrapper working on Python 3, > > without sacrificing Python 2 compatibility (unlike the python3 branch > > currently in svn). 2to3 runs during installation to convert the package. > It > > also includes a few bits of code polishing. > > > > The development version of rdflib recently gained Python 3 compatibility > - > > you'll need to install this to test on Python 3: > > http://code.google.com/p/rdflib/source/checkout > > > > A couple of tests are currently failing (both on Python 2 and 3). These > are > > the tests making CONSTRUCT queries with JSON - in this case, the accept > > header for the request is set to "*/*" (_ALL), and the server returns a > type > > that apparently the tests aren't expecting (interestingly, the response > type > > is different for GET and POST requests). I'm not sure whether the code or > > the tests should be changed. > > > > Thanks, > > Thomas > > > > > ------------------------------------------------------------------------------ > > Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex > > infrastructure or vast IT resources to deliver seamless, secure access to > > virtual desktops. With this all-in-one solution, easily deploy virtual > > desktops for less than the cost of PCs and save 60% on VDI infrastructure > > costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox > > _______________________________________________ > > sparql-wrapper-devel mailing list > > spa...@li... > > https://lists.sourceforge.net/lists/listinfo/sparql-wrapper-devel > > > > > > -- > Sergio Fernández > CTIC - Technological Center > Parque Científico y Tecnológico de Gijón > C/ Ada Byron, 39 Edificio Centros Tecnológicos > 33203 Gijón - Asturias - Spain > Tel.: +34 984 29 12 12 > Fax: +34 984 39 06 12 > E-mail: ser...@fu... > http://www.fundacionctic.org > Privacy Policy: http://www.fundacionctic.org/privacidad > > > ------------------------------------------------------------------------------ > Keep Your Developer Skills Current with LearnDevNow! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-d2d > _______________________________________________ > sparql-wrapper-devel mailing list > spa...@li... > https://lists.sourceforge.net/lists/listinfo/sparql-wrapper-devel > |
From: Sergio F. <ser...@fu...> - 2012-01-20 21:24:22
|
Dear Thomas, thanks so much for the proposed patch. I applied most of them on the svn, tested with the recent RDFLib release. About the tests that currently failed, I guess there is no mandatory result for those requests right now, so code is actaully not valid. Anyway we are keeping them on the test suite for future testing. Hope next week we would publish a new release with these changes and some others. Thanks for your collaboration! Cheers, On 10 January 2012 21:45, Thomas Kluyver <ta...@gm...> wrote: > The attached patch against trunk gets SPARQLWrapper working on Python 3, > without sacrificing Python 2 compatibility (unlike the python3 branch > currently in svn). 2to3 runs during installation to convert the package. It > also includes a few bits of code polishing. > > The development version of rdflib recently gained Python 3 compatibility - > you'll need to install this to test on Python 3: > http://code.google.com/p/rdflib/source/checkout > > A couple of tests are currently failing (both on Python 2 and 3). These are > the tests making CONSTRUCT queries with JSON - in this case, the accept > header for the request is set to "*/*" (_ALL), and the server returns a type > that apparently the tests aren't expecting (interestingly, the response type > is different for GET and POST requests). I'm not sure whether the code or > the tests should be changed. > > Thanks, > Thomas > > ------------------------------------------------------------------------------ > Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex > infrastructure or vast IT resources to deliver seamless, secure access to > virtual desktops. With this all-in-one solution, easily deploy virtual > desktops for less than the cost of PCs and save 60% on VDI infrastructure > costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox > _______________________________________________ > sparql-wrapper-devel mailing list > spa...@li... > https://lists.sourceforge.net/lists/listinfo/sparql-wrapper-devel > -- Sergio Fernández CTIC - Technological Center Parque Científico y Tecnológico de Gijón C/ Ada Byron, 39 Edificio Centros Tecnológicos 33203 Gijón - Asturias - Spain Tel.: +34 984 29 12 12 Fax: +34 984 39 06 12 E-mail: ser...@fu... http://www.fundacionctic.org Privacy Policy: http://www.fundacionctic.org/privacidad |
From: judy <jh...@ri...> - 2011-09-29 13:04:25
|
Thanks again, Carlos. I'm new to python, it's good to know the rest of my questions aren't SPARQLWrapper-specific. Sent from my iPad On Sep 29, 2011, at 3:19 AM, Carlos Tejo <car...@fu...> wrote: > Dear Judy, > >> Thank you very much for your reply! I was able to copy your example and >> get a good result. > > Great! > >> Just one more question to extend the result set, if >> you don't mind. I have multiple >> OPTIONAL entities to select (about 10) and would like to know if it's >> possible to OR them: >> >> for result in results["results"]["bindings"]: >> if result.has_key("party"): >> print "* " + result["person"]["value"] + " ** " + >> result["party"]["value"] >> >> (OR) >> >> if result.has_key("party"): >> print "* " + result["person"]["value"] + " ** " + >> result["party"]["value"] >> >> else: >> print result["person"]["value"] >> >> and also -- is it possible to organize results to print them using %s >> while still using your if-then method? Here's how do it now: >> >> for result in results["results"]["bindings"]: >> project = result["project"]["value"].encode('utf-8') >> filename = result["filename"]["value"].encode('utf-8') >> url = result["url"]["value"].encode('utf-8') >> url = result["url"]["value"].encode('utf-8') >> keywords = result["keywords"]["value"].encode('utf-8') >> >> print "<p class=\"results\"><span>Project</span>: %s</p><p >> class=\"indent\"><span>Filename</span>: %s</p><p >> class=\"indent\"><span>URL</span>:<a href=\"%s\">%s</a></p><p >> class=\"indent\"><span>Keywords</span>: %s</p>" % \ >> (project,filename,url,url,keywords) > > That question is regarding how python works. I think that this > question would be answer better in other forums [1]. > >> Thank you for your SPARQLWrapper effort. > > Thank you for use it :) > > Cheers, > > Carlos Tejo > > [1] http://stackoverflow.com/questions/tagged/python > > -- > Carlos Tejo Alonso > CTIC-Centro Tecnológico > Parque Científico y Tecnológico de Gijón > c/ Ada Byron, 39 Edificio Centros Tecnológicos > 33203 Gijón - Asturias - Spain > Tel.: +34 984 29 12 12 > Fax: +34 984 39 06 12 > E-mail: car...@fu... > http://www.fundacionctic.org > Privacy Policy: http://www.fundacionctic.org/privacidad > > ------------------------------------------------------------------------------ > All the data continuously generated in your IT infrastructure contains a > definitive record of customers, application performance, security > threats, fraudulent activity and more. Splunk takes this data and makes > sense of it. Business sense. IT sense. Common sense. > http://p.sf.net/sfu/splunk-d2dcopy1 > _______________________________________________ > sparql-wrapper-devel mailing list > spa...@li... > https://lists.sourceforge.net/lists/listinfo/sparql-wrapper-devel |
From: Carlos T. <car...@fu...> - 2011-09-29 07:43:00
|
Dear Judy, > Thank you very much for your reply! I was able to copy your example and > get a good result. Great! > Just one more question to extend the result set, if > you don't mind. I have multiple > OPTIONAL entities to select (about 10) and would like to know if it's > possible to OR them: > > for result in results["results"]["bindings"]: > if result.has_key("party"): > print "* " + result["person"]["value"] + " ** " + > result["party"]["value"] > > (OR) > > if result.has_key("party"): > print "* " + result["person"]["value"] + " ** " + > result["party"]["value"] > > else: > print result["person"]["value"] > > and also -- is it possible to organize results to print them using %s > while still using your if-then method? Here's how do it now: > > for result in results["results"]["bindings"]: > project = result["project"]["value"].encode('utf-8') > filename = result["filename"]["value"].encode('utf-8') > url = result["url"]["value"].encode('utf-8') > url = result["url"]["value"].encode('utf-8') > keywords = result["keywords"]["value"].encode('utf-8') > > print "<p class=\"results\"><span>Project</span>: %s</p><p > class=\"indent\"><span>Filename</span>: %s</p><p > class=\"indent\"><span>URL</span>:<a href=\"%s\">%s</a></p><p > class=\"indent\"><span>Keywords</span>: %s</p>" % \ > (project,filename,url,url,keywords) That question is regarding how python works. I think that this question would be answer better in other forums [1]. > Thank you for your SPARQLWrapper effort. Thank you for use it :) Cheers, Carlos Tejo [1] http://stackoverflow.com/questions/tagged/python -- Carlos Tejo Alonso CTIC-Centro Tecnológico Parque Científico y Tecnológico de Gijón c/ Ada Byron, 39 Edificio Centros Tecnológicos 33203 Gijón - Asturias - Spain Tel.: +34 984 29 12 12 Fax: +34 984 39 06 12 E-mail: car...@fu... http://www.fundacionctic.org Privacy Policy: http://www.fundacionctic.org/privacidad |