This article is devoted to the study of the most important properties of the object "The Subjects of Russia". Using the implementation of SPARQL-queries, data about the number of instances of the "Oblast of Russia", about the number of all currently existing subjects of the Russian Federation (oblast of Russia, republics, federal city of Russia, the region, autonomous okrug, autonomous regions, former administrative-territorial units) were received, the graph of neighboring subjects of the Russian Federation and countries was constructed, and the map with the population of certain subjects of the Russian Federation was drawn. Moreover, it was considered the task about fullness of property "shares border with". Also, fields with properties in the Wikidata were replenished. Reader will get acquainted with computer treatment of Wikidata and visualization of information about Russian districts.
List of oblast of Russia
- Item: Oblast of Russia (Q835714)
- Property: instances of (P31)
Let's create a list of all oblasts of Russia.
#List of `instances of` "oblast of Russia"
SELECT ?oblast ?oblastLabel
WHERE
{
?oblast wdt:P31 wd:Q835714.
SERVICE wikibase:label { bd:serviceParam wikibase:language "en" }
}
SPARQL query 48 results.
π> The most complete and elaborate oblast of Russia on the Wikidata are: Moskow oblas, Tumen oblast, Kursk oblast
π> Almost empty and uninformative oblast of Russia turned out to be: Chita oblast, Kostroma oblast, Orenburg oblast.
Subjects of Russian Federation
Let`s creatre a list of all subjects of Russian Federation - republics, krai, oblast, federal city of Russia, autonomous okrug, autonomous regions.
Used:
- item oblast of Russia(Q835714).
- item republic of Russia(Q41162).
- item federal city of Russia(Q183342).
- item krai of Russia(Q831740).
- item autonomus oblast of Russia(Q309166).
- item autonomus okrug of Russia(Q184122).
- item former administrative-territorial entity(Q19953632).
- property instance of (P31)
#List of `instances of` "subjects of Russia"
SELECT ?subject ?subjectLabel
WHERE
{
{ ?subject wdt:P31 wd:Q835714 } UNION # Oblast of Russia
{ ?subject wdt:P31 wd:Q41162 } UNION # Republic of Russia
{ ?subject wdt:P31 wd:Q183342 } UNION # Federal city of Russia
{ ?subject wdt:P31 wd:Q831740 } UNION # Krai of Russia
{ ?subject wdt:P31 wd:Q309166 } UNION # Autonomus oblast of Russia
{ ?subject wdt:P31 wd:Q184122 } # Autonomus okrug of Russia
FILTER NOT EXISTS {?subject wdt:P31 wd:Q19953632} # Former administrative territorial entity
SERVICE wikibase:label { bd:serviceParam wikibase:language "en" }
}
SPARQL query 85 results.
Neighboring subjects
Let`s create the graph of neighboring subjects of Russian Federation with property "shares border with".
Used:
- item oblast of Russia(Q835714).
- item republic of Russia(Q41162).
- item federal city of Russia(Q183342).
- item krai of Russia(Q831740).
- item autonomus oblast of Russia(Q309166).
- item autonomus okrug of Russia(Q184122).
- item former administrative-territorial entity(Q19953632).
- property instance of (P31).
- property share border with (P47).
#Graph of "subjects of Russia" `shares border with`.
#defaultView:Graph
SELECT ?subject ?subjectLabel ?sharesBorderWith ?sharesBorderWithLabel
WHERE
{
{ ?subject wdt:P31 wd:Q835714 } UNION # Oblast of Russia
{ ?subject wdt:P31 wd:Q41162 } UNION # Republic of Russia
{ ?subject wdt:P31 wd:Q183342 } UNION # Federal city of Russia
{ ?subject wdt:P31 wd:Q831740 } UNION # Krai of Russia
{ ?subject wdt:P31 wd:Q309166 } UNION # Autonomus oblast of Russia
{ ?subject wdt:P31 wd:Q184122 } # Autonomus okrug of Russia
FILTER NOT EXISTS {?subject wdt:P31 wd:Q19953632} # Former administrative territorial entity
SERVICE wikibase:label { bd:serviceParam wikibase:language "en" }
?subject wdt:P47 ?sharesBorderWith
}
SPARQL query 467 results. The result of the script is represented in the figure.
Fullness of Wikidata
According to the Constitution of the Russian Federation, Russia has 85 subjects - republics, krai, oblast, federal cities, autonomous regions, autonomous okrug.[1]
This task does not take subjects which are not part of Russian Federation at this moment (for example: Chita oblas (Q182902)), because such subjects are not instances of "Region of Russia", "republic of Russia", "federal city of Russia", "krai of Russia", "autonomus okrug of Russia", "autonomus oblast of Russia", but belong to the "former administrative territorial entity". For this task it is important that the total number of subjects of the Russian Federation without property "former administrative-territorial" become bigger. (We get 94 objects after completion SPARQL query).
According to the category "Federal subjects of Russia" of Russian Wikipedia there are 85 subjects of Russian Federation.
According to the category "Federal subjects of Russia" of Engish Wikipedia there are 85 subjects of Russian Federation too.
Let`s create the list of subjects with empty property "shares border with".
Used:
- item oblast of Russia(Q835714).
- item republic of Russia(Q41162).
- item federal city of Russia(Q183342).
- item krai of Russia(Q831740).
- item autonomus oblast of Russia(Q309166).
- item autonomus okrug of Russia(Q184122).
- item former administrative-territorial entity(Q19953632).
- property instance of (P31).
- property share border with (P47).
#List of "subjects of Russia" without `shares border with`.
SELECT ?subject ?subjectLabel ?sharesBorderWith ?sharesBorderWithLabel
WHERE
{
{ ?subject wdt:P31 wd:Q835714 } UNION # Oblast of Russia
{ ?subject wdt:P31 wd:Q41162 } UNION # Republic of Russia
{ ?subject wdt:P31 wd:Q183342 } UNION # Federal city of Russia
{ ?subject wdt:P31 wd:Q831740 } UNION # Krai of Russia
{ ?subject wdt:P31 wd:Q309166 } UNION # Autonomus oblast of Russia
{ ?subject wdt:P31 wd:Q184122 } # Autonomus okrug of Russia
FILTER NOT EXISTS {?subject wdt:P31 wd:Q19953632} # Former administrative territorial entity
MINUS { ?subject wdt:P47 [] } . #Shares border with
SERVICE wikibase:label { bd:serviceParam wikibase:language "en" }
}
SPARQL query zero results.
All in all, there are no isolated subjects of the Russian Federation on the Wikidata, which corresponds to reality.
Population
Let's mark the subjects of the Russian Federation on the map, dividing them into 6 groups by the number of people. Subjects belonging to the same group will be displayed on the map in one color:
- Subjects with a population less than 500,000 are painted in blue
- Subjects with a population more than 500,000, but less than 1,000,000 are painted in orange
- Subjects with a population more than 1,000,000, but less than 3,000,000 are painted in green
- Subjects with a population more than 3,000,000, but less than 8,000,000 are painted in red
- Subjects with a population more than 8,000,000, but less than 10,000,000 are painted in white
- Subjects with a population more than 10,000,000 are painted in purple
Used:
- item oblast of Russia(Q835714).
- item republic of Russia(Q41162).
- item federal city of Russia(Q183342).
- item krai of Russia(Q831740).
- item autonomus oblast of Russia(Q309166).
- item autonomus okrug of Russia(Q184122).
- item former administrative-territorial entity(Q19953632).
- property instance of (P31).
- property location (P625).
- property population (P1082).
#Map of `population` "subject of Russia"
#defaultView:Map
SELECT DISTINCT ?subject ?subjectLabel (SAMPLE(?location) AS ?location) (MAX(?population) AS ?population) (SAMPLE(?layer) AS ?layer)
WHERE
{
{
{ ?subject wdt:P31 wd:Q835714 } UNION # Oblast of Russia
{ ?subject wdt:P31 wd:Q41162 } UNION # Republic of Russia
{ ?subject wdt:P31 wd:Q183342 } UNION # Federal city of Russia
{ ?subject wdt:P31 wd:Q831740 } UNION # Krai of Russia
{ ?subject wdt:P31 wd:Q309166 } UNION # Autonomus oblast of Russia
{ ?subject wdt:P31 wd:Q184122 } # Autonomus okrug of Russia
}
?subject wdt:P625 ?location .
?subject wdt:P1082 ?population .
FILTER NOT EXISTS {?subject wdt:P31 wd:Q19953632} # former administrative territorial entity
BIND(
IF(?population < 500000, "ΠΌΠ΅Π½Π΅Π΅ 500000",
IF(?population < 1000000, "500000 - 1000000",
IF(?population < 3000000, "1000000 - 3000000",
IF(?population < 8000000, "3000000 - 8000000",
IF(?population < 10000000, "8000000 - 10000000",
"Π±ΠΎΠ»Π΅Π΅ 10000000")))))
AS ?layer).
SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
}
GROUP BY ?subject ?subjectLabel
ORDER BY ?population
SPARQL query 85 results. The result of the script is represented in the figure below.
Future work
- Arrange all subjects of Russian Federation by order of decreasing the number of territories which they border. On the basis of the data obtained, write your own opinion why some subjects have more neighbors, but others have less.
- Find the subjects of Russian Federation which border with foreign countries. Mark these subjects on the map.
- Group all subjects of Russian Federation according to the time zones they are located. Determine the total population for each group and then build a bubble diagram.
Test
Keys (SPARQL queries):
- borders and date of occurrence of the subjects,
- subjects, which are in Russian Federation.
- falgs of the subjects.
References
- "ΠΠΎΠ½ΡΡΠΈΡΡΡΠΈΡ Π ΠΎΡΡΠΈΠΉΡΠΊΠΎΠΉ Π€Π΅Π΄Π΅ΡΠ°ΡΠΈΠΈ, ΠΠ»Π°Π²Π° 3, ΡΡΠ°ΡΡΡ 65" [Constitution of Russian Federation]. Legal literature. 2014. Retrieved May 9, 2017.
- "Π‘ΡΠ°ΡΡΡ Π½Π° ΡΠ°ΠΉΡΠ΅ Authorea" [Article on the site Authorea]. 2017. Retrieved May 9, 2017.