Repository navigation
Adapt PropertyGraph graph.yaml schema and DDL compiler to Semantic Ontology V1 - #2417
Merged
Merged
Conversation
apilaskowski
requested changes
Nov 3, 2026
rafal-hawrylak
force-pushed
the
feat/property-graph-semantic-ontology
branch
from
November 4, 2026 08:56
568dac5 to
78623ab
Compare
rafal-hawrylak
force-pushed
the
feat/property-graph-semantic-ontology
branch
from
November 4, 2026 09:25
78623ab to
bcee35f
Compare
Ford544
requested changes
Nov 4, 2026
Ford544
reviewed
Nov 4, 2026
Ford544
reviewed
Nov 4, 2026
Collaborator
|
Not this PR's fault, but we appear to be missing Property Graphs from the docs (https://dataform-co.github.io/dataform/docs/reference/configs). Might be a good opportunity to introduce them. |
Ford544
reviewed
Nov 4, 2026
rafal-hawrylak
force-pushed
the
feat/property-graph-semantic-ontology
branch
from
November 4, 2026 12:05
bcee35f to
a2b6564
Compare
rafal-hawrylak
force-pushed
the
feat/property-graph-semantic-ontology
branch
from
November 4, 2026 12:22
a2b6564 to
4dbd752
Compare
Collaborator
Author
That's correct, I planned to add it soon. This PR is big already so I'm going to have a follow up PR. |
Ford544
approved these changes
Nov 4, 2026
apilaskowski
reviewed
Nov 5, 2026
apilaskowski
approved these changes
Nov 5, 2026
apilaskowski
approved these changes
Nov 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Updates
definitions/graph.yaml(PropertyGraphConfig) and the BigQueryCREATE OR REPLACE PROPERTY GRAPHDDL compiler to the Semantic Ontology V1 schema while keeping the compileddataform.PropertyGraphproto unchanged.Key Changes
version: 0.2.0.dev0/googleand a single-entrysemantic_modellist in V1. Supports optionaldeploymentswith a BigQuery property graph resource name (bigquery.googleapis.com/projects/<project>/datasets/<dataset>/propertyGraphs/<graph>, without leading//) and falls back to the project's default database and schema when omitted.datasetsalias) and table sources: Mapssemantic_model[].entities(ordatasetsas an alias) toNODE TABLES. Supportssourcevia Dataformref({ ref: "<name>" }or{ ref: { name, schema, database, include_dependent_assertions } }),"bigquery:project.dataset.table","project.dataset.table"and BigQuery table resource names (bigquery.googleapis.com/projects/<project>/datasets/<dataset>/tables/<table>, without leading//). Validates physical column names inprimary_keyand rejectsunique_keysin V1.semantic_model[].relationshipstoEDGE TABLESwithNO PROPERTIES. Relationships without an explicitsourceinherit thefromentity's backing table andprimary_keyas the edgeKEYandSOURCE KEY. Relationships with an explicitsourcerequireprimary_keyandto_columns.ai_context: Passes fieldexpressionas-is intoPROPERTIES (...)(defaulting omittedexpressiontofield.name), ignores informational field metadata (datatype,dimensionandlabel) in DDL and emitsPROPERTIES ALL COLUMNSwhen an entity has no explicitfieldsormetrics. Mapsai_context.synonymsandai_context.examplesintoDEFAULT LABEL OPTIONS(...)beforePROPERTIESandNO PROPERTIES.MEASURE(...)): Compilessemantic_model[].metricsintoMEASURE(<expression>) AS <name>on the target entity's default label, passingmetric.expressionas-is intoMEASURE(...).property_graph_config.protointo@dataform/coreand updates unit, VM compilation and BigQuery integration tests.