Open Presentation

Search docs

Loading documentation…
    OpenPresentation/opf
    Browse docs
    On this page
    View source

    Data Sources

    Data sources keyed by id (the datasets id pattern). A dataset or inline chart data names one with 'datasource': "<id>".

    Metadata

    Definition
    #/$defs/DataSources
    Form
    Dictionary
    Source
    spec/schemas/opf.schema.json

    Field index

    This definition uses the forms or value constraints below.

    Complete definition constraints
    Schema constraints
    {
      "type": "object",
      "description": "Data sources keyed by id (the datasets id pattern). A dataset or inline chart data names one with 'datasource': \"<id>\".",
      "propertyNames": {
        "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]*$"
      },
      "additionalProperties": {
        "$ref": "#/$defs/DataSource"
      },
      "examples": [
        {
          "warehouse": {
            "title": "Finance warehouse",
            "connector": "postgres",
            "src": "postgres://warehouse.acme.com/finance",
            "refreshEvery": "P1D"
          },
          "forecast": {
            "title": "FY26 forecast workbook",
            "connector": "xlsx",
            "src": "https://example.com/revenue.xlsx",
            "license": "CC-BY-4.0"
          }
        }
      ]
    }