Re: [Wikidata] Wikidata Propbrowse

2016-02-23 Thread Info WorldUniversity
Tricky to support *all* languages how, Markus?

(CC WUaS in Wikidata seeks to be in all 7,943+ languages per Glottolog,
beyond Wikipedia's 300).

Thank you,
Scott


On Mon, Feb 15, 2016 at 4:04 AM, Markus Krötzsch <
mar...@semantic-mediawiki.org> wrote:

> On 15.02.2016 11:52, Hay (Husky) wrote:
>
>> On Mon, Feb 15, 2016 at 10:56 AM, André Costa 
>> wrote:
>>
>>> Would it be possible to set the language used to search with? Whilst I
>>> most
>>> often use English on Wikidata I'm sure a lot of people don't.
>>>
>> Not yet. The query takes quite a while, so it's done in realtime but
>> every 24 hours, and then it's compiled to the HTML list. Adding
>> multi-language support would be a bit more cumbersome. I'm open to
>> pull requests though ;)
>>
>
> Yes, as usual: it is easy to support *any* language, but tricky to support
> *all* languages.
>
>
>> Markus wrote:
>>
>>> I would just filter this in code; a more complex SPARQL query is just
>>> getting slower.
>>> Here is a little example Python script that gets all the data you need:
>>>
>> Ah, excellent. In that case i'll just do a query and filter in Python.
>>
>> I intend to use this in our upcoming new class/property browser as well.
>>> Maybe it would actually make sense to merge the two applications at some
>>> point
>>>
>> I hope the propbrowser will be made irrelevant by improvements in
>> other tools and the main Wikidata site ;)
>>
>
> We shall see. For now, it is certainly not obsolete. There might also be
> different tools with different specialisations.
>
> Markus
>
>
>
>
>> -- Hay
>>
>> ___
>> 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
>



-- 

- Scott MacLeod - Founder & President

- http://worlduniversityandschool.org

- 415 480 4577

- PO Box 442, (86 Ridgecrest Road), Canyon, CA 94516

- World University and School - like Wikipedia with best STEM-centric
OpenCourseWare - incorporated as a nonprofit university and school in
California, and is a U.S. 501 (c) (3) tax-exempt educational organization.


World University and School is sending you this because of your interest in
free, online, higher education. If you don't want to receive these, please
reply with 'unsubscribe' in the body of the email, leaving the subject line
intact. Thank you.
___
Wikidata mailing list
Wikidata@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata


Re: [Wikidata] Wikidata Propbrowse

2016-02-15 Thread Markus Krötzsch

On 15.02.2016 11:52, Hay (Husky) wrote:

On Mon, Feb 15, 2016 at 10:56 AM, André Costa  wrote:

Would it be possible to set the language used to search with? Whilst I most
often use English on Wikidata I'm sure a lot of people don't.

Not yet. The query takes quite a while, so it's done in realtime but
every 24 hours, and then it's compiled to the HTML list. Adding
multi-language support would be a bit more cumbersome. I'm open to
pull requests though ;)


Yes, as usual: it is easy to support *any* language, but tricky to 
support *all* languages.




Markus wrote:

I would just filter this in code; a more complex SPARQL query is just getting 
slower.
Here is a little example Python script that gets all the data you need:

Ah, excellent. In that case i'll just do a query and filter in Python.


I intend to use this in our upcoming new class/property browser as well.
Maybe it would actually make sense to merge the two applications at some point

I hope the propbrowser will be made irrelevant by improvements in
other tools and the main Wikidata site ;)


We shall see. For now, it is certainly not obsolete. There might also be 
different tools with different specialisations.


Markus




-- Hay

___
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] Wikidata Propbrowse

2016-02-15 Thread Hay (Husky)
On Mon, Feb 15, 2016 at 10:56 AM, André Costa  wrote:
> Would it be possible to set the language used to search with? Whilst I most
> often use English on Wikidata I'm sure a lot of people don't.
Not yet. The query takes quite a while, so it's done in realtime but
every 24 hours, and then it's compiled to the HTML list. Adding
multi-language support would be a bit more cumbersome. I'm open to
pull requests though ;)

Markus wrote:
> I would just filter this in code; a more complex SPARQL query is just getting 
> slower.
> Here is a little example Python script that gets all the data you need:
Ah, excellent. In that case i'll just do a query and filter in Python.

> I intend to use this in our upcoming new class/property browser as well.
> Maybe it would actually make sense to merge the two applications at some point
I hope the propbrowser will be made irrelevant by improvements in
other tools and the main Wikidata site ;)

-- Hay

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


Re: [Wikidata] Wikidata Propbrowse

2016-02-15 Thread André Costa
Would it be possible to set the language used to search with? Whilst I most
often use English on Wikidata I'm sure a lot of people don't.

/André
On 14 Feb 2016 22:03, "Markus Kroetzsch" 
wrote:

> On 14.02.2016 18:03, Hay (Husky) wrote:
>
>> On Sun, Feb 14, 2016 at 4:40 PM, Markus Kroetzsch
>>  wrote:
>>
>>> I suspect that https://query.wikidata.org can count how many times each
 property is used.

>>>
>>>
>>> Amazingly, you can (I was surprised):
>>>
>>>
>>> https://query.wikidata.org/#SELECT%20%3FanyProp%20%28count%28*%29%20as%20%3Fcount%29%0AWHERE%20{%0A%20%20%20%20%3Fpid%20%3FanyProp%20%3FsomeValue%20.%0A}%0AGROUP%20BY%20%3FanyProp%0AORDER%20BY%20DESC%28%3Fcount%29
>>> 
>>>
>> That's a really nice find! Any idea how to filter the query so you
>> only get the property statements?
>>
>
> I would just filter this in code; a more complex SPARQL query is just
> getting slower. Here is a little example Python script that gets all the
> data you need:
>
>
> https://github.com/Wikidata/WikidataClassBrowser/blob/master/helpers/python/fetchPropertyStatitsics.py
>
> I intend to use this in our upcoming new class/property browser as well.
> Maybe it would actually make sense to merge the two applications at some
> point (the focus of our tool are classes and their connection to
> properties, as in the existing Miga tool, but a property browser is an
> integral part of this).
>
> Markus
>
>
> ___
> 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] Wikidata Propbrowse

2016-02-15 Thread Gerhard Gonter
On Sun, Feb 14, 2016 at 4:04 PM, Hay (Husky)  wrote:

> considering number of times a property is used:i think that would be
> really interesting. Unfortunately, i don't know of a way to easily get
> a count of how many times a property is used.

Is this sill an issue or did a usable method come up later on in this thread?

Anyway, as an approximation, this can be taken from the weekly dumps.
My filter writes (amongst other this) a TSV file of these.  Last
week's top three were:


-[ RECORD 2127 ]--
prop | P21
def_cnt  | 1
use_cnt  | 2866032
datatype | wikibase-item
label_en | sex or gender
descr_en | Sexual identity of  subject. Main: male (Q6581097), female
(Q6581072), transgender female (Q1052281),  transgender male
(Q2449503). For animals, use male animal (Q44148), female animal
(Q43445). For groups of  same gender, use "subclass of" (P279)
-[ RECORD 2128 ]--
prop | P17
def_cnt  | 1
use_cnt  | 4055618
datatype | wikibase-item
label_en | country
descr_en | sovereign state of this item
-[ RECORD 2129 ]--
prop | P31
def_cnt  | 1
use_cnt  | 15152571
datatype | wikibase-item
label_en | instance of
descr_en | this item is a specific example and a member of that class.
Not to be confused with Property:P279 (subclass of).


GG

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


Re: [Wikidata] Wikidata Propbrowse

2016-02-14 Thread Markus Kroetzsch

On 14.02.2016 18:03, Hay (Husky) wrote:

On Sun, Feb 14, 2016 at 4:40 PM, Markus Kroetzsch
 wrote:

I suspect that https://query.wikidata.org can count how many times each
property is used.



Amazingly, you can (I was surprised):

https://query.wikidata.org/#SELECT%20%3FanyProp%20%28count%28*%29%20as%20%3Fcount%29%0AWHERE%20{%0A%20%20%20%20%3Fpid%20%3FanyProp%20%3FsomeValue%20.%0A}%0AGROUP%20BY%20%3FanyProp%0AORDER%20BY%20DESC%28%3Fcount%29

That's a really nice find! Any idea how to filter the query so you
only get the property statements?


I would just filter this in code; a more complex SPARQL query is just 
getting slower. Here is a little example Python script that gets all the 
data you need:


https://github.com/Wikidata/WikidataClassBrowser/blob/master/helpers/python/fetchPropertyStatitsics.py

I intend to use this in our upcoming new class/property browser as well. 
Maybe it would actually make sense to merge the two applications at some 
point (the focus of our tool are classes and their connection to 
properties, as in the existing Miga tool, but a property browser is an 
integral part of this).


Markus


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


Re: [Wikidata] Wikidata Propbrowse

2016-02-14 Thread Yuri Astrakhan
Well done! Absolutely love it!  I'm already using it to build SPARQL
queries for the wikidata visualizations [1].

[1]: http://en.wikipedia.beta.wmflabs.org/wiki/Sparql

On Sun, Feb 14, 2016 at 2:44 PM, Hay (Husky)  wrote:

> Hey everyone,
> it seems we're getting new properties every day. Currently there are
> over 2000 properties on Wikidata, and for me personally it's becoming
> a bit difficult to see the forest through the trees. Of course there
> are a couple of places where they are listed, but they're either a bit
> unwieldy ([1]), broken ([2]) or not detailed enough ([3]).
>
> Anyway, code is better than complaining so i hacked up a tool:
> https://tools.wmflabs.org/hay/propbrowse/
>
> You can filter the list by typing in a couple of characters, see
> either a detailed or compact list and it's possible to sort the list
> by different properties (id, label, example, etc.).
>
> This list is updated every night and code is available on Github ([4], [5])
>
> Let me know if you think is useful and if there's anything you're missing.
>
> -- Hay / Husky
>
> [1]: https://www.wikidata.org/wiki/Wikidata:List_of_properties
> [2]:
> https://www.wikidata.org/wiki/Special:MyLanguage/Wikidata:List_of_properties/Summary_table
> [3]: https://www.wikidata.org/wiki/Special:ListProperties
> [4]: https://github.com/hay/wiki-tools/tree/master/public_html/propbrowse
> [5]: https://github.com/hay/wiki-tools/tree/master/etc/wikidata-props
>
> ___
> 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] Wikidata Propbrowse

2016-02-14 Thread Markus Krötzsch

On 14.02.2016 16:04, Hay (Husky) wrote:

On Sun, Feb 14, 2016 at 3:53 PM, Jane Darnell  wrote:

Now I suddenly understand why we should have "properties for properties"  so
we can categorize these things. It would be nice to have a list of
"authority control"  properties and also the number of times a property is
used.

You can already do that in propbrowse. Just filter for 'unique
identifier' and you'll get all properties that are an instance of
Q19847637 (Wikidata property representing a unique identifier).

Considering number of times a property is used:i think that would be
really interesting. Unfortunately, i don't know of a way to easily get
a count of how many times a property is used. The 'linkshere'
functionality in the API doesn't give a count.


Filtering by usage count is something we already have in Miga. For 
example, here is a list of authority control properties that are used at 
least 1000 times on Wikidata:


http://tools.wmflabs.org/wikidata-exports/miga/#_cat=Properties/Related%20properties=VIAF%20identifier/Datatype=String/Items%20with%20such%20statements=1000%20-%20100

Currently requires Google Chrome or Opera to view. We are about to 
reimplement this application completely to make it use live data and be 
compatible with all browsers. Should be ready later this month.


Regarding the data source, we will use a mix of live data and cached 
precomputed data for more expensive statistics that you cannot query for 
every second.


Markus


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


Re: [Wikidata] Wikidata Propbrowse

2016-02-14 Thread Hay (Husky)
Awesome, thanks! :)

-- Hay

On Sun, Feb 14, 2016 at 1:36 PM, Yuri Astrakhan
 wrote:
> Well done! Absolutely love it!  I'm already using it to build SPARQL queries
> for the wikidata visualizations [1].
>
> [1]: http://en.wikipedia.beta.wmflabs.org/wiki/Sparql
>
> On Sun, Feb 14, 2016 at 2:44 PM, Hay (Husky)  wrote:
>>
>> Hey everyone,
>> it seems we're getting new properties every day. Currently there are
>> over 2000 properties on Wikidata, and for me personally it's becoming
>> a bit difficult to see the forest through the trees. Of course there
>> are a couple of places where they are listed, but they're either a bit
>> unwieldy ([1]), broken ([2]) or not detailed enough ([3]).
>>
>> Anyway, code is better than complaining so i hacked up a tool:
>> https://tools.wmflabs.org/hay/propbrowse/
>>
>> You can filter the list by typing in a couple of characters, see
>> either a detailed or compact list and it's possible to sort the list
>> by different properties (id, label, example, etc.).
>>
>> This list is updated every night and code is available on Github ([4],
>> [5])
>>
>> Let me know if you think is useful and if there's anything you're missing.
>>
>> -- Hay / Husky
>>
>> [1]: https://www.wikidata.org/wiki/Wikidata:List_of_properties
>> [2]:
>> https://www.wikidata.org/wiki/Special:MyLanguage/Wikidata:List_of_properties/Summary_table
>> [3]: https://www.wikidata.org/wiki/Special:ListProperties
>> [4]: https://github.com/hay/wiki-tools/tree/master/public_html/propbrowse
>> [5]: https://github.com/hay/wiki-tools/tree/master/etc/wikidata-props
>>
>> ___
>> 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] Wikidata Propbrowse

2016-02-14 Thread Jane Darnell
Now I suddenly understand why we should have "properties for properties"
 so we can categorize these things. It would be nice to have a list of
"authority control"  properties and also the number of times a property is
used.

Maybe there is a way to organize the metadata so a "property property"  is
unnecessary and another "category-like"  tool can be used to split these up
- maybe a hierarchy map?

On Sun, Feb 14, 2016 at 9:48 AM, Markus Krötzsch <
mar...@semantic-mediawiki.org> wrote:

> Very nice. Showing the shortened property classifications under "use" is a
> very good idea!
>
> Markus
>
> On 14.02.2016 15:11, Jane Darnell wrote:
>
>> Wow Hay, this is super useful
>>
>> On Sun, Feb 14, 2016 at 8:50 AM, Hay (Husky) > > wrote:
>>
>> Awesome, thanks! :)
>>
>> -- Hay
>>
>> On Sun, Feb 14, 2016 at 1:36 PM, Yuri Astrakhan
>> > wrote:
>>  > Well done! Absolutely love it!  I'm already using it to build
>> SPARQL queries
>>  > for the wikidata visualizations [1].
>>  >
>>  > [1]: http://en.wikipedia.beta.wmflabs.org/wiki/Sparql
>>  >
>>  > On Sun, Feb 14, 2016 at 2:44 PM, Hay (Husky) > > wrote:
>>  >>
>>  >> Hey everyone,
>>  >> it seems we're getting new properties every day. Currently there
>> are
>>  >> over 2000 properties on Wikidata, and for me personally it's
>> becoming
>>  >> a bit difficult to see the forest through the trees. Of course
>> there
>>  >> are a couple of places where they are listed, but they're either
>> a bit
>>  >> unwieldy ([1]), broken ([2]) or not detailed enough ([3]).
>>  >>
>>  >> Anyway, code is better than complaining so i hacked up a tool:
>>  >> https://tools.wmflabs.org/hay/propbrowse/
>>  >>
>>  >> You can filter the list by typing in a couple of characters, see
>>  >> either a detailed or compact list and it's possible to sort the
>> list
>>  >> by different properties (id, label, example, etc.).
>>  >>
>>  >> This list is updated every night and code is available on Github
>> ([4],
>>  >> [5])
>>  >>
>>  >> Let me know if you think is useful and if there's anything
>> you're missing.
>>  >>
>>  >> -- Hay / Husky
>>  >>
>>  >> [1]: https://www.wikidata.org/wiki/Wikidata:List_of_properties
>>  >> [2]:
>>  >>
>>
>> https://www.wikidata.org/wiki/Special:MyLanguage/Wikidata:List_of_properties/Summary_table
>>  >> [3]: https://www.wikidata.org/wiki/Special:ListProperties
>>  >> [4]:
>> https://github.com/hay/wiki-tools/tree/master/public_html/propbrowse
>>  >> [5]:
>> https://github.com/hay/wiki-tools/tree/master/etc/wikidata-props
>>  >>
>>  >> ___
>>  >> 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
>>
>>
>>
>>
>> ___
>> 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] Wikidata Propbrowse

2016-02-14 Thread Yuri Astrakhan
I suspect that https://query.wikidata.org can count how many times each
property is used.
On Feb 14, 2016 17:54, "Jane Darnell"  wrote:

> Now I suddenly understand why we should have "properties for properties"
>  so we can categorize these things. It would be nice to have a list of
> "authority control"  properties and also the number of times a property is
> used.
>
> Maybe there is a way to organize the metadata so a "property property"  is
> unnecessary and another "category-like"  tool can be used to split these up
> - maybe a hierarchy map?
>
> On Sun, Feb 14, 2016 at 9:48 AM, Markus Krötzsch <
> mar...@semantic-mediawiki.org> wrote:
>
>> Very nice. Showing the shortened property classifications under "use" is
>> a very good idea!
>>
>> Markus
>>
>> On 14.02.2016 15:11, Jane Darnell wrote:
>>
>>> Wow Hay, this is super useful
>>>
>>> On Sun, Feb 14, 2016 at 8:50 AM, Hay (Husky) >> > wrote:
>>>
>>> Awesome, thanks! :)
>>>
>>> -- Hay
>>>
>>> On Sun, Feb 14, 2016 at 1:36 PM, Yuri Astrakhan
>>> > wrote:
>>>  > Well done! Absolutely love it!  I'm already using it to build
>>> SPARQL queries
>>>  > for the wikidata visualizations [1].
>>>  >
>>>  > [1]: http://en.wikipedia.beta.wmflabs.org/wiki/Sparql
>>>  >
>>>  > On Sun, Feb 14, 2016 at 2:44 PM, Hay (Husky) >> > wrote:
>>>  >>
>>>  >> Hey everyone,
>>>  >> it seems we're getting new properties every day. Currently there
>>> are
>>>  >> over 2000 properties on Wikidata, and for me personally it's
>>> becoming
>>>  >> a bit difficult to see the forest through the trees. Of course
>>> there
>>>  >> are a couple of places where they are listed, but they're either
>>> a bit
>>>  >> unwieldy ([1]), broken ([2]) or not detailed enough ([3]).
>>>  >>
>>>  >> Anyway, code is better than complaining so i hacked up a tool:
>>>  >> https://tools.wmflabs.org/hay/propbrowse/
>>>  >>
>>>  >> You can filter the list by typing in a couple of characters, see
>>>  >> either a detailed or compact list and it's possible to sort the
>>> list
>>>  >> by different properties (id, label, example, etc.).
>>>  >>
>>>  >> This list is updated every night and code is available on Github
>>> ([4],
>>>  >> [5])
>>>  >>
>>>  >> Let me know if you think is useful and if there's anything
>>> you're missing.
>>>  >>
>>>  >> -- Hay / Husky
>>>  >>
>>>  >> [1]: https://www.wikidata.org/wiki/Wikidata:List_of_properties
>>>  >> [2]:
>>>  >>
>>>
>>> https://www.wikidata.org/wiki/Special:MyLanguage/Wikidata:List_of_properties/Summary_table
>>>  >> [3]: https://www.wikidata.org/wiki/Special:ListProperties
>>>  >> [4]:
>>> https://github.com/hay/wiki-tools/tree/master/public_html/propbrowse
>>>  >> [5]:
>>> https://github.com/hay/wiki-tools/tree/master/etc/wikidata-props
>>>  >>
>>>  >> ___
>>>  >> Wikidata mailing list
>>>  >> Wikidata@lists.wikimedia.org >> 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
>>>
>>>
>>>
>>>
>>> ___
>>> 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
>
>
___
Wikidata mailing list
Wikidata@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata


Re: [Wikidata] Wikidata Propbrowse

2016-02-14 Thread Hay (Husky)
On Sun, Feb 14, 2016 at 3:53 PM, Jane Darnell  wrote:
> Now I suddenly understand why we should have "properties for properties"  so
> we can categorize these things. It would be nice to have a list of
> "authority control"  properties and also the number of times a property is
> used.
You can already do that in propbrowse. Just filter for 'unique
identifier' and you'll get all properties that are an instance of
Q19847637 (Wikidata property representing a unique identifier).

Considering number of times a property is used:i think that would be
really interesting. Unfortunately, i don't know of a way to easily get
a count of how many times a property is used. The 'linkshere'
functionality in the API doesn't give a count.

-- Hay

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


Re: [Wikidata] Wikidata Propbrowse

2016-02-14 Thread Jane Darnell
Wow Hay, this is super useful

On Sun, Feb 14, 2016 at 8:50 AM, Hay (Husky)  wrote:

> Awesome, thanks! :)
>
> -- Hay
>
> On Sun, Feb 14, 2016 at 1:36 PM, Yuri Astrakhan
>  wrote:
> > Well done! Absolutely love it!  I'm already using it to build SPARQL
> queries
> > for the wikidata visualizations [1].
> >
> > [1]: http://en.wikipedia.beta.wmflabs.org/wiki/Sparql
> >
> > On Sun, Feb 14, 2016 at 2:44 PM, Hay (Husky)  wrote:
> >>
> >> Hey everyone,
> >> it seems we're getting new properties every day. Currently there are
> >> over 2000 properties on Wikidata, and for me personally it's becoming
> >> a bit difficult to see the forest through the trees. Of course there
> >> are a couple of places where they are listed, but they're either a bit
> >> unwieldy ([1]), broken ([2]) or not detailed enough ([3]).
> >>
> >> Anyway, code is better than complaining so i hacked up a tool:
> >> https://tools.wmflabs.org/hay/propbrowse/
> >>
> >> You can filter the list by typing in a couple of characters, see
> >> either a detailed or compact list and it's possible to sort the list
> >> by different properties (id, label, example, etc.).
> >>
> >> This list is updated every night and code is available on Github ([4],
> >> [5])
> >>
> >> Let me know if you think is useful and if there's anything you're
> missing.
> >>
> >> -- Hay / Husky
> >>
> >> [1]: https://www.wikidata.org/wiki/Wikidata:List_of_properties
> >> [2]:
> >>
> https://www.wikidata.org/wiki/Special:MyLanguage/Wikidata:List_of_properties/Summary_table
> >> [3]: https://www.wikidata.org/wiki/Special:ListProperties
> >> [4]:
> https://github.com/hay/wiki-tools/tree/master/public_html/propbrowse
> >> [5]: https://github.com/hay/wiki-tools/tree/master/etc/wikidata-props
> >>
> >> ___
> >> 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
>
___
Wikidata mailing list
Wikidata@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata


Re: [Wikidata] Wikidata Propbrowse

2016-02-14 Thread Markus Krötzsch
Very nice. Showing the shortened property classifications under "use" is 
a very good idea!


Markus

On 14.02.2016 15:11, Jane Darnell wrote:

Wow Hay, this is super useful

On Sun, Feb 14, 2016 at 8:50 AM, Hay (Husky) > wrote:

Awesome, thanks! :)

-- Hay

On Sun, Feb 14, 2016 at 1:36 PM, Yuri Astrakhan
> wrote:
 > Well done! Absolutely love it!  I'm already using it to build
SPARQL queries
 > for the wikidata visualizations [1].
 >
 > [1]: http://en.wikipedia.beta.wmflabs.org/wiki/Sparql
 >
 > On Sun, Feb 14, 2016 at 2:44 PM, Hay (Husky) > wrote:
 >>
 >> Hey everyone,
 >> it seems we're getting new properties every day. Currently there are
 >> over 2000 properties on Wikidata, and for me personally it's
becoming
 >> a bit difficult to see the forest through the trees. Of course there
 >> are a couple of places where they are listed, but they're either
a bit
 >> unwieldy ([1]), broken ([2]) or not detailed enough ([3]).
 >>
 >> Anyway, code is better than complaining so i hacked up a tool:
 >> https://tools.wmflabs.org/hay/propbrowse/
 >>
 >> You can filter the list by typing in a couple of characters, see
 >> either a detailed or compact list and it's possible to sort the list
 >> by different properties (id, label, example, etc.).
 >>
 >> This list is updated every night and code is available on Github
([4],
 >> [5])
 >>
 >> Let me know if you think is useful and if there's anything
you're missing.
 >>
 >> -- Hay / Husky
 >>
 >> [1]: https://www.wikidata.org/wiki/Wikidata:List_of_properties
 >> [2]:
 >>

https://www.wikidata.org/wiki/Special:MyLanguage/Wikidata:List_of_properties/Summary_table
 >> [3]: https://www.wikidata.org/wiki/Special:ListProperties
 >> [4]:
https://github.com/hay/wiki-tools/tree/master/public_html/propbrowse
 >> [5]:
https://github.com/hay/wiki-tools/tree/master/etc/wikidata-props
 >>
 >> ___
 >> 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




___
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] Wikidata Propbrowse

2016-02-14 Thread Markus Kroetzsch

On 14.02.2016 16:06, Yuri Astrakhan wrote:

I suspect that https://query.wikidata.org can count how many times each
property is used.


Amazingly, you can (I was surprised):

https://query.wikidata.org/#SELECT%20%3FanyProp%20%28count%28*%29%20as%20%3Fcount%29%0AWHERE%20{%0A%20%20%20%20%3Fpid%20%3FanyProp%20%3FsomeValue%20.%0A}%0AGROUP%20BY%20%3FanyProp%0AORDER%20BY%20DESC%28%3Fcount%29

This shows the counts of *all* 8000+ properties used in the RDF store. 
Looking for the appropriate URIs, you can read off each Wikidata 
property's uses in statements, quantifiers, and references individually. 
I am impressed by how well BlazeGraph is handling this.


Markus



On Feb 14, 2016 17:54, "Jane Darnell" > wrote:

Now I suddenly understand why we should have "properties for
properties"  so we can categorize these things. It would be nice to
have a list of "authority control"  properties and also the number
of times a property is used.

Maybe there is a way to organize the metadata so a "property
property"  is unnecessary and another "category-like"  tool can be
used to split these up - maybe a hierarchy map?

On Sun, Feb 14, 2016 at 9:48 AM, Markus Krötzsch
> wrote:

Very nice. Showing the shortened property classifications under
"use" is a very good idea!

Markus

On 14.02.2016 15:11, Jane Darnell wrote:

Wow Hay, this is super useful

On Sun, Feb 14, 2016 at 8:50 AM, Hay (Husky)

>> wrote:

 Awesome, thanks! :)

 -- Hay

 On Sun, Feb 14, 2016 at 1:36 PM, Yuri Astrakhan
 
>> wrote:
  > Well done! Absolutely love it!  I'm already using it
to build
 SPARQL queries
  > for the wikidata visualizations [1].
  >
  > [1]: http://en.wikipedia.beta.wmflabs.org/wiki/Sparql
  >
  > On Sun, Feb 14, 2016 at 2:44 PM, Hay (Husky)

 >> wrote:
  >>
  >> Hey everyone,
  >> it seems we're getting new properties every day.
Currently there are
  >> over 2000 properties on Wikidata, and for me
personally it's
 becoming
  >> a bit difficult to see the forest through the
trees. Of course there
  >> are a couple of places where they are listed, but
they're either
 a bit
  >> unwieldy ([1]), broken ([2]) or not detailed enough
([3]).
  >>
  >> Anyway, code is better than complaining so i hacked
up a tool:
  >> https://tools.wmflabs.org/hay/propbrowse/
  >>
  >> You can filter the list by typing in a couple of
characters, see
  >> either a detailed or compact list and it's possible
to sort the list
  >> by different properties (id, label, example, etc.).
  >>
  >> This list is updated every night and code is
available on Github
 ([4],
  >> [5])
  >>
  >> Let me know if you think is useful and if there's
anything
 you're missing.
  >>
  >> -- Hay / Husky
  >>
  >> [1]:
https://www.wikidata.org/wiki/Wikidata:List_of_properties
  >> [2]:
  >>

https://www.wikidata.org/wiki/Special:MyLanguage/Wikidata:List_of_properties/Summary_table
  >> [3]:
https://www.wikidata.org/wiki/Special:ListProperties
  >> [4]:
https://github.com/hay/wiki-tools/tree/master/public_html/propbrowse
  >> [5]:
https://github.com/hay/wiki-tools/tree/master/etc/wikidata-props
  >>
  >> ___
  >> Wikidata mailing list
  >> Wikidata@lists.wikimedia.org

>
  >> https://lists.wikimedia.org/mailman/listinfo/wikidata
  >
  

Re: [Wikidata] Wikidata Propbrowse

2016-02-14 Thread Hay (Husky)
On Sun, Feb 14, 2016 at 4:40 PM, Markus Kroetzsch
 wrote:
>> I suspect that https://query.wikidata.org can count how many times each
>> property is used.
>
>
> Amazingly, you can (I was surprised):
>
> https://query.wikidata.org/#SELECT%20%3FanyProp%20%28count%28*%29%20as%20%3Fcount%29%0AWHERE%20{%0A%20%20%20%20%3Fpid%20%3FanyProp%20%3FsomeValue%20.%0A}%0AGROUP%20BY%20%3FanyProp%0AORDER%20BY%20DESC%28%3Fcount%29
That's a really nice find! Any idea how to filter the query so you
only get the property statements?

-- Hay

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