Skip to content

Spreadsheet

Spreadsheet files with multiple worksheets - Excel, Google Sheets, and collaborative data sources


Overview

The Spreadsheet entity represents spreadsheet files (Excel .xlsx, Google Sheets .gsheet, LibreOffice Calc .ods) that contain one or more worksheets with tabular data. Spreadsheets are common data sources for analytics pipelines and often serve as collaborative data management tools.

Hierarchy:

graph LR
    DS[Drive Service] --> DIR[Directory]
    DIR --> SHEET[Spreadsheet]
    SHEET --> WS1[Worksheet: Summary]
    SHEET --> WS2[Worksheet: Details]
    SHEET --> WS3[Worksheet: Raw Data]

    style DS fill:#667eea,color:#fff
    style DIR fill:#4facfe,color:#fff
    style SHEET fill:#00f2fe,color:#333,stroke:#4c51bf,stroke-width:3px
    style WS1 fill:#e0f2fe,color:#333
    style WS2 fill:#e0f2fe,color:#333
    style WS3 fill:#e0f2fe,color:#333

Schema Specifications

View the complete Spreadsheet schema in your preferred format:

Complete JSON Schema Definition

{
  "$id": "https://open-metadata.org/schema/entity/data/spreadsheet.json",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "Spreadsheet",
  "description": "A spreadsheet file containing one or more worksheets.",
  "type": "object",

  "definitions": {
    "spreadsheetType": {
      "description": "Type of spreadsheet file",
      "type": "string",
      "enum": [
        "GoogleSheets",
        "Excel",
        "LibreOfficeCalc",
        "CSV",
        "Numbers"
      ]
    }
  },

  "properties": {
    "id": {
      "description": "Unique identifier",
      "$ref": "../../type/basic.json#/definitions/uuid"
    },
    "name": {
      "description": "Spreadsheet file name",
      "$ref": "../../type/basic.json#/definitions/entityName"
    },
    "fullyQualifiedName": {
      "description": "Fully qualified path: driveService.directory.spreadsheetName",
      "$ref": "../../type/basic.json#/definitions/fullyQualifiedEntityName"
    },
    "displayName": {
      "description": "Display name",
      "type": "string"
    },
    "description": {
      "description": "Markdown description",
      "$ref": "../../type/basic.json#/definitions/markdown"
    },
    "spreadsheetType": {
      "$ref": "#/definitions/spreadsheetType"
    },
    "driveService": {
      "description": "Reference to parent drive service",
      "$ref": "../../type/entityReference.json"
    },
    "directory": {
      "description": "Directory containing this spreadsheet",
      "$ref": "../../type/entityReference.json"
    },
    "fileUrl": {
      "description": "Direct URL to the spreadsheet file",
      "type": "string",
      "format": "uri"
    },
    "worksheets": {
      "description": "Worksheets/sheets in this spreadsheet",
      "type": "array",
      "items": {
        "$ref": "../../type/entityReference.json"
      }
    },
    "worksheetCount": {
      "description": "Number of worksheets",
      "type": "integer"
    },
    "fileSize": {
      "description": "File size in bytes",
      "type": "integer"
    },
    "version": {
      "description": "Current version number",
      "type": "string"
    },
    "versionHistory": {
      "description": "Version history",
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "versionId": {"type": "string"},
          "timestamp": {"type": "integer"},
          "modifiedBy": {"type": "string"},
          "changes": {"type": "string"}
        }
      }
    },
    "sharing": {
      "description": "Sharing settings",
      "type": "object",
      "properties": {
        "sharedWith": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "email": {"type": "string"},
              "permission": {
                "type": "string",
                "enum": ["viewer", "commenter", "editor"]
              }
            }
          }
        },
        "linkSharing": {
          "type": "string",
          "enum": ["private", "anyone_with_link", "public"]
        }
      }
    },
    "lastModified": {
      "description": "Last modification timestamp",
      "type": "integer"
    },
    "createdAt": {
      "description": "Creation timestamp",
      "type": "integer"
    },
    "createdBy": {
      "description": "User who created the spreadsheet",
      "type": "string"
    },
    "modifiedBy": {
      "description": "User who last modified",
      "type": "string"
    },
    "owner": {
      "description": "Owner of this spreadsheet",
      "$ref": "../../type/entityReference.json"
    },
    "domain": {
      "description": "Domain this spreadsheet belongs to",
      "$ref": "../../type/entityReference.json"
    },
    "tags": {
      "description": "Tags for this spreadsheet",
      "type": "array",
      "items": {
        "$ref": "../../type/tagLabel.json"
      }
    },
    "glossaryTerms": {
      "description": "Glossary terms",
      "type": "array",
      "items": {
        "$ref": "../../type/entityReference.json"
      }
    },
    "usedBy": {
      "description": "Pipelines, dashboards using this spreadsheet",
      "type": "array",
      "items": {
        "$ref": "../../type/entityReference.json"
      }
    },
    "extension": {
      "description": "Custom properties",
      "$ref": "../../type/basic.json#/definitions/entityExtension"
    }
  },
  "required": ["id", "name", "spreadsheetType", "driveService"],
  "additionalProperties": false
}

RDF/OWL Ontology Representation

@prefix om: <https://open-metadata.org/schema/> .
@prefix om-sheet: <https://open-metadata.org/schema/entity/data/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

# Spreadsheet Class
om-sheet:Spreadsheet a owl:Class ;
    rdfs:label "Spreadsheet" ;
    rdfs:comment "Spreadsheet file with multiple worksheets" ;
    rdfs:isDefinedBy om: .

# Properties
om-sheet:spreadsheetType a owl:DatatypeProperty ;
    rdfs:label "spreadsheet type" ;
    rdfs:comment "Type of spreadsheet (Google Sheets, Excel, etc.)" ;
    rdfs:domain om-sheet:Spreadsheet ;
    rdfs:range xsd:string .

om-sheet:hasWorksheet a owl:ObjectProperty ;
    rdfs:label "has worksheet" ;
    rdfs:comment "Worksheets in this spreadsheet" ;
    rdfs:domain om-sheet:Spreadsheet ;
    rdfs:range om-sheet:Worksheet .

om-sheet:worksheetCount a owl:DatatypeProperty ;
    rdfs:label "worksheet count" ;
    rdfs:comment "Number of worksheets" ;
    rdfs:domain om-sheet:Spreadsheet ;
    rdfs:range xsd:integer .

om-sheet:usedBy a owl:ObjectProperty ;
    rdfs:label "used by" ;
    rdfs:comment "Pipelines or dashboards consuming this spreadsheet" ;
    rdfs:domain om-sheet:Spreadsheet ;
    rdfs:range om:Pipeline .

JSON-LD Context for Semantic Interoperability

{
  "@context": {
    "@vocab": "https://open-metadata.org/schema/entity/data/",
    "om": "https://open-metadata.org/schema/",
    "xsd": "http://www.w3.org/2001/XMLSchema#",

    "Spreadsheet": {
      "@id": "om:Spreadsheet",
      "@type": "@id"
    },
    "spreadsheetType": {
      "@id": "om:spreadsheetType",
      "@type": "xsd:string"
    },
    "worksheets": {
      "@id": "om:hasWorksheet",
      "@type": "@id",
      "@container": "@set"
    },
    "worksheetCount": {
      "@id": "om:worksheetCount",
      "@type": "xsd:integer"
    },
    "usedBy": {
      "@id": "om:usedBy",
      "@type": "@id",
      "@container": "@set"
    }
  }
}

Spreadsheet Types

Google Sheets

Key Features: - Real-time collaboration - Cloud-native (always latest version) - Google Apps Script automation - Native sharing and permissions - Integrations with Google Workspace

Example:

{
  "name": "Monthly_Sales_Report",
  "spreadsheetType": "GoogleSheets",
  "fileUrl": "https://docs.google.com/spreadsheets/d/abc123",
  "worksheets": ["Summary", "Details", "Charts"],
  "worksheetCount": 3,
  "sharing": {
    "sharedWith": [
      {"email": "sales@company.com", "permission": "viewer"}
    ],
    "linkSharing": "anyone_with_link"
  }
}

Microsoft Excel

Key Features: - Desktop and web versions - Advanced formulas and macros - Power Query and Power Pivot - OneDrive/SharePoint integration - Co-authoring support

Example:

{
  "name": "Budget_2024.xlsx",
  "spreadsheetType": "Excel",
  "directory": "onedrive-finance/Budgets",
  "worksheets": ["Income", "Expenses", "Summary"],
  "fileSize": 2457600,
  "version": "16.0"
}

Use Cases

Analytics Data Source

Spreadsheet as pipeline input:

{
  "name": "Customer_Data_Export",
  "spreadsheetType": "GoogleSheets",
  "driveService": "google_drive_analytics",
  "directory": "Data Exports",
  "worksheets": ["Customers", "Orders", "Products"],
  "lineage": {
    "upstream": ["crm.salesforce.accounts"],
    "downstream": ["pipeline.customer_etl", "table.dim_customers"]
  },
  "tags": ["Source Data", "CRM Export"]
}

Collaborative Data Management

Shared business data:

{
  "name": "Product_Catalog",
  "spreadsheetType": "GoogleSheets",
  "worksheets": ["Active Products", "Discontinued", "Pricing"],
  "sharing": {
    "sharedWith": [
      {"email": "product-team@company.com", "permission": "editor"},
      {"email": "marketing@company.com", "permission": "viewer"}
    ]
  },
  "usedBy": ["dashboard.product_dashboard", "pipeline.product_sync"]
}

Financial Reporting

Multi-worksheet financial model:

{
  "name": "Q4_Financial_Model",
  "spreadsheetType": "Excel",
  "worksheets": [
    "Assumptions",
    "Revenue Forecast",
    "Expense Budget",
    "Cash Flow",
    "P&L Statement",
    "Balance Sheet"
  ],
  "worksheetCount": 6,
  "owner": "finance-team",
  "tags": ["Financial", "Confidential", "Q4 2024"]
}

Lineage Tracking

Track data flow from spreadsheets to analytics:

graph LR
    CRM[CRM System] -->|export| SHEET[Spreadsheet<br/>Sales_Data.gsheet]
    SHEET -->|ETL| PIPE[Pipeline<br/>sales_etl]
    PIPE -->|load| TABLE[Table<br/>sales_fact]
    TABLE -->|visualize| DASH[Dashboard<br/>Sales Performance]

    style SHEET fill:#00f2fe,color:#333,stroke:#4c51bf,stroke-width:3px
    style CRM fill:#764ba2,color:#fff
    style PIPE fill:#667eea,color:#fff
    style TABLE fill:#4facfe,color:#fff
    style DASH fill:#ffd700,color:#333

Custom Properties

This entity supports custom properties through the extension field. Common custom properties include:

  • Data Classification: Sensitivity level
  • Cost Center: Billing allocation
  • Retention Period: Data retention requirements
  • Application Owner: Owning application/team

See Custom Properties for details on defining and using custom properties.


Followers

Users can follow spreadsheets to receive notifications about worksheet additions, structural changes, and sharing updates. See Followers for details.


API Operations

All Spreadsheet operations are available under the /v1/drives/spreadsheets endpoint.

List Spreadsheets

Get a list of spreadsheets, optionally filtered by service or directory.

GET /v1/drives/spreadsheets
Query Parameters:
  - fields: Fields to include (worksheets, owners, directory, tags, etc.)
  - service: Filter by drive service name
  - directory: Filter by parent directory FQN
  - spreadsheetType: Filter by type (GoogleSheets, Excel, LibreOfficeCalc, CSV)
  - limit: Number of results (1-1000000, default 10)
  - before/after: Cursor-based pagination
  - include: all | deleted | non-deleted (default: non-deleted)

Response: SpreadsheetList

Create Spreadsheet

Create a new spreadsheet in a drive service.

POST /v1/drives/spreadsheets
Content-Type: application/json

{
  "name": "Sales_Report_2024",
  "spreadsheetType": "GoogleSheets",
  "driveService": "google_drive_analytics",
  "directory": "google_drive_analytics.Reports",
  "description": "Monthly sales report",
  "worksheets": [
    {"name": "Summary", "sheetIndex": 0},
    {"name": "Details", "sheetIndex": 1}
  ]
}

Response: Spreadsheet

Get Spreadsheet by Name

Get a spreadsheet by its fully qualified name.

GET /v1/drives/spreadsheets/name/{fqn}
Query Parameters:
  - fields: Fields to include (worksheets, owner, tags, lineage, etc.)
  - include: all | deleted | non-deleted

Example:
GET /v1/drives/spreadsheets/name/googleDrive.Reports.Sales_Report_2024?fields=worksheets,owner,lineage

Response: Spreadsheet

Get Spreadsheet by ID

Get a spreadsheet by its unique identifier.

GET /v1/drives/spreadsheets/{id}
Query Parameters:
  - fields: Fields to include
  - include: all | deleted | non-deleted

Response: Spreadsheet

Update Spreadsheet

Update a spreadsheet using JSON Patch.

PATCH /v1/drives/spreadsheets/name/{fqn}
Content-Type: application/json-patch+json

[
  {"op": "add", "path": "/tags", "value": [{"tagFQN": "Tier.Gold"}]},
  {"op": "replace", "path": "/description", "value": "Updated Q4 2024 sales report"},
  {"op": "add", "path": "/owner", "value": {"id": "...", "type": "team"}}
]

Response: Spreadsheet

Create or Update Spreadsheet

Create a new spreadsheet or update if it exists.

PUT /v1/drives/spreadsheets
Content-Type: application/json

{
  "name": "Budget_2024",
  "spreadsheetType": "Excel",
  "driveService": "onedrive_finance",
  "worksheets": [...]
}

Response: Spreadsheet

Delete Spreadsheet

Delete a spreadsheet by fully qualified name.

DELETE /v1/drives/spreadsheets/name/{fqn}
Query Parameters:
  - recursive: Delete worksheets recursively (default: false)
  - hardDelete: Permanently delete (default: false)

Response: 200 OK

Get Spreadsheet Versions

Get all versions of a spreadsheet.

GET /v1/drives/spreadsheets/{id}/versions

Response: EntityHistory

Get Specific Version

Get a specific version of a spreadsheet.

GET /v1/drives/spreadsheets/{id}/versions/{version}

Response: Spreadsheet

Follow Spreadsheet

Add a follower to a spreadsheet.

PUT /v1/drives/spreadsheets/{id}/followers/{userId}

Response: ChangeEvent

Get Followers

Get all followers of a spreadsheet.

GET /v1/drives/spreadsheets/{id}/followers

Response: EntityReference[]

Vote on Spreadsheet

Upvote or downvote a spreadsheet.

PUT /v1/drives/spreadsheets/{id}/vote
Content-Type: application/json

{
  "vote": "upvote"
}

Response: ChangeEvent

Bulk Operations

Create or update multiple spreadsheets.

PUT /v1/drives/spreadsheets/bulk
Content-Type: application/json

{
  "entities": [...]
}

Response: BulkOperationResult