ddigraph 0.4.1__tar.gz → 0.4.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {ddigraph-0.4.1 → ddigraph-0.4.3}/.gitignore +8 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/PKG-INFO +4 -2
- {ddigraph-0.4.1 → ddigraph-0.4.3}/README.md +2 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/pyproject.toml +2 -1
- {ddigraph-0.4.1 → ddigraph-0.4.3}/src/ddigraph/ingest/cdi_loader.py +0 -25
- {ddigraph-0.4.1 → ddigraph-0.4.3}/src/ddigraph/ingest/fragment_loader.py +106 -14
- {ddigraph-0.4.1 → ddigraph-0.4.3}/src/ddigraph/schema/adapter.py +2 -2
- {ddigraph-0.4.1 → ddigraph-0.4.3}/CONTRIBUTING.md +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/LICENSE +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/NOTICE +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/README.md +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/__init__.py +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi/v3_1/XHTML/xhtml-attribs-1.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi/v3_1/XHTML/xhtml-bdo-1.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi/v3_1/XHTML/xhtml-blkphras-1.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi/v3_1/XHTML/xhtml-blkpres-1.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi/v3_1/XHTML/xhtml-blkstruct-1.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi/v3_1/XHTML/xhtml-charent-1.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi/v3_1/XHTML/xhtml-datatypes-1.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi/v3_1/XHTML/xhtml-framework-1.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi/v3_1/XHTML/xhtml-hypertext-1.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi/v3_1/XHTML/xhtml-inlphras-1.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi/v3_1/XHTML/xhtml-inlpres-1.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi/v3_1/XHTML/xhtml-inlstruct-1.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi/v3_1/XHTML/xhtml-inlstyle-1.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi/v3_1/XHTML/xhtml-lat1.ent +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi/v3_1/XHTML/xhtml-list-1.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi/v3_1/XHTML/xhtml-notations-1.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi/v3_1/XHTML/xhtml-pres-1.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi/v3_1/XHTML/xhtml-special.ent +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi/v3_1/XHTML/xhtml-symbol.ent +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi/v3_1/XHTML/xhtml-table-1.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi/v3_1/XHTML/xhtml-text-1.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi/v3_1/archive.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi/v3_1/comparative.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi/v3_1/conceptualcomponent.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi/v3_1/datacollection.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi/v3_1/dataset.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi/v3_1/dc.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi/v3_1/dcmitype.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi/v3_1/dcterms.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi/v3_1/ddi-xhtml11-model-1.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi/v3_1/ddi-xhtml11-modules-1.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi/v3_1/ddi-xhtml11.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi/v3_1/ddiprofile.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi/v3_1/group.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi/v3_1/instance_3_1.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi/v3_1/logicalproduct.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi/v3_1/physicaldataproduct.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi/v3_1/physicaldataproduct_ncube_inline.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi/v3_1/physicaldataproduct_ncube_normal.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi/v3_1/physicaldataproduct_ncube_tabular.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi/v3_1/physicaldataproduct_proprietary.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi/v3_1/physicalinstance.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi/v3_1/reusable.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi/v3_1/studyunit.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi/v3_1/xml.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi/v3_2/XHTML/xhtml-attribs-1.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi/v3_2/XHTML/xhtml-bdo-1.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi/v3_2/XHTML/xhtml-blkphras-1.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi/v3_2/XHTML/xhtml-blkpres-1.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi/v3_2/XHTML/xhtml-blkstruct-1.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi/v3_2/XHTML/xhtml-charent-1.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi/v3_2/XHTML/xhtml-datatypes-1.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi/v3_2/XHTML/xhtml-framework-1.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi/v3_2/XHTML/xhtml-hypertext-1.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi/v3_2/XHTML/xhtml-inlphras-1.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi/v3_2/XHTML/xhtml-inlpres-1.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi/v3_2/XHTML/xhtml-inlstruct-1.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi/v3_2/XHTML/xhtml-inlstyle-1.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi/v3_2/XHTML/xhtml-lat1.ent +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi/v3_2/XHTML/xhtml-list-1.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi/v3_2/XHTML/xhtml-notations-1.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi/v3_2/XHTML/xhtml-pres-1.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi/v3_2/XHTML/xhtml-special.ent +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi/v3_2/XHTML/xhtml-symbol.ent +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi/v3_2/XHTML/xhtml-table-1.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi/v3_2/XHTML/xhtml-text-1.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi/v3_2/archive.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi/v3_2/comparative.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi/v3_2/conceptualcomponent.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi/v3_2/datacollection.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi/v3_2/dataset.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi/v3_2/dc.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi/v3_2/dcmitype.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi/v3_2/dcterms.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi/v3_2/ddi-xhtml11-model-1.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi/v3_2/ddi-xhtml11-modules-1.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi/v3_2/ddi-xhtml11.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi/v3_2/ddiprofile.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi/v3_2/group.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi/v3_2/instance_3_2.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi/v3_2/logicalproduct.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi/v3_2/physicaldataproduct.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi/v3_2/physicaldataproduct_ncube_inline.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi/v3_2/physicaldataproduct_ncube_normal.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi/v3_2/physicaldataproduct_ncube_tabular.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi/v3_2/physicaldataproduct_proprietary.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi/v3_2/physicalinstance.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi/v3_2/reusable.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi/v3_2/studyunit.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi/v3_2/xml.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi/v3_3/XHTML/xhtml-attribs-1.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi/v3_3/XHTML/xhtml-bdo-1.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi/v3_3/XHTML/xhtml-blkphras-1.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi/v3_3/XHTML/xhtml-blkpres-1.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi/v3_3/XHTML/xhtml-blkstruct-1.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi/v3_3/XHTML/xhtml-charent-1.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi/v3_3/XHTML/xhtml-datatypes-1.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi/v3_3/XHTML/xhtml-framework-1.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi/v3_3/XHTML/xhtml-hypertext-1.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi/v3_3/XHTML/xhtml-inlphras-1.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi/v3_3/XHTML/xhtml-inlpres-1.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi/v3_3/XHTML/xhtml-inlstruct-1.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi/v3_3/XHTML/xhtml-inlstyle-1.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi/v3_3/XHTML/xhtml-lat1.ent +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi/v3_3/XHTML/xhtml-list-1.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi/v3_3/XHTML/xhtml-notations-1.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi/v3_3/XHTML/xhtml-pres-1.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi/v3_3/XHTML/xhtml-special.ent +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi/v3_3/XHTML/xhtml-symbol.ent +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi/v3_3/XHTML/xhtml-table-1.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi/v3_3/XHTML/xhtml-text-1.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi/v3_3/archive.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi/v3_3/comparative.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi/v3_3/conceptualcomponent.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi/v3_3/datacollection.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi/v3_3/dataset.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi/v3_3/dc.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi/v3_3/dcmitype.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi/v3_3/dcterms.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi/v3_3/ddi-xhtml11-model-1.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi/v3_3/ddi-xhtml11-modules-1.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi/v3_3/ddi-xhtml11.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi/v3_3/ddiprofile.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi/v3_3/group.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi/v3_3/instance_3_3.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi/v3_3/logicalproduct.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi/v3_3/physicaldataproduct.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi/v3_3/physicaldataproduct_ncube_inline.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi/v3_3/physicaldataproduct_ncube_normal.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi/v3_3/physicaldataproduct_ncube_tabular.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi/v3_3/physicaldataproduct_proprietary.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi/v3_3/physicalinstance.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi/v3_3/reusable.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi/v3_3/studyunit.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi/v3_3/xml.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi-c/XHTML/xhtml-attribs-1.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi-c/XHTML/xhtml-bdo-1.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi-c/XHTML/xhtml-blkphras-1.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi-c/XHTML/xhtml-blkpres-1.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi-c/XHTML/xhtml-blkstruct-1.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi-c/XHTML/xhtml-charent-1.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi-c/XHTML/xhtml-datatypes-1.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi-c/XHTML/xhtml-framework-1.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi-c/XHTML/xhtml-hypertext-1.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi-c/XHTML/xhtml-inlphras-1.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi-c/XHTML/xhtml-inlpres-1.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi-c/XHTML/xhtml-inlstruct-1.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi-c/XHTML/xhtml-inlstyle-1.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi-c/XHTML/xhtml-lat1.ent +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi-c/XHTML/xhtml-list-1.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi-c/XHTML/xhtml-notations-1.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi-c/XHTML/xhtml-pres-1.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi-c/XHTML/xhtml-special.ent +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi-c/XHTML/xhtml-symbol.ent +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi-c/XHTML/xhtml-table-1.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi-c/XHTML/xhtml-text-1.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi-c/codebook.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi-c/dc.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi-c/dcmitype.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi-c/dcterms.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi-c/ddi-xhtml11-model-1.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi-c/ddi-xhtml11-modules-1.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi-c/ddi-xhtml11.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi-c/xml.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi-cdi/ontology/Agents.onto.ttl +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi-cdi/ontology/Classes.onto.ttl +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi-cdi/ontology/Components.onto.ttl +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi-cdi/ontology/Conceptual.onto.ttl +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi-cdi/ontology/DDICDILibrary.onto.ttl +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi-cdi/ontology/DataDescription.onto.ttl +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi-cdi/ontology/DataTypes.onto.ttl +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi-cdi/ontology/Dimensional.onto.ttl +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi-cdi/ontology/Enumerations.onto.ttl +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi-cdi/ontology/FormatDescription.onto.ttl +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi-cdi/ontology/KeyValue.onto.ttl +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi-cdi/ontology/Long.onto.ttl +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi-cdi/ontology/Process.onto.ttl +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi-cdi/ontology/Representations.onto.ttl +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi-cdi/ontology/StructuredDataTypes.onto.ttl +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi-cdi/ontology/Wide.onto.ttl +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi-cdi/ontology/ddi-cdi.onto.ttl +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi-cdi/xml-schema/ddi-cdi.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/ddi-cdi/xml-schema/xml.xsd +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/license.txt +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/manifest.json +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/schemas/readme.txt +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/scripts/update_schemas.py +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/src/ddigraph/__init__.py +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/src/ddigraph/api.py +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/src/ddigraph/cli.py +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/src/ddigraph/config.py +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/src/ddigraph/graph/__init__.py +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/src/ddigraph/graph/bootstrap.py +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/src/ddigraph/ingest/__init__.py +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/src/ddigraph/ingest/_compose.py +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/src/ddigraph/ingest/_composition_specs.py +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/src/ddigraph/ingest/loader.py +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/src/ddigraph/logging.py +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/src/ddigraph/metrics.py +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/src/ddigraph/paths.py +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/src/ddigraph/py.typed +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/src/ddigraph/resources.py +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/src/ddigraph/schema/__init__.py +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/src/ddigraph/schema/_generated/__init__.py +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/src/ddigraph/schema/_generated/cdi.py +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/src/ddigraph/schema/_generated/codebook.py +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/src/ddigraph/schema/_generated/lifecycle.py +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/src/ddigraph/schema/_overrides/__init__.py +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/src/ddigraph/schema/_overrides/_loader.py +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/src/ddigraph/schema/_overrides/schema_overrides.toml +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/src/ddigraph/schema/ddi_graph.py +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/src/ddigraph/schema/definitions/__init__.py +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/src/ddigraph/schema/definitions/_dataclasses.py +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/src/ddigraph/schema/definitions/cdi.py +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/src/ddigraph/schema/definitions/codebook.py +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/src/ddigraph/schema/definitions/lifecycle.py +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/src/ddigraph/schema/neo4j_adapter.py +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/src/ddigraph/utils/__init__.py +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/src/ddigraph/utils/chunking.py +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/src/ddigraph/utils/parsing.py +0 -0
- {ddigraph-0.4.1 → ddigraph-0.4.3}/src/ddigraph/utils/retry.py +0 -0
|
@@ -215,3 +215,11 @@ __marimo__/
|
|
|
215
215
|
!schemas/manifest.json
|
|
216
216
|
!tests/fixtures/*.json
|
|
217
217
|
|
|
218
|
+
# Demo script outputs (generated artifacts; root-level only so tracked
|
|
219
|
+
# demo/*.ttl and schemas/**/*.ttl LFS files are unaffected)
|
|
220
|
+
/ddi_graph.ttl
|
|
221
|
+
/ddi_graph.nt
|
|
222
|
+
/ddi_graph.rdf
|
|
223
|
+
/ddi_graph.jsonld
|
|
224
|
+
/ddi_data.xlsx
|
|
225
|
+
/ddi_export/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
2
|
Name: ddigraph
|
|
3
|
-
Version: 0.4.
|
|
3
|
+
Version: 0.4.3
|
|
4
4
|
Summary: DDI to Knowledge Graph toolkit - transform DDI metadata into graph databases (Neo4j, RDF, Gremlin, NetworkX)
|
|
5
5
|
Project-URL: Homepage, https://github.com/pbisson44/ddigraph
|
|
6
6
|
Project-URL: Repository, https://github.com/pbisson44/ddigraph
|
|
@@ -157,6 +157,7 @@ from neo4j import AsyncGraphDatabase
|
|
|
157
157
|
from ddigraph import DDILoader, DDIFragmentLoader, detect_ddi_format
|
|
158
158
|
from ddigraph.config import Settings
|
|
159
159
|
|
|
160
|
+
|
|
160
161
|
async def main():
|
|
161
162
|
settings = Settings()
|
|
162
163
|
driver = AsyncGraphDatabase.driver(
|
|
@@ -173,6 +174,7 @@ async def main():
|
|
|
173
174
|
print(result) # {'Instrument': 1, 'Sequence': 388, 'QuestionItem': 373, ...}
|
|
174
175
|
await driver.close()
|
|
175
176
|
|
|
177
|
+
|
|
176
178
|
asyncio.run(main())
|
|
177
179
|
```
|
|
178
180
|
|
|
@@ -61,6 +61,7 @@ from neo4j import AsyncGraphDatabase
|
|
|
61
61
|
from ddigraph import DDILoader, DDIFragmentLoader, detect_ddi_format
|
|
62
62
|
from ddigraph.config import Settings
|
|
63
63
|
|
|
64
|
+
|
|
64
65
|
async def main():
|
|
65
66
|
settings = Settings()
|
|
66
67
|
driver = AsyncGraphDatabase.driver(
|
|
@@ -77,6 +78,7 @@ async def main():
|
|
|
77
78
|
print(result) # {'Instrument': 1, 'Sequence': 388, 'QuestionItem': 373, ...}
|
|
78
79
|
await driver.close()
|
|
79
80
|
|
|
81
|
+
|
|
80
82
|
asyncio.run(main())
|
|
81
83
|
```
|
|
82
84
|
|
|
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "ddigraph"
|
|
7
|
-
version = "0.4.
|
|
7
|
+
version = "0.4.3"
|
|
8
8
|
description = "DDI to Knowledge Graph toolkit - transform DDI metadata into graph databases (Neo4j, RDF, Gremlin, NetworkX)"
|
|
9
9
|
authors = [{name = "ddigraph maintainers", email = "ddigraph@noreply.github.com"}]
|
|
10
10
|
readme = "README.md"
|
|
@@ -228,6 +228,7 @@ ignore = [
|
|
|
228
228
|
"mkdocs.yml",
|
|
229
229
|
"poetry.lock",
|
|
230
230
|
"uv.lock",
|
|
231
|
+
"audit/**",
|
|
231
232
|
"demo/**",
|
|
232
233
|
"docs/**",
|
|
233
234
|
"hooks/**",
|
|
@@ -829,31 +829,6 @@ __all__ = [
|
|
|
829
829
|
"CDIBatchBuilder",
|
|
830
830
|
"CDIBatchStream",
|
|
831
831
|
"CDIRecord",
|
|
832
|
-
"CDIRecord",
|
|
833
|
-
"CDIRecord",
|
|
834
|
-
"CDIRecord",
|
|
835
|
-
"CDIRecord",
|
|
836
|
-
"CDIRecord",
|
|
837
|
-
"CDIRecord",
|
|
838
|
-
"CDIRecord",
|
|
839
|
-
"CDIRecord",
|
|
840
|
-
"CDIRecord",
|
|
841
|
-
"CDIRecord",
|
|
842
|
-
"CDIRecord",
|
|
843
|
-
"CDIRecord",
|
|
844
|
-
"CDIRecord",
|
|
845
|
-
"CDIRecord",
|
|
846
|
-
"CDIRecord",
|
|
847
|
-
"CDIRecord",
|
|
848
|
-
"CDIRecord",
|
|
849
|
-
"CDIRecord",
|
|
850
|
-
"CDIRecord",
|
|
851
|
-
"CDIRecord",
|
|
852
|
-
"CDIRecord",
|
|
853
|
-
"CDIRecord",
|
|
854
|
-
"CDIRecord",
|
|
855
|
-
"CDIRecord",
|
|
856
|
-
"CDIRecord",
|
|
857
832
|
"CDIRelationshipRecord",
|
|
858
833
|
"is_cdi_format",
|
|
859
834
|
"parse_cdi_batches",
|
|
@@ -52,6 +52,28 @@ logger = get_logger(__name__)
|
|
|
52
52
|
# ============================================================================
|
|
53
53
|
|
|
54
54
|
|
|
55
|
+
def make_node_key(
|
|
56
|
+
agency: str | None,
|
|
57
|
+
id: str,
|
|
58
|
+
version: str | None,
|
|
59
|
+
urn: str | None = None,
|
|
60
|
+
) -> str:
|
|
61
|
+
"""Return a version-aware identity key for a fragment or reference.
|
|
62
|
+
|
|
63
|
+
DDI identity is agency + id + version (the URN), so two fragments that share
|
|
64
|
+
an id but differ in version are distinct objects and must become distinct
|
|
65
|
+
nodes. The verbatim ``urn`` is used when present; otherwise it is composed
|
|
66
|
+
from agency/id/version in the canonical ``urn:ddi:<agency>:<id>:<version>``
|
|
67
|
+
form so that a fragment and the references pointing at it derive the same
|
|
68
|
+
key. Falls back to the bare id when no version is available.
|
|
69
|
+
"""
|
|
70
|
+
if urn:
|
|
71
|
+
return urn
|
|
72
|
+
if version:
|
|
73
|
+
return f"urn:ddi:{agency or ''}:{id}:{version}"
|
|
74
|
+
return id
|
|
75
|
+
|
|
76
|
+
|
|
55
77
|
@dataclass
|
|
56
78
|
class FragmentReference:
|
|
57
79
|
"""A reference to another DDI-L fragment."""
|
|
@@ -66,6 +88,11 @@ class FragmentReference:
|
|
|
66
88
|
"""Return agency-qualified ID if agency is present."""
|
|
67
89
|
return f"{self.agency}:{self.id}" if self.agency else self.id
|
|
68
90
|
|
|
91
|
+
@property
|
|
92
|
+
def node_key(self) -> str:
|
|
93
|
+
"""Version-aware identity of the referenced fragment."""
|
|
94
|
+
return make_node_key(self.agency, self.id, self.version)
|
|
95
|
+
|
|
69
96
|
|
|
70
97
|
@dataclass
|
|
71
98
|
class Fragment:
|
|
@@ -98,6 +125,11 @@ class Fragment:
|
|
|
98
125
|
"""Return agency-qualified ID if agency is present."""
|
|
99
126
|
return f"{self.agency}:{self.id}" if self.agency else self.id
|
|
100
127
|
|
|
128
|
+
@property
|
|
129
|
+
def node_key(self) -> str:
|
|
130
|
+
"""Version-aware identity of this fragment (the graph node key)."""
|
|
131
|
+
return make_node_key(self.agency, self.id, self.version, self.urn)
|
|
132
|
+
|
|
101
133
|
def to_dict(self) -> dict[str, Any]:
|
|
102
134
|
"""Flatten fragment properties into a Cypher-ready parameter mapping.
|
|
103
135
|
|
|
@@ -107,7 +139,10 @@ class Fragment:
|
|
|
107
139
|
:attr:`properties` and ``None`` values are omitted.
|
|
108
140
|
"""
|
|
109
141
|
props = {
|
|
110
|
-
|
|
142
|
+
# ``fragment_id`` is the version-aware node key so two versions of
|
|
143
|
+
# the same DDI id stay distinct; the bare DDI id is kept as ``ddi_id``.
|
|
144
|
+
"fragment_id": self.node_key,
|
|
145
|
+
"ddi_id": self.id,
|
|
111
146
|
"agency": self.agency,
|
|
112
147
|
"version": self.version,
|
|
113
148
|
"urn": self.urn,
|
|
@@ -432,7 +467,13 @@ class DDIFragmentParser:
|
|
|
432
467
|
self.metrics = metrics or NullMetrics()
|
|
433
468
|
self.recover = recover
|
|
434
469
|
self.top_level_ref: FragmentReference | None = None
|
|
435
|
-
|
|
470
|
+
# Version-aware node keys (URN-based) of every fragment seen.
|
|
471
|
+
self._node_keys: set[str] = set()
|
|
472
|
+
# Bare DDI id -> ordered node keys, for resolving references that omit a
|
|
473
|
+
# version or point at a version that is not present (fallback matching).
|
|
474
|
+
self._keys_by_id: dict[str, list[str]] = defaultdict(list)
|
|
475
|
+
# Count of true duplicates (same id *and* version) that were skipped.
|
|
476
|
+
self._duplicate_fragment_count = 0
|
|
436
477
|
self._totals: dict[str, int] = defaultdict(int)
|
|
437
478
|
|
|
438
479
|
def parse_batches(self) -> Iterator[FragmentBatch]:
|
|
@@ -476,10 +517,26 @@ class DDIFragmentParser:
|
|
|
476
517
|
|
|
477
518
|
elif tag == "Fragment":
|
|
478
519
|
fragment = self._parse_fragment(elem)
|
|
479
|
-
if fragment:
|
|
520
|
+
if fragment and fragment.node_key in self._node_keys:
|
|
521
|
+
# Same id *and* version -> a genuine duplicate (not two
|
|
522
|
+
# distinct versions). Keep the first and skip this one so
|
|
523
|
+
# the uniqueness constraint is not violated; surface it.
|
|
524
|
+
self._duplicate_fragment_count += 1
|
|
525
|
+
logger.warning(
|
|
526
|
+
"Duplicate fragment (same id and version); "
|
|
527
|
+
"keeping first occurrence and skipping later one",
|
|
528
|
+
extra={
|
|
529
|
+
"fragment_id": fragment.node_key,
|
|
530
|
+
"ddi_id": fragment.id,
|
|
531
|
+
"element_type": fragment.element_type,
|
|
532
|
+
"version": fragment.version,
|
|
533
|
+
},
|
|
534
|
+
)
|
|
535
|
+
elif fragment:
|
|
480
536
|
batch.add_fragment(fragment)
|
|
481
537
|
all_fragments.append(fragment)
|
|
482
|
-
self.
|
|
538
|
+
self._node_keys.add(fragment.node_key)
|
|
539
|
+
self._keys_by_id[fragment.id].append(fragment.node_key)
|
|
483
540
|
self._totals[fragment.element_type] += 1
|
|
484
541
|
fragment_count += 1
|
|
485
542
|
|
|
@@ -505,15 +562,16 @@ class DDIFragmentParser:
|
|
|
505
562
|
# Phase 2: Now that all fragment IDs are known, resolve relationships
|
|
506
563
|
logger.debug(
|
|
507
564
|
"Resolving relationships",
|
|
508
|
-
extra={"fragment_count": len(all_fragments), "known_ids": len(self.
|
|
565
|
+
extra={"fragment_count": len(all_fragments), "known_ids": len(self._node_keys)},
|
|
509
566
|
)
|
|
510
567
|
|
|
511
568
|
rel_batch = FragmentBatch()
|
|
512
569
|
for fragment in all_fragments:
|
|
513
570
|
for rel_type, ref in fragment.references:
|
|
571
|
+
target = self._resolve_reference(ref)
|
|
514
572
|
# Only create relationships to fragments that exist
|
|
515
|
-
if
|
|
516
|
-
rel_batch.add_relationship(fragment.
|
|
573
|
+
if target is not None:
|
|
574
|
+
rel_batch.add_relationship(fragment.node_key, rel_type, target)
|
|
517
575
|
|
|
518
576
|
# Yield relationship batches to avoid memory buildup
|
|
519
577
|
if len(rel_batch.relationships) >= self.chunk_size:
|
|
@@ -537,6 +595,25 @@ class DDIFragmentParser:
|
|
|
537
595
|
},
|
|
538
596
|
)
|
|
539
597
|
|
|
598
|
+
def _resolve_reference(self, ref: FragmentReference) -> str | None:
|
|
599
|
+
"""Resolve a reference to the node key of an existing fragment.
|
|
600
|
+
|
|
601
|
+
Prefers an exact version-aware match (same id and version). When the
|
|
602
|
+
reference omits a version or points at a version that is not present,
|
|
603
|
+
falls back to the most recently seen fragment with the same id so the
|
|
604
|
+
edge still resolves rather than being dropped. Returns ``None`` when no
|
|
605
|
+
fragment with the referenced id exists.
|
|
606
|
+
"""
|
|
607
|
+
key = ref.node_key
|
|
608
|
+
if key in self._node_keys:
|
|
609
|
+
return key
|
|
610
|
+
candidates = self._keys_by_id.get(ref.id)
|
|
611
|
+
if candidates:
|
|
612
|
+
# Fallback: reference version is missing or unknown -> link to the
|
|
613
|
+
# latest fragment seen for this id.
|
|
614
|
+
return candidates[-1]
|
|
615
|
+
return None
|
|
616
|
+
|
|
540
617
|
def _parse_reference(self, elem: etree._Element) -> FragmentReference | None:
|
|
541
618
|
"""Parse a *Reference element into a FragmentReference."""
|
|
542
619
|
agency = get_child_text(elem, "Agency")
|
|
@@ -916,7 +993,7 @@ class DDIFragmentParser:
|
|
|
916
993
|
return {
|
|
917
994
|
"fragment_count": sum(self._totals.values()),
|
|
918
995
|
"types": dict(self._totals),
|
|
919
|
-
"entry_point": self.top_level_ref.
|
|
996
|
+
"entry_point": self.top_level_ref.node_key if self.top_level_ref else None,
|
|
920
997
|
}
|
|
921
998
|
|
|
922
999
|
|
|
@@ -1062,6 +1139,17 @@ class AsyncFragmentGraphWriter:
|
|
|
1062
1139
|
cypher = "MATCH (n {fragment_id: $entry_id}) SET n:EntryPoint"
|
|
1063
1140
|
await self._execute(cypher, {"entry_id": entry_id}, database)
|
|
1064
1141
|
|
|
1142
|
+
async def mark_entry_points(self, database: str) -> None:
|
|
1143
|
+
"""Label every survey root (Instrument/StudyUnit) as an EntryPoint.
|
|
1144
|
+
|
|
1145
|
+
A FragmentInstance declares a single TopLevelReference, but a file -- or
|
|
1146
|
+
an accumulated multi-file graph -- can contain many survey roots. Marking
|
|
1147
|
+
each Instrument and StudyUnit makes them all discoverable as traversal
|
|
1148
|
+
entry points regardless of how many files were loaded.
|
|
1149
|
+
"""
|
|
1150
|
+
for label in ("Instrument", "StudyUnit"):
|
|
1151
|
+
await self._execute(f"MATCH (n:{label}) SET n:EntryPoint", {}, database)
|
|
1152
|
+
|
|
1065
1153
|
async def purge_fragments(self, database: str) -> None:
|
|
1066
1154
|
"""Delete all fragment nodes and relationships."""
|
|
1067
1155
|
# Get all fragment node labels
|
|
@@ -1176,12 +1264,16 @@ class DDIFragmentLoader:
|
|
|
1176
1264
|
|
|
1177
1265
|
self.metrics.increment("fragment.batches")
|
|
1178
1266
|
|
|
1179
|
-
# Mark entry
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1267
|
+
# Mark entry points: the file's declared top level (which may be a Group
|
|
1268
|
+
# or other container) plus every survey root (Instrument/StudyUnit), so all
|
|
1269
|
+
# roots are discoverable even when several files are loaded into one graph.
|
|
1270
|
+
if not self.settings.dry_run:
|
|
1271
|
+
if parser.top_level_ref:
|
|
1272
|
+
await writer.mark_entry_point(
|
|
1273
|
+
parser.top_level_ref.node_key,
|
|
1274
|
+
self.settings.neo4j_database,
|
|
1275
|
+
)
|
|
1276
|
+
await writer.mark_entry_points(self.settings.neo4j_database)
|
|
1185
1277
|
|
|
1186
1278
|
elapsed = perf_counter() - start_time
|
|
1187
1279
|
totals["batches"] = batch_count
|
|
@@ -43,7 +43,7 @@ class GraphWriteAdapter(Protocol):
|
|
|
43
43
|
*,
|
|
44
44
|
session_config: dict[str, object] | None = None,
|
|
45
45
|
transaction_config: dict[str, object] | None = None,
|
|
46
|
-
) -> None |
|
|
46
|
+
) -> Awaitable[None] | None:
|
|
47
47
|
"""Write a batch of DDI data to the graph.
|
|
48
48
|
|
|
49
49
|
Args:
|
|
@@ -62,7 +62,7 @@ class GraphWriteAdapter(Protocol):
|
|
|
62
62
|
*,
|
|
63
63
|
session_config: dict[str, object] | None = None,
|
|
64
64
|
transaction_config: dict[str, object] | None = None,
|
|
65
|
-
) -> None |
|
|
65
|
+
) -> Awaitable[None] | None:
|
|
66
66
|
"""Remove all nodes and relationships for a dataset.
|
|
67
67
|
|
|
68
68
|
Args:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|