render_ontology_term_request

render_ontology_term_request(
    gaps,
    scope='auto',
    ask=False,
    profile_name=None,
    scope_overrides=None,
    issue_labels=None,
    term_request_template=TERM_REQUEST_DEFAULT_TEMPLATE,
    ontology_repo=SMN_REPO,
    gcdfo_term_request_template=GCDFO_TERM_REQUEST_DEFAULT_TEMPLATE,
    gcdfo_repo=GCDFO_REPO,
)

Render curator-reviewed ontology term request drafts.

Routing supports SMN, GCDFO, local profiles, uncertain rows, and skipped rows. Automatic routing considers namespace suggestions as evidence rather than authority and emits repository-specific issue bodies.

Parameters

Name Type Description Default
gaps pd.DataFrame Structured rows returned by :func:detect_semantic_term_gaps. required
scope str Forced scope or "auto". 'auto'
ask bool Prompt for unresolved routing when True. False
profile_name Optional[str] Required for non-interactive profile requests. None
scope_overrides Scalar or row-aligned explicit routing overrides. None

Returns

Name Type Description
pandas.DataFrame Gap rows with request scope, repository, template, title, and body.

Notes

This function only renders drafts. It never submits an issue.

Back to top