Apache Ossie Export and Import
Apache Ossie is an open format for semantic models: datasets, their fields, and the relationships between them, written as JSON or YAML. PuppyGraph exports the active graph schema as an Apache Ossie model and imports one to build a graph schema.
Version requirement
Exporting and re-importing renamed primary keys, null filters, junction-table edges and filtered edges is available in PuppyGraph 1.20.1 and later.
Export
On the Graph page, open the Download menu and choose Download Apache Ossie Model (YAML) or Download Apache Ossie Model (JSON). The export writes an Apache Ossie 0.1.1 model.
Each node becomes a dataset and each direct edge a relationship. A junction-table or filtered edge becomes a dataset with two relationships plus a PuppyGraph extension that records how to restore the edge.
An export skips any element it cannot represent, with a warning that names the element and the reason. It also leaves out direct-edge IDs, attributes and descriptions, and node attributes that duplicate an identifier name or are computed. It does not write column types, row-level security, type aliases or endpoint integrity.
Import
On the Graph page, click Upload Ossie, choose Select Apache Ossie Model File, then click Convert & Upload.
Import replaces the schema
The upload becomes the active schema and describes the complete graph. Nodes, edges and local tables that the model does not define are removed, a removed local table is deleted with its data, and active row-level security is cleared. Back up that data separately, or import into a separate graph. See How an upload is applied.
PuppyGraph 1.20.1 imports Apache Ossie 0.1.1, 0.2.0 and 0.3 models in JSON or YAML. A dataset whose source is a SQL query is skipped with a warning, except a filtered-edge dataset written by PuppyGraph's own export.
Each dataset the import converts needs its catalog and table to already exist: if a catalog is not connected or a table cannot be read, the import stops and nothing is uploaded. A skipped dataset does not stop the import.
An import restores renamed primary keys, null filters, junction-table and filtered edges, and descriptions. A filtered edge is restored only while its query still matches the exported one.
Limits
A round trip does not reproduce the schema exactly. In addition to the elements an export skips, these are lost:
- Direct-edge IDs, attributes and descriptions.
- A direct-edge key alias, which comes back named after its source column or a valid field name.
- Node attributes that duplicate an identifier name, and computed fields.
- Local and cached table definitions and their data.
- Column types, row-level security, type aliases and endpoint integrity.
An import derives column types from the source catalog and leaves type aliases and endpoint integrity at their defaults. It does not create catalogs or tables.