I'm a bit puzzled by a ranking with at preference
in an "instance of"
but...
It’s indeed an interesting point. The problem in the country domain is that
there is a lot of evolution into the regime of a state, a state can be
sovereign at some point in history then become a part of a bigger state
losing its sovereignty. If we assume a kind of continuity of a state across
this status change, we have to use ranks to select the last valid value.
There may not be items for all the regime of a state in history, and a
practical choice could be to store the information in the « instance of »
statements with date qualifiers.
In this case I assume however it’s just a practical way to circumvene the
complexity or even inexistence of our ontology on countries. I would in
most case would have noted that « sovereign state » is a subclass of «
country ». If you want to include countries of all kind and don’t miss any,
you’d have to use a construction like
?country wdt:P31/wdt:P279* wd:Q6256.
The problem with this is that there is many subclasses of « wd:Q6256 »
(country) :
https://tools.wmflabs.org/wikidata-todo/tree.html?lang=fr&q=Q6256&r… so
this might include some unwanted « countries ». It would be interesting to
check what the differences are, to see which one is best or if some
subclasses of country should not be.
There for example a subclass of « wd:Q6256 » that is « former countries »,
so this query would include former entities.
My opinion on these is that if we choose a scheme where there are classes
or former entities, the best would be to have the counterpart « today’s
country » (with label (country) and a superclass for both, « country
(either former or not ) ») to avoid having the « former country » class be
a subclass of «today’s country».
Another question, why is not « sovereign state » as the sole class not
enough for this query ? Or only the state recognized by the United Nations
(I don’t know if/how we model this) ?
Le mar. 7 mai 2019 à 23:51, Fabrizio Carrai <fabrizio.carrai(a)gmail.com> a
écrit :
Thank you Nicolas!
I found the same situation for other countries like France (Q142) and
Germany (Q183), maybe in many others. I'm a bit puzzled by a ranking with
at preference in an "instance of" but...
Is there a way to extend the query to all the values of the property ?
Fabrizio
Il giorno mar 7 mag 2019 alle ore 22:54 Nicolas VIGNERON <
vigneron.nicolas(a)gmail.com> ha scritto:
Hi,
This query only search for "country" (Q6256) but Italy, like many other
items, has a preferred ranking on the value "sovereign state" (Q3624078),
so by default, Italy doesn't appears as a country (which is strange but not
totally illogical "country" is a quite broad term).
Cheers, ~nicolas
Le mar. 7 mai 2019 à 22:11, Fabrizio Carrai <fabrizio.carrai(a)gmail.com>
a écrit :
Can anybody explain why Italy is not shown in the
results of the
"Wikidata Query Service" example "Continents, countries, regions and
capitals" [1] ?
I suppose because Italy is belonging to two different continents (Europe
and Africa). If this is the case I'm not able to fix the query.
Thanks
--
*Fabrizio*
*[1]
https://query.wikidata.org/#%23Continents%2C%20countries%2C%20regions%20and…
<https://query.wikidata.org/#%23Continents%2C%20countries%2C%20regions%20and%20capitals%0A%23defaultView%3ATree%0ASELECT%20%3Fcontinent%20%3FcontinentFlag%20%3FcontinentLabel%20%3Fcountry%20%3FcountryLabel%20%3FcountryFlag%20%3Fregion%20%3FregionLabel%20%3FregionFlag%20%3Fcity%20%3FcityLabel%20%3FcityImage%20%3Fproperty%20%3FpropertyLabel%20%3Fvalue%20%3FvalueLabel%20WHERE%20%7B%0A%20%20%7B%0A%20%20%20%20SELECT%20%2a%20WHERE%20%7B%0A%20%20%20%20%20%20%3Fcontinent%20wdt%3AP31%20wd%3AQ5107.%0A%20%20%20%20%20%20%3Fcountry%20wdt%3AP30%20%3Fcontinent.%0A%20%20%20%20%20%20%3Fcountry%20wdt%3AP31%20wd%3AQ6256.%0A%20%20%20%20%20%20%3Fcountry%20wdt%3AP150%20%3Fregion.%0A%20%20%20%20%20%20OPTIONAL%20%7B%0A%20%20%20%20%20%20%20%20%3Fcontinent%20wdt%3AP242%20%3FcontinentFlag.%0A%20%20%20%20%20%20%20%20%3Fcountry%20wdt%3AP41%20%3FcountryFlag.%0A%20%20%20%20%20%20%20%20%3Fregion%20wdt%3AP41%20%3FregionFlag.%0A%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20OPTIONAL%20%7B%0A%20%20%20%20%20%20%20%20%3Fregion%20wdt%3AP36%20%3Fcity.%0A%20%20%20%20%20%20%20%20%3Fcity%20wdt%3AP31%20wd%3AQ515.%0A%20%20%20%20%20%20%20%20%3Fcity%20wdt%3AP18%20%3FcityImage.%0A%20%20%20%20%20%20%20%20OPTIONAL%20%7B%0A%20%20%20%20%20%20%20%20%20%20VALUES%20%28%3Fprop%29%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%28wdt%3AP1082%29%0A%20%20%20%20%20%20%20%20%20%20%20%20%28wdt%3AP6%29%0A%20%20%20%20%20%20%20%20%20%20%20%20%28wdt%3AP190%29%0A%20%20%20%20%20%20%20%20%20%20%20%20%28wdt%3AP31%29%0A%20%20%20%20%20%20%20%20%20%20%20%20%28wdt%3AP571%29%0A%20%20%20%20%20%20%20%20%20%20%20%20%28wdt%3AP150%29%0A%20%20%20%20%20%20%20%20%20%20%20%20%28wdt%3AP206%29%0A%20%20%20%20%20%20%20%20%20%20%20%20%28wdt%3AP527%29%0A%20%20%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%20%20%20%20%3Fcity%20%3Fprop%20%3Fvalue.%0A%20%20%20%20%20%20%20%20%20%20%3Fproperty%20%3Fref%20%3Fprop.%0A%20%20%20%20%20%20%20%20%20%20%3Fproperty%20rdf%3Atype%20wikibase%3AProperty.%0A%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%7D%0A%20%20%20%20%7D%0A%20%20%7D%0A%20%20SERVICE%20wikibase%3Alabel%20%7B%20bd%3AserviceParam%20wikibase%3Alanguage%20%22%5BAUTO_LANGUAGE%5D%2Cen%22.%20%7D%0A%7D>*
_______________________________________________
Wikidata mailing list
Wikidata(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata
_______________________________________________
Wikidata mailing list
Wikidata(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata
--
*Fabrizio*
_______________________________________________
Wikidata mailing list
Wikidata(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata