Spaces:
Running on CPU Upgrade
Running on CPU Upgrade
File size: 143,756 Bytes
61d29fc | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 | ---
displayed_sidebar: developersSidebar
sidebar_position: 1
---
import ZoomableMermaid from '@site/src/components/ZoomableMermaid';
# Data Model & Entity Relationship Diagram
Comprehensive overview of all data entities extracted, processed, and uploaded to HuggingFace datasets.
## οΏ½ HuggingFace Dataset Structure
### Current Datasets Being Uploaded
```
open-navigator-data/
βββ jurisdictions/ # ποΈ Core jurisdiction data
β βββ cities # 19,000+ incorporated places
β βββ counties # 3,144 U.S. counties
β βββ states # 50 states + DC, territories
β βββ school_districts # 13,000+ districts (NCES data)
β βββ census_data # Basic FIPS codes & census year reference
β
βββ demographics/ # π₯ Comprehensive demographic data (U.S. Census)
β βββ population # Total population, age distribution
β βββ race_ethnicity # Race and ethnicity breakdowns
β βββ income_economics # Income, poverty, SNAP benefits
β βββ education # Educational attainment levels
β βββ housing # Housing units, ownership, values
β βββ employment # Unemployment, labor force participation
β βββ health_insurance # Insurance coverage (uninsured, Medicaid, Medicare)
β
βββ social/ # π± Social media presence
β βββ twitter # Twitter/X accounts
β βββ facebook # Facebook pages
β βββ instagram # Instagram accounts
β βββ linkedin # LinkedIn pages
β
βββ videos/ # πΉ Video & streaming platforms
β βββ youtube_channels # Government YouTube channels
β βββ vimeo # Vimeo accounts
β βββ livestreams # Live meeting streams
β
βββ platforms/ # π₯οΈ Meeting management systems
β βββ legistar # Legistar URLs
β βββ granicus # Granicus links
β βββ suiteone # SuiteOne systems
β βββ civicplus # CivicPlus platforms
β
βββ domains/ # π Official government websites
β βββ gsa_domains # .gov domain registry
β βββ municipal_websites # City/county websites
β βββ state_portals # State government sites
β
βββ events/ # π Meetings, Hearings & Public Events
β βββ events # Government meetings, public hearings, community forums, town halls
β βββ event_participants # Officials and organizations participating in events
β βββ event_agenda_items # Individual agenda topics discussed
β βββ event_documents # Agendas, minutes, presentations, handouts
β βββ event_media # Video recordings, livestreams, audio files
β βββ event_bills # Bills discussed or considered at meetings
β
βββ contacts/ # π₯ All People - Officials, Candidates, Donors, Constituents
β βββ officials # Elected and appointed officials (mayors, council members, legislators)
β βββ official_roles # Current and historical positions held
β βββ official_contacts # Email, phone, office addresses
β βββ official_identifiers # External IDs (Twitter, OpenStates, Ballotpedia)
β βββ official_links # Websites, social media profiles
β βββ candidates # Political candidates (House, Senate, President - FEC data)
β βββ nonprofit_donors # Nonprofit leadership political giving (FEC analysis)
β βββ constituents # Donors, volunteers, members, beneficiaries (all people)
β
βββ nonprofits/ # π’ Nonprofit organizations & churches
β βββ irs_eobmf # IRS EO-BMF bulk data (1.9M+ organizations) - PRIMARY SOURCE
β βββ irs_nonprofits # Legacy IRS 990 data (deprecated - use irs_eobmf)
β βββ propublica_data # ProPublica API (financials, NTEE codes)
β βββ everyorg_data # Every.org API (missions, causes, logos)
β βββ nonprofit_990s # Detailed Form 990 financials (yearly filings)
β βββ congregations # π Church & congregation data (ARDA, HIFLD, NCS)
β βββ constituents # π€ Donors, volunteers, members, beneficiaries (Microsoft CDM)
β βββ donations # π Financial contributions and in-kind gifts (Microsoft CDM)
β βββ campaigns # π£ Fundraising campaigns and appeals (Microsoft CDM)
β βββ memberships # π« Member enrollment and renewals (Microsoft CDM)
β βββ volunteer_activities # π Volunteer hours and activities (Microsoft CDM)
β βββ program_delivery # π― Programs and services delivered (Microsoft CDM)
β βββ program_outcomes # π Impact metrics and outcome measurements (Microsoft CDM)
β
βββ grants/ # π΅ Grant funding transactions
β βββ nonprofit_grants # Grants to nonprofits (from 990 Schedule I)
β βββ government_grants # Government grants to orgs/jurisdictions
β βββ foundation_grants # Private foundation grants
β βββ federal_grants # Federal funding programs
β
βββ causes/ # π― Cause & category taxonomy
β βββ ntee_codes # IRS NTEE classification system
β βββ everyorg_causes # Every.org cause tags
β
βββ budgets/ # π° Government budgets & finances
β βββ city_budgets # City/municipal budgets & spending
β βββ county_budgets # County budgets & expenditures
β βββ state_budgets # State government finances
β βββ school_budgets # School district finances (NCES F-33)
β βββ bond_debt # Municipal bonds & debt obligations
β βββ budget_line_items # π Detailed budget categories & line items
β βββ budget_deltas # π Budget-to-Minutes Delta analysis (political economy)
β
βββ decisions/ # βοΈ Policy decisions & political economy analysis
β βββ policy_decisions # Extracted decisions from meetings
β βββ decision_frames # Frame analysis (rhetoric patterns)
β βββ decision_options # Options considered & rejected
β βββ decision_tradeoffs # Tradeoffs discussed (cost vs benefit, etc.)
β βββ stakeholder_positions # π₯ Who spoke for/against (Influence Radar)
β βββ decision_votes # Detailed vote records per decision
β βββ deferral_patterns # π
Stalling detection (same topic, multiple deferrals)
β βββ deferral_instances # Individual tabling events linked to patterns
β βββ keyword_density # Quantitative indicators (grant/taxpayer/emergency)
β βββ deferral_patterns # Tabled/delayed decisions (temporal analysis)
β
βββ elections/ # π
Election cycles & temporal analysis
β βββ election_cycles # Election dates & periods
β βββ election_influences # Pre/post-election decision patterns
β
βββ campaigns/ # π° Political campaign finance (FEC data)
β βββ committees # PACs, Super PACs, campaign committees
β βββ contributions # Individual political contributions $200+
β
βββ civic/ # π³οΈ Google Civic & Wikidata
β βββ civic_divisions # OCD divisions
β βββ representatives # From Google Civic API
β βββ wikidata_entities # Structured entities
β βββ dbpedia_resources # Wikipedia infobox data
β
βββ ballots/ # π³οΈ Ballot initiatives & referendums
β βββ state_measures # State propositions (fluoridation votes!)
β βββ local_measures # City/county ballot questions
β βββ election_results # Historical voting outcomes
β
βββ bills/ # π Legislation & Lawmaking
β βββ bills # Bills and resolutions (1.5M+ from all 50 states)
β βββ bill_actions # Bill history (introduced, committee, floor vote, signed)
β βββ bill_sponsorships # Primary sponsors and co-sponsors
β βββ bill_abstracts # Bill summaries and descriptions
β βββ bill_versions # Different versions of bill text (introduced, amended, enrolled)
β βββ bill_version_links # Links to PDF/HTML bill text
β βββ bill_documents # Supporting documents (fiscal notes, amendments, analysis)
β βββ bill_document_links # Links to supporting documents
β βββ bill_subjects # Subject/topic tags per bill
β βββ legislative_sessions # Session identifiers (2023 Regular, 2024 Special, etc.)
β βββ vote_events # Roll call votes on bills
β βββ vote_counts # Vote tallies (yes, no, abstain, absent)
β βββ individual_votes # Individual legislator votes (yes/no/abstain)
β
βββ topics/ # π― Advocacy causes & campaigns
β βββ topic_definitions # Validated survey questions from Roper Center
β βββ survey_questions # Public opinion question wording library
β βββ jurisdiction_topics # What each city is discussing
β βββ advocacy_alerts # Opportunities for engagement
β
βββ surveys/ # π Public opinion research & polling data
β βββ survey_providers # Polling organizations (Gallup, Pew, Roper, etc.)
β βββ survey_studies # Individual survey studies/waves
β βββ survey_variables # Questions/items asked in surveys
β βββ survey_responses # Aggregate and individual response data
β βββ ipoll_metadata # Roper iPoll catalog metadata
β βββ survey_crosstabs # Breakdowns by demographics, geography
β
βββ factchecks/ # β
Fact-checking & claim verification
β βββ claim_reviews # Google Fact Check API (ClaimReview schema)
β βββ politifact # PolitiFact Truth-O-Meter ratings
β βββ factcheck_org # FactCheck.org verified claims
β βββ verified_claims # Aggregated fact-check database
β
βββ civic_tech/ # π» Open source projects & hackathons
β βββ github_repositories # Civic tech projects (GitHub API)
β βββ project_metadata # Code for America, USDR, Civic Tech Field Guide
β βββ contributors # Maintainers and core contributors
β βββ project_issues # Good first issues, contribution opportunities
β βββ hackathons # Civic hackathon events
β βββ hackathon_projects # Projects built at hackathons
β βββ brigade_chapters # Code for America brigade locations
β βββ project_funding # GitHub Sponsors, grants, OpenCollective
β
βββ community_solutions/ # π Community engagement & use cases
β βββ engagement_spectrum # Spectrum of Community Engagement to Ownership
β βββ use_case_catalog # Harvard Data-Smart City Solutions examples
β βββ data_academies # Brookings Institution training programs
β βββ success_stories # Real-world outcomes (Providence, Portland, Tempe)
β βββ metric_templates # Pre-built analytics for common challenges
β βββ workflow_guides # Step-by-step community data workflows
β
βββ analytics/ # π Time dimensions & metric views
β βββ date_dimension # Date/time reference table (YYYY-MM-DD, day_of_week, fiscal_year)
β βββ temporal_relationships # Time-series joins for all entities
β βββ metric_views # Pre-computed analytics (advocacy, spending, nonprofit impact)
β βββ aggregated_stats # Monthly/quarterly/yearly rollups
β βββ dashboard_metrics # Real-time dashboard data feeds
β
βββ standards/ # π Schema.org, Popolo, CEDS, IATI exports
β βββ schema_org_jsonld # JSON-LD exports (Event, Person, Organization, Legislation, ClaimReview)
β βββ popolo_exports # Popolo-compliant JSON (Person, Organization, Membership, VoteEvent)
β βββ ceds_aligned # CEDS-compliant education data (Element IDs, Option Sets)
β βββ ocd_divisions # Open Civic Data division IDs
β βββ iati_activities # IATI Standard v2.03 XML (programs, grants, humanitarian aid)
β βββ rdf_triples # RDF/Turtle semantic web exports
β
βββ vocabulary/ # π§ OMOP-inspired concept & terminology (SYSTEM-INTERNAL)
β βββ concept # Master concept table (cities, causes, officials)
β βββ vocabulary # Vocabulary sources (OCD_ID, IRS_NTEE, US_Census)
β βββ concept_class # Concept classifications (City, County, 501c3, Mayor)
β βββ concept_relationship # Relationships (City β County, Topic β Legislation)
β βββ domain # Domain groupings (Jurisdiction, Nonprofit, Policy)
β
βββ exports/ # π€ API-ready formatted exports
βββ csv_bulk # CSV downloads for all datasets
βββ json_api # REST API JSON responses
βββ graphql_schema # GraphQL schema definitions
βββ parquet_optimized # Compressed Parquet (default format)
```
### Parquet File Naming Convention
**Rule:** Use underscores (`_`) consistently, NOT hyphens (`-`)
**Format:** `{category}_{subcategory}.parquet`
**Examples:**
```
β
CORRECT (using underscores):
jurisdictions_cities.parquet
jurisdictions_counties.parquet
jurisdictions_states.parquet
jurisdictions_school_districts.parquet
social_twitter.parquet
social_facebook.parquet
videos_youtube_channels.parquet
events_events.parquet
contacts_officials.parquet
bills_bills.parquet
nonprofits_organizations.parquet
nonprofits_financials.parquet
nonprofits_programs.parquet
nonprofits_locations.parquet
nonprofits_irs_eobmf.parquet
nonprofits_constituents.parquet
nonprofits_donations.parquet
nonprofits_campaigns.parquet # Nonprofit fundraising campaigns (NOT political)
contacts_candidates.parquet # Political candidates (FEC)
contacts_nonprofit_donors.parquet # Nonprofit leadership political giving (FEC analysis)
contacts_constituents.parquet # Donors, volunteers, members, beneficiaries
campaigns_committees.parquet # Political committees/PACs (FEC)
campaigns_contributions.parquet # Political contributions (FEC)
nonprofits_memberships.parquet
nonprofits_volunteer_activities.parquet
nonprofits_program_delivery.parquet
nonprofits_program_outcomes.parquet
grants_federal_grants.parquet
contacts_officials.parquet
contacts_official_roles.parquet
contacts_official_contacts.parquet
contacts_official_identifiers.parquet
contacts_official_links.parquet
contacts_candidates.parquet
contacts_nonprofit_donors.parquet
contacts_constituents.parquet
bills_bills.parquet
bills_bill_actions.parquet
bills_bill_sponsorships.parquet
bills_bill_abstracts.parquet
bills_bill_versions.parquet
bills_bill_version_links.parquet
bills_bill_documents.parquet
bills_bill_document_links.parquet
bills_bill_subjects.parquet
bills_legislative_sessions.parquet
bills_vote_events.parquet
bills_vote_counts.parquet
bills_individual_votes.parquet
events.parquet
event_participants.parquet
event_agenda_items.parquet
event_documents.parquet
event_media.parquet
event_bills.parquet
budgets_city_budgets.parquet
surveys_national_polls.parquet
surveys_roper_questions.parquet
surveys_survey_providers.parquet
surveys_survey_studies.parquet
surveys_survey_variables.parquet
surveys_survey_responses.parquet
surveys_ipoll_metadata.parquet
factchecks_claim_reviews.parquet
factchecks_politifact.parquet
analytics_date_dimension.parquet
analytics_metric_views.parquet
analytics_temporal_relationships.parquet
standards_schema_org_jsonld.parquet
standards_popolo_exports.parquet
standards_ceds_aligned.parquet
standards_iati_activities.parquet
vocabulary_concept.parquet
vocabulary_vocabulary.parquet
vocabulary_concept_class.parquet
vocabulary_concept_relationship.parquet
β INCORRECT (using hyphens):
jurisdictions-cities.parquet
social-twitter.parquet
meetings-government-meetings.parquet
surveys-national-polls.parquet
factchecks-claim-reviews.parquet
analytics-date-dimension.parquet
standards-schema-org.parquet
```
**Why Underscores?**
- β
Python-friendly variable names (can use `data.jurisdictions_cities`)
- β
SQL-compatible column names
- β
Consistent with folder structure (`school_districts`, not `school-districts`)
- β
Better for programmatic access
- β
Avoids shell escaping issues
**Repository Name Exception:**
- HuggingFace repo: `CommunityOne/open-navigator-data` (hyphen is fine for URLs)
- File names inside repo: Use underscores (`jurisdictions_cities.parquet`)
## π Data Extraction Pipeline
### Phase 1: Discovery (Bronze Layer)
1. **Census Data** β Jurisdictions list
2. **GSA Domains** β Government websites
3. **NCES** β School districts with financial data (F-33 forms)
4. **IRS EO-BMF** β ALL 1.9M+ U.S. tax-exempt organizations (PRIMARY SOURCE)
5. **IRS TEOS** β Legacy nonprofit EINs (deprecated - use IRS EO-BMF)
6. **Census of Governments** β Municipal budgets & finances
7. **URL Discovery** β Meeting platforms, YouTube, budget PDFs
8. **Social Media** β Twitter, Facebook accounts
### Phase 2: Enrichment (Silver Layer)
1. **IRS EO-BMF** β Complete nonprofit registry with 28 data fields per organization
2. **ProPublica Nonprofit Explorer** β Enhanced financial data, detailed 990 filings
3. **Every.org API** β Nonprofit causes, missions, logos
3. **ARDA (Association of Religion Data Archives)** β Congregation characteristics, health ministries
4. **HIFLD Places of Worship** β Geospatial church locations (350K+ congregations)
5. **National Congregations Study** β Social service provision patterns
6. **NCES F-33 Finance Survey** β School district budgets, per-pupil spending
7. **Census Annual Survey** β State/local government finances
8. **Municipal Securities Rulemaking Board (EMMA)** β Bond debt data
9. **YouTube API** β Channel statistics
10. **Open States PostgreSQL Database** β Complete legislative data (~10 GB monthly dump)
- **8,600+ people** (legislators, governors, mayors) across all 50 states + DC + Puerto Rico
- **1.5M+ bills** with full text and history
- **13M+ bill actions** (introduced, committee, amendments, floor votes, signed)
- **7.2M+ sponsorships** (primary sponsors and co-sponsors)
- **3.5M+ bill versions** (as introduced, committee substitute, enrolled, enacted)
- **180K+ events** (legislative meetings, hearings, committee sessions)
- **835K+ event participants** (who spoke, testified, or attended)
- **524K+ agenda items** from meetings
- **Vote events** with individual legislator positions
- **Organizations** (legislative bodies, committees)
- **Jurisdictions** (states, territories)
- Updated monthly from https://data.openstates.org/postgres/monthly/
11. **OpenStates People Repository** β Current legislator contact info
- GitHub repo: https://github.com/openstates/people
- YAML files with email, phone, district offices
- Social media profiles and website links
- Updated daily via automated scrapers
12. **Wikidata SPARQL** β Entity relationships
12. **DBpedia** β Wikipedia structured data
13. **Google Civic** β Representatives
14. **OpenFEC API** β Political contributions, candidates, committees (campaign finance)
15. **GitHub API** β Civic tech projects, contributors, issues
16. **Civic Tech Field Guide** β Curated project taxonomy
17. **Code for America** β Brigade projects and hackathons
18. **Digital Public Goods Alliance** β DPG-certified open source projects
### Phase 3: Processing (Gold Layer)
1. **Meeting Extraction** β Agenda/minutes text
2. **Video Transcripts** β YouTube captions
3. **Document Analysis** β Keyword detection
4. **Relationship Mapping** β Entity connections
5. **Oral Health Filtering** β Topic classification
6. **Temporal Indexing** β Date dimension table, time-series relationships
7. **Metric View Creation** β Pre-computed analytics (advocacy activity, government spending, nonprofit impact)
8. **Schema.org JSON-LD** β Structured data exports (Event, Person, Organization, Legislation, ClaimReview)
9. **Popolo Compliance** β Open government standard exports (Person, Organization, Membership, VoteEvent)
10. **CEDS Alignment** β Education data mapping to NCES Element IDs and Option Sets
### New Dataset Categories Explained
#### π Analytics Datasets
**Purpose:** Enable time-series analysis, trend detection, and dashboard metrics without complex SQL queries.
| Dataset | Description | Refresh Frequency |
|---------|-------------|-------------------|
| `analytics_date_dimension` | Calendar reference table with fiscal years, quarters, day-of-week, holidays | Static (updated annually) |
| `analytics_temporal_relationships` | Pre-joined date keys for all time-based entities (meetings, votes, budgets, filings) | Daily |
| `analytics_metric_views` | Pre-computed analytics like advocacy_activity, government_spending, nonprofit_impact | Hourly |
| `analytics_aggregated_stats` | Monthly/quarterly/yearly rollups (meeting counts, budget totals, grant sums) | Daily |
| `analytics_dashboard_metrics` | Real-time feeds for dashboards (active meetings today, trending topics, hot ballot measures) | Every 5 minutes |
**Example Use Case:**
```sql
-- Instead of complex joins, use metric view:
SELECT * FROM analytics_metric_views
WHERE metric_name = 'advocacy_activity'
AND jurisdiction_id = 'ocd-division/country:us/state:al/place:birmingham'
AND date_period = '2024-Q1';
```
#### π Standards-Compliant Exports
**Purpose:** Maximum interoperability with civic tech platforms, search engines, and semantic web tools.
| Dataset | Standard | Use Case | Consumers |
|---------|----------|----------|-----------|
| `standards_schema_org_jsonld` | Schema.org JSON-LD | Google Search rich results, voice assistants | Google, Bing, Alexa, Siri |
| `standards_popolo_exports` | Popolo Project | Civic tech platform integration | mySociety, OpenNorth, Sunlight Foundation |
| `standards_ceds_aligned` | Common Education Data Standards | Education data exchange, NCES reporting | State education depts, Ed-Fi, IMS Global |
| `standards_ocd_divisions` | Open Civic Data IDs | Cross-platform jurisdiction referencing | Google Civic, Ballotpedia, Vote Smart |
| `standards_rdf_triples` | RDF/Turtle | Linked open data, knowledge graphs | DBpedia, Wikidata, SPARQL endpoints |
**Example Schema.org Export:**
```json
{
"@context": "https://schema.org",
"@type": "GovernmentOrganization",
"name": "Birmingham City Council",
"address": {
"@type": "PostalAddress",
"addressLocality": "Birmingham",
"addressRegion": "AL"
},
"event": [{
"@type": "Event",
"name": "Regular City Council Meeting",
"startDate": "2024-01-15T18:00:00-06:00"
}]
}
```
#### β
Fact-Checking Datasets
**Purpose:** Verify claims made in meetings, legislation, and political speech.
| Dataset | Source | Fields | Update Frequency |
|---------|--------|--------|------------------|
| `factchecks_claim_reviews` | Google Fact Check API | claimReviewed, reviewRating, author, datePublished | Daily |
| `factchecks_politifact` | PolitiFact web scraping | claim, ruling, truth_o_meter, context | Daily |
| `factchecks_factcheck_org` | FactCheck.org API/scraping | claim, verdict, analysis, sources | Daily |
| `factchecks_verified_claims` | Aggregated + deduplicated | claim_text, consensus_rating, verification_sources | Daily |
**Integration with Meetings:**
- Cross-reference meeting transcripts with verified claims
- Flag unverified statements in legislative debates
- Track politician accuracy scores over time
## οΏ½π Complete Data Model (ERD)
<ZoomableMermaid
title="Interactive Entity Relationship Diagram"
value={`
erDiagram
%% ========================================
%% CORE JURISDICTION ENTITIES
%% ========================================
%% Schema.org type: AdministrativeArea
%% OCD-ID format: ocd-division/country:us/state:al/place:birmingham
JURISDICTION ||--o{ EVENT : hosts
JURISDICTION ||--o{ LEADER : employs
JURISDICTION ||--o{ YOUTUBE_CHANNEL : operates
JURISDICTION ||--o{ SOCIAL_MEDIA : maintains
JURISDICTION ||--o{ MEETING_PLATFORM : uses
JURISDICTION {
string jurisdiction_id PK
string name
string jurisdiction_type
string state_code
string county_name
string website_url
float latitude
float longitude
string fips_code
int completeness_score
datetime discovered_at
}
%% Census and Government Data
JURISDICTION ||--o| CENSUS_DATA : has
CENSUS_DATA {
string jurisdiction_id PK
string county_fips
string place_fips
datetime census_year
}
JURISDICTION ||--o| GSA_DOMAIN : uses
GSA_DOMAIN {
string domain PK
string jurisdiction_id FK
string domain_type
string agency_name
string organization_type
string city
string state
datetime created_date
}
%% Government Finances
JURISDICTION ||--o{ GOVERNMENT_BUDGET : has
GOVERNMENT_BUDGET {
string budget_id PK
string jurisdiction_id FK
int fiscal_year
float total_revenue
float total_expenditures
float total_debt
float property_tax_revenue
float sales_tax_revenue
float federal_grants
float state_grants
float general_fund_balance
string budget_document_url
datetime published_date
}
%% ========================================
%% SCHOOL DISTRICTS (NCES)
%% ========================================
%% Based on CEDS (Common Education Data Standards) and NCES data elements
%% See: https://ceds.ed.gov/ and https://github.com/CEDStandards
%% Schema.org type: EducationalOrganization
JURISDICTION ||--o{ SCHOOL_DISTRICT : contains
SCHOOL_DISTRICT ||--o{ LEADER : governed_by
SCHOOL_DISTRICT {
string nces_id PK
string district_name
string jurisdiction_id FK
string state_code
string county_name
string district_type
int total_students
int total_schools
float total_revenue
float total_expenditures
float per_pupil_spending
float federal_revenue
float state_revenue
float local_revenue
string phone
string website
string superintendent
datetime school_year
}
%% ========================================
%% EVENTS & MEETINGS
%% ========================================
%% Schema.org types: Event, GovernmentEvent, VideoObject, DigitalDocument
%% Parquet files: events.parquet, event_documents.parquet, event_participants.parquet, etc.
%% EVENT - Parent entity for all public events
JURISDICTION ||--o{ EVENT : hosts
EVENT ||--o{ EVENT_PARTICIPANT : includes
EVENT ||--o{ EVENT_AGENDA_ITEM : contains
EVENT ||--o{ EVENT_DOCUMENT : produces
EVENT ||--o{ EVENT_MEDIA : recorded_as
EVENT ||--o{ EVENT_BILL : discusses
EVENT {
string event_id PK
string jurisdiction_id FK
string event_type "meeting/hearing/forum/workshop/town_hall"
string event_category "legislative/planning/public_health/education"
string meeting_type "regular/special/emergency/work_session/executive"
string platform "legistar/granicus/zoom/youtube_live"
string meeting_number "Sequential identifier"
datetime event_date
datetime end_date
string event_title
string body_name "City Council/Planning Commission/School Board"
string status "scheduled/in_progress/completed/cancelled/postponed"
string location_type "in_person/virtual/hybrid"
string venue_name
string venue_address
string agenda_packet_url
string minutes_url
string source_url
boolean requires_registration
float registration_fee
int max_capacity
string presenter
string training_topic
string target_audience
int agenda_item_count
int document_count
boolean has_video
boolean has_transcript
boolean oral_health_related
string data_source "openstates/legistar/granicus/manual"
datetime agenda_published_at
datetime minutes_approved_at
datetime created_at
datetime extracted_at
}
%% EVENT_PARTICIPANT - Who participated in the event
EVENT_PARTICIPANT {
string participant_id PK
string event_id FK
string participant_name
string participant_type "official/legislator/staff/public/expert/advocate"
string organization_name
string organization_id FK "Links to ORGANIZATION or LEADER"
string role "chair/member/speaker/witness/observer"
string participation_type "voting/testifying/presenting/attending"
int speaking_order
int speaking_duration_seconds
string remarks_summary
datetime participation_date
}
%% EVENT_AGENDA_ITEM - Individual topics discussed at event
EVENT_AGENDA_ITEM {
string agenda_item_id PK
string event_id FK
string item_number "1.A/2.B/etc"
string title
string description
string item_type "action/discussion/report/public_comment/consent"
string sponsor_name
string department "Public Works/Health Dept/Finance"
int sequence_order
int estimated_duration_minutes
int actual_duration_minutes
string outcome "approved/rejected/tabled/amended/continued"
string vote_result "5-2/unanimous/voice vote"
boolean requires_public_hearing
datetime scheduled_time
string keywords_found
boolean oral_health_related
}
%% EVENT_DOCUMENT - All documents (agendas, minutes, presentations, handouts)
%% Consolidates former AGENDA, MINUTES, DOCUMENT entities
EVENT_DOCUMENT {
string document_id PK
string event_id FK
string agenda_item_id FK "Optional - links to specific agenda item"
string document_type "agenda/minutes/presentation/handout/staff_report/ordinance/resolution"
string title
string full_text
string summary_text
string file_url
string pdf_url
string file_type "pdf/docx/pptx/txt"
int file_size_bytes
int page_count
string action_items "For minutes - extracted action items"
string votes "For minutes - vote records"
string keywords_found
boolean oral_health_related
datetime published_at
datetime approved_at "For minutes"
datetime uploaded_at
}
%% EVENT_MEDIA - Video recordings, livestreams, audio files
%% Consolidates former VIDEO entity
EVENT_MEDIA {
string media_id PK
string event_id FK
string media_type "video/audio/livestream/recording"
string platform "youtube/vimeo/granicus/zoom"
string media_url
string embed_url
string thumbnail_url
int duration_seconds
int view_count
string transcript_text
string transcript_url
string caption_language "en/es/etc"
boolean has_captions
string video_quality "720p/1080p/4K"
datetime published_at
datetime recorded_at
}
%% EVENT_BILL - Bills discussed or voted on at event
%% Links events to legislative bills
EVENT_BILL {
string event_bill_id PK
string event_id FK
string bill_id FK "Links to BILL entity"
string agenda_item_id FK "Optional - specific agenda item"
string action_taken "introduced/discussed/committee_vote/floor_vote/signed"
string vote_result "passed/failed/tabled"
int yes_votes
int no_votes
int abstain_votes
string discussion_summary
datetime action_date
}
%% ========================================
%% POLITICAL ECONOMY ANALYSIS
%% ========================================
%% Entities supporting the 4-step advocacy framework:
%% Step 1: Rhetoric Gap (Frame Analysis)
%% Step 2: Displacement Matrix (Budget Delta)
%% Step 3: Influence Radar (Stakeholder Analysis)
%% Step 4: Deferral Pattern (Temporal Voting Analysis)
%% See: extraction/decision_analyzer.py, extraction/budget_analyzer.py
EVENT ||--o{ POLICY_DECISION : produces
POLICY_DECISION ||--o{ DECISION_FRAME : framed_as
POLICY_DECISION ||--o{ DECISION_OPTION : considered
POLICY_DECISION ||--o{ DECISION_TRADEOFF : discussed
POLICY_DECISION ||--o{ STAKEHOLDER_POSITION : influenced_by
POLICY_DECISION ||--o{ DECISION_VOTE : voted_on
POLICY_DECISION {
string decision_id PK
string event_id FK "Links to EVENT"
string agenda_item_id FK "Optional - links to specific agenda item"
string decision_summary
string outcome "approved/rejected/tabled/amended"
string chosen_option
string primary_frame "Economic Development/Public Safety/Equity"
string primary_rationale
string vote_result "5-2/unanimous/voice vote"
int contention_score "0-100: Ratio of dissent"
string implementation_timeline
string cost_estimate
float confidence_score
datetime event_date
datetime extracted_at
}
%% STEP 1: RHETORIC GAP - Frame Analysis
DECISION_FRAME {
string frame_id PK
string decision_id FK
string frame_type "primary/competing"
string frame_name "public health/fiscal responsibility/equity"
string framing_language "Specific phrases used"
int mention_count
}
DECISION_OPTION {
string option_id PK
string decision_id FK
string option_description
boolean was_chosen
string rejection_reason
string opportunity_cost
}
DECISION_TRADEOFF {
string tradeoff_id PK
string decision_id FK
string tradeoff_type "cost vs benefit/autonomy vs community"
string discussion_text
string evidence_cited
}
%% STEP 3: INFLUENCE RADAR - Stakeholder Analysis
STAKEHOLDER_POSITION {
string position_id PK
string decision_id FK
string stakeholder_name
string stakeholder_role "Health Dept/PTA/Taxpayer Assoc"
string stakeholder_affiliation
string position_type "supporter/opponent/undecided"
string main_argument
string evidence_type "study/expert opinion/data"
int speaking_order "Track who speaks when"
}
%% STEP 4: DEFERRAL PATTERN - Temporal Voting Analysis
DECISION_VOTE {
string vote_record_id PK
string decision_id FK
string leader_id FK
string vote_value "yes/no/abstain/absent"
string stated_reason
boolean switched_position
int days_since_election "Temporal context"
}
%% Deferral Pattern Tracking - Links same topic across multiple meetings
POLICY_DECISION ||--o{ DEFERRAL_INSTANCE : part_of
DEFERRAL_PATTERN ||--o{ DEFERRAL_INSTANCE : tracks
DEFERRAL_PATTERN {
string pattern_id PK
string topic "Community Dental Clinic Funding"
string conclusion "Strategic delay or genuine study"
datetime first_mentioned "When first introduced"
datetime last_discussed "Most recent tabling"
int total_deferrals "How many times tabled"
int months_in_limbo "Time since first mention"
string pattern_type "Rationale of Attrition/Sincere Analysis/Political Timing"
string strategic_inference "Waiting for momentum to fade"
int discomfort_score "1-10: Political sensitivity"
string next_review_date "When scheduled to revisit"
boolean still_pending
}
DEFERRAL_INSTANCE {
string instance_id PK
string pattern_id FK
string decision_id FK
datetime deferral_date
string stated_reason "More study needed/Budget constraints/Public input"
string speaker "Who gave the justification"
int months_since_first "Time elapsed"
string previous_reason "What they said last time"
boolean reason_changed "Shifting justifications"
}
%% STEP 2: DISPLACEMENT MATRIX - Budget-to-Minutes Delta
GOVERNMENT_BUDGET ||--o{ BUDGET_LINE_ITEM : contains
BUDGET_LINE_ITEM ||--o{ BUDGET_DELTA : analyzed_as
BUDGET_LINE_ITEM {
string line_item_id PK
string budget_id FK
string category "Education/Health/Infrastructure"
string subcategory
string description
float current_amount
float previous_amount
float change_amount
float percent_change
string funding_source "grants/taxpayer/bonds"
int fiscal_year
}
BUDGET_DELTA {
string delta_id PK
string line_item_id FK
int event_mentions "How many times discussed at events"
string praise_level "High/Medium/Low/None"
string funding_change "Expansion/Stagnant/Decreased"
string delta_type "Expansion/Lip Service/Hidden Priority/Aligned"
float delta_score "-1 to +1: rhetoric vs reality gap"
string stated_rationale "What they said at events"
string inferred_rationale "What budget reveals"
string underlying_logic "Genuine/Performative/Bureaucratic"
datetime analyzed_at
}
%% QUANTITATIVE INDICATORS
EVENT ||--o{ KEYWORD_DENSITY : measured_by
KEYWORD_DENSITY {
string density_id PK
string event_id FK "Links to EVENT"
string keyword "grant/taxpayer/emergency/equity"
string keyword_category "funding_source/urgency/values"
int occurrence_count
float per_1000_words
datetime analyzed_at
}
%% ELECTION CYCLE ANALYSIS
JURISDICTION ||--o{ ELECTION_CYCLE : holds
ELECTION_CYCLE ||--o{ POLICY_DECISION : influences
ELECTION_CYCLE {
string election_id PK
string jurisdiction_id FK
datetime election_date
string election_type "municipal/school board/state"
int decisions_12mo_before
int decisions_6mo_before
int decisions_3mo_before
int decisions_6mo_after
float avg_project_cost_before
float avg_project_cost_after
boolean pre_election_spike_detected
string inference "incumbency protection/normal variance"
}
%% ========================================
%% LEADERS & OFFICIALS
%% ========================================
%% Based on Popolo Project schema for representing people and positions
%% See: https://github.com/popolo-project/popolo-spec
%% Schema.org types: Person, GovernmentOfficial
LEADER ||--o{ VOTE : casts
LEADER ||--o{ SOCIAL_MEDIA : maintains
LEADER {
string leader_id PK
string jurisdiction_id FK
string full_name
string title
string position_type
string office
string party_affiliation
string email
string phone
string website
string photo_url
datetime term_start
datetime term_end
boolean is_active
datetime verified_at
}
VOTE {
string vote_id PK
string leader_id FK
string event_id FK "Links to EVENT"
string agenda_item_id FK "Optional - links to specific agenda item"
string item_description
string vote_value
datetime vote_date
}
%% ========================================
%% STATE LEGISLATORS & LEGISLATIVE DATA (Open States/Plural Policy)
%% ========================================
%% Data Source: Open States PostgreSQL dump (~10 GB)
%% Coverage: 7,300+ state legislators across all 50 states + DC + Puerto Rico
%% See: https://open.pluralpolicy.com/data/ and https://github.com/openstates/people/blob/master/schema.md
%% Schema.org types: Person, GovernmentOfficial, Legislation, VoteAction
%% Popolo Project compliance: https://www.popoloproject.com/
JURISDICTION ||--o{ LEGISLATOR : represents
LEGISLATOR ||--o{ LEGISLATOR_OFFICE : has
LEGISLATOR ||--o{ COMMITTEE_MEMBERSHIP : serves_on
LEGISLATOR ||--o{ BILL_SPONSOR : sponsors
LEGISLATOR ||--o{ LEGISLATOR_VOTE : casts
LEGISLATOR ||--o{ SOCIAL_MEDIA : maintains
LEGISLATOR {
string legislator_id PK "ocd-person/{uuid}"
string jurisdiction_id FK "ocd-division/country:us/state:al"
string full_name
string given_name "First name"
string family_name "Last name"
string middle_name
string suffix
string gender "Male/Female/Other"
string email "Official email"
string biography "Official bio text"
string birth_date "YYYY-MM-DD"
string death_date "YYYY-MM-DD"
string image_url "Official photo"
string twitter_handle "@username"
string youtube_handle
string instagram_handle
string facebook_handle
string party_name "Democratic/Republican/Independent"
datetime party_start_date
datetime party_end_date
string chamber "upper/lower/legislature"
string district "District name/number"
datetime term_start_date
datetime term_end_date
string end_reason "resignation/death/term_limit/defeated"
string website_url
boolean is_active
datetime last_updated
}
LEGISLATOR_OFFICE {
string office_id PK
string legislator_id FK
string office_type "District Office/Capitol Office"
string address "Mailing address"
string voice "Phone number"
string fax "Fax number"
string email "Office email"
string city
string state
string zip_code
boolean is_primary
}
COMMITTEE ||--o{ COMMITTEE_MEMBERSHIP : includes
COMMITTEE {
string committee_id PK "ocd-organization/{uuid}"
string jurisdiction_id FK
string name "Committee on Health and Human Services"
string chamber "upper/lower/legislature"
string classification "committee/subcommittee"
string parent_committee_id FK "If subcommittee"
datetime created_date
datetime abolished_date
boolean is_active
}
COMMITTEE_MEMBERSHIP {
string membership_id PK
string committee_id FK
string legislator_id FK
string role "chair/vice_chair/ranking_member/member"
datetime start_date
datetime end_date
boolean is_active
}
BILL ||--o{ BILL_SPONSOR : has
BILL ||--o{ BILL_ACTION : tracked_by
BILL ||--o{ BILL_VERSION : has_versions
BILL ||--o{ VOTE_EVENT : subject_of
BILL {
string bill_id PK "ocd-bill/{uuid}"
string jurisdiction_id FK
string session_id "2024 Regular Session"
string chamber "upper/lower"
string identifier "HB 123/SB 456"
string title "An Act to provide dental screenings in schools"
string classification "bill/resolution/concurrent_resolution"
string subject "Health/Education/Budget"
string full_text "Complete bill text"
string summary "Bill summary"
datetime introduced_date
datetime first_reading_date
datetime second_reading_date
datetime third_reading_date
datetime committee_referral_date
string committee_assigned
datetime committee_vote_date
string committee_outcome "favorable/unfavorable"
datetime floor_vote_date
string floor_outcome "passed/failed"
datetime signed_date
datetime effective_date
string status "introduced/committee/floor/passed/failed/signed/vetoed"
string source_url "Link to official bill text"
datetime last_action_date
string last_action_description
boolean is_oral_health_related
datetime created_at
datetime updated_at
}
BILL_SPONSOR {
string sponsor_id PK
string bill_id FK
string legislator_id FK
string sponsor_type "primary/cosponsor"
int sponsor_order "1 for primary, 2+ for cosponsors"
datetime sponsored_date
}
BILL_ACTION {
string action_id PK
string bill_id FK
datetime action_date
string action_description "Referred to Committee on Health"
string action_type "introduction/referral/committee/amendment/vote/signing"
string chamber "upper/lower"
int sequence_number
}
BILL_VERSION {
string version_id PK
string bill_id FK
string version_name "As Introduced/Committee Substitute/Enrolled"
string full_text "Complete version text"
string pdf_url
datetime version_date
string note "Amendments adopted"
}
VOTE_EVENT ||--o{ LEGISLATOR_VOTE : includes
VOTE_EVENT {
string vote_event_id PK "ocd-vote/{uuid}"
string bill_id FK
string jurisdiction_id FK
string chamber "upper/lower"
datetime vote_date
string motion_text "Passage of HB 123"
string motion_classification "passage/amendment/procedural"
string result "passed/failed"
int yes_count
int no_count
int abstain_count
int absent_count
int not_voting_count
int total_count
float pass_threshold "0.5 for simple majority, 0.67 for supermajority"
boolean passed
string source_url "Link to official vote record"
}
LEGISLATOR_VOTE {
string legislator_vote_id PK
string vote_event_id FK
string legislator_id FK
string vote_position "yes/no/abstain/absent/not_voting/excused"
string voter_name "Name at time of vote"
string voter_party "Party at time of vote"
string voter_district "District at time of vote"
}
%% ========================================
%% ORGANIZATIONS (NONPROFITS & CHURCHES)
%% ========================================
%% Based on Popolo Project schema for organizations
%% See: https://github.com/popolo-project/popolo-spec
%% Schema.org types: Organization, NGO, Church, WorshipPlace
%% PRIMARY DATA SOURCE: IRS EO-BMF (1.9M+ organizations, 28 fields)
ORGANIZATION ||--o{ SOCIAL_MEDIA : maintains
ORGANIZATION ||--o{ LEADER : employs
ORGANIZATION ||--o{ NONPROFIT_FINANCES : files
ORGANIZATION ||--o{ CAMPAIGN : runs
ORGANIZATION ||--o{ PROGRAM_DELIVERY : delivers
ORGANIZATION ||--o{ CONGREGATION : has
ORGANIZATION {
string org_id PK
string ein "Employer ID Number (IRS EO-BMF)"
string name "Organization legal name (IRS EO-BMF)"
string sort_name "Alphabetic sort name (IRS EO-BMF)"
string ntee_code "NTEE classification (IRS EO-BMF)"
string ntee_description
string subsection_code "501(c)(3) = 03, etc (IRS EO-BMF)"
string foundation_code "15=Public Charity, etc (IRS EO-BMF)"
string organization_code "1=Corporation, 2=Trust (IRS EO-BMF)"
string deductibility_status "1=Deductible (IRS EO-BMF)"
string exempt_status_code "1=Unconditional (IRS EO-BMF)"
string causes "Every.org tags"
string org_type
string state_code "2-letter state (IRS EO-BMF)"
string city "City name (IRS EO-BMF)"
string street_address "Street address (IRS EO-BMF)"
string zip_code "ZIP code (IRS EO-BMF)"
float asset_amount "Total assets (IRS EO-BMF)"
float income_amount "Annual income (IRS EO-BMF)"
float revenue_amount "Total revenue (IRS EO-BMF)"
string ruling_date "Tax-exempt ruling date YYYYMM (IRS EO-BMF)"
string tax_period "Tax period YYYYMM (IRS EO-BMF)"
string activity_codes "Activity classification (IRS EO-BMF)"
string group_exemption "Group ruling number (IRS EO-BMF)"
string affiliation_code "Subordinate code (IRS EO-BMF)"
int employee_count "From Form 990"
string mission_statement "ProPublica/Every.org"
string description "ProPublica/Every.org"
string logo_url "Every.org"
string website "Discovered URL"
boolean is_verified "Data quality flag"
string data_source "IRS_EO_BMF/ProPublica/EveryOrg"
datetime last_updated
}
%% Churches & Congregations (org_type='church', ntee_code='X20')
%% Data sources: IRS TEOS, ARDA, HIFLD Places of Worship, National Congregations Study
%% Many churches provide health ministries, food programs, and community services
CONGREGATION {
string congregation_id PK
string org_id FK
string denomination
string religious_tradition
int congregation_size
int weekly_attendance
boolean has_health_ministry
boolean has_food_program
boolean has_youth_program
boolean has_senior_program
string service_schedule
string clergy_name
string clergy_title
int volunteer_count
float community_outreach_budget
string facility_type
int seating_capacity
datetime founded_year
string parent_denomination
boolean serves_underserved
}
%% Nonprofit 990 Financial Data
NONPROFIT_FINANCES {
string filing_id PK
string ein FK
int tax_year
float total_revenue
float total_expenses
float total_assets
float total_liabilities
float net_assets
float program_expenses
float admin_expenses
float fundraising_expenses
float grants_paid
float contributions_received
float government_grants
float foundation_grants
float corporate_donations
float individual_donations
float membership_dues
float special_events_revenue
float program_service_revenue
float investment_income
float rental_income
float sale_of_assets
float other_revenue
float employee_compensation
int employee_count
int volunteer_count
float overhead_ratio
float fundraising_efficiency
string form_990_url
datetime filing_date
}
%% Grant Transactions (Individual Grants)
ORGANIZATION ||--o{ GRANT : receives
JURISDICTION ||--o{ GRANT : awards
GRANT {
string grant_id PK
string recipient_ein FK
string recipient_name
string recipient_type
string funder_name
string funder_ein
string funder_type
float grant_amount
string grant_purpose
string program_area
datetime award_date
datetime start_date
datetime end_date
int grant_duration_months
string grant_status
string funding_source
boolean multi_year
string restrictions
string reporting_requirements
}
%% ========================================
%% MEDIA & COMMUNICATIONS
%% ========================================
YOUTUBE_CHANNEL {
string channel_id PK
string jurisdiction_id FK
string channel_name
string channel_url
int subscriber_count
int video_count
int total_views
string description
datetime created_date
datetime last_scraped
}
SOCIAL_MEDIA {
string account_id PK
string entity_id FK
string entity_type
string platform
string handle
string profile_url
int follower_count
int post_count
boolean is_verified
datetime last_updated
}
MEETING_PLATFORM {
string platform_id PK
string jurisdiction_id FK
string platform_name
string base_url
string api_endpoint
string calendar_url
string archive_url
boolean has_api
datetime discovered_at
}
%% ========================================
%% OPEN STATES (LEGISLATIVE DATA)
%% ========================================
STATE_LEGISLATURE ||--o{ STATE_LEGISLATOR : has_member
STATE_LEGISLATURE ||--o{ STATE_BILL : introduces
STATE_LEGISLATURE ||--o{ STATE_COMMITTEE : contains
STATE_LEGISLATURE {
string legislature_id PK
string state_code
string session_year
string session_type
datetime session_start
datetime session_end
}
STATE_LEGISLATOR {
string legislator_id PK
string legislature_id FK
string full_name
string party
string district
string chamber
string email
string capitol_phone
string photo_url
string openstates_id
}
STATE_BILL {
string bill_id PK
string legislature_id FK
string bill_number
string title
string summary
string status
string sponsors
datetime introduced_date
datetime last_action_date
string openstates_url
}
STATE_COMMITTEE {
string committee_id PK
string legislature_id FK
string name
string chamber
string parent_id FK
string members
}
%% ========================================
%% CIVIC TECH & OPEN SOURCE PROJECTS
%% ========================================
%% Data sources: GitHub API, Civic Tech Field Guide, Code for America, USDR, Digital Public Goods Alliance
%% Treats open source projects as first-class civic entities
CIVIC_TECH_PROJECT ||--o{ PROJECT_CONTRIBUTOR : has
CIVIC_TECH_PROJECT ||--o{ PROJECT_ISSUE : tracks
CIVIC_TECH_PROJECT ||--o{ PROJECT_FUNDING : receives
CIVIC_TECH_PROJECT ||--o{ HACKATHON_PROJECT : originates_from
CIVIC_TECH_PROJECT {
string project_id PK
string repository_url
string github_owner
string github_repo
string project_name
string description
string readme_content
string primary_language
string tech_stack
int star_count
int fork_count
int contributor_count
int open_issue_count
string license_type
string project_category
string civic_tech_topics
string issue_area
boolean is_dpg_certified
string project_status
string homepage_url
string documentation_url
datetime created_at
datetime last_commit
datetime last_updated
}
PROJECT_CONTRIBUTOR {
string contributor_id PK
string project_id FK
string github_username
string display_name
string email
string role
int commit_count
int pr_count
int issue_count
boolean is_maintainer
boolean is_core_contributor
string sponsor_url
datetime first_contribution
datetime last_contribution
}
PROJECT_ISSUE {
string issue_id PK
string project_id FK
int issue_number
string title
string description
string status
string labels
boolean is_good_first_issue
boolean is_help_wanted
int reaction_count
int comment_count
string assigned_to
datetime created_at
datetime closed_at
}
PROJECT_FUNDING {
string funding_id PK
string project_id FK
string funding_source
float monthly_revenue
int sponsor_count
string grant_name
float grant_amount
string funding_platform
datetime funding_date
}
%% Hackathons & Civic Tech Events
HACKATHON ||--o{ HACKATHON_PROJECT : produces
HACKATHON ||--o{ HACKATHON_PARTICIPANT : includes
HACKATHON {
string hackathon_id PK
string event_name
string organizer
string location
string city
string state
datetime start_date
datetime end_date
string event_type
string focus_area
int participant_count
int project_count
string event_url
string registration_url
boolean is_virtual
string brigade_chapter
string sponsor_organizations
datetime created_at
}
HACKATHON_PROJECT {
string hackathon_project_id PK
string hackathon_id FK
string project_id FK
string project_name
string description
string team_members
string repository_url
string demo_url
string presentation_url
boolean won_award
string award_category
boolean became_ongoing_project
datetime created_at
}
HACKATHON_PARTICIPANT {
string participant_id PK
string hackathon_id FK
string participant_name
string email
string github_username
string role
string skills
string team_name
datetime registered_at
}
%% Code for America Brigades
BRIGADE_CHAPTER ||--o{ HACKATHON : hosts
BRIGADE_CHAPTER ||--o{ CIVIC_TECH_PROJECT : maintains
BRIGADE_CHAPTER {
string brigade_id PK
string brigade_name
string city
string state
string website_url
string github_org
string meetup_url
int member_count
int project_count
string meeting_schedule
string contact_email
boolean is_active
datetime founded_date
datetime last_activity
}
%% ========================================
%% WIKIDATA ENTITIES
%% ========================================
WIKIDATA_ENTITY ||--o{ WIKIDATA_RELATIONSHIP : source
WIKIDATA_ENTITY ||--o{ WIKIDATA_RELATIONSHIP : target
WIKIDATA_ENTITY {
string wikidata_id PK
string entity_type
string label
string description
string wikipedia_url
string image_url
string aliases
string properties
datetime last_updated
}
WIKIDATA_RELATIONSHIP {
string relationship_id PK
string source_id FK
string target_id FK
string predicate
datetime start_date
datetime end_date
string qualifiers
}
%% ========================================
%% COMMUNITY SOLUTIONS - USE CASE TEMPLATES
%% ========================================
COMMUNITY_SOLUTION ||--o{ SOLUTION_STAKEHOLDER : involves
COMMUNITY_SOLUTION ||--o{ SOLUTION_METRIC : tracks
COMMUNITY_SOLUTION {
string solution_id PK
string title
string challenge_description
string engagement_level "Spectrum: Inform/Consult/Involve/Collaborate/Defer"
string sector_focus "CBOs/City-County/Philanthropy/Facilitative Leaders"
string harvard_use_case_id "Links to Harvard Data-Smart catalog"
string brookings_academy_id "Links to Data Academy programs"
string ocd_division_id FK "Jurisdiction implementing solution"
date implementation_start
date implementation_end
string status "Planning/Active/Completed"
string outcome_summary
string data_sources "Which datasets used"
timestamp created_at
timestamp updated_at
}
SOLUTION_STAKEHOLDER {
string stakeholder_id PK
string solution_id FK
string stakeholder_type "CBO/Government/Funder/Facilitator"
string organization_id "Links to NONPROFIT/JURISDICTION/GRANT_MAKER/OFFICIAL"
string role_description
string engagement_level
boolean is_lead_organization
timestamp created_at
timestamp updated_at
}
SOLUTION_METRIC {
string metric_id PK
string solution_id FK
string metric_name
string metric_type "KPI/Output/Outcome/Impact"
string data_source "Which dataset(s)"
string metric_view_id "Links to /analytics/metric_views"
decimal baseline_value
decimal target_value
decimal current_value
date measurement_date
string notes
timestamp created_at
timestamp updated_at
}
%% ========================================
%% DBPEDIA ENTITIES
%% ========================================
DBPEDIA_RESOURCE {
string resource_uri PK
string label
string description
string categories
string classes
string infobox_properties
string wikipedia_url
int ref_count
datetime extracted_at
}
%% ========================================
%% GOOGLE CIVIC DATA
%% ========================================
CIVIC_DIVISION ||--o{ CIVIC_REPRESENTATIVE : has
CIVIC_DIVISION {
string ocd_id PK
string division_name
string division_type
string state
string county
string office_types
string boundaries_geojson
}
CIVIC_REPRESENTATIVE {
string representative_id PK
string ocd_id FK
string name
string office_name
string party
string phones
string emails
string urls
string social_channels
string photo_url
}
CIVIC_ELECTION {
string election_id PK
string name
datetime election_day
string ocd_division FK
string contests
string polling_locations
}
%% ========================================
%% USER & SOCIAL FEATURES
%% ========================================
USER ||--o{ USER_FOLLOW : follows
USER ||--o{ LEADER_FOLLOW : follows_leader
USER ||--o{ ORG_FOLLOW : follows_org
USER ||--o{ CAUSE_FOLLOW : follows_cause
USER {
int user_id PK
string email
string username
string full_name
string oauth_provider
string state
string county
string city
string school_board
boolean profile_completed
datetime created_at
}
USER_FOLLOW {
int id PK
int follower_id FK
int following_id FK
datetime created_at
}
LEADER_FOLLOW {
int id PK
int user_id FK
string leader_id FK
datetime created_at
}
ORG_FOLLOW {
int id PK
int user_id FK
string org_id FK
datetime created_at
}
CAUSE ||--o{ CAUSE_FOLLOW : followed_by
CAUSE {
int cause_id PK
string name
string slug
string description
string category
string icon_url
string color
int follower_count
}
CAUSE_FOLLOW {
int id PK
int user_id FK
int cause_id FK
datetime created_at
}
%% ========================================
%% MEETINGBANK (HUGGINGFACE DATASET)
%% ========================================
MEETINGBANK_MEETING {
string instance_id PK
string city_name
datetime meeting_date
string transcript_text
string summary_text
string source_url
string split
datetime ingested_at
}
%% ========================================
%% MICROSOFT CDM: NONPROFIT CONSTITUENT MANAGEMENT
%% Based on Microsoft Common Data Model for Nonprofits
%% See: https://github.com/microsoft/Nonprofits/
%% ========================================
CONSTITUENT ||--o{ DONATION : makes
CONSTITUENT ||--o{ MEMBERSHIP : enrolls_in
CONSTITUENT ||--o{ VOLUNTEER_ACTIVITY : participates_in
CONSTITUENT {
string constituent_id PK
string constituent_type "Donor, Volunteer, Member, Beneficiary"
string first_name
string last_name
string email
string phone
string address
string city
string state_code
string zip_code
datetime first_engagement_date
datetime last_engagement_date
float lifetime_giving_total
int volunteer_hours_total
string preferred_communication
boolean is_active
datetime created_at
}
CAMPAIGN ||--o{ DONATION : receives
ORGANIZATION ||--o{ CAMPAIGN : runs
CAMPAIGN {
string campaign_id PK
string org_id FK
string campaign_name
string campaign_type "Annual Fund, Capital, Major Gifts, Peer-to-Peer"
datetime start_date
datetime end_date
float goal_amount
float raised_amount
int donor_count
string status "Planning, Active, Completed, Cancelled"
string description
datetime created_at
}
DONATION ||--o| DESIGNATION : allocated_to
DONATION {
string donation_id PK
string constituent_id FK
string campaign_id FK
string designation_id FK "Program, Fund, or Campaign"
float amount
string donation_type "Cash, Stock, In-Kind, Pledge"
datetime donation_date
string payment_method "Check, Credit Card, ACH, Wire"
string acknowledgment_status "Pending, Sent, Thanked"
boolean is_recurring
string recurring_frequency "Monthly, Quarterly, Annual"
string receipt_number
datetime created_at
}
DESIGNATION {
string designation_id PK
string designation_name "General Fund, Building Fund, Program X"
string designation_type "Unrestricted, Restricted, Endowment"
string fund_code
float current_balance
string description
}
MEMBERSHIP {
string membership_id PK
string constituent_id FK
string org_id FK
string membership_type "Individual, Family, Corporate, Lifetime"
datetime start_date
datetime end_date
float membership_fee
string status "Active, Expired, Cancelled, Grace Period"
boolean auto_renew
datetime renewal_date
string benefits "Newsletter, Events, Discounts"
datetime created_at
}
VOLUNTEER_ACTIVITY {
string activity_id PK
string constituent_id FK
string org_id FK
string activity_type "Event, Ongoing, Skilled, Board Service"
datetime activity_date
float hours_logged
string role "Coordinator, Assistant, Specialist"
string skills_used "IT, Legal, Marketing, Manual Labor"
string supervisor
string notes
datetime created_at
}
PROGRAM_DELIVERY ||--o{ PROGRAM_OUTCOME : achieves
ORGANIZATION ||--o{ PROGRAM_DELIVERY : delivers
JURISDICTION ||--o{ PROGRAM_DELIVERY : serves
PROGRAM_DELIVERY {
string program_id PK "Also iati-identifier"
string org_id FK
string program_name
string program_type "Direct Service, Advocacy, Education, Research"
string target_population "Youth, Seniors, Low-Income, Veterans"
int beneficiaries_served
datetime start_date "IATI: activity-date[@type='start-planned']"
datetime end_date "IATI: activity-date[@type='end-actual']"
float program_budget "IATI: budget[@type='original']"
float program_expenses "IATI: transaction[@type='4']"
string status "Active, Completed, On Hold"
string description
string iati_identifier "Unique IATI activity ID"
string iati_activity_status "1=Pipeline, 2=Active, 3=Completed, 4=Suspended, 5=Cancelled"
string iati_sector_code "OECD DAC 5-digit sector code"
string iati_sector_vocabulary "DAC, NTEE, Custom"
string recipient_country_code "ISO 3166-1 alpha-2"
string recipient_region "Sub-national region"
datetime created_at
}
PROGRAM_OUTCOME {
string outcome_id PK
string program_id FK
string outcome_name "Literacy Rate, Job Placement, Health Improvement"
string metric_type "Percentage, Count, Score, Binary"
float baseline_value "IATI: baseline[@year, @value]"
float target_value "IATI: target[@value]"
float actual_value "IATI: actual[@value]"
string measurement_period "Monthly, Quarterly, Annual"
datetime measurement_date
datetime period_start "IATI: period-start[@iso-date]"
datetime period_end "IATI: period-end[@iso-date]"
string data_source "Survey, Administrative, Third-Party"
string iati_result_type "1=Output, 2=Outcome, 3=Impact, 9=Other"
string iati_indicator_measure "1=Unit, 2=Percentage, 3=Nominal, 4=Ordinal, 5=Qualitative"
boolean iati_ascending "True if higher is better"
string notes
datetime created_at
}
%% ========================================
%% BALLOT MEASURES & ADVOCACY
%% Data Sources: Ballotpedia (comprehensive measures),
%% MIT Election Lab (federal results),
%% OpenElections (certified state results)
%% See: ballot-election-sources.md
%% Schema.org type: Legislation (with referendumProposal property)
%% ========================================
JURISDICTION ||--o{ BALLOT_MEASURE : hosts
STATE_LEGISLATURE ||--o{ BALLOT_MEASURE : proposes
POLICY_TOPIC ||--o{ BALLOT_MEASURE : addresses
BALLOT_MEASURE {
string measure_id PK
string jurisdiction_id FK "OCD-ID format"
string state_code "Two-letter code"
datetime election_date
string measure_number "Proposition 15, Question 2"
string title "Measure title"
string description "Full description"
string measure_type "Initiative, Referendum, Bond"
string topic_category "fluoridation, education, tax"
string status "qualified, certified, passed, failed"
string result "passed, failed, pending"
int yes_votes "Total yes votes"
int no_votes "Total no votes"
float yes_percentage "Yes vote percentage"
string full_text_url "Official measure text"
string ballotpedia_url "Ballotpedia reference"
string openelections_source "OpenElections CSV file"
datetime created_at
}
POLICY_TOPIC ||--o{ MEETING : discussed_in
POLICY_TOPIC ||--o{ LEGISLATION : addresses
POLICY_TOPIC ||--o{ SURVEY_VARIABLE : measured_by
POLICY_TOPIC {
string topic_id PK
string topic_name "Water Fluoridation Support"
string category "health_policy"
string description "Public opinion on fluoridation"
string keywords "fluoride, water treatment"
int priority_level "1-10 importance ranking"
string icon "π¦·"
int jurisdiction_count "How many jurisdictions discuss"
datetime created_at
}
%% ========================================
%% PUBLIC OPINION SURVEYS & POLLING
%% Data Sources: Roper Center iPoll, Pew Research, Gallup, ANES
%% Standardized survey metadata and response data
%% ========================================
SURVEY_PROVIDER ||--o{ SURVEY : conducts
SURVEY_PROVIDER {
string provider_id PK
string provider_name "Gallup, Pew Research Center, Roper Center"
string organization_type "Academic, Commercial, Government, Nonprofit"
string country "US, UK, International"
string website_url
string methodology_url
boolean is_member_aapor "American Association for Public Opinion Research"
boolean is_member_ncpp "National Council on Public Polls"
string data_access_policy "Open, Restricted, Membership, Purchase"
datetime founded_date
datetime created_at
}
SURVEY ||--o{ SURVEY_VARIABLE : contains
JURISDICTION ||--o{ SURVEY : targets
SURVEY {
string survey_id PK
string provider_id FK
string study_name "Gallup Poll Social Series: Environment"
string study_number "USGALLUP.031915 (Roper format)"
string roper_ipoll_id "Unique iPoll identifier"
datetime field_start_date "First day of data collection"
datetime field_end_date "Last day of data collection"
int sample_size "Total respondents"
string population "U.S. adults 18+, Registered voters"
string sampling_method "Random digit dial, Address-based, Online panel"
string mode "Telephone, Web, In-person, Mail, Mixed"
float response_rate "AAPOR RR1 response rate percentage"
float margin_of_error "95% confidence interval MOE"
string weighting_variables "Age, gender, race, education, region"
string geographic_coverage "National, State, County, City"
string jurisdiction_id FK "If targeted to specific jurisdiction"
string funding_source "NSF, Private foundation, Media sponsor"
string data_collection_firm "Contract research organization"
boolean is_cross_sectional "True if one-time, False if panel/longitudinal"
string language "English, Spanish, Bilingual"
string questionnaire_url "Link to full questionnaire PDF"
string topline_results_url "Frequency tables"
string microdata_url "Individual-level data file"
datetime created_at
}
SURVEY_VARIABLE ||--o{ SURVEY_RESPONSE : has_responses
POLICY_TOPIC ||--o{ SURVEY_VARIABLE : measures
SURVEY_VARIABLE {
string variable_id PK
string survey_id FK
string topic_id FK "Links to POLICY_TOPIC"
string variable_name "Q12, V0023, FLUORIDE_SUPPORT"
string question_text "Do you favor or oppose adding fluoride to your community's water supply?"
string question_wording_exact "Full verbatim question including intro"
int question_number "Order in questionnaire"
string variable_label "Fluoride support"
string response_type "Single choice, Multiple choice, Numeric, Text"
string scale_type "Binary, Likert 5-point, 0-10, Thermometer"
string response_options_json "JSON array of coded responses"
boolean is_required "Skip logic"
string filter_condition "If Q11=Yes, ask Q12"
string universe "All respondents, Homeowners only, etc"
string notes "Interviewer instructions, context"
datetime created_at
}
SURVEY_RESPONSE {
string response_id PK
string variable_id FK
string jurisdiction_id FK "For geographic crosstabs"
string response_value "Favor, Oppose, Don't know"
int response_code "1, 2, 98"
int unweighted_count "Raw number of respondents"
int weighted_count "Weighted frequency"
float percentage "Weighted percentage"
float standard_error "SE for percentage estimate"
string demographic_filter "Age 18-29, College grad, Republican"
string geographic_filter "Northeast region, Urban, Alabama"
string crosstab_type "Total, By age, By education, By party ID"
datetime created_at
}
JURISDICTION ||--o{ LEGISLATION : enacts
STATE_LEGISLATURE ||--o{ LEGISLATION : proposes
%% Schema.org type: Legislation
LEGISLATION {
string bill_id PK
string jurisdiction_id FK
string state_code
string bill_number
string title
string description
string status
string sponsor
datetime introduced_date
datetime passed_date
datetime effective_date
string full_text_url
string openstates_url
string topic_category
string chamber
int vote_yes
int vote_no
}
%% ========================================
%% POLITICAL CAMPAIGN FINANCE (FEC DATA)
%% ========================================
%% Data Source: OpenFEC API (https://api.open.fec.gov/developers/)
%% Tracks individual political contributions, candidates, and committees
%% Links to nonprofits via employer matching and officer name matching
JURISDICTION ||--o{ POLITICAL_CANDIDATE : represents
POLITICAL_CANDIDATE ||--o{ POLITICAL_CONTRIBUTION : receives
POLITICAL_COMMITTEE ||--o{ POLITICAL_CONTRIBUTION : receives
ORGANIZATION ||--o{ NONPROFIT_POLITICAL_DONOR : employs
POLITICAL_CONTRIBUTION ||--o{ NONPROFIT_POLITICAL_DONOR : matched_from
POLITICAL_CANDIDATE {
string candidate_id PK "FEC candidate ID"
string state_code FK
string candidate_name
string party "DEM, REP, IND, etc"
string office "H=House, S=Senate, P=President"
string office_full "House, Senate, President"
string district "Congressional district (for House)"
string election_year
string incumbent_challenge "I=Incumbent, C=Challenger, O=Open"
string candidate_status "Active, Inactive"
int cycle "Election cycle year"
datetime created_at
}
POLITICAL_COMMITTEE {
string committee_id PK "FEC committee ID"
string state_code FK
string committee_name
string committee_type "H=House, S=Senate, P=Presidential, N=PAC, Q=Super PAC"
string committee_type_full
string designation "P=Principal, A=Authorized, J=Joint"
string designation_full
string party "DEM, REP, etc"
string treasurer_name
string organization_type
string filing_frequency
datetime created_at
}
POLITICAL_CONTRIBUTION {
string contribution_id PK "FEC sub_id"
string state_code FK
string contributor_name
string contributor_city
string contributor_state
string contributor_zip
string contributor_employer "Links to ORGANIZATION"
string contributor_occupation
float contribution_amount
datetime contribution_date
string recipient_committee_id FK
string recipient_committee_name
string candidate_id FK
string candidate_name
string election_type
string entity_type "Individual, Committee, etc"
string memo_text
datetime created_at
}
%% Analysis table linking political contributions to nonprofit leadership
NONPROFIT_POLITICAL_DONOR {
string donor_analysis_id PK
string ein FK "Links to ORGANIZATION"
string organization_name
string contributor_name
string contributor_title "Inferred from employer or matched from officers"
float contribution_amount
datetime contribution_date
string recipient_name "Committee or candidate name"
string candidate_name
string match_method "Employer Name, Officer Name Match"
datetime created_at
}
%% ========================================
%% SYSTEM-INTERNAL VOCABULARY TABLES
%% (OMOP-Inspired Concept System)
%% ========================================
%% Based on OHDSI Athena vocabulary structure
%% ID range: 2,000,000,000+ for custom civic concepts
%% These tables appear at bottom to avoid confusing non-technical users
VOCABULARY ||--o{ CONCEPT : contains
CONCEPT_CLASS ||--o{ CONCEPT : categorizes
DOMAIN ||--o{ CONCEPT : groups
CONCEPT ||--o{ CONCEPT_RELATIONSHIP : source
CONCEPT ||--o{ CONCEPT_RELATIONSHIP : target
%% Concept references from other entities
CONCEPT ||--o{ JURISDICTION : city_concept_id
CONCEPT ||--o{ ORGANIZATION : organization_concept_id
CONCEPT ||--o{ LEADER : position_concept_id
CONCEPT ||--o{ POLICY_TOPIC : topic_concept_id
VOCABULARY {
string vocabulary_id PK "OCD_ID, IRS_NTEE, US_Census, OHDSI_Gender"
string vocabulary_name
string vocabulary_reference "URL or citation"
string vocabulary_version
string vocabulary_concept_id FK
}
DOMAIN {
string domain_id PK "Jurisdiction, Nonprofit, Policy, Gender"
string domain_name
string domain_concept_id FK
}
CONCEPT_CLASS {
string concept_class_id PK "City, County, 501c3, Mayor"
string concept_class_name
string concept_class_concept_id FK
}
CONCEPT {
int concept_id PK "2B+ for custom civic concepts"
string concept_name "Display name"
string domain_id FK "Jurisdiction, Nonprofit, Policy"
string vocabulary_id FK "OCD_ID, IRS_NTEE, US_Census"
string concept_class_id FK "City, County, 501c3, Mayor"
string standard_concept "S=Standard, C=Classification"
string concept_code "External identifier"
datetime valid_start_date
datetime valid_end_date
string invalid_reason
}
CONCEPT_RELATIONSHIP {
int concept_id_1 FK "Source concept"
int concept_id_2 FK "Target concept"
string relationship_id "Is part of, Regulates, Addresses"
datetime valid_start_date
datetime valid_end_date
string invalid_reason
}
`}
/>
## βοΈ Political Economy Analysis Framework
The ERD includes specialized entities for **political economy analysis** - understanding the "WHY" behind government decisions, not just the "WHAT". These entities support a 4-step advocacy framework to expose gaps between rhetoric and reality:
### The 4-Step Framework for Effective Change
#### Step 1: Rhetoric Gap - **Frame Analysis**
**Goal:** Establish they ALREADY agree it's important (stop the "need" debate)
**ERD Support:**
- **DECISION_FRAME**: Tracks how decisions are framed ("public health" vs "fiscal responsibility" vs "equity")
- **KEYWORD_DENSITY**: Measures rhetoric patterns ("priority", "essential", "critical" per 1000 words)
- **POLICY_DECISION.primary_frame**: Primary framing language used
**Analysis Output:**
```
Frame Distribution:
12x public health
8x fiscal responsibility
5x equity/access
3x economic development
β They SAY oral health is a "priority" - hold them to it!
```
#### Step 2: Displacement Matrix - **Budget-to-Minutes Delta**
**Goal:** Show they HAD the money (stop the "budget constraint" excuse)
**ERD Support:**
- **BUDGET_LINE_ITEM**: Detailed budget categories with year-over-year changes
- **BUDGET_DELTA**: Compares meeting rhetoric to actual funding changes
- **BUDGET_DELTA.delta_type**: Classifies as "Expansion", "Lip Service", or "Hidden Priority"
- **BUDGET_DELTA.delta_score**: Quantifies rhetoric vs reality gap (-1 to +1)
**Analysis Output:**
```
π Lip Service Detected:
β’ School dental program: -$50,000 decrease
Mentioned 12x in meetings as "critical for children"
Logic: PERFORMATIVE POLITICS
π° Hidden Priority (Where the money REALLY went):
β’ IT Infrastructure: +$200,000 increase
Only mentioned 1x in meetings
Logic: Bureaucratic inertia - avoiding scrutiny
```
#### Step 3: Influence Radar - **Stakeholder Analysis**
**Goal:** Name who's blocking it (force personal accountability)
**ERD Support:**
- **STAKEHOLDER_POSITION**: Who spoke for/against with their arguments
- **STAKEHOLDER_POSITION.speaking_order**: Track who speaks when (early speakers often most influential)
- **DECISION_VOTE**: Individual vote records with stated reasons
- **DECISION_VOTE.switched_position**: Flag when officials change their stance
**Analysis Output:**
```
π₯ Blocking Coalition:
β’ Taxpayer Association (opponent) - spoke 1st
Argument: "Cost concerns in tight budget"
Counter: School nurses budget UP $300K same meeting
β’ Council Member Smith (voted NO)
Stated reason: "Need more study"
Pattern: Has voted NO on 3 oral health items since 2022
```
#### Step 4: Deferral Pattern - **Temporal Voting Analysis**
**Goal:** Show they're stalling, not studying (expose the tactic)
**ERD Support:**
- **DEFERRAL_PATTERN**: Tracks same topic across multiple meetings
- `first_mentioned`: When decision was first introduced
- `last_discussed`: Most recent tabling date
- `total_deferrals`: How many times tabled/postponed
- `months_in_limbo`: Time elapsed since first mention
- `pattern_type`: "Rationale of Attrition" / "Sincere Analysis" / "Political Timing"
- `strategic_inference`: Inferred reason for delay
- `next_review_date`: When scheduled to revisit (if stated)
- **DEFERRAL_INSTANCE**: Individual tabling events with dates
- `deferral_date`: When it was tabled
- `stated_reason`: Official justification given
- `speaker`: Who gave the reason
- `months_since_first`: Time elapsed
- `reason_changed`: Flag for shifting justifications
- **POLICY_DECISION.outcome**: Captures "tabled/deferred/postponed"
- **DECISION_OPTION.rejection_reason**: Stated excuses for delay
- **ELECTION_CYCLE**: Links decisions to election timelines
- **ELECTION_CYCLE.pre_election_spike_detected**: Flag incumbent protection patterns
**Complete Date Tracking:**
```sql
-- All dates needed to track stalling:
MEETING.meeting_date -- When meeting occurred
POLICY_DECISION.meeting_date -- When decision was discussed
DEFERRAL_PATTERN.first_mentioned -- First introduction date
DEFERRAL_PATTERN.last_discussed -- Most recent tabling
DEFERRAL_INSTANCE.deferral_date -- Each individual deferral
ELECTION_CYCLE.election_date -- Election timing context
DECISION_VOTE.days_since_election -- Temporal political context
```
**Analysis Output:**
```
π
Stalling Pattern DETECTED:
β’ Topic: "Fluoridation proposal"
β’ First mentioned: 2020-03-15 (4 years, 1 month ago)
β’ Total deferrals: 4 times
β’ Pattern type: Rationale of Attrition
π Timeline of Shifting Justifications:
- 2020-03: "Need more study" (12mo before election)
- 2020-09: "Budget constraints" (6mo before election)
- 2022-01: "Need public input" (new council members)
- 2024-05: "Awaiting staff report" (still pending)
π Strategic Inference:
"They're NOT studying - they're AVOIDING! The board isn't
debating the merit; they're waiting for the advocate's
momentum to fade before the next election cycle."
π¨ Discomfort Score: 10/10 (Extremely politically sensitive)
```
### Quantitative "Why" Indicators
Additional metrics to infer governance logic:
| Entity | Metric | Reveals |
|--------|--------|---------|
| **POLICY_DECISION.contention_score** | Ratio of dissent (0-100) | Political sensitivity of topic |
| **KEYWORD_DENSITY** | "grant" vs "taxpayer" frequency | Decision driver: outside funding vs local demand |
| **KEYWORD_DENSITY** | "emergency" occurrence | Reactive vs planned governance |
| **ELECTION_CYCLE.avg_project_cost_before** | Spending spikes pre-election | Incumbency protection tactics |
| **BUDGET_DELTA.underlying_logic** | Genuine vs Performative vs Bureaucratic | Real priorities revealed |
### Implementation Files
These analyses are **fully implemented** in the codebase:
- `extraction/decision_analyzer.py` - Frame analysis, stakeholder extraction
- `extraction/budget_analyzer.py` - Budget delta calculation, opportunity cost mapping
- `extraction/temporal_analyzer.py` - Election cycle analysis, deferral patterns
- `examples/tuscaloosa_political_economy.py` - Complete end-to-end analysis
See **[Political Economy Analysis Guide](/docs/guides/political-economy)** for detailed implementation status and usage examples.
---
## π Data Standards & Interoperability
### Popolo Project Alignment
Our data model follows the [Popolo Project](https://www.popoloproject.com/) specification for representing people, organizations, and elected positions. Popolo is an international open government data standard adopted by 30+ civic tech organizations worldwide including mySociety, Sunlight Foundation, OpenNorth, and Civic Commons.
#### Popolo Class Mappings
| Popolo Class | Our Entity | Description | Key Fields |
|--------------|------------|-------------|------------|
| **Person** | LEADER | Elected officials, government employees | `full_name`, `email`, `phone`, `photo_url` |
| **Organization** | ORGANIZATION | Nonprofits, government agencies, companies | `name`, `org_type`, `address`, `website` |
| **Membership** | LEADER β ORGANIZATION | Relationship between people and organizations | `leader_id`, `jurisdiction_id`, `term_start`, `term_end` |
| **Post** | LEADER.position_type | Positions within organizations | `title`, `office`, `position_type` |
| **Contact Detail** | Embedded fields | Communication methods | `email`, `phone`, `website` in multiple entities |
| **Motion** | AGENDA, LEGISLATION | Formal proposals for decision | `title`, `description`, `status` |
| **Vote Event** | VOTE | Voting on motions/bills | `vote_date`, `item_description` |
| **Count** | VOTE, LEGISLATION | Vote tallies | `vote_yes`, `vote_no`, `vote_value` |
| **Area** | JURISDICTION | Geographic/political boundaries | `jurisdiction_type`, `state_code`, `county_name` |
| **Event** | MEETING | Gatherings with agendas | `meeting_date`, `meeting_type`, `body_name` |
| **Speech** | MINUTES, VIDEO | Spoken statements | `transcript_text`, `summary_text` |
#### Schema.org Type Mappings
Our entities map to [Schema.org](https://schema.org/) types for SEO-optimized structured data and semantic web compatibility:
| Our Entity | Schema.org Type | Properties | JSON-LD Export |
|------------|----------------|------------|----------------|
| JURISDICTION | [AdministrativeArea](https://schema.org/AdministrativeArea) | name, address, geo, telephone, url | β
City/county pages |
| MEETING | [Event](https://schema.org/Event) | name, startDate, endDate, location, organizer | β
Google Calendar rich results |
| LEADER | [Person](https://schema.org/Person) + [GovernmentOfficial](https://schema.org/GovernmentOfficial) | name, email, telephone, jobTitle | β
Official profiles |
| ORGANIZATION | [Organization](https://schema.org/Organization) + [NGO](https://schema.org/NGO) | name, address, telephone, foundingDate | β
Nonprofit listings |
| LEGISLATION | [Legislation](https://schema.org/Legislation) | name, legislationDate, legislationPassedBy | β
Bill tracking |
| BALLOT_MEASURE | [Legislation](https://schema.org/Legislation) | name, datePosted, legislationChanges | β
Ballot guides |
| VOTE | [VoteAction](https://schema.org/VoteAction) | agent, candidate, actionOption | β
Voting records |
| FACT_CHECK | [ClaimReview](https://schema.org/ClaimReview) | claimReviewed, reviewRating, author | β
Google Fact Check Explorer |
| SCHOOL_DISTRICT | [EducationalOrganization](https://schema.org/EducationalOrganization) | name, numberOfStudents, address | β
School district info |
| VIDEO | [VideoObject](https://schema.org/VideoObject) | name, description, uploadDate, duration | β
YouTube integration |
| DOCUMENT | [DigitalDocument](https://schema.org/DigitalDocument) | name, fileFormat, datePublished | β
Document library |
| **Microsoft CDM Nonprofit Entities** | | | |
| CONSTITUENT | [Person](https://schema.org/Person) | name, email, telephone, address | β
Donor/volunteer profiles |
| DONATION | [DonateAction](https://schema.org/DonateAction) | agent (Person), recipient (Organization), price | β
Donation receipts |
| CAMPAIGN | [FundingScheme](https://schema.org/FundingScheme) | name, startDate, endDate, url | β
Fundraising campaigns |
| MEMBERSHIP | [ProgramMembership](https://schema.org/ProgramMembership) | member (Person), hostingOrganization, membershipNumber | β
Member cards |
| VOLUNTEER_ACTIVITY | [VolunteerAction](https://schema.org/VolunteerAction) | agent (Person), startTime, endTime, location | β
Volunteer tracking |
| PROGRAM_DELIVERY | [Service](https://schema.org/Service) | name, provider, serviceType, areaServed | β
Program catalog |
| PROGRAM_OUTCOME | [Observation](https://schema.org/Observation) | measurementTechnique, measuredValue, observationDate | β
Impact reporting |
**Example: Meeting as Schema.org Event**
```json
{
"@context": "https://schema.org",
"@type": "Event",
"@id": "https://www.communityone.com/meetings/city-council-2024-01-15",
"name": "Birmingham City Council Regular Meeting",
"description": "Monthly city council meeting covering budget, zoning, and public health initiatives",
"startDate": "2024-01-15T18:00:00-06:00",
"endDate": "2024-01-15T20:30:00-06:00",
"eventStatus": "https://schema.org/EventScheduled",
"eventAttendanceMode": "https://schema.org/MixedEventAttendanceMode",
"location": {
"@type": "Place",
"name": "Birmingham City Hall",
"address": {
"@type": "PostalAddress",
"streetAddress": "710 N 20th St",
"addressLocality": "Birmingham",
"addressRegion": "AL",
"postalCode": "35203"
}
},
"organizer": {
"@type": "GovernmentOrganization",
"name": "Birmingham City Council",
"url": "https://www.birminghamal.gov/council/"
},
"recordedIn": {
"@type": "VideoObject",
"name": "City Council Meeting Recording",
"uploadDate": "2024-01-16",
"duration": "PT2H30M",
"thumbnailUrl": "https://example.com/thumbnail.jpg",
"contentUrl": "https://youtube.com/watch?v=example"
},
"subEvent": [
{
"@type": "Event",
"name": "Public Comment Period",
"startDate": "2024-01-15T18:15:00-06:00"
}
]
}
```
#### Common Education Data Standards (CEDS) Alignment
Our SCHOOL_DISTRICT entity follows [CEDS](https://ceds.ed.gov/) specifications for education data interoperability:
| Our Field | CEDS Element | Element ID | NCES Alignment |
|-----------|--------------|------------|----------------|
| `nces_id` | LEA Identifier (NCES) | 000827 | CCD LEA ID |
| `district_name` | Name of Institution | 000168 | Official district name |
| `district_type` | LEA Type | 000108 | Regular/Specialized/Service Agency |
| `total_students` | Student Count | 001475 | Fall enrollment |
| `total_schools` | Number of Schools | 000856 | Operational schools count |
| `total_revenue` | Total Revenue | 000612 | F-33 Survey Line A09 |
| `total_expenditures` | Total Expenditures | 000611 | F-33 Survey Line B13 |
| `per_pupil_spending` | Expenditure per Student | 000613 | Total exp / enrollment |
| `federal_revenue` | Federal Revenue | 000614 | ESEA Title I, IDEA |
| `state_revenue` | State Revenue | 000615 | State aid formulas |
| `local_revenue` | Local Revenue | 000616 | Property tax, bonds |
| `superintendent` | Chief Administrator | 000240 | District superintendent |
| `school_year` | School Year | 000243 | YYYY-YYYY format |
**CEDS Option Sets:**
- **LEA Type** (000108): Regular local school district, Specialized (charter/magnet), Supervisory Union, Service Agency, State/Federal Agency
- **Operational Status** (000533): Open, Closed, New, Changed Agency, Temporarily Closed
- **Locale Type** (001315): City (Large/Midsize/Small), Suburb, Town, Rural (NCES Urban-centric codes)
**Benefits:**
- β
Compatible with NCES Common Core of Data (CCD) and F-33 Finance Survey
- β
Aligns with Ed-Fi Alliance, IMS Global, and SIF Association standards
- β
Supports federal reporting for ESSA, Title I, IDEA compliance
#### Microsoft Common Data Model for Nonprofits
Our nonprofit constituent management entities follow [Microsoft's Common Data Model for Nonprofits](https://github.com/microsoft/Nonprofits/), enabling seamless integration with Dynamics 365 and Power Platform:
| Our Entity | Microsoft CDM Entity | Description | Key Relationships |
|------------|---------------------|-------------|------------------|
| CONSTITUENT | Constituent | Donors, volunteers, members, beneficiaries | β DONATION, MEMBERSHIP, VOLUNTEER_ACTIVITY |
| DONATION | Donation | Financial contributions and in-kind gifts | β CONSTITUENT, β CAMPAIGN, β DESIGNATION |
| CAMPAIGN | Campaign | Fundraising campaigns and appeals | β DONATION |
| DESIGNATION | Designation | Fund allocation (programs, unrestricted, endowment) | β DONATION |
| MEMBERSHIP | Membership | Member enrollment and renewals | β CONSTITUENT, β ORGANIZATION |
| VOLUNTEER_ACTIVITY | Volunteer Preference | Volunteer activities and hours | β CONSTITUENT |
| PROGRAM_DELIVERY | Delivery Framework | Programs and services delivered | β ORGANIZATION, β PROGRAM_OUTCOME |
| PROGRAM_OUTCOME | Objective | Measurable impact and KPIs | β PROGRAM_DELIVERY |
**Microsoft CDM Core Patterns:**
1. **Constituent-Centric Design**: All engagement activities (donations, volunteering, membership) link to CONSTITUENT
2. **Designation-Based Accounting**: Donations are allocated to specific designations (funds, programs, campaigns)
3. **Campaign Tracking**: Multi-channel fundraising campaigns track goals, raised amounts, donor counts
4. **Outcome Measurement**: Programs track objectives with target vs. actual metrics
5. **Temporal Tracking**: Start/end dates on memberships, campaigns, and programs for lifecycle management
**Integration Points:**
| Microsoft Product | Integration Type | Use Case |
|------------------|------------------|----------|
| **Dynamics 365 Nonprofit** | Native CDM compatibility | CRM for constituent relationship management |
| **Power BI** | Direct data connection | Fundraising dashboards, donor analytics |
| **Power Apps** | Low-code app builder | Volunteer management apps, event registration |
| **Power Automate** | Workflow automation | Donation receipts, membership renewals |
| **Azure Synapse** | Cloud analytics | Large-scale constituent analytics |
**Example: Constituent-Donation Relationship**
```sql
-- Find top 10 donors by lifetime giving
SELECT
c.constituent_id,
c.first_name,
c.last_name,
c.email,
c.lifetime_giving_total,
COUNT(d.donation_id) as donation_count,
AVG(d.amount) as avg_donation,
MAX(d.donation_date) as last_donation_date
FROM CONSTITUENT c
JOIN DONATION d ON c.constituent_id = d.constituent_id
WHERE c.constituent_type = 'Donor'
GROUP BY c.constituent_id, c.first_name, c.last_name, c.email, c.lifetime_giving_total
ORDER BY c.lifetime_giving_total DESC
LIMIT 10;
```
**Benefits:**
- β
**Microsoft Ecosystem**: Native compatibility with Dynamics 365, Power Platform, Azure
- β
**Industry Standard**: Used by large nonprofits (United Way, Boys & Girls Clubs, etc.)
- β
**Grant Reporting**: Built-in support for outcome tracking and funder reporting
- β
**LYBNT Analysis**: "Last Year But Not This Year" donor reactivation queries
- β
**Constituent 360**: Unified view of all engagement touchpoints
#### Underlying Standards
Popolo builds upon W3C, IETF, and DCMI specifications for maximum interoperability:
| Standard | Use Case | Example in Our Model |
|----------|----------|---------------------|
| **FOAF** (Friend of a Friend) | Social network, people relationships | LEADER connections, ORGANIZATION networks |
| **vCard** (IETF RFC 6350) | Contact information | email, phone, address fields across entities |
| **Schema.org** | Structured web data | Meeting metadata, organization profiles for SEO |
| **DCMI Terms** | Metadata, provenance | `created_at`, `updated_at`, `source_url` timestamps |
| **W3C Organization Ontology** | Hierarchical organizations | Government hierarchy, nonprofit structures |
| **ISA Location Core Vocabulary** | Address standardization | `address`, `city`, `state_code`, `latitude`, `longitude` |
| **GeoNames Ontology** | Geographic identifiers | Place names, jurisdiction boundaries |
| **SKOS** | Taxonomies and classification | NTEE codes, policy topic categories |
#### Benefits of Standards Compliance
1. **Interoperability**: Data can be easily shared with other civic tech platforms
2. **API Compatibility**: Standard field names work with existing tools (e.g., EveryPolitician, Open Civic Data)
3. **Semantic Web**: RDF/JSON-LD export capabilities for linked open data
4. **Tooling**: Existing libraries and validators (e.g., `pupa`, `everypolitician-popolo`)
5. **Documentation**: Well-documented schemas reduce onboarding time
#### Example: Popolo-Compatible JSON-LD Export
```json
{
"@context": "http://www.popoloproject.com/contexts/person.jsonld",
"@type": "Person",
"id": "ocd-person/12345678-90ab-cdef-1234-567890abcdef",
"name": "Jane Doe",
"email": "jane.doe@example.gov",
"links": [{
"note": "official website",
"url": "https://example.gov/mayor"
}],
"memberships": [{
"@type": "Membership",
"organization_id": "ocd-organization/jurisdiction/us/city/springfield",
"post_id": "mayor",
"role": "Mayor",
"start_date": "2022-01-01",
"end_date": "2026-12-31"
}],
"contact_details": [{
"type": "email",
"value": "jane.doe@example.gov",
"note": "official"
}, {
"type": "voice",
"value": "+1-555-123-4567"
}],
"sources": [{
"url": "https://example.gov/government/officials",
"note": "Official city website"
}]
}
```
### Open Civic Data (OCD-ID) Identifiers
We use OCD-IDs for jurisdiction identifiers following [OCDEP 2](https://open-civic-data.readthedocs.io/en/latest/proposals/0002.html):
```
Format: ocd-division/country:<country_code>/<type>:<type_id>
Examples:
- State: ocd-division/country:us/state:al
- County: ocd-division/country:us/state:al/county:jefferson
- City: ocd-division/country:us/state:al/place:birmingham
- School District: ocd-division/country:us/state:al/school_district:birmingham_city
```
**Normalization Rules:**
- Lowercase ASCII characters (a-z)
- Numbers (0-9)
- Valid punctuation: `._~-`
- Spaces β underscores
- Remove special characters
## π Data Statistics
| Entity Type | Estimated Count | Source |
|------------|----------------|--------|
| Jurisdictions | 22,000+ | Census Gazetteer |
| Counties | 3,144 | FIPS codes |
| Cities | 19,000+ | Incorporated places |
| School Districts | 13,000+ | NCES CCD |
| School District Budgets | 13,000+ | NCES F-33 Finance Survey |
| Government Budgets | 22,000+ | Census of Governments |
| Municipal Bonds | TBD | EMMA (MSRB) |
| Nonprofits | 3,000,000+ | IRS TEOS |
| Nonprofit 990 Filings | 10,000,000+ | ProPublica (10+ years) |
| **Microsoft CDM: Nonprofit Engagement** | | |
| Constituents | TBD | Donors, volunteers, members, beneficiaries (Microsoft CDM) |
| Donations | TBD | Financial contributions and in-kind gifts (Microsoft CDM) |
| Campaigns | TBD | Fundraising campaigns and appeals (Microsoft CDM) |
| Memberships | TBD | Member enrollments and renewals (Microsoft CDM) |
| Volunteer Activities | TBD | Volunteer hours and service events (Microsoft CDM) |
| Program Delivery Records | TBD | Programs and services delivered (Microsoft CDM) |
| Program Outcomes | TBD | Impact metrics and KPIs (Microsoft CDM) |
| Grants (Individual Awards) | TBD | IRS 990-I, USASpending.gov, Foundation Center |
| Federal Grants | 100,000+ | USASpending.gov API |
| Nonprofit Causes | 600+ | NTEE + Every.org |
| YouTube Channels | 5,000+ | Discovery pipeline |
| Meeting Platforms | 10,000+ | URL detection |
| State Legislators | 7,300+ | Open States |
| Meetings & Events | 500,000+ | Scraped (govt, hearings, events, trainings) |
| Trainings | TBD | Professional development, workshops |
| Documents | 2,000,000+ | PDF extraction |
| Ballot Measures | TBD | State/local election sites |
| State Bills | 100,000+ | Open States API |
| Policy Topics | ~50 | Curated + extracted |
| **Analytics & Standards** | | |
| Date Dimension Records | ~7,300 | 20 years (2010-2030) |
| Metric Views | ~100 | Pre-computed analytics definitions |
| Temporal Relationships | ~1M+ | Date keys for all time-based entities |
| Schema.org JSON-LD Exports | ~500K+ | Event, Person, Organization, Legislation, ClaimReview |
| Popolo Exports | ~100K+ | Person, Organization, Membership, VoteEvent |
| CEDS-Aligned Records | 13,000+ | School districts with NCES Element IDs |
| OCD Division IDs | 22,000+ | All jurisdictions with standardized identifiers |
| IATI Activity Files | TBD | Programs, grants, humanitarian aid (v2.03 XML) |
| **Fact-Checking** | | |
| Verified Claims | ~50K+ | Google Fact Check API |
| PolitiFact Ratings | ~20K+ | Truth-O-Meter rulings |
| FactCheck.org Articles | ~10K+ | Verified fact-checks |
| **Vocabulary & Concepts (OMOP-Inspired)** | | |
| Concept Entries | ~2M+ | Cities, nonprofits, officials, topics, demographics |
| Vocabularies | 10+ | OCD_ID, IRS_NTEE, US_Census, NCES, OHDSI (Gender/Race/Ethnicity) |
| Concept Classes | 20+ | City, County, 501c3, Mayor, Health Policy, etc. |
| Concept Relationships | ~5M+ | Hierarchies (CityβCountyβState), Associations (TopicβLegislation) |
| OHDSI Gender Concepts | 3 | MALE, FEMALE, OTHER (Athena standard) |
| OHDSI Race Concepts | 20+ | Census OMB categories (Athena standard) |
| OHDSI Ethnicity Concepts | 2 | Hispanic or Latino, Not Hispanic or Latino (Athena standard) |
## οΏ½ See Also
:::tip[Complete Citations & Attributions]
For full citations, licenses, BibTeX references, and detailed attribution for all data sources, standards, and research:
π **[View Citations & Data Sources](./citations.md)**
Includes academic research, government data APIs, civic tech standards (OCD-ID, Popolo, Schema.org, CEDS, IATI), Microsoft CDM, OMOP CDM, fact-checking sources, and more.
:::
## οΏ½π Meeting & Event Types
### Event Categories in the MEETING Entity
The MEETING entity tracks **4 main event categories** to capture all civic engagement opportunities:
#### 1. **Government Meetings** (`event_category: "government_meeting"`)
- City council meetings, school board meetings, county commissions
- Official business conducted by elected bodies
- **Fields:** `body_name`, `meeting_type` (regular, special, emergency)
- **Example:** "Tuscaloosa City Council Regular Meeting - 3rd Tuesday"
#### 2. **Public Hearings** (`event_category: "public_hearing"`)
- Public comment sessions on specific issues
- Budget hearings, zoning hearings, policy feedback
- **Fields:** `meeting_type` (budget, zoning, policy)
- **Example:** "Public Hearing on FY2026 Water System Fluoridation Budget"
#### 3. **Community Events** (`event_category: "community_event"`)
- Town halls, community forums, listening sessions
- Informal engagement between government and citizens
- **Fields:** `location_type` (in-person, virtual, hybrid)
- **Example:** "Town Hall on Community Health Priorities"
#### 4. **Trainings** (`event_category: "training"`) β NEW
- Professional development workshops
- Continuing education for healthcare workers, teachers, officials
- Certification courses, skill-building sessions
- **Fields:**
- `training_topic` - Subject matter (e.g., "Pediatric Oral Health", "Water Fluoridation Safety")
- `target_audience` - Who should attend (e.g., "Dental Hygienists", "School Nurses", "Water Operators")
- `presenter` - Trainer/instructor name or organization
- `requires_registration` - Boolean flag
- `registration_fee` - Cost to attend (0 for free)
- `max_capacity` - Attendance limit
- `end_date` - Training end time (multi-day events)
- **Example:** "Fluoride Varnish Application Training for School Nurses (3 CEU)"
### Why Trainings Matter for Advocacy
**Capacity Building:**
- β
Identify training gaps ("No fluoride varnish training in past 2 years")
- β
Track professional development opportunities
- β
Monitor continuing education credits (CEUs) offered
**Stakeholder Engagement:**
- β
Find healthcare workers trained in specific skills
- β
Identify champions (frequent training attendees)
- β
Target outreach to trained professionals
**Policy Implementation:**
- β
"City wants dental screenings but no trained staff" β Show available trainings
- β
Track certification status (who's qualified to implement policy)
- β
Link training availability to policy feasibility
**Example Questions Now Answerable:**
1. "What oral health trainings are offered in Alabama?" β Filter by `training_topic` LIKE '%oral%'
2. "Which jurisdictions offer free fluoride training?" β `registration_fee = 0` AND `training_topic` LIKE '%fluoride%'
3. "How many school nurses attended varnish training last year?" β Count attendees by `target_audience`
4. "Are there upcoming water fluoridation operator trainings?" β `training_topic` AND `meeting_date` > TODAY
### Meeting Types Within Each Category
**Government Meetings:**
- Regular sessions, special sessions, emergency meetings
- Work sessions, committee meetings, executive sessions
**Public Hearings:**
- Budget hearings, zoning hearings, policy feedback sessions
- Environmental impact hearings, license applications
**Community Events:**
- Town halls, listening sessions, community forums
- Neighborhood meetings, stakeholder roundtables
**Trainings:**
- Professional development workshops
- Certification courses (CPR, fluoride application, etc.)
- Continuing education (CEU/CME credits)
- Skill-building sessions (motivational interviewing, cultural competency)
## οΏ½π° Nonprofit Funding Source Tracking
### Revenue Source Breakdown (Form 990 Data)
The NONPROFIT_FINANCES entity tracks **10 different revenue sources** to understand how nonprofits are funded:
#### 1. **Grant Revenue** (Institutional Funding)
- `government_grants` - Federal, state, local government grants
- `foundation_grants` - Private foundation grants (Gates, Ford, etc.)
- **Why it matters:** Grant-dependent orgs may be less sustainable, more restrictive
#### 2. **Donation Revenue** (Community Funding)
- `individual_donations` - Direct donations from people
- `corporate_donations` - Corporate giving programs
- `membership_dues` - Member subscriptions/fees
- **Why it matters:** Grassroots funding = community support, more flexible use
#### 3. **Earned Revenue** (Self-Sufficiency)
- `program_service_revenue` - Fees for services (clinic visits, classes, etc.)
- `special_events_revenue` - Galas, fundraisers, events
- `rental_income` - Property rentals
- `sale_of_assets` - Asset sales
- **Why it matters:** Self-generated revenue = sustainability, independence
#### 4. **Investment Revenue**
- `investment_income` - Interest, dividends, capital gains
- **Why it matters:** Endowment size, financial health
#### 5. **Other Revenue**
- `other_revenue` - Miscellaneous sources
- **Why it matters:** Unusual funding patterns
### Calculated Metrics
- **`overhead_ratio`** = (admin_expenses + fundraising_expenses) / total_expenses
- Lower = more efficient (more goes to programs)
- Industry benchmark: <25% overhead is "good"
- **`fundraising_efficiency`** = contributions_received / fundraising_expenses
- Higher = better (more money raised per dollar spent)
- Industry benchmark: $4+ raised per $1 spent
### Why This Matters for Advocacy
**Find sustainable partners:**
- β
High individual donations = community trust
- β
Diversified revenue = financial stability
- β οΈ Single-grant dependent = risky partnership
**Evaluate efficiency:**
- β
Low overhead ratio = more program dollars
- β
High fundraising efficiency = good stewardship
- β οΈ High admin costs = potential waste
**Identify funding gaps:**
- Compare similar nonprofits' revenue mix
- Find underutilized funding sources (e.g., membership programs)
- Target corporate donation opportunities
**Example Questions Now Answerable:**
1. "Which dental nonprofits have the most individual donors?" (community support)
2. "What's the average overhead for oral health organizations?" (efficiency benchmark)
3. "Are dental nonprofits more grant-dependent or self-sufficient?" (sustainability)
4. "Which funders support oral health work?" (foundation grants analysis)
## π΅ Grant Tracking System
### Individual Grant Transactions (GRANT Entity)
The GRANT entity tracks **individual grant awards** beyond just aggregate 990 financials. This provides transaction-level detail for:
#### Grant Fields
- **Recipient Info:** `recipient_ein`, `recipient_name`, `recipient_type` (nonprofit, government, etc.)
- **Funder Info:** `funder_name`, `funder_ein`, `funder_type` (foundation, government, corporate)
- **Grant Details:** `grant_amount`, `grant_purpose`, `program_area`
- **Timeline:** `award_date`, `start_date`, `end_date`, `grant_duration_months`
- **Status:** `grant_status` (active, completed, terminated)
- **Type:** `funding_source` (federal, state, foundation, corporate)
- **Restrictions:** `multi_year`, `restrictions`, `reporting_requirements`
#### Data Sources
**IRS Form 990 Schedule I:**
- Grants PAID by nonprofits to other organizations
- Required for organizations granting >$5,000/year
- Shows foundation giving patterns
**USASpending.gov API (FREE):**
- All federal grants to states, localities, nonprofits
- Contract and grant transactions $25K+
- Real-time data updated daily
**Foundation Center/Candid:**
- Private foundation grants (990-PF data)
- Grant descriptions, amounts, recipients
**State Grant Databases:**
- State-level grant programs
- Varies by state
### Why Grant Tracking Matters
**Follow the Money:**
- β
"Who funds oral health work in Alabama?" β Track all grants by `program_area`
- β
"Which foundations support fluoridation?" β Search grant purposes
- β
"How much federal money goes to dental access?" β Sum `funding_source = federal`
**Find Funding Opportunities:**
- β
Identify active grant programs (similar grants to similar orgs)
- β
Discover new funders entering a program area
- β
Track grant sizes and typical durations
**Partnership Intelligence:**
- β
"Who else is this foundation funding?" β Find collaborators
- β
"What's this nonprofit's grant portfolio?" β Assess stability
- β
Multi-year grants = long-term commitment signal
**Policy Implementation:**
- β
"Is there grant funding for this program?" β Search active grants
- β
"Which jurisdictions received similar grants?" β Learn from others
- β
Track grant requirements and restrictions
#### Example Questions Now Answerable:
1. **"What federal grants support dental health in Alabama schools?"**
β `funding_source = 'federal'` AND `program_area` LIKE '%dental%' AND `recipient_type = 'school_district'`
2. **"Which foundations give the largest oral health grants?"**
β GROUP BY `funder_name` WHERE `program_area` LIKE '%oral health%' ORDER BY SUM(`grant_amount`)
3. **"How long do typical dental access grants last?"**
β AVG(`grant_duration_months`) WHERE `program_area` = 'dental access'
4. **"Which nonprofits receive multi-year fluoridation funding?"**
β `multi_year = true` AND `grant_purpose` LIKE '%fluoride%'
5. **"What grants end in the next 6 months?"**
β `end_date` BETWEEN NOW() AND NOW() + 6 MONTHS (renewal opportunities!)
### Dataset Structure
```
grants/
βββ nonprofit_grants # Grants TO nonprofits (Schedule I recipients)
βββ government_grants # Federal/state grants to jurisdictions
βββ foundation_grants # Private foundation giving (990-PF)
βββ federal_grants # USASpending.gov federal grants
```
## β° Time Dimension Modeling
To enable robust time-series analysis, trend tracking, and temporal comparisons, we implement a comprehensive time dimension alongside our fact tables.
### Time Dimension Table
```sql
DATE_DIMENSION {
date date PK
year int
quarter int
quarter_name string
month int
month_name string
month_abbr string
day_of_month int
day_of_week int
day_name string
day_abbr string
week_of_year int
fiscal_year int
fiscal_quarter int
fiscal_month int
is_weekend boolean
is_holiday boolean
holiday_name string
is_business_day boolean
days_in_month int
year_month string
year_quarter string
}
```
### Temporal Relationships
All time-bound entities link to the date dimension for consistent temporal analysis:
```mermaid
erDiagram
DATE_DIMENSION ||--o{ MEETING : "meeting_date"
DATE_DIMENSION ||--o{ GOVERNMENT_BUDGET : "fiscal_year_start"
DATE_DIMENSION ||--o{ BALLOT_MEASURE : "election_date"
DATE_DIMENSION ||--o{ LEGISLATION : "introduced_date"
DATE_DIMENSION ||--o{ GRANT : "start_date, end_date"
DATE_DIMENSION ||--o{ NONPROFIT_FILING : "tax_period_end"
DATE_DIMENSION ||--o{ POLICY_TRACKER : "tracked_date"
DATE_DIMENSION ||--o{ SURVEY : "field_date_start, field_date_end"
DATE_DIMENSION ||--o{ FACT_CHECK : "published_date"
DATE_DIMENSION {
date date PK
year int
quarter int
month int
fiscal_year int
is_business_day boolean
}
```
### Temporal Analysis Patterns
**Year-over-Year Comparisons:**
```sql
SELECT
d.year,
d.quarter_name,
COUNT(m.meeting_id) as meeting_count,
COUNT(m.meeting_id) - LAG(COUNT(m.meeting_id)) OVER (ORDER BY d.year, d.quarter) as yoy_change
FROM MEETING m
JOIN DATE_DIMENSION d ON m.meeting_date = d.date
WHERE d.year BETWEEN 2023 AND 2025
GROUP BY d.year, d.quarter, d.quarter_name
ORDER BY d.year, d.quarter;
```
**Fiscal Period Aggregation:**
```sql
SELECT
d.fiscal_year,
d.fiscal_quarter,
SUM(b.total_expenditures) as total_spending,
AVG(b.total_expenditures) as avg_spending
FROM GOVERNMENT_BUDGET b
JOIN DATE_DIMENSION d ON b.fiscal_year = d.fiscal_year
WHERE b.jurisdiction_type = 'city'
GROUP BY d.fiscal_year, d.fiscal_quarter;
```
**Trend Detection:**
```sql
-- Identify growing advocacy momentum
SELECT
d.year_month,
COUNT(DISTINCT pt.topic_id) as active_topics,
COUNT(m.meeting_id) as related_meetings,
COUNT(bm.measure_id) as ballot_initiatives
FROM DATE_DIMENSION d
LEFT JOIN MEETING m ON m.meeting_date = d.date AND m.oral_health_related = true
LEFT JOIN POLICY_TRACKER pt ON d.date BETWEEN pt.start_date AND COALESCE(pt.end_date, CURRENT_DATE)
LEFT JOIN BALLOT_MEASURE bm ON bm.election_date = d.date
WHERE d.date >= DATE_SUB(CURRENT_DATE, INTERVAL 24 MONTH)
GROUP BY d.year_month
ORDER BY d.year_month;
```
## π Metric Views
Metric views provide pre-aggregated, analysis-ready datasets combining multiple source tables with built-in dimensions, measures, and filters.
### Core Metric View Components
| Component | Description | Example |
|-----------|-------------|---------|
| **Source** | Base table, view, or SQL query containing the data | `MEETING`, `GOVERNMENT_BUDGET`, `NONPROFIT_FILING` |
| **Dimensions** | Column attributes used to segment or group metrics | `jurisdiction_type`, `fiscal_year`, `policy_topic` |
| **Measures** | Column aggregations that produce metrics | `COUNT(meeting_id) as meeting_count`, `SUM(grant_amount) as total_funding` |
| **Filters** | Conditions applied to source data to define scope | `oral_health_related = true`, `fiscal_year > 2020` |
| **Joins** | Relationships between tables to enrich data | `JOIN JURISDICTION ON meeting.jurisdiction_id = jurisdiction.jurisdiction_id` |
### Example Metric Views
#### 1. Advocacy Activity Metrics
**Purpose:** Track oral health advocacy momentum across jurisdictions
```sql
CREATE VIEW metric_advocacy_activity AS
SELECT
-- Dimensions
j.jurisdiction_id,
j.jurisdiction_type,
j.state_code,
j.county_name,
d.year,
d.quarter_name,
d.month_name,
pt.topic_name,
-- Measures
COUNT(DISTINCT m.meeting_id) as meeting_count,
COUNT(DISTINCT bm.measure_id) as ballot_measure_count,
COUNT(DISTINCT l.bill_id) as legislation_count,
COUNT(DISTINCT fc.claim_id) as fact_check_count,
-- Calculated Metrics
SUM(CASE WHEN m.oral_health_related THEN 1 ELSE 0 END) as oral_health_meeting_count,
AVG(CASE WHEN bm.result = 'passed' THEN 1 ELSE 0 END) as ballot_success_rate,
COUNT(DISTINCT n.nonprofit_id) as active_nonprofit_count
FROM JURISDICTION j
JOIN DATE_DIMENSION d ON d.date BETWEEN DATE_SUB(CURRENT_DATE, INTERVAL 365 DAY) AND CURRENT_DATE
LEFT JOIN MEETING m ON m.jurisdiction_id = j.jurisdiction_id AND m.meeting_date = d.date
LEFT JOIN POLICY_TRACKER pt ON pt.jurisdiction_id = j.jurisdiction_id
LEFT JOIN BALLOT_MEASURE bm ON bm.jurisdiction_id = j.jurisdiction_id AND bm.election_date = d.date
LEFT JOIN LEGISLATION l ON l.state_code = j.state_code AND l.introduced_date = d.date
LEFT JOIN FACT_CHECK fc ON fc.published_date = d.date
LEFT JOIN NONPROFIT n ON n.jurisdiction_id = j.jurisdiction_id
WHERE
-- Filters
d.is_business_day = true
AND (
m.oral_health_related = true
OR pt.topic_area LIKE '%oral health%'
OR pt.topic_area LIKE '%dental%'
OR pt.topic_area LIKE '%fluoride%'
)
GROUP BY
j.jurisdiction_id, j.jurisdiction_type, j.state_code, j.county_name,
d.year, d.quarter_name, d.month_name, pt.topic_name;
```
**Usage:**
```sql
-- Find top 10 most active jurisdictions for oral health advocacy
SELECT
jurisdiction_id,
state_code,
jurisdiction_type,
SUM(meeting_count) as total_meetings,
SUM(ballot_measure_count) as total_ballot_measures,
SUM(oral_health_meeting_count) as oral_health_meetings
FROM metric_advocacy_activity
WHERE year = 2025
GROUP BY jurisdiction_id, state_code, jurisdiction_type
ORDER BY total_meetings DESC
LIMIT 10;
```
#### 2. Government Spending Metrics
**Purpose:** Analyze government budget allocations and trends
```sql
CREATE VIEW metric_government_spending AS
SELECT
-- Dimensions
j.jurisdiction_id,
j.jurisdiction_type,
j.state_code,
j.population,
d.fiscal_year,
d.fiscal_quarter,
bc.category_name as budget_category,
-- Measures
SUM(gb.total_revenue) as total_revenue,
SUM(gb.total_expenditures) as total_expenditures,
SUM(gb.total_debt) as total_debt,
SUM(gb.property_tax_revenue) as property_tax_revenue,
SUM(gb.federal_grants) as federal_grants,
SUM(gb.state_grants) as state_grants,
-- Calculated Metrics
SUM(gb.total_revenue) / NULLIF(j.population, 0) as revenue_per_capita,
SUM(gb.total_expenditures) / NULLIF(j.population, 0) as spending_per_capita,
SUM(gb.total_debt) / NULLIF(j.population, 0) as debt_per_capita,
(SUM(gb.total_revenue) - SUM(gb.total_expenditures)) as budget_surplus_deficit,
SUM(bc.amount) / NULLIF(SUM(gb.total_expenditures), 0) * 100 as category_pct_of_budget
FROM JURISDICTION j
JOIN DATE_DIMENSION d ON d.fiscal_year BETWEEN 2020 AND 2025
JOIN GOVERNMENT_BUDGET gb ON gb.jurisdiction_id = j.jurisdiction_id AND gb.fiscal_year = d.fiscal_year
LEFT JOIN BUDGET_CATEGORY bc ON bc.budget_id = gb.budget_id
WHERE
-- Filters
gb.total_expenditures > 0
AND j.population > 0
GROUP BY
j.jurisdiction_id, j.jurisdiction_type, j.state_code, j.population,
d.fiscal_year, d.fiscal_quarter, bc.category_name;
```
**Usage:**
```sql
-- Compare spending per capita across jurisdiction types
SELECT
jurisdiction_type,
fiscal_year,
AVG(spending_per_capita) as avg_spending_per_capita,
AVG(revenue_per_capita) as avg_revenue_per_capita,
AVG(debt_per_capita) as avg_debt_per_capita
FROM metric_government_spending
GROUP BY jurisdiction_type, fiscal_year
ORDER BY fiscal_year DESC, avg_spending_per_capita DESC;
```
#### 3. Nonprofit Impact Metrics
**Purpose:** Measure nonprofit activity, funding, and service delivery
```sql
CREATE VIEW metric_nonprofit_impact AS
SELECT
-- Dimensions
n.nonprofit_id,
n.organization_name,
n.state,
n.city,
nc.ntee_code,
nc.category_name,
d.tax_year,
-- Measures
SUM(nf.total_revenue) as total_revenue,
SUM(nf.total_expenses) as total_expenses,
SUM(nf.total_assets) as total_assets,
SUM(nf.program_service_expenses) as program_expenses,
SUM(nf.fundraising_expenses) as fundraising_expenses,
SUM(nf.management_expenses) as management_expenses,
COUNT(DISTINCT g.grant_id) as grants_received_count,
SUM(g.grant_amount) as total_grants_received,
-- Calculated Metrics
SUM(nf.program_service_expenses) / NULLIF(SUM(nf.total_expenses), 0) * 100 as program_expense_ratio,
SUM(nf.fundraising_expenses) / NULLIF(SUM(nf.total_revenue), 0) * 100 as fundraising_efficiency,
(SUM(nf.total_revenue) - SUM(nf.total_expenses)) as net_income,
COUNT(DISTINCT nf.year) as years_active
FROM NONPROFIT n
JOIN DATE_DIMENSION d ON d.year BETWEEN 2020 AND 2025
JOIN NONPROFIT_FILING nf ON nf.ein = n.ein AND nf.tax_year = d.year
LEFT JOIN NONPROFIT_CAUSE nc ON nc.cause_id = n.primary_cause_id
LEFT JOIN GRANT g ON g.recipient_ein = n.ein AND g.tax_year = d.year
WHERE
-- Filters
nf.total_revenue > 0
AND (
nc.category_name LIKE '%health%'
OR nc.category_name LIKE '%dental%'
OR n.mission_statement LIKE '%oral health%'
)
GROUP BY
n.nonprofit_id, n.organization_name, n.state, n.city,
nc.ntee_code, nc.category_name, d.tax_year;
```
**Usage:**
```sql
-- Identify high-performing health nonprofits by program efficiency
SELECT
organization_name,
state,
tax_year,
total_revenue,
program_expense_ratio,
fundraising_efficiency
FROM metric_nonprofit_impact
WHERE
tax_year = 2024
AND total_revenue > 1000000
AND program_expense_ratio > 75 -- More than 75% goes to programs
ORDER BY program_expense_ratio DESC, total_revenue DESC
LIMIT 20;
```
### Metric View Best Practices
1. **Grain Definition**: Clearly define the granularity of each metric view (e.g., per jurisdiction per month)
2. **Performance**: Pre-aggregate expensive calculations to improve query performance
3. **Incremental Updates**: Design views to support incremental refresh rather than full rebuilds
4. **Documentation**: Document all dimension values, measure calculations, and filter logic
5. **Naming Convention**: Use `metric_` prefix followed by descriptive name (e.g., `metric_advocacy_activity`)
6. **Testing**: Validate measure calculations against source data to ensure accuracy
### Query Optimization
For large-scale analytics, metric views can be materialized:
```sql
-- Materialize for fast querying
CREATE MATERIALIZED VIEW metric_advocacy_activity_mat AS
SELECT * FROM metric_advocacy_activity;
-- Refresh incrementally
REFRESH MATERIALIZED VIEW metric_advocacy_activity_mat;
-- Add indexes on common filter/join columns
CREATE INDEX idx_advocacy_state_year
ON metric_advocacy_activity_mat(state_code, year);
CREATE INDEX idx_advocacy_jurisdiction
ON metric_advocacy_activity_mat(jurisdiction_id);
```
## π§ System-Internal Tables (OMOP-Inspired Vocabulary)
**Purpose:** Standardized terminology and concept management following OHDSI OMOP Common Data Model principles. These tables provide semantic interoperability and enable precise data linkage across all entities.
**β οΈ Technical Note:** These are internal reference tables used by data engineers and ETL pipelines. Non-technical users can ignore this section.
<ZoomableMermaid
title="Vocabulary & Concept System (OMOP-Inspired)"
initialScale={8}
value={`
erDiagram
%% ========================================
%% VOCABULARY SYSTEM (OMOP-Inspired)
%% Based on OHDSI Athena vocabulary structure
%% ID range: 2,000,000,000+ for custom civic concepts
%% ========================================
VOCABULARY ||--o{ CONCEPT : contains
CONCEPT_CLASS ||--o{ CONCEPT : categorizes
DOMAIN ||--o{ CONCEPT : groups
CONCEPT ||--o{ CONCEPT_RELATIONSHIP : source
CONCEPT ||--o{ CONCEPT_RELATIONSHIP : target
VOCABULARY {
string vocabulary_id PK
string vocabulary_name
string vocabulary_reference
string vocabulary_version
string vocabulary_concept_id FK
}
DOMAIN {
string domain_id PK
string domain_name
string domain_concept_id FK
}
CONCEPT_CLASS {
string concept_class_id PK
string concept_class_name
string concept_class_concept_id FK
}
CONCEPT {
int concept_id PK "Unique ID (2B+ for custom)"
string concept_name "Display name"
string domain_id FK "Jurisdiction, Nonprofit, Policy"
string vocabulary_id FK "OCD_ID, IRS_NTEE, US_Census"
string concept_class_id FK "City, County, 501c3, Mayor"
string standard_concept "S=Standard, C=Classification"
string concept_code "External identifier"
datetime valid_start_date
datetime valid_end_date
string invalid_reason
}
CONCEPT_RELATIONSHIP {
int concept_id_1 FK
int concept_id_2 FK
string relationship_id "Is part of, Regulates, etc"
datetime valid_start_date
datetime valid_end_date
string invalid_reason
}
%% ========================================
%% CONCEPT MAPPING TO EXISTING TABLES
%% ========================================
CONCEPT ||--o{ JURISDICTION : city_concept_id
CONCEPT ||--o{ ORGANIZATION : organization_concept_id
CONCEPT ||--o{ LEADER : position_concept_id
CONCEPT ||--o{ POLICY_TOPIC : topic_concept_id
%% ========================================
%% DEMOGRAPHICS
%% ========================================
%% Comprehensive demographic data from U.S. Census Bureau
%% Separate entity for population characteristics
JURISDICTION ||--o| DEMOGRAPHICS : has_demographics
DEMOGRAPHICS {
string demographics_id PK
string jurisdiction_id FK
string census_tract
int total_population
int population_2020
int population_2024
int median_age
%% Race & Ethnicity
int white_alone
int black_alone
int asian_alone
int native_american_alone
int pacific_islander_alone
int other_race_alone
int two_or_more_races
int hispanic_latino
int not_hispanic_latino
%% Gender
int male_population
int female_population
%% Age Distribution
int under_18
int age_18_to_64
int age_65_plus
%% Income & Economics
float median_household_income
float per_capita_income
float poverty_rate
int households_snap_benefits
%% Education
int high_school_graduate_pct
int bachelors_degree_pct
int graduate_degree_pct
%% Housing
int total_housing_units
int owner_occupied_pct
int renter_occupied_pct
float median_home_value
float median_rent
%% Employment
float unemployment_rate
int labor_force_participation_pct
%% Health Insurance
int uninsured_pct
int medicaid_pct
int medicare_pct
datetime census_year
string acs_table_id "ACS Table reference"
}
`}
/>
### Vocabulary Sources
| Vocabulary ID | Vocabulary Name | Source | Use Case |
|---------------|-----------------|--------|----------|
| **OCD_ID** | Open Civic Data Division IDs | https://github.com/opencivicdata/ocd-division-ids | Standard jurisdiction identifiers |
| **IRS_NTEE** | IRS National Taxonomy of Exempt Entities | IRS TEOS | Nonprofit classification |
| **US_Census** | U.S. Census Bureau | Census Gazetteer, ACS | Demographics, geography |
| **NCES** | National Center for Education Statistics | NCES CCD, F-33 | School districts, education data |
| **OHDSI_Gender** | OHDSI Gender | Athena | Standard gender concepts (interoperable with medical research) |
| **OHDSI_Race** | OHDSI Race | Athena | Standard race concepts (OMB Classification) |
| **OHDSI_Ethnicity** | OHDSI Ethnicity | Athena | Standard ethnicity concepts (Hispanic/Latino) |
| **OpenNavigator** | Custom Civic Concepts | Internal | Cities, officials, topics (ID > 2,000,000,000) |
### Concept Classes for Civic Data
| Concept Class | Domain | Examples |
|---------------|--------|----------|
| **City** | Jurisdiction | Incorporated places, consolidated city-counties |
| **County** | Jurisdiction | U.S. counties, county equivalents |
| **State** | Jurisdiction | U.S. states, territories, DC |
| **School District** | Jurisdiction | LEAs (Local Educational Agencies) |
| **501c3** | Nonprofit | Tax-exempt charitable organizations |
| **501c4** | Nonprofit | Social welfare organizations |
| **Mayor** | Position | Chief executive of city government |
| **Council Member** | Position | Legislative member |
| **Superintendent** | Position | School district chief administrator |
| **Health Policy** | Topic | Fluoridation, nutrition, dental care |
| **Education Policy** | Topic | School funding, curriculum, facilities |
### Example Concept Entries
```sql
-- Standard concept for a city
INSERT INTO CONCEPT VALUES (
2000000001, -- concept_id (custom range)
'Birmingham, Alabama', -- concept_name
'Jurisdiction', -- domain_id
'OCD_ID', -- vocabulary_id
'City', -- concept_class_id
'S', -- standard_concept (Standard)
'ocd-division/country:us/state:al/place:birmingham', -- concept_code
'2020-01-01', -- valid_start_date
'2099-12-31', -- valid_end_date
NULL -- invalid_reason
);
-- Concept for a nonprofit cause
INSERT INTO CONCEPT VALUES (
2000000101, -- concept_id
'Animal Welfare', -- concept_name
'Nonprofit', -- domain_id
'IRS_NTEE', -- vocabulary_id
'501c3', -- concept_class_id
'C', -- standard_concept (Classification)
'D20', -- concept_code (NTEE code)
'2020-01-01',
'2099-12-31',
NULL
);
-- Gender concept from OHDSI Athena (interoperable with medical research)
INSERT INTO CONCEPT VALUES (
8507, -- concept_id (OHDSI standard)
'MALE', -- concept_name
'Gender', -- domain_id
'OHDSI_Gender', -- vocabulary_id
'Gender', -- concept_class_id
'S',
'M',
'1970-01-01',
'2099-12-31',
NULL
);
```
### Concept Relationships
```sql
-- City is part of County
INSERT INTO CONCEPT_RELATIONSHIP VALUES (
2000000001, -- Birmingham, AL (concept_id_1)
2000000050, -- Jefferson County, AL (concept_id_2)
'Is part of', -- relationship_id
'2020-01-01',
'2099-12-31',
NULL
);
-- Topic regulates Legislation
INSERT INTO CONCEPT_RELATIONSHIP VALUES (
2000000201, -- Water Fluoridation topic
2000000305, -- Ordinance 101
'Regulates',
'2024-01-15',
'2099-12-31',
NULL
);
-- Organization addresses Topic
INSERT INTO CONCEPT_RELATIONSHIP VALUES (
2000000401, -- Dental Health Foundation
2000000201, -- Water Fluoridation
'Addresses',
'2023-06-01',
'2099-12-31',
NULL
);
```
### Implementation in Existing Tables
#### Updated JURISDICTION Schema
```sql
CREATE TABLE JURISDICTION (
jurisdiction_id VARCHAR(255) PRIMARY KEY,
name VARCHAR(255),
jurisdiction_type VARCHAR(50),
-- OMOP-style concept references
city_concept_id INTEGER REFERENCES CONCEPT(concept_id),
city_type_concept_id INTEGER REFERENCES CONCEPT(concept_id), -- e.g., "Consolidated City-County"
source_value VARCHAR(255), -- Original text from data source (e.g., "SF, Calif")
state_code VARCHAR(2),
county_name VARCHAR(100),
population INTEGER,
-- ... other fields
);
```
#### Updated ORGANIZATION Schema
```sql
CREATE TABLE ORGANIZATION (
org_id VARCHAR(255) PRIMARY KEY,
ein VARCHAR(20),
name VARCHAR(255),
-- OMOP-style concept references
organization_concept_id INTEGER REFERENCES CONCEPT(concept_id),
cause_concept_id INTEGER REFERENCES CONCEPT(concept_id), -- Links to NTEE concept
org_type_concept_id INTEGER REFERENCES CONCEPT(concept_id), -- 501c3, 501c4, etc.
source_value VARCHAR(255), -- Original organization name from IRS
ntee_code VARCHAR(10),
-- ... other fields
);
```
#### Updated DEMOGRAPHICS Schema
```sql
CREATE TABLE DEMOGRAPHICS (
demographics_id VARCHAR(255) PRIMARY KEY,
jurisdiction_id VARCHAR(255) REFERENCES JURISDICTION(jurisdiction_id),
-- OMOP-style concept references (OHDSI Athena vocabularies)
race_concept_id INTEGER REFERENCES CONCEPT(concept_id), -- Standard OHDSI race codes
ethnicity_concept_id INTEGER REFERENCES CONCEPT(concept_id), -- Hispanic/Latino classification
gender_concept_id INTEGER REFERENCES CONCEPT(concept_id), -- MALE/FEMALE/OTHER
race_source_value VARCHAR(100), -- Census text (e.g., "White alone")
ethnicity_source_value VARCHAR(100), -- Census text
gender_source_value VARCHAR(50), -- Census text
-- ... other demographic fields
);
```
### Benefits of OMOP-Style Vocabulary
1. **Semantic Interoperability**: Civic data can be joined with healthcare research data using standard OHDSI demographic concepts
2. **Reproducible IDs**: Deterministic hashing (uuid5) on strings like "JURISDICTION:CITY:NEW_YORK" generates consistent concept_id values
3. **Version Control**: `valid_start_date` and `valid_end_date` track concept changes over time
4. **Relationship Tracking**: `CONCEPT_RELATIONSHIP` table captures hierarchies (City β County β State) and associations (Topic β Legislation)
5. **Source Traceability**: `source_value` preserves original text while `concept_id` provides standardized reference
### ETL Mapping Strategy
```python
import uuid
def generate_concept_id(domain: str, type: str, identifier: str) -> int:
"""
Generate deterministic concept_id using UUID5.
Returns integer > 2,000,000,000 for custom civic concepts.
"""
namespace = uuid.UUID('6ba7b810-9dad-11d1-80b4-00c04fd430c8') # OMOP namespace
concept_string = f"{domain}:{type}:{identifier}".upper()
concept_uuid = uuid.uuid5(namespace, concept_string)
# Convert to integer in custom range
return 2_000_000_000 + (int(concept_uuid.hex[:8], 16) % 1_000_000_000)
# Example usage
city_concept_id = generate_concept_id("JURISDICTION", "CITY", "NEW_YORK")
print(city_concept_id) # e.g., 2045879021 (repeatable)
```
### Downloading OHDSI Athena Vocabularies
1. Visit https://athena.ohdsi.org/
2. Select vocabularies:
- β
Gender
- β
Race
- β
Ethnicity
- β
Geography (US Counties, States)
3. Download CSV files
4. Import into `vocabulary/` folder:
- `vocabulary_gender.parquet`
- `vocabulary_race.parquet`
- `vocabulary_ethnicity.parquet`
- `vocabulary_geography.parquet`
## π― Missing Datasets to Add
### High Priority
- [x] **Ballot Measures** - β
Added to data model! Fluoridation votes, bond measures
- [x] **State Legislation** - β
Added to data model! Open States API (FREE)
- [x] **Policy Topics** - β
Added to data model! Oral health advocacy tracking
- [x] **Government Finances** - β
Added to data model! City/county/state budgets, Census of Governments
- [x] **School Finances** - β
Added to data model! NCES F-33 per-pupil spending, revenues
- [x] **Nonprofit Financials** - β
Added to data model! Form 990 detailed financials (10M+ filings)
- [ ] **Census Demographics** - Full census data per jurisdiction (beyond population)
- [ ] **Procurement Records** - Government contracts
- [ ] **Election Results** - Historical voting data
- [ ] **Health Outcomes** - CDC PLACES data (oral health metrics!)
- [ ] **Environmental Data** - EPA water quality (fluoridation levels)
### Medium Priority
- [ ] **Property Records** - Public assessment data
- [ ] **Crime Statistics** - UCR/NIBRS data
- [ ] **Business Licenses** - Local business registrations (dental clinics!)
- [ ] **Building Permits** - Construction activity
- [ ] **Code Violations** - Inspection records
- [ ] **Police Reports** - Public safety incidents
- [ ] **Fire Department Data** - Emergency response
- [ ] **Parks & Recreation** - Facilities & programs
- [ ] **Transportation Data** - Traffic & transit
### Integration Improvements
- [ ] **Full Wikidata Sync** - All civic entities
- [ ] **DBpedia Expansion** - Complete local government coverage
- [ ] **Ballotpedia Data** - (if budget allows) Electoral info & analysis
- [ ] **Court Records** - Public dockets
- [ ] **Tax Records** - Property tax data
## π Implementation Status
### β
Completed
- Jurisdiction discovery pipeline
- YouTube channel discovery
- Meeting platform detection
- NCES school district ingestion
- Open States API integration
- Wikidata SPARQL queries
- DBpedia Lookup API
- Google Civic API (code ready)
- Social media discovery
- HuggingFace upload pipeline
### π¨ In Progress
- Meeting minutes extraction (Tuscaloosa pilot)
- Video transcript processing
- Document keyword detection
- Nonprofit data enrichment
### π Planned
- Automated meeting scraping at scale
- Real-time meeting notifications
- Budget document parsing
- Full census integration
- Health outcome correlation
## π Related Documentation
### Data Standards & Specifications
- **[Popolo Project](https://github.com/popolo-project/popolo-spec)** - Open government data specification for people, organizations, and elected positions. Our LEADER, ORGANIZATION, and JURISDICTION entities follow Popolo schema conventions for maximum interoperability with civic tech platforms.
- **[Schema.org](https://schema.org/)** - W3C structured data vocabulary for semantic web. Our entities map to Schema.org types (Event, Person, Organization, Legislation, ClaimReview, etc.) enabling SEO-optimized JSON-LD exports, Google Search rich results, and voice assistant compatibility.
- **[Common Education Data Standards (CEDS)](https://ceds.ed.gov/)** - U.S. Department of Education data standards for K-12, postsecondary, and workforce data. Our SCHOOL_DISTRICT entity aligns with CEDS Element IDs and NCES survey specifications (CCD, F-33 Finance).
- **[Open Civic Data (OCD-IDs)](https://open-civic-data.readthedocs.io/en/latest/proposals/0002.html)** - Standardized division identifiers for jurisdictions. Format: `ocd-division/country:us/state:al/place:birmingham`
### Internal Documentation
- [HuggingFace Publishing Guide](../guides/huggingface-publishing.md)
- [Data Sources Overview](./overview.md)
- [Discovery Pipeline](./jurisdiction-discovery.md)
---
**Last Updated:** {new Date().toISOString().split('T')[0]}
**Data Model Version:** 2.1 (Popolo-compatible)
|