Re: [Wikidata] Query fails with hy labels

2016-08-31 Thread Bináris
2016-09-01 7:38 GMT+02:00 Tobias Schönberg :

> This query does not work with Armenian labels, but works with en. Is that
> a bug?
>

Works fine for me. Firefox, Win7. Have you tried in different browsers?
___
Wikidata mailing list
Wikidata@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata


Re: [Wikidata] Query fails with hy labels

2016-08-31 Thread Stas Malyshev
Hi!

> https://query.wikidata.org/#%23%20Given%20names%20of%20all%20people%20born%20in%20Armenia%2C%20on%20Wikidata%0A%23defaultView%3ABubbleChart%0ASELECT%20%3FgivenName%20%3FgivenNameLabel%20%3Fcount%0AWHERE%0A%7B%0A%20%20%7B%0A%20%20%20%20SELECT%20%3FgivenName%20%28count%28%3Fitem%29%20as%20%3Fcount%29%0A%20%20%20%20WHERE%20%7B%0A%20%20%20%20%20%20%3Fitem%20wdt%3AP19%20%3Fplace%20.%0A%20%20%20%20%20%20%3Fplace%20wdt%3AP17%20wd%3AQ399%20.%0A%20%20%20%20%20%20%3Fitem%20wdt%3AP735%20%3FgivenName%20.%0A%20%20%20%20%7D%0A%20%20%20%20GROUP%20BY%20%3FgivenName%0A%20%20%7D%0A%20%20SERVICE%20wikibase%3Alabel%20%7B%20bd%3AserviceParam%20wikibase%3Alanguage%20%22hy%22%20%7D%0A%7D%0AORDER%20BY%20DESC%28%3Fcount%29

The query seems to work fine, but it looks like you've found a bug in
the GUI!

I would use "hy,en" as language parameter for now - this would work
around the bug.

-- 
Stas Malyshev
smalys...@wikimedia.org

___
Wikidata mailing list
Wikidata@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata


[Wikidata] Query fails with hy labels

2016-08-31 Thread Tobias Schönberg
This query does not work with Armenian labels, but works with en. Is that a
bug?

https://query.wikidata.org/#%23%20Given%20names%20of%20all%20people%20born%20in%20Armenia%2C%20on%20Wikidata%0A%23defaultView%3ABubbleChart%0ASELECT%20%3FgivenName%20%3FgivenNameLabel%20%3Fcount%0AWHERE%0A%7B%0A%20%20%7B%0A%20%20%20%20SELECT%20%3FgivenName%20%28count%28%3Fitem%29%20as%20%3Fcount%29%0A%20%20%20%20WHERE%20%7B%0A%20%20%20%20%20%20%3Fitem%20wdt%3AP19%20%3Fplace%20.%0A%20%20%20%20%20%20%3Fplace%20wdt%3AP17%20wd%3AQ399%20.%0A%20%20%20%20%20%20%3Fitem%20wdt%3AP735%20%3FgivenName%20.%0A%20%20%20%20%7D%0A%20%20%20%20GROUP%20BY%20%3FgivenName%0A%20%20%7D%0A%20%20SERVICE%20wikibase%3Alabel%20%7B%20bd%3AserviceParam%20wikibase%3Alanguage%20%22hy%22%20%7D%0A%7D%0AORDER%20BY%20DESC%28%3Fcount%29
___
Wikidata mailing list
Wikidata@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata


[Wikidata] Item Label from ItemId

2016-08-31 Thread Sumit Asthana
Hi,
I've written a code to scrape Wikidata dump following Wikidata Toolkit
examples.

In processItemDocument, I have extracted the target entityId for the
property 'instanceof' for the current item. However I'm unable to find a
way to get the label of the target entity given that I have the entityId,
but not the entityDocument? Help would be appreciated :)

-Sumit Asthana,
B.Tech Final Year,
Dept. of CSE,
IIT Patna
___
Wikidata mailing list
Wikidata@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata


Re: [Wikidata] List generation input

2016-08-31 Thread Scott MacLeod
Hi Lea, Jan, Gerrard and All,

In terms of "List Generation Input," would it make sense to add a basic
intro tutorial (in video perhaps - is there one even?) about how to create
a new large list in the first place in Wikipedia based on Wikidata /
Wikibase, as well as a possible sandbox for exploring this? (When I google
searched on "starting a long list in Wikipedia," I found this
https://en.wikipedia.org/wiki/Help:List - "This help page explains how to
create and edit lists on the English Wikipedia," which also doesn't mention
Wikidata).

Say, for example, I wanted to create a complete list of all languages in
Wikipedia beginning with Glottolog's CC list here -
http://glottolog.org/glottolog/language - with 7,943 entries in languages
(to create wiki schools for open teaching and learning in those languages
(using WUaS's Subject Template -
http://worlduniversity.wikia.com/wiki/SUBJECT_TEMPLATE), how would I begin
to do this?  (WUaS donated CC WUaS to Wikidata last autumn). (Similarly
with all species, beginning with a complete CC list, for example, and in
order to eventually co-develop, for example, an all-species' image
recognition application - hold your smartphone up to any species anywhere,
and identify it - and in any language), how would I begin to add such lists
to Wikipedia with Wikidata?

Shall I add a scenario D to this page -
https://www.wikidata.org/wiki/Wikidata:List_generation_input - with these
questions above?

Thank you, Scott

worlduniversityandschool.org



On Mon, Aug 29, 2016 at 9:55 PM, Gerard Meijssen 
wrote:

> Hoi,
> On the talk page I have added another.. I have used it frequently and, it
> is a list that is updated typically every year. They are awards.
> Thanks,
>  GerardM
>
> On 29 August 2016 at 11:29, Léa Lacroix  wrote:
>
>> Hello folks,
>>
>> The Wikidata development team is currently working on tools to improve *list
>> creation on Wikipedia*, based on Wikidata data.
>>
>> In order to understand what could be useful for you and why, we suggest
>> you* three examples of user scenarios
>> *, in
>> which you could recognize some of your current uses: how do you currently
>> edit some lists on Wikipedia, which tools or processes do you use, and what
>> can be improved.
>>
>> You can answer some short questions and add comments on our assumptions
>> on each related talk page. This input is very important to help us
>> understand how you edit the lists on Wikipedia, and what tools could be
>> useful for you.
>>
>> Thanks to all of you who will take a few minutes to answer our questions!
>>
>> Jan & Léa
>>
>> --
>> Léa Lacroix
>> Community Communication Manager for Wikidata
>>
>> Wikimedia Deutschland e.V.
>> Tempelhofer Ufer 23-24
>> 10963 Berlin
>> www.wikimedia.de
>>
>> Wikimedia Deutschland - Gesellschaft zur Förderung Freien Wissens e. V.
>>
>> Eingetragen im Vereinsregister des Amtsgerichts Berlin-Charlottenburg
>> unter der Nummer 23855 Nz. Als gemeinnützig anerkannt durch das Finanzamt
>> für Körperschaften I Berlin, Steuernummer 27/029/42207.
>>
>> ___
>> Wikidata mailing list
>> Wikidata@lists.wikimedia.org
>> https://lists.wikimedia.org/mailman/listinfo/wikidata
>>
>>
>
> ___
> Wikidata mailing list
> Wikidata@lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/wikidata
>
>


--
___
Wikidata mailing list
Wikidata@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata


Re: [Wikidata] People who died in 2015 who were Dutch

2016-08-31 Thread Dimitris Kontokostas
I am pasting the first few items for reference for those who cannot filter
the dump

 <
http://dbpedia.org/ontology/deathDate> "1876-06-04"^^<
http://www.w3.org/2001/XMLSchema#date> <
http://books.google.com/books?vid=ISBN978-1-59339-837-8> .
 
"8"^^ <
http://citation.dbpedia.org/hash/e5ccc3add53d0f5356a2391e0466d47fa5c6c8fe223ca78db746e04244baff50>
.
 <
http://dbpedia.org/property/deathDate> "c. AD 100"@en <
http://books.google.com/books?vid=ISBN1-889814-09-1> .
 <
http://dbpedia.org/ontology/deathDate> "1613-03-27"^^<
http://www.w3.org/2001/XMLSchema#date> <
http://www.antikvarium.hu/ant/book.php?konyv-cim=baranyai-decsi-janos-magyar-historiaja&ID=138745>
.
 <
http://dbpedia.org/ontology/deathDate> "1972-12-21"^^<
http://www.w3.org/2001/XMLSchema#date> <
https://web.archive.org/web/20120606161624/http://cs.nyu.edu/kandathi/thomas.html>
.
 <
http://dbpedia.org/ontology/deathDate> "1868-05-22"^^<
http://www.w3.org/2001/XMLSchema#date> <
http://citation.dbpedia.org/hash/048618db3e3be53963dc8294015e890b789d385cf0e3c146a5c156e72906dc70>
.
 
"0656-06-17"^^ <
http://citation.dbpedia.org/hash/f50b296af8a6217d44dd0ebb6cf5f4c7c2d2db72f11fe212cae5e33b2fa635f3>
.
 <
http://dbpedia.org/ontology/deathDate> "1803-04-07"^^<
http://www.w3.org/2001/XMLSchema#date> <
https://books.google.com.sa/books?id=xA0FYAAJ> .
 <
http://dbpedia.org/ontology/deathDate> "2003-12-29"^^<
http://www.w3.org/2001/XMLSchema#date> <
http://www.guardian.co.uk/news/2003/dec/30/guardianobituaries.artsobituaries>
.
 <
http://dbpedia.org/ontology/deathDate> "2013-05-27"^^<
http://www.w3.org/2001/XMLSchema#date> <
http://www.guardian.co.uk/uk/2013/may/27/dads-army-star-bill-pertwee-dies> .
 <
http://dbpedia.org/ontology/deathDate> "1782-12-07"^^<
http://www.w3.org/2001/XMLSchema#date> <
http://books.google.com/books?vid=ISBN8187879572> .

On Wed, Aug 31, 2016 at 2:19 PM, Dimitris Kontokostas 
wrote:

> yes taking the 1st entry for example
>  <
> http://dbpedia.org/ontology/deathDate> "1876-06-04"^^ org/2001/XMLSchema#date>  books?vid=ISBN978-1-59339-837-8> .
> is about https://www.wikidata.org/wiki/Q151500
>
> On Wed, Aug 31, 2016 at 2:09 PM, Gerard Meijssen <
> gerard.meijs...@gmail.com> wrote:
>
>> Hoi,
>> Did they have a date of death in Wikidata as well ?
>> Thanks,
>>  GerardM
>>
>> On 31 August 2016 at 11:53, Dimitris Kontokostas 
>> wrote:
>>
>>> Based on the other open related thread [1] there are references for the
>>> deathDate of 1950 people [2]
>>> I manually checked a random 5 pages and all had a reference "imported
>>> from Wikipedia" so maybe this is a good start
>>>
>>> (cc'ing wiki-cite after Dario's suggestion on the other thread)
>>>
>>> Best,
>>> Dimitris
>>>
>>> [1] https://lists.wikimedia.org/pipermail/wikidata/2016-Augu
>>> st/009447.html
>>> [2] curl http://downloads.dbpedia.org/temporary/citations/enwiki-2016
>>> 0305-citedFacts.tql.bz2 | bzcat | grep "deathDate"
>>>
>>>
>>> On Thu, Jun 4, 2015 at 3:00 PM, Markus Krötzsch <
>>> mar...@semantic-mediawiki.org> wrote:
>>>
 On 04.06.2015 12:17, Dimitris Kontokostas wrote:
 ...

>
> Another question: can DBpedia extract references from Wikipedia
> articles too? If this would be possible, it might be feasible to
> guess and suggest a reference (or a list of references). Especially
> with things like date of death, one would expect that references
> have a publication date very close to (but strictly after) the
> event, which could narrow down the choices very much.
>
>
> We don't extract them for now, although I think we could relatively
> easily. The problem in this case would be that we cannot associate
> references with facts. The DBpedia Information Extraction Framework is
> quite module and can be easily extended with new extractors but it is
> hard to make these extractors "talk to each other".
> So we could easily get something like the following
> dbp:A dbo:birthDate "..."
> dbp:A dbo:deahthDate "..."
> dbp:A dbo:reference dbp:r1 # and maybe " dbp:r1 something else"
> depending on the modeling
> dbp:A dbo:reference dbp:r2
>
> but not sure if this solves your problem
>

 Yes, I underst

Re: [Wikidata] People who died in 2015 who were Dutch

2016-08-31 Thread Dimitris Kontokostas
yes taking the 1st entry for example
 <
http://dbpedia.org/ontology/deathDate> "1876-06-04"^^<
http://www.w3.org/2001/XMLSchema#date> <
http://books.google.com/books?vid=ISBN978-1-59339-837-8> .
is about https://www.wikidata.org/wiki/Q151500

On Wed, Aug 31, 2016 at 2:09 PM, Gerard Meijssen 
wrote:

> Hoi,
> Did they have a date of death in Wikidata as well ?
> Thanks,
>  GerardM
>
> On 31 August 2016 at 11:53, Dimitris Kontokostas 
> wrote:
>
>> Based on the other open related thread [1] there are references for the
>> deathDate of 1950 people [2]
>> I manually checked a random 5 pages and all had a reference "imported
>> from Wikipedia" so maybe this is a good start
>>
>> (cc'ing wiki-cite after Dario's suggestion on the other thread)
>>
>> Best,
>> Dimitris
>>
>> [1] https://lists.wikimedia.org/pipermail/wikidata/2016-Augu
>> st/009447.html
>> [2] curl http://downloads.dbpedia.org/temporary/citations/enwiki-2016
>> 0305-citedFacts.tql.bz2 | bzcat | grep "deathDate"
>>
>>
>> On Thu, Jun 4, 2015 at 3:00 PM, Markus Krötzsch <
>> mar...@semantic-mediawiki.org> wrote:
>>
>>> On 04.06.2015 12:17, Dimitris Kontokostas wrote:
>>> ...
>>>

 Another question: can DBpedia extract references from Wikipedia
 articles too? If this would be possible, it might be feasible to
 guess and suggest a reference (or a list of references). Especially
 with things like date of death, one would expect that references
 have a publication date very close to (but strictly after) the
 event, which could narrow down the choices very much.


 We don't extract them for now, although I think we could relatively
 easily. The problem in this case would be that we cannot associate
 references with facts. The DBpedia Information Extraction Framework is
 quite module and can be easily extended with new extractors but it is
 hard to make these extractors "talk to each other".
 So we could easily get something like the following
 dbp:A dbo:birthDate "..."
 dbp:A dbo:deahthDate "..."
 dbp:A dbo:reference dbp:r1 # and maybe " dbp:r1 something else"
 depending on the modeling
 dbp:A dbo:reference dbp:r2

 but not sure if this solves your problem

>>>
>>> Yes, I understand that you can hardly get the association between
>>> extracted facts and references. My suggestion was to extract both
>>> independently and then to query for references that have a publication date
>>> close to a person's death so as to suggest them to users as a possible
>>> reference for the death-date fact. This would still require a manual check,
>>> since we cannot know if the guessed reference belongs to the date of death,
>>> but if it has a high precision it would be a worthwhile way of spending
>>> volunteer time to obtain confirmed references.
>>>
>>> At the same time, it might be one of the fastest ways to get sourced
>>> date of death into Wikidata, since news articles will usually appear before
>>> the major authority files are updated (so even if we get donations from
>>> them, some lag would remain). With such an extraction framework, one could
>>> establish a pipeline from Wikipedia to Wikidata.
>>>
>>> In the long run, references from authority files will become more
>>> valuable than news articles, because they are more long-lived.
>>>
>>> Best wishes,
>>>
>>> Markus
>>>
>>>
>>>
>>> ___
>>> Wikidata mailing list
>>> Wikidata@lists.wikimedia.org
>>> https://lists.wikimedia.org/mailman/listinfo/wikidata
>>>
>>
>>
>>
>> --
>> Kontokostas Dimitris
>>
>> ___
>> Wikidata mailing list
>> Wikidata@lists.wikimedia.org
>> https://lists.wikimedia.org/mailman/listinfo/wikidata
>>
>>
>
> ___
> Wikidata mailing list
> Wikidata@lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/wikidata
>
>


-- 
Kontokostas Dimitris
___
Wikidata mailing list
Wikidata@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata


Re: [Wikidata] People who died in 2015 who were Dutch

2016-08-31 Thread Gerard Meijssen
Hoi,
Did they have a date of death in Wikidata as well ?
Thanks,
 GerardM

On 31 August 2016 at 11:53, Dimitris Kontokostas  wrote:

> Based on the other open related thread [1] there are references for the
> deathDate of 1950 people [2]
> I manually checked a random 5 pages and all had a reference "imported from
> Wikipedia" so maybe this is a good start
>
> (cc'ing wiki-cite after Dario's suggestion on the other thread)
>
> Best,
> Dimitris
>
> [1] https://lists.wikimedia.org/pipermail/wikidata/2016-August/009447.html
> [2] curl http://downloads.dbpedia.org/temporary/citations/enwiki-
> 20160305-citedFacts.tql.bz2 | bzcat | grep "deathDate"
>
>
> On Thu, Jun 4, 2015 at 3:00 PM, Markus Krötzsch <
> mar...@semantic-mediawiki.org> wrote:
>
>> On 04.06.2015 12:17, Dimitris Kontokostas wrote:
>> ...
>>
>>>
>>> Another question: can DBpedia extract references from Wikipedia
>>> articles too? If this would be possible, it might be feasible to
>>> guess and suggest a reference (or a list of references). Especially
>>> with things like date of death, one would expect that references
>>> have a publication date very close to (but strictly after) the
>>> event, which could narrow down the choices very much.
>>>
>>>
>>> We don't extract them for now, although I think we could relatively
>>> easily. The problem in this case would be that we cannot associate
>>> references with facts. The DBpedia Information Extraction Framework is
>>> quite module and can be easily extended with new extractors but it is
>>> hard to make these extractors "talk to each other".
>>> So we could easily get something like the following
>>> dbp:A dbo:birthDate "..."
>>> dbp:A dbo:deahthDate "..."
>>> dbp:A dbo:reference dbp:r1 # and maybe " dbp:r1 something else"
>>> depending on the modeling
>>> dbp:A dbo:reference dbp:r2
>>>
>>> but not sure if this solves your problem
>>>
>>
>> Yes, I understand that you can hardly get the association between
>> extracted facts and references. My suggestion was to extract both
>> independently and then to query for references that have a publication date
>> close to a person's death so as to suggest them to users as a possible
>> reference for the death-date fact. This would still require a manual check,
>> since we cannot know if the guessed reference belongs to the date of death,
>> but if it has a high precision it would be a worthwhile way of spending
>> volunteer time to obtain confirmed references.
>>
>> At the same time, it might be one of the fastest ways to get sourced date
>> of death into Wikidata, since news articles will usually appear before the
>> major authority files are updated (so even if we get donations from them,
>> some lag would remain). With such an extraction framework, one could
>> establish a pipeline from Wikipedia to Wikidata.
>>
>> In the long run, references from authority files will become more
>> valuable than news articles, because they are more long-lived.
>>
>> Best wishes,
>>
>> Markus
>>
>>
>>
>> ___
>> Wikidata mailing list
>> Wikidata@lists.wikimedia.org
>> https://lists.wikimedia.org/mailman/listinfo/wikidata
>>
>
>
>
> --
> Kontokostas Dimitris
>
> ___
> Wikidata mailing list
> Wikidata@lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/wikidata
>
>
___
Wikidata mailing list
Wikidata@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata


Re: [Wikidata] People who died in 2015 who were Dutch

2016-08-31 Thread Dimitris Kontokostas
Based on the other open related thread [1] there are references for the
deathDate of 1950 people [2]
I manually checked a random 5 pages and all had a reference "imported from
Wikipedia" so maybe this is a good start

(cc'ing wiki-cite after Dario's suggestion on the other thread)

Best,
Dimitris

[1] https://lists.wikimedia.org/pipermail/wikidata/2016-August/009447.html
[2] curl
http://downloads.dbpedia.org/temporary/citations/enwiki-20160305-citedFacts.tql.bz2
| bzcat | grep "deathDate"


On Thu, Jun 4, 2015 at 3:00 PM, Markus Krötzsch <
mar...@semantic-mediawiki.org> wrote:

> On 04.06.2015 12:17, Dimitris Kontokostas wrote:
> ...
>
>>
>> Another question: can DBpedia extract references from Wikipedia
>> articles too? If this would be possible, it might be feasible to
>> guess and suggest a reference (or a list of references). Especially
>> with things like date of death, one would expect that references
>> have a publication date very close to (but strictly after) the
>> event, which could narrow down the choices very much.
>>
>>
>> We don't extract them for now, although I think we could relatively
>> easily. The problem in this case would be that we cannot associate
>> references with facts. The DBpedia Information Extraction Framework is
>> quite module and can be easily extended with new extractors but it is
>> hard to make these extractors "talk to each other".
>> So we could easily get something like the following
>> dbp:A dbo:birthDate "..."
>> dbp:A dbo:deahthDate "..."
>> dbp:A dbo:reference dbp:r1 # and maybe " dbp:r1 something else"
>> depending on the modeling
>> dbp:A dbo:reference dbp:r2
>>
>> but not sure if this solves your problem
>>
>
> Yes, I understand that you can hardly get the association between
> extracted facts and references. My suggestion was to extract both
> independently and then to query for references that have a publication date
> close to a person's death so as to suggest them to users as a possible
> reference for the death-date fact. This would still require a manual check,
> since we cannot know if the guessed reference belongs to the date of death,
> but if it has a high precision it would be a worthwhile way of spending
> volunteer time to obtain confirmed references.
>
> At the same time, it might be one of the fastest ways to get sourced date
> of death into Wikidata, since news articles will usually appear before the
> major authority files are updated (so even if we get donations from them,
> some lag would remain). With such an extraction framework, one could
> establish a pipeline from Wikipedia to Wikidata.
>
> In the long run, references from authority files will become more valuable
> than news articles, because they are more long-lived.
>
> Best wishes,
>
> Markus
>
>
>
> ___
> Wikidata mailing list
> Wikidata@lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/wikidata
>



-- 
Kontokostas Dimitris
___
Wikidata mailing list
Wikidata@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata