Hello everyone,
I am trying to count how often every constraint type
<https://www.wikidata.org/wiki/Help:Property_constraints_portal#Constraint_types_alphabetically>
is used in wikidata. My first question:
What exactly does this query
<https://query.wikidata.org/#%23%20https%3A%2F%2Fwww.wikidata.org%2Fwiki%2FHelp%3AProperty_constraints_portal%0A%23%20popular%20contraints%0ASELECT%20%3Fconstraint%20%3FconstraintLabel%20%3Fct%0AWHERE%0A%7B%0A%20%20%7B%0A%20%20SELECT%20%3Fconstraint%20%28count%28*%29%20as%20%3Fct%29%0A%20%20WHERE%0A%20%20%7B%0A%20%20%20%20%3Fitem%20wdt%3AP2302%20%3Fconstraint%0A%20%20%7D%0A%20%20GROUP%20BY%20%3Fconstraint%0A%20%20%7D%0A%20%20SERVICE%20wikibase%3Alabel%20%7B%20bd%3AserviceParam%20wikibase%3Alanguage%20%22[AUTO_LANGUAGE]%2Cen%22.%20%7D%0A%7D%0AORDER%20BY%20DESC%28%3Fct%29%20ASC%28%3Fconstraint%29>
count? If I understand it it counts for each constraint to how many
properties it is applicable. According to the help page it is supposed
to list the popular constraints. Do the authors of the query simply have
another definition of popular constraints than I?
Which leads to my second question: How would I count the use of
constraint types? What I mean by this is: How many statements exist that
are subject to a constraint of type X?
Thanks in advance,
Adrian
Show replies by date