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
2018-07-14 1:40 GMT+02:00 Peter F. Patel-Schneider pfpschneider@gmail.com:
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.
IIRC this is the complete list of property that are *only* qualifiers
(that's why P580 and P580 are not in this list).
Cdlt, ~nicolas
That can't be the case as some of the properties there have non-trivial usage as statement properties.
For example, https://tools.wmflabs.org/sqid/#/browse?type=properties says that applies to part is uses 121 times as a statement property.
peter
On 07/14/2018 01:16 AM, Nicolas VIGNERON wrote:
2018-07-14 1:40 GMT+02:00 Peter F. Patel-Schneider <pfpschneider@gmail.com mailto:pfpschneider@gmail.com>:
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 <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.
IIRC this is the complete list of property that are *only* qualifiers (that's why P580 and P580 are not in this list).
Cdlt, ~nicolas
Wikidata mailing list Wikidata@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata
On Sat, Jul 14, 2018 at 1:42 AM Peter F. Patel-Schneider pfpschneider@gmail.com 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?
There is https://tools.wmflabs.org/sqid/#/browse?type=properties which might help you.
Cheers Lydia
That does the trick, thanks.
I was trying to see how many uses of Wikidata qualifiers are contextual (i.e., give information about in which context the statement is valid) and which were additive (i.e., do not limit where the statement is valid).
Of the top ten qualifier properties by usage, five are contextual, three are additive, and one does not carry world information. The last can be considered to be contextual, but also might be considered to not carry world information.
peter
On 07/14/2018 01:19 AM, Lydia Pintscher wrote:
On Sat, Jul 14, 2018 at 1:42 AM Peter F. Patel-Schneider pfpschneider@gmail.com 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?
There is https://tools.wmflabs.org/sqid/#/browse?type=properties which might help you.
Cheers Lydia
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 pfpschneider@gmail.com 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 Wikidata@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata
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 pfpschneider@gmail.com 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 Wikidata@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata