Files

159 lines
4.6 KiB
Python

"""Compatibility imports for existing taxonomy consumers.
Implementation lives in core.taxonomy; new code should use that package.
"""
from .concept_graph import ConceptGraphError
from .taxonomy.governance import (
_area_to_stage2_pair,
_canonical_unit_provenance_sig,
_parse_iso_utc,
_resolve_confined_method_study_file,
_validate_ci_map,
_validate_person_record,
compute_stage1_routing_digest,
compute_stage2_frozen_routing_digest,
verify_release_governance_receipt,
)
from .taxonomy.history import (
_LATIN_FOLD_TABLE,
LEGACY_EVALUATION_INVENTORY_SHA256,
LEGACY_LEDGER_REL_PATH,
LEGACY_LEDGER_SHA256,
_cached_burned_clusters,
_cached_genesis_snapshot,
_compute_warrant_lineages,
_extract_auth_and_org_sets,
_extract_work_ids,
_historical_ledger_migration,
_load_burned_clusters,
_norm_work_id_token,
compute_lineage_components,
init_genesis_provenance_state,
load_genesis_baseline_taxonomy,
norm_person_or_org_token,
replay_patch_on_taxonomy_doc,
resolve_cluster_merges,
validate_burned_clusters_v3_ledger,
verify_burned_clusters_append_only,
)
from .taxonomy.legacy_policy import (
_ALLOWED_GUIDES_OP_PREFIXES,
_ALLOWED_OP_PREFIXES,
_ALLOWED_PROV_ALIAS_TYPES,
_ANCHOR_BOOTSTRAP_CI_KEYS,
_BOARD_SEATS_EXPECTED,
_CHAIR_SIGN_OFF_AREAS_TO_SEAT,
_EXPECTED_STANDING_SLOTS,
_INTERNAL_LINEAGE_PREFIXES,
_PRE_SIDECAR_VERSIONS,
_PRIMARY_BOOTSTRAP_CI_KEYS,
_REQUIRED_WITNESS_KEYS,
_SPECIALIST_SLOTS_EXPECTED,
_STAGE2_ANCHOR_ROW_QUOTAS,
_STAGE2_PAIR_ORDER,
BOOTSTRAP_GRANDFATHERED_ALIAS_EXCEPTIONS,
BURNED_CLUSTERS_REL_PATH,
GENESIS_BURNED_CLUSTER_IDS,
GENESIS_CANONICAL_JSON_SHA256,
GENESIS_CLUSTER_MERGES,
GENESIS_EDITOR_AFFILIATED_CLUSTERS,
GENESIS_EDITOR_COAUTHOR_5YR_CLUSTERS,
GENESIS_HISTORICAL_PHASE3_UNITS_SHA256,
GENESIS_INTERNAL_CLUSTERS,
GENESIS_PRE_SIDECAR_NON_GUIDES_SHA256,
GENESIS_PRE_SIDECAR_TAXONOMY_SHA256,
GENESIS_SNAPSHOT_GZ_SHA256,
GENESIS_SNAPSHOT_REL_PATH,
PINNED_BASELINE_SPLIT_HIERARCHY_EDGES,
PINNED_BASELINE_ZERO_WARRANT_CONCEPTS,
PINNED_GRANDFATHERED_ALIAS_EXCEPTIONS,
REPO_ROOT_PATH,
)
from .taxonomy.metrics import (
_bootstrap_percentile_95_ci,
_canonicalize_pair_eval_columns,
_clamp_ieee_signed_unit,
_clamp_ieee_unit,
_fast_fleiss_kappa_8rater_from_precomputed,
_fast_hooper_rolling_from_precomputed,
_fast_masi_alpha_from_precomputed,
_fast_nominal_alpha_from_precomputed,
_fast_pair_stratified_kappa_from_precomputed,
_masi_similarity,
_precompute_fleiss_kappa_8rater,
_precompute_hooper_rolling,
_precompute_masi_alpha,
_precompute_nominal_alpha,
_precompute_pair_stratified_kappa,
_weighted_fleiss_kappa_8rater,
_weighted_hooper_rolling,
_weighted_krippendorff_masi_alpha,
_weighted_krippendorff_nominal_alpha,
_weighted_pair_stratified_cohen_kappa,
_weighted_pair_stratified_cohen_kappa_with_strata,
expected_stage2_anchor_schedule,
run_stage2_estimator_self_tests,
)
from .taxonomy.provenance import (
_verify_enrichment_alias_meta,
_verify_enrichment_warrant_sources,
build_provenance_doc_from_state,
replay_provenance_step,
validate_term_provenance_sidecar,
)
from .taxonomy.records import (
_HEX64_RE,
_SEMVER_RE,
CONCEPT_ID_RE,
_is_finite_num,
_norm_prov_tokens,
_reject_json_constant,
_strict_json_no_dup_pairs,
_strict_json_parse_float,
canonical_patch_json_sha256,
canonical_taxonomy_json,
compute_campaign_entry_sha256,
compute_non_guides_taxonomy_sha256,
compute_sidecar_content_sha256,
expected_status_for_version,
json_loads_strict,
parse_taxonomy_semver,
validate_ordinal_coverage_judgment,
)
from .taxonomy.schema import (
_ALLOWED_ANNOTATION_KEYS,
_ALLOWED_CLASS_KEYS,
_ALLOWED_ENUM_KEYS,
_ALLOWED_PV_KEYS,
_ALLOWED_SLOT_KEYS,
_ALLOWED_TOP_KEYS,
_UNSAFE_URL_CHARS,
DECREASING_VERBS,
HAS_LINKML,
HIERARCHICAL_RELATIONS,
INCREASING_VERBS,
REPO_SCHEMA_PATH,
SCHEMA_REL_PATH,
SCOPE_REF_RE,
SchemaView,
_cached_base_schema,
_cached_json_schema,
_cached_raw_schema,
_cached_schema_view,
_format_error_path,
compile_json_schema,
get_class_slots,
get_enum_values,
get_hierarchical_relations,
get_required_class_slots,
get_schema_view,
require_text,
resolve_schema_path,
validate_field_semantics,
validate_guides_semantics,
validate_https_url,
validate_linkml,
validate_schema_sync,
)