ChengOS
Rust 엔진 기반 시각화 AI 데이터 처리 및 에이전트 워크플로우 시스템
IRS Form 990 전자파일 XML의 xpath를 연구 변수와 관계 테이블에 매핑합니다
The Master Concordance maps xpaths in IRS Form 990 e-file XML returns onto a documented set of research variables and relational tables. This package holds the concordance as component tables (forms,
데이터HTML · RGitHub @Nonprofit-Open-Data-Collective온라인운영자 미확인
써 보셨어요? 한 번만 눌러 주세요. 로그인은 필요 없어요.
개인 계정의 공개 저장소 소유자는 GitHub로 로그인해 운영자를 확인하고 소개를 직접 관리할 수 있습니다. 관리자 승인은 필요하지 않습니다.
로그인한 뒤 확인 파일을 만들어 이 저장소의 기본 브랜치에 30분 안에 커밋해 주세요. 다른 브랜치나 포크의 파일은 인정하지 않습니다. 파일을 올린 뒤 아래에서 확인하면 관리자 승인 없이 관리할 수 있습니다. 자격을 유지하려면 파일을 남겨 두세요.
로그인이 필요하면 로그인 화면으로 이동합니다. 로그인 후 이곳으로 돌아와 원하는 확인 버튼을 다시 눌러 주세요.
프로젝트 폴더에서 /nomorevibe verify를 실행하면 소유권을 확인하고 소개를 직접 관리할 수 있습니다.
1분 만에 확인하기Updated version of the IRS 990 Concordance file serving as a schema for constructing research databases from XML 990 efile documents.
저장소 README에서 가져옴
README 전체를 불러오는 중입니다.
README 전문 보기 ↗The IRS 990 e-file Master Concordance, version 2, as an R package. It maps xpaths in Form 990, 990-EZ and 990-PF e-file XML returns onto documented research variables and relational tables.
Version 2 stores the concordance as small component tables (one per level of the hierarchy) and generates the familiar one-row-per-xpath file from them. Every change from the v1 Master Concordance File is recorded in a change log.
Documentation site: guides to the table structure, the move from v1, how
the tables are built and how updates are tested, plus data dictionaries for
the 990 / 990-EZ and the 990-PF and an outline of every part and schedule:
https://nonprofit-open-data-collective.github.io/concordance990/ (built into
docs/).
Status: version 2.0.3 is released (see NEWS.md). The issues list of the v1 concordance has been worked through (
reports/issues-resolved.html) and the 990-PF concordance is merged.
# install.packages("remotes")
remotes::install_github("Nonprofit-Open-Data-Collective/concordance990")
library(concordance990)
cc <- concordance() # one row per xpath (v1 columns + family_id, part_id, multi_value)
f990 <- concordance(form = "F990") # the 990 / 990-EZ database
pf <- concordance(form = "F990PF") # the 990-PF database
map <- xpath_map(form = "F990") # xpath -> variable_name, rdb_table, rdb_relationship, form_type, multi_value
dict <- data_dictionary("F990PF") # one row per variable
tabs <- table_names("MANY") # one-to-many tables
lookup_xpath("/irs:Return/irs:ReturnData/IRS990/Form990PartVIISectionAGrp[2]/PersonNm")
dd("F9-P01-T00-SUMMARY") # dictionary entry of a table: its variables
dd("F9_01_REV_TOT_CY", xpaths = TRUE) # of a variable, with the xpaths pooled into it
See Looking up tables and variables.
concordance("v1") returns exactly the v1 columns. For non-R users,
concordance.csv and concordance.xlsx at the repository root are generated
copies in the v1 layout (all xpaths), and concordance-990pf.csv is the
990-PF view. Search and download them on the site:
concordance.csv
and
concordance-990pf.csv.
| Path | Contents |
|---|---|
inst/extdata/src/ | The component tables: forms, parts, tables, variables, xpaths, xpath overrides, families, per-form mappings. Edit these, not the generated files. |
inst/extdata/v1/ | The frozen v1 concordance, byte for byte, with its provenance. |
inst/extdata/changelog/ | changes.csv, one row per change from v1; change_sets.csv, the date, author, reason and evidence of each set of changes; and the v1 crosswalk. |
inst/extdata/validation/ | The validation log (reviewed cases) and rule ceilings. |
inst/reports/ | Validation report templates (README). |
data-raw/ | Scripts that split v1, build the concordance, build filing evidence and render reports; data-raw/fixes/ holds every fix since v1. |
docs/ | The documentation site, built with pkgdown::build_site(). |
Every difference from v1 is recorded line by line in
inst/extdata/changelog/changes.csv, so data built with v1 can always be
reconciled. The guide
Validation, tests and making updates
has the details.
data-raw/fixes/ (see the existing ones): each
fix_step() edits the component tables and logs its changes with a reason
and evidence. Or edit inst/extdata/src/ by hand and run
draft_changes(author = "Your Name", write = TRUE).source("data-raw/build-concordance.R") # concordance.csv/.xlsx, concordance-990pf.csv, v1 crosswalk
devtools::test()
inst/extdata/validation/validation_log.csv.pkgdown::build_site()) and commit the component
tables, the change log, the generated files and docs/ together.v1_crosswalk() (written to inst/extdata/changelog/v1_to_v2_crosswalk.csv)
lists every v1 xpath with its v1 and current variable and table and the
columns that changed.
Concordance data: Open Data Commons Attribution License (ODC-By) v1.0, as for the v1 Master Concordance File. The license for the package code has not been chosen yet.