Re: [Wikidata] Wikidata - short biographies

2016-02-02 Thread Hampton Snowball
I was able to semi-successfully use RDFSlice with the dump using Windows command prompt. Only, maybe because it's a 5gb dump file I am getting java errors line after line as it goes through the file (java.lang.StringIndexOutOfBoundsException: String index out of range - 1. Sometimes the last

Re: [Wikidata] Wikidata - short biographies

2016-02-02 Thread Hampton Snowball
Okay, thanks! On Tue, Feb 2, 2016 at 8:55 AM, Edgard Marx wrote: > Hey, > > I recommend you to not post doubts related with third part systems or > softwares that are not related with Wikidata or Wikimida here. > In case of RDFSlice there is a page called issues

Re: [Wikidata] Wikidata - short biographies

2016-02-02 Thread Edgard Marx
Hey, I recommend you to not post doubts related with third part systems or softwares that are not related with Wikidata or Wikimida here. In case of RDFSlice there is a page called issues ( https://bitbucket.org/emarx/rdfslice/issues), where you can open an issue and someone will answer you. I

Re: [Wikidata] Wikidata - short biographies

2016-02-01 Thread Hampton Snowball
Thanks. I only plan on using a query to extract from all english wikidata "articles" or all articles though anyway, hopefully the other queries will work. On Mon, Feb 1, 2016 at 4:33 PM, Stas Malyshev wrote: > Hi! > > > *The first one, which seems to be only for 1

Re: [Wikidata] Wikidata - short biographies

2016-02-01 Thread Hampton Snowball
Sorry if this is a dump question (I'm not a developer). To run the command on the rdfslice program in mentions (" java -jar rdfslice.jar -source | -patterns -out -order -debug ), can this be done with windows command prompt? or do I need some special developer version of java/console? Thanks

Re: [Wikidata] Wikidata - short biographies

2016-02-01 Thread Hampton Snowball
Of course I meant sorry if this is a dumb question :) On Mon, Feb 1, 2016 at 7:13 PM, Hampton Snowball wrote: > Sorry if this is a dump question (I'm not a developer). To run the > command on the rdfslice program in mentions (" java -jar rdfslice.jar > -source |

Re: [Wikidata] Wikidata - short biographies

2016-02-01 Thread Edgard Marx
Yep, Please notes that RDFSlice will take the subset. That is, the triples that contain the property that you are looking for. Here go three examples of SPARQL queries: ps: you can try them here https://query.wikidata.org. ** For your example,* SELECT * WHERE {

Re: [Wikidata] Wikidata - short biographies

2016-02-01 Thread Hampton Snowball
Thank you. This will give me the bios, however, I still want the associated wikipedia links. Previously someone had given me a query that included the english wikipedia along with another property. You can see it below: PREFIX wd: PREFIX wdt:

Re: [Wikidata] Wikidata - short biographies

2016-02-01 Thread Edgard Marx
Wikidata seems to be highly queried by now, it is a public endoint. However, the query bellow might work in RDFSlice: ps: notice that the subject variable (?article) contains the wikipedia link and it will be extracted. SELECT * WHERE { ?article ?o .

Re: [Wikidata] Wikidata - short biographies

2016-01-31 Thread Gerard Meijssen
Hoi, Magnus created automated descriptions they are a start. Your only problem is that they are not using sparql Thanks, GerardM On 31 January 2016 at 19:43, Hampton Snowball wrote: > Hello, > > I am interested in a subset of wikidata and I am trying to find the

Re: [Wikidata] Wikidata - short biographies

2016-01-31 Thread Edgard Marx
Hey, you can simple use RDFSlice (https://bitbucket.org/emarx/rdfslice/overview) directly on the dump file ( https://dumps.wikimedia.org/wikidatawiki/entities/20160125/) best, Edgard On Sun, Jan 31, 2016 at 7:43 PM, Hampton Snowball wrote: > Hello, > > I am

Re: [Wikidata] Wikidata - short biographies

2016-01-31 Thread Edgard Marx
Yep, One more reason to use RDFSlice ;-), thnks On Mon, Feb 1, 2016 at 7:25 AM, Stas Malyshev wrote: > Hi! > > > > > ** For all English bios:* > > > > SELECT * > > WHERE > > { > >?s ?o . > >filter(lang(?o)='en'). > > } > >

Re: [Wikidata] Wikidata - short biographies

2016-01-31 Thread Stas Malyshev
Hi! > > ** For all English bios:* > > SELECT * > WHERE > { >?s ?o . >filter(lang(?o)='en'). > } Please don't run this on query.wikidata.org though. Please add LIMIT. Otherwise you'd be trying to download several millions of data items, which would

Re: [Wikidata] Wikidata - short biographies

2016-01-31 Thread Hampton Snowball
Thanks. I see it requires constructing a query to only extract the data you want. E.g. the graph pattern: - desired query, e.g. "SELECT * WHERE {?s ?p ?o}" or graph pattern e.g. "{?s ?p ?o}" Since I don't know about constructing queries, would you be able to tell me what would be the proper