Re: [Dbpedia-discussion] Proxy identification

2013-05-03 Thread Julien Plu
Done ! See the pull request that I submited. Best. Julien. 2013/5/2 Julien Plu > I will port your code in Scala :-) > > Best. > > Julien. > > > 2013/5/2 Jona Christopher Sahnwaldt > >> On 2 May 2013 20:58, Julien Plu >> wrote: >> > Ok, so if I well understood what you mean is writing this i

Re: [Dbpedia-discussion] Proxy identification

2013-05-02 Thread Julien Plu
I will port your code in Scala :-) Best. Julien. 2013/5/2 Jona Christopher Sahnwaldt > On 2 May 2013 20:58, Julien Plu > wrote: > > Ok, so if I well understood what you mean is writing this inside the > > dump/pom.xml : > > > > -Dhttp.proxyHost=proxy.server.com > > -Dhttp.proxyPort=80 > > -D

Re: [Dbpedia-discussion] Proxy identification

2013-05-02 Thread Jona Christopher Sahnwaldt
On 2 May 2013 20:58, Julien Plu wrote: > Ok, so if I well understood what you mean is writing this inside the > dump/pom.xml : > > -Dhttp.proxyHost=proxy.server.com > -Dhttp.proxyPort=80 > -Dhttp.proxyUser=foo > -Dhttp.proxyPassword=bar > > And retrieve the value of http.proxyUser and http.proxyPa

Re: [Dbpedia-discussion] Proxy identification

2013-05-02 Thread Julien Plu
Ok, so if I well understood what you mean is writing this inside the dump/pom.xml : -Dhttp.proxyHost=proxy.server.com -Dhttp.proxyPort=80 -Dhttp.proxyUser=foo -Dhttp.proxyPassword=bar And retrieve the value of http.proxyUser and http.proxyPassword with this : String user = System.getProperty("ht

Re: [Dbpedia-discussion] Proxy identification

2013-05-02 Thread Jona Christopher Sahnwaldt
On 2 May 2013 17:34, Julien Plu wrote: >>Use the system properties http.proxyUser and http.proxyPassword. >>Usually, system properties are problematic, but in this case, they're >>ok: 1. we use system properties for the proxy settings anyway, 2. we >>don't have to change the download config, and 3

Re: [Dbpedia-discussion] Proxy identification

2013-05-02 Thread Julien Plu
>Use the system properties http.proxyUser and http.proxyPassword. >Usually, system properties are problematic, but in this case, they're >ok: 1. we use system properties for the proxy settings anyway, 2. we >don't have to change the download config, and 3. we can more easily >reuse the solution els

Re: [Dbpedia-discussion] Proxy identification

2013-05-02 Thread Jona Christopher Sahnwaldt
P.S.: ProxyAuthentication is a good class name as well. :-) On 2 May 2013 17:04, Jona Christopher Sahnwaldt wrote: > On 2 May 2013 12:55, Julien Plu wrote: >> Ok, now that works like a charm. I added just two properties inside >> "download.minimal.properties" file which are : "user" and "passwor

Re: [Dbpedia-discussion] Proxy identification

2013-05-02 Thread Jona Christopher Sahnwaldt
On 2 May 2013 12:55, Julien Plu wrote: > Ok, now that works like a charm. I added just two properties inside > "download.minimal.properties" file which are : "user" and "password" and the > authentication is made only is these parameters are set. And I created a > class "ProxyAuthentication.scala"

Re: [Dbpedia-discussion] Proxy identification

2013-05-02 Thread Julien Plu
Ok, now that works like a charm. I added just two properties inside "download.minimal.properties" file which are : "user" and "password" and the authentication is made only is these parameters are set. And I created a class "ProxyAuthentication.scala". I have to do the same thing for "Extraction.s

Re: [Dbpedia-discussion] Proxy identification

2013-04-30 Thread Julien Plu
That's a really good idea ! I will do it thursday because now I finished my working day and tomorrow is a national day off in France. I have also try to solve some bugs in the extraction with separators. Best. Julien. 2013/4/30 Jona Christopher Sahnwaldt > > https://github.com/dbpedia/extrac

Re: [Dbpedia-discussion] Proxy identification

2013-04-30 Thread Jona Christopher Sahnwaldt
https://github.com/dbpedia/extraction-framework/blob/master/dump/src/main/scala/org/dbpedia/extraction/dump/download/Download.scala It would be cool if you send a pull request when you are done! As a first step, you can simply copy & paste the code from SO and hard-code your settings to test if th

Re: [Dbpedia-discussion] Proxy identification

2013-04-30 Thread Julien Plu
Ok so apparently it's normal that it's doesn't works with command line, I have to modify the main. So which file contains the main function ? Best. Julien. 2013/4/30 Jona Christopher Sahnwaldt > Maybe you have to tweak the code a bit: > > http://stackoverflow.com/questions/1626549/authenticat

Re: [Dbpedia-discussion] Proxy identification

2013-04-30 Thread Jona Christopher Sahnwaldt
Maybe you have to tweak the code a bit: http://stackoverflow.com/questions/1626549/authenticated-http-proxy-with-java On 30 April 2013 19:28, Julien Plu wrote: > Doesn't works :-( > > Best > > Julien. > > > 2013/4/30 Jona Christopher Sahnwaldt >> >> Hi Julien, >> >> try adding the settings for h

Re: [Dbpedia-discussion] Proxy identification

2013-04-30 Thread Julien Plu
Doesn't works :-( Best Julien. 2013/4/30 Jona Christopher Sahnwaldt > Hi Julien, > > try adding the settings for https as well, e.g. > > -Dhttps.proxyHost=myproxyhost > > Might help, I'm not sure. > > JC > > On 30 April 2013 16:57, Julien Plu > wrote: > > Hi, > > > > I try to use the extract

Re: [Dbpedia-discussion] Proxy identification

2013-04-30 Thread Jona Christopher Sahnwaldt
Hi Julien, try adding the settings for https as well, e.g. -Dhttps.proxyHost=myproxyhost Might help, I'm not sure. JC On 30 April 2013 16:57, Julien Plu wrote: > Hi, > > I try to use the extraction framework on my Windows machine, but I fall on a > 407 http proxy authentication error during t

[Dbpedia-discussion] Proxy identification

2013-04-30 Thread Julien Plu
Hi, I try to use the extraction framework on my Windows machine, but I fall on a 407 http proxy authentication error during the dumps download. I put these lines inside the dump/pom.xml : -Dhttp.proxyHost=myproxyhost -Dhttp.proxyPort=port -Dhttp.proxyUser=myuser -Dhttp.proxyPassword=mypass Even