create_sdp

create_sdp(
    resources,
    path=None,
    dataset_id='dataset-1',
    table_id='table_1',
    guess_types=True,
    seed_semantics=True,
    semantic_sources=None,
    semantic_max_per_role=1,
    seed_verbose=True,
    seed_codes=None,
    seed_table_meta=None,
    seed_dataset_meta=None,
    semantic_code_scope='factor',
    llm_assess=False,
    llm_provider='openai',
    llm_model=None,
    llm_api_key=None,
    llm_base_url=None,
    llm_reasoning_effort=None,
    llm_top_n=5,
    llm_context_files=None,
    llm_context_text=None,
    llm_timeout_seconds=60,
    llm_request_fn=None,
    check_updates=False,
    format='csv',
    overwrite=False,
    include_edh_xml=False,
    prune=False,
)

Create a review-ready Salmon Data Package in one call.

The function infers package artifacts, optionally seeds semantic suggestions, writes the canonical data/ and metadata/ layout, and adds a review checklist. Inferred IRIs retain the REVIEW: marker.

LLM assessment is strictly opt-in through llm_assess=True. Supplying context without enabling assessment warns and makes no provider request. overwrite=True replaces only directories recognized as owned package directories, and since the 0.2.0 rung it replaces only the files the writer owns within them: reviewed sidecars in an existing package survive a rewrite. Pass prune=True (which requires overwrite=True) for the previous delete-everything behaviour. See :func:write_salmon_datapackage.

Returns

Name Type Description
pathlib.Path Path to the created package directory.
Back to top