Skip to content

Commit f1a6ef0

Browse files
Adapt PropertyGraph graph.yaml schema and DDL compiler to Semantic Ontology V1 (#2417)
* Adapt PropertyGraph graph.yaml schema and DDL compiler to Semantic Ontology V1 * Assert INFORMATION_SCHEMA.PROPERTY_GRAPHS DDL without Enterprise reservation * Pass property graph field and metric expressions as-is into BigQuery DDL * Reject leading // in property graph source and deployment target URIs * Accept datasets as an alias for entities in property graph config * Validate that property graph field and metric expressions are strings in V1 * Align V1 relationship rules and description folding with Semantic Ontology spec * Address review comments on property graph V1 validation and docs * Expose pages in Book fields for total_pages measure in integration test
1 parent 2576779 commit f1a6ef0

13 files changed

Lines changed: 2730 additions & 2950 deletions

File tree

‎core/BUILD‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ ts_library(
2727
"actions/notebook.ts",
2828
"actions/operation.ts",
2929
"actions/property_graph.ts",
30+
"actions/property_graph_utils.ts",
3031
"actions/table.ts",
3132
"actions/test.ts",
3233
"actions/view.ts",

‎core/actions/index_test.ts‎

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -591,13 +591,15 @@ publish("name", {
591591
name: "propertyGraph",
592592
file: "definitions/graph.yaml",
593593
content: [
594-
"name: G",
595-
"jobLabels:",
594+
"version: 0.2.0.dev0/google",
595+
"job_labels:",
596596
' "goog-reserved": v',
597-
"nodes:",
598-
" - name: Account",
599-
" dataSourceString: proj.ds.Accounts",
600-
" keys: [id]",
597+
"semantic_model:",
598+
" - name: G",
599+
" entities:",
600+
" - name: Account",
601+
" source: bigquery:proj.ds.Accounts",
602+
" primary_key: [id]",
601603
].join("\n"),
602604
},
603605
].forEach(({ name, file, content, extraFiles = {} }) => {

0 commit comments

Comments
 (0)
⌂ 换网址