Difference between revisions of "Truly Tabular RDF"

From BITPlan Wiki
Jump to navigation Jump to search
Line 1: Line 1:
= Example Scientific Events and locations =
+
= How tabular are the Academic Conference entries in wikidata? =
<source lang='sparql'>
 
# location ( https://www.wikidata.org/wiki/Property:P276 ):7244
 
# Count all items with the given location ( https://www.wikidata.org/wiki/Property:P276 ):
 
# and type academic conference(Q2020153):https://www.wikidata.org/wiki/Q2020153
 
SELECT ?item (COUNT (?value) AS ?count)
 
WHERE
 
{
 
  # instance of academic conference
 
  ?item wdt:P31 wd:Q2020153.
 
  # location
 
  ?item wdt:P276 ?value.
 
} GROUP by ?item
 
HAVING (COUNT (?value) > 1)
 
ORDER BY DESC(?count)
 
</source>
 
[https://query.wikidata.org/#%23%20location%20%28%20https%3A%2F%2Fwww.wikidata.org%2Fwiki%2FProperty%3AP276%20%29%3A7244%0A%23%20Count%20all%20items%20with%20the%20given%20location%20%28%20https%3A%2F%2Fwww.wikidata.org%2Fwiki%2FProperty%3AP276%20%29%3A%0A%23%20and%20type%20academic%20conference%28Q2020153%29%3Ahttps%3A%2F%2Fwww.wikidata.org%2Fwiki%2FQ2020153%0ASELECT%20%3Fitem%20%28COUNT%20%28%3Fvalue%29%20AS%20%3Fcount%29%0AWHERE%0A%7B%0A%20%20%23%20instance%20of%20academic%20conference%0A%20%20%3Fitem%20wdt%3AP31%20wd%3AQ2020153.%0A%20%20%23%20location%0A%20%20%3Fitem%20wdt%3AP276%20%3Fvalue.%0A%7D%20GROUP%20by%20%3Fitem%0AHAVING%20%28COUNT%20%28%3Fvalue%29%20%3E%201%29%0AORDER%20BY%20DESC%28%3Fcount%29%0A try it!]
 
 
 
== non tabular entries for academic conference(Q2020153) https://www.wikidata.org/wiki/Q2020153 ==
 
 
 
=== query ===
 
<source lang='sparql'>
 
 
 
# Count all academic conference(Q2020153) https://www.wikidata.org/wiki/Q2020153 items
 
# with the given location(P276) https://www.wikidata.org/wiki/Property:P276
 
SELECT ?item (COUNT (?value) AS ?count)
 
WHERE
 
{
 
  # instance of academic conference
 
  ?item wdt:P31 wd:Q2020153.
 
  # location
 
  ?item wdt:P276 ?value.
 
} GROUP by ?item
 
HAVING (COUNT (?value) > 1)
 
ORDER BY DESC(?count)
 
</source>
 
 
 
 
 
=== result ===
 
 
{| class="wikitable" style="text-align: left;"
 
{| class="wikitable" style="text-align: left;"
 
|+ <!-- caption -->
 
|+ <!-- caption -->
 
|-
 
|-
! item                                      !! align="right"|  count
+
! property            !! align="right"|  total !! align="right"|  f1 !! align="right"|  total% !! align="right"|  non tabular !! align="right"|  non tabular% !! align="right"|  f2 !! align="right"|  f3 !! align="right"|  f14 !! align="right"|  f4 !! align="right"|  f7 !! align="right"|  f5 !! align="right"|  f9
 
|-
 
|-
| http://www.wikidata.org/entity/Q8035745  || align="right"|      14
+
| ∑                  || align="right"|    7518 || align="right"|      || align="right"|          || align="right"|              || align="right"|                || align="right"|      || align="right"|      || align="right"|      || align="right"|      || align="right"|      || align="right"|      || align="right"|
 
|-
 
|-
| http://www.wikidata.org/entity/Q107185833 || align="right"|      4
+
| country            || align="right"|    7077 || align="right"| 7077 || align="right"|    94.1 || align="right"|            0 || align="right"|            0  || align="right"|      || align="right"|      || align="right"|      || align="right"|      || align="right"|      || align="right"|      || align="right"|
 
|-
 
|-
| http://www.wikidata.org/entity/Q107185835 || align="right"|      4
+
| part of the series  || align="right"|    7139 || align="right"| 7120 || align="right"|    95  || align="right"|            19 || align="right"|            0.3 || align="right"|  15 || align="right"|    4 || align="right"|      || align="right"|      || align="right"|      || align="right"|      || align="right"|
 
|-
 
|-
| http://www.wikidata.org/entity/Q1654334  || align="right"|      3
+
| VIAF ID            || align="right"|    2096 || align="right"| 2092 || align="right"|    27.9 || align="right"|            4 || align="right"|            0.2 || align="right"|    3 || align="right"|    1 || align="right"|      || align="right"|      || align="right"|      || align="right"|      || align="right"|
 
|-
 
|-
| http://www.wikidata.org/entity/Q28052808  || align="right"|      3
+
| GND ID              || align="right"|    3049 || align="right"| 3043 || align="right"|    40.6 || align="right"|            6 || align="right"|            0.2 || align="right"|    4 || align="right"|    2 || align="right"|      || align="right"|      || align="right"|      || align="right"|      || align="right"|
 
|-
 
|-
| http://www.wikidata.org/entity/Q47912910  || align="right"|       3
+
| location            || align="right"|    7209 || align="right"| 7180 || align="right"|    95.9 || align="right"|            29 || align="right"|            0.4 || align="right"|  24 || align="right"|    4 || align="right"|    1 || align="right"|      || align="right"|      || align="right"|      || align="right"|
 
|-
 
|-
| http://www.wikidata.org/entity/Q94182434  || align="right"|      3
+
| start time          || align="right"|    6916 || align="right"| 6914 || align="right"|    92  || align="right"|            2 || align="right"|            0  || align="right"|    2 || align="right"|      || align="right"|      || align="right"|      || align="right"|      || align="right"|      || align="right"|
 
|-
 
|-
| http://www.wikidata.org/entity/Q59558053  || align="right"|      2
+
| end time            || align="right"|    6912 || align="right"| 6909 || align="right"|    91.9 || align="right"|            3 || align="right"|            0  || align="right"|    3 || align="right"|      || align="right"|      || align="right"|      || align="right"|      || align="right"|      || align="right"|
 
|-
 
|-
| http://www.wikidata.org/entity/Q47455387  || align="right"|      2
+
| official website    || align="right"|    596 || align="right"|  586 || align="right"|      7.9 || align="right"|            10 || align="right"|            1.7 || align="right"|    9 || align="right"|    1 || align="right"|      || align="right"|      || align="right"|      || align="right"|      || align="right"|
 
|-
 
|-
| http://www.wikidata.org/entity/Q47501061 || align="right"|      2
+
| main subject        || align="right"|    1882 || align="right"| 1722 || align="right"|    25  || align="right"|          160 || align="right"|            8.5 || align="right"| 131 || align="right"|  23 || align="right"|      || align="right"|    2 || align="right"|    2 || align="right"|    1 || align="right"|    1
 
|-
 
|-
| http://www.wikidata.org/entity/Q48025514  || align="right"|      2
+
| described at URL    || align="right"|    6512 || align="right"| 6510 || align="right"|    86.6 || align="right"|            2 || align="right"|            0  || align="right"|    1 || align="right"|    1 || align="right"|      || align="right"|      || align="right"|      || align="right"|      || align="right"|
 
|-
 
|-
| http://www.wikidata.org/entity/Q48025934  || align="right"|      2
+
| title              || align="right"|    6718 || align="right"| 6700 || align="right"|    89.4 || align="right"|            18 || align="right"|            0.3 || align="right"|  10 || align="right"|    8 || align="right"|      || align="right"|      || align="right"|      || align="right"|      || align="right"|
 
|-
 
|-
| http://www.wikidata.org/entity/Q48026643  || align="right"|      2
+
| short name          || align="right"|    6750 || align="right"| 6741 || align="right"|    89.8 || align="right"|            9 || align="right"|            0.1 || align="right"|    9 || align="right"|      || align="right"|      || align="right"|      || align="right"|      || align="right"|      || align="right"|
 
|-
 
|-
| http://www.wikidata.org/entity/Q48026807  || align="right"|      2
+
| language used      || align="right"|      87 || align="right"|  84 || align="right"|      1.2 || align="right"|            3 || align="right"|            3.4 || align="right"|    3 || align="right"|      || align="right"|      || align="right"|      || align="right"|      || align="right"|      || align="right"|
 
|-
 
|-
| http://www.wikidata.org/entity/Q48026926  || align="right"|      2
+
| is proceedings from || align="right"|    921 || align="right"|  901 || align="right"|    12.3 || align="right"|            20 || align="right"|            2.2 || align="right"|  16 || align="right"|    3 || align="right"|      || align="right"|    1 || align="right"|      || align="right"|      || align="right"|
 
|-
 
|-
| http://www.wikidata.org/entity/Q56683535  || align="right"|       2
+
| WikiCFP event ID    || align="right"|     98 || align="right"|   98 || align="right"|     1.3 || align="right"|             0 || align="right"|           0  || align="right"|     || align="right"|     || align="right"|      || align="right"|     || align="right"|     || align="right"|     || align="right"|
|-
 
| http://www.wikidata.org/entity/Q56872346  || align="right"|       2
 
|-
 
| http://www.wikidata.org/entity/Q59555142  || align="right"|      2
 
|-
 
| http://www.wikidata.org/entity/Q59555499  || align="right"|      2
 
|-
 
| http://www.wikidata.org/entity/Q59558038  || align="right"|      2
 
|-
 
| http://www.wikidata.org/entity/Q76721517  || align="right"|      2
 
|-
 
| http://www.wikidata.org/entity/Q90027034  || align="right"|      2
 
|-
 
| http://www.wikidata.org/entity/Q64955764  || align="right"|      2
 
|-
 
| http://www.wikidata.org/entity/Q73025763  || align="right"|      2
 
|-
 
| http://www.wikidata.org/entity/Q96749264  || align="right"|      2
 
|-
 
| http://www.wikidata.org/entity/Q104866279 || align="right"|      2
 
|-
 
| http://www.wikidata.org/entity/Q104903952 || align="right"|      2
 
|-
 
| http://www.wikidata.org/entity/Q106068709 || align="right"|      2
 
|-
 
| http://www.wikidata.org/entity/Q106443465 || align="right"|      2
 
|-
 
| http://www.wikidata.org/entity/Q107162308 || align="right"|      2
 
|-
 
| http://www.wikidata.org/entity/Q107162375 || align="right"|      2
 
|-
 
| http://www.wikidata.org/entity/Q107185828 || align="right"|       2
 
|-
 
| http://www.wikidata.org/entity/Q107185830 || align="right"|      2
 
|-
 
| http://www.wikidata.org/entity/Q106336297 || align="right"|      2
 
|-
 
| http://www.wikidata.org/entity/Q108282854 || align="right"|      2
 
|}
 
== non tabular entries for academic conference(Q2020153) https://www.wikidata.org/wiki/Q2020153 ==
 
 
 
=== query ===
 
<source lang='sparql'>
 
 
 
# Count all academic conference(Q2020153) https://www.wikidata.org/wiki/Q2020153 items
 
# with the given proceedings(P4745) https://www.wikidata.org/wiki/Property:P4745
 
SELECT ?item (COUNT (?value) AS ?count)
 
WHERE
 
{
 
  # instance of academic conference
 
  ?item wdt:P31 wd:Q2020153.
 
  # proceedings
 
  ?item ^wdt:P4745 ?value.
 
} GROUP by ?item
 
HAVING (COUNT (?value) > 1)
 
ORDER BY DESC(?count)
 
</source>
 
 
 
 
 
=== result ===
 
{| class="wikitable" style="text-align: left;"
 
|+ <!-- caption -->
 
|-
 
! item                                    !! align="right"|  count
 
|-
 
| http://www.wikidata.org/entity/Q48027931 || align="right"|      4
 
|-
 
| http://www.wikidata.org/entity/Q47912910 || align="right"|      3
 
|-
 
| http://www.wikidata.org/entity/Q48025514 || align="right"|       3
 
|-
 
| http://www.wikidata.org/entity/Q77250365 || align="right"|       3
 
|-
 
| http://www.wikidata.org/entity/Q30090453 || align="right"|       2
 
|-
 
| http://www.wikidata.org/entity/Q47455387 || align="right"|       2
 
|-
 
| http://www.wikidata.org/entity/Q48025651 || align="right"|      2
 
|-
 
| http://www.wikidata.org/entity/Q48025840 || align="right"|       2
 
|-
 
| http://www.wikidata.org/entity/Q48025934 || align="right"|       2
 
|-
 
| http://www.wikidata.org/entity/Q48026033 || align="right"|       2
 
|-
 
| http://www.wikidata.org/entity/Q48612170 || align="right"|       2
 
|-
 
| http://www.wikidata.org/entity/Q48619834 || align="right"|      2
 
|-
 
| http://www.wikidata.org/entity/Q48910401 || align="right"|      2
 
|-
 
| http://www.wikidata.org/entity/Q50290385 || align="right"|      2
 
|-
 
| http://www.wikidata.org/entity/Q55497473 || align="right"|      2
 
|-
 
| http://www.wikidata.org/entity/Q59620529 || align="right"|      2
 
|-
 
| http://www.wikidata.org/entity/Q59917009 || align="right"|      2
 
|-
 
| http://www.wikidata.org/entity/Q82290350 || align="right"|      2
 
|-
 
| http://www.wikidata.org/entity/Q59917887 || align="right"|      2
 
|-
 
| http://www.wikidata.org/entity/Q68277652 || align="right"|      2
 
 
|}
 
|}
----------------------------------------------------------------------
 

Revision as of 18:06, 15 March 2022

How tabular are the Academic Conference entries in wikidata?

property total f1 total% non tabular non tabular% f2 f3 f14 f4 f7 f5 f9
7518
country 7077 7077 94.1 0 0
part of the series 7139 7120 95 19 0.3 15 4
VIAF ID 2096 2092 27.9 4 0.2 3 1
GND ID 3049 3043 40.6 6 0.2 4 2
location 7209 7180 95.9 29 0.4 24 4 1
start time 6916 6914 92 2 0 2
end time 6912 6909 91.9 3 0 3
official website 596 586 7.9 10 1.7 9 1
main subject 1882 1722 25 160 8.5 131 23 2 2 1 1
described at URL 6512 6510 86.6 2 0 1 1
title 6718 6700 89.4 18 0.3 10 8
short name 6750 6741 89.8 9 0.1 9
language used 87 84 1.2 3 3.4 3
is proceedings from 921 901 12.3 20 2.2 16 3 1
WikiCFP event ID 98 98 1.3 0 0