To get counts of usage you have to do something like

select ?pq count(*)  {
  ?p wikibase:qualifier ?pq
  ?x ?pq ?y
} groupby ?pq

(well, you also want the labels).

Fortunately the counts are available at the page Lydia mentioned.

peter


On 07/16/2018 03:45 AM, Vladimir Alexiev wrote:
> The list of props (4.9k) is returned quickly enough. Unfortunately it
> includes all props: each one has a wikibase:qualifier "just in case"
>
> select * {
>   ?p wikibase:qualifier ?pq
> }
>
> It is a pity that this one times out, since the filter merely needs to
> look for 1 statement instance, 4.9k times:
>
> select * {
>   ?p wikibase:qualifier ?pq
>   filter exists {?x ?pq ?y}
> } limit 100
>
> What query did you try?
>
> On Sat, Jul 14, 2018 at 2:40 AM, Peter F. Patel-Schneider
> <[email protected]> wrote:
>> I'm trying to get a good estimate of how often which qualifier predicate is 
>> used.
>>
>>
>> The obvious query times out, as expected, so I was trying to find a list of
>> predicates that are used as qualifiers so that I can craft a query for each 
>> of
>> them.  There is
>> https://www.wikidata.org/wiki/Wikidata:List_of_properties/Wikidata_qualifier
>> but that can't be trusted as it doesn't include start time (P580) or end time
>> (P582) which I expect to be the most common qualifier predicates.
>>
>>
>> So, I'm stumped.   Any suggestions?
>>
>>
>> peter
>>
>>
>>
>> _______________________________________________
>> Wikidata mailing list
>> [email protected]
>> https://lists.wikimedia.org/mailman/listinfo/wikidata
>
>


_______________________________________________
Wikidata mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikidata

Reply via email to