From d659b099d62a3cdc4f9adaf5bd1a138aa964be23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?JB=20Onofr=C3=A9?= Date: Thu, 16 Jul 2026 14:16:39 +0200 Subject: [PATCH] Add ASF header and fix LICENSE header --- LICENSE | 1 - converters/honeydew/pyproject.toml | 17 +++++++++++++++++ .../honeydew/src/honeydew_osi_converter.py | 17 +++++++++++++++++ .../tests/test_honeydew_osi_converter.py | 17 +++++++++++++++++ converters/omni/pyproject.toml | 17 +++++++++++++++++ converters/omni/src/osi_omni/__init__.py | 17 +++++++++++++++++ converters/omni/src/osi_omni/_common.py | 17 +++++++++++++++++ converters/omni/src/osi_omni/cli.py | 17 +++++++++++++++++ converters/omni/src/osi_omni/omni_to_osi.py | 17 +++++++++++++++++ converters/omni/src/osi_omni/osi_to_omni.py | 17 +++++++++++++++++ converters/omni/tests/_roundtrip_helpers.py | 17 +++++++++++++++++ converters/omni/tests/_util.py | 17 +++++++++++++++++ converters/omni/tests/conftest.py | 17 +++++++++++++++++ .../fixtures/fixtureA_omni/relationships.yaml | 17 +++++++++++++++++ .../fixtureA_omni/topics/sales.topic.yaml | 17 +++++++++++++++++ .../fixtureA_omni/views/customer.view.yaml | 17 +++++++++++++++++ .../fixtureA_omni/views/orders.view.yaml | 17 +++++++++++++++++ .../omni/tests/fixtures/fixtureA_osi.yaml | 17 +++++++++++++++++ .../tests/fixtures/fixtureB_omni/model.yaml | 17 +++++++++++++++++ .../fixtures/fixtureB_omni/relationships.yaml | 17 +++++++++++++++++ .../topics/order_analysis.topic.yaml | 17 +++++++++++++++++ .../fixtureB_omni/views/order_items.view.yaml | 17 +++++++++++++++++ .../fixtureB_omni/views/orders.view.yaml | 17 +++++++++++++++++ .../fixtureB_omni/views/users.view.yaml | 17 +++++++++++++++++ .../fixtures/tpcds_omni/relationships.yaml | 17 +++++++++++++++++ .../topics/tpcds_retail_model.topic.yaml | 17 +++++++++++++++++ .../tpcds_omni/views/customer.view.yaml | 17 +++++++++++++++++ .../tpcds_omni/views/date_dim.view.yaml | 17 +++++++++++++++++ .../fixtures/tpcds_omni/views/item.view.yaml | 17 +++++++++++++++++ .../fixtures/tpcds_omni/views/store.view.yaml | 17 +++++++++++++++++ .../tpcds_omni/views/store_sales.view.yaml | 17 +++++++++++++++++ converters/omni/tests/test_omni_to_osi.py | 17 +++++++++++++++++ converters/omni/tests/test_osi_to_omni.py | 17 +++++++++++++++++ converters/omni/tests/test_real_world_layout.py | 17 +++++++++++++++++ converters/omni/tests/test_roundtrip.py | 17 +++++++++++++++++ .../omni/tests/test_roundtrip_properties.py | 17 +++++++++++++++++ converters/orionbelt/pyproject.toml | 17 +++++++++++++++++ .../orionbelt/src/ossie_orionbelt/__init__.py | 17 +++++++++++++++++ .../orionbelt/src/ossie_orionbelt/_common.py | 17 +++++++++++++++++ converters/orionbelt/src/ossie_orionbelt/cli.py | 17 +++++++++++++++++ .../orionbelt/src/ossie_orionbelt/converter.py | 16 ++++++++++++++++ .../src/ossie_orionbelt/obml_to_osi.py | 17 +++++++++++++++++ .../orionbelt/src/ossie_orionbelt/ontology.py | 17 +++++++++++++++++ .../src/ossie_orionbelt/osi_to_obml.py | 17 +++++++++++++++++ .../orionbelt/src/ossie_orionbelt/validation.py | 17 +++++++++++++++++ .../orionbelt/tests/fixtures/obml_as_osi.yaml | 17 +++++++++++++++++ .../orionbelt/tests/fixtures/tpcds_as_obml.yaml | 17 +++++++++++++++++ .../orionbelt/tests/fixtures/tpcds_osi.yaml | 17 +++++++++++++++++ .../tests/fixtures/tpcds_semantic_model.yaml | 17 +++++++++++++++++ .../tests/test_osi_converter_cumulative.py | 17 +++++++++++++++++ .../tests/test_osi_converter_filters.py | 17 +++++++++++++++++ .../test_osi_converter_measure_overrides.py | 17 +++++++++++++++++ .../tests/test_osi_converter_ontology.py | 17 +++++++++++++++++ .../orionbelt/tests/test_osi_converter_pop.py | 17 +++++++++++++++++ .../tests/test_osi_converter_properties.py | 17 +++++++++++++++++ .../tests/test_osi_converter_trend_v26.py | 17 +++++++++++++++++ .../tests/test_osi_converter_vendors.py | 17 +++++++++++++++++ .../tests/test_osi_metric_no_silent_loss.py | 17 +++++++++++++++++ .../orionbelt/tests/test_osi_tpcds_baseline.py | 17 +++++++++++++++++ .../orionbelt/tests/test_osi_v02_compat.py | 17 +++++++++++++++++ 60 files changed, 1002 insertions(+), 1 deletion(-) diff --git a/LICENSE b/LICENSE index d6456956..261eeb9e 100644 --- a/LICENSE +++ b/LICENSE @@ -1,4 +1,3 @@ - Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ diff --git a/converters/honeydew/pyproject.toml b/converters/honeydew/pyproject.toml index 82df220b..34447ae5 100644 --- a/converters/honeydew/pyproject.toml +++ b/converters/honeydew/pyproject.toml @@ -1,3 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + [project] name = "honeydew-osi" version = "0.2.0.dev0" diff --git a/converters/honeydew/src/honeydew_osi_converter.py b/converters/honeydew/src/honeydew_osi_converter.py index 31f64bf9..5bfe2004 100644 --- a/converters/honeydew/src/honeydew_osi_converter.py +++ b/converters/honeydew/src/honeydew_osi_converter.py @@ -1,3 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + """ Bidirectional converter between OSI and Honeydew semantic model formats. diff --git a/converters/honeydew/tests/test_honeydew_osi_converter.py b/converters/honeydew/tests/test_honeydew_osi_converter.py index 08c22655..4d09ae6b 100644 --- a/converters/honeydew/tests/test_honeydew_osi_converter.py +++ b/converters/honeydew/tests/test_honeydew_osi_converter.py @@ -1,3 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + """Tests for the bidirectional OSI ↔ Honeydew converter.""" import json diff --git a/converters/omni/pyproject.toml b/converters/omni/pyproject.toml index b4be76f3..e8bc6330 100644 --- a/converters/omni/pyproject.toml +++ b/converters/omni/pyproject.toml @@ -1,3 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + [build-system] requires = ["hatchling"] build-backend = "hatchling.build" diff --git a/converters/omni/src/osi_omni/__init__.py b/converters/omni/src/osi_omni/__init__.py index 8eab424d..ca2ffdf7 100644 --- a/converters/omni/src/osi_omni/__init__.py +++ b/converters/omni/src/osi_omni/__init__.py @@ -1,3 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + """Bidirectional converter between OSI semantic models and Omni semantic model files (model.yaml / relationships.yaml / views/*.view.yaml / topics/*.topic.yaml). Pure offline transforms: OSI YAML string <-> {relative filename: YAML string}. diff --git a/converters/omni/src/osi_omni/_common.py b/converters/omni/src/osi_omni/_common.py index 571b5250..ad799bca 100644 --- a/converters/omni/src/osi_omni/_common.py +++ b/converters/omni/src/osi_omni/_common.py @@ -1,3 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + """Shared helpers for the OSI <-> Omni converters. Both directions are pure offline YAML transforms. The cross-cutting concerns live diff --git a/converters/omni/src/osi_omni/cli.py b/converters/omni/src/osi_omni/cli.py index 70fc7a1b..17af0224 100644 --- a/converters/omni/src/osi_omni/cli.py +++ b/converters/omni/src/osi_omni/cli.py @@ -1,3 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + """Command-line interface for the OSI <-> Omni converter. osi-omni export -i model.yaml -o omni_model/ [--base-view orders] [--dialect SNOWFLAKE] diff --git a/converters/omni/src/osi_omni/omni_to_osi.py b/converters/omni/src/osi_omni/omni_to_osi.py index b627509b..75a1d3b2 100644 --- a/converters/omni/src/osi_omni/omni_to_osi.py +++ b/converters/omni/src/osi_omni/omni_to_osi.py @@ -1,3 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + """Convert Omni semantic model files to an OSI semantic model. Pure offline conversion. Accepts the Omni model-directory layout as a mapping of diff --git a/converters/omni/src/osi_omni/osi_to_omni.py b/converters/omni/src/osi_omni/osi_to_omni.py index bcbb3518..ffda2b8d 100644 --- a/converters/omni/src/osi_omni/osi_to_omni.py +++ b/converters/omni/src/osi_omni/osi_to_omni.py @@ -1,3 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + """Convert an OSI semantic model to Omni semantic model files. Pure offline conversion -- no Omni connection required. Produces the Omni diff --git a/converters/omni/tests/_roundtrip_helpers.py b/converters/omni/tests/_roundtrip_helpers.py index bf003afa..3c55d651 100644 --- a/converters/omni/tests/_roundtrip_helpers.py +++ b/converters/omni/tests/_roundtrip_helpers.py @@ -1,3 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + """Shared model builders and round-trip assertions for property-based tests. This module is deliberately free of any third-party test dependency (no diff --git a/converters/omni/tests/_util.py b/converters/omni/tests/_util.py index f0e2812a..2cb15998 100644 --- a/converters/omni/tests/_util.py +++ b/converters/omni/tests/_util.py @@ -1,3 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + """Shared test helpers: fixture loading and structural normalization.""" import copy diff --git a/converters/omni/tests/conftest.py b/converters/omni/tests/conftest.py index 282f013d..0bcde537 100644 --- a/converters/omni/tests/conftest.py +++ b/converters/omni/tests/conftest.py @@ -1,3 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + import pathlib import sys diff --git a/converters/omni/tests/fixtures/fixtureA_omni/relationships.yaml b/converters/omni/tests/fixtures/fixtureA_omni/relationships.yaml index 04f7b216..75e293bd 100644 --- a/converters/omni/tests/fixtures/fixtureA_omni/relationships.yaml +++ b/converters/omni/tests/fixtures/fixtureA_omni/relationships.yaml @@ -1,3 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + - join_from_view: orders join_to_view: customer on_sql: ${orders.o_custkey} = ${customer.c_custkey} diff --git a/converters/omni/tests/fixtures/fixtureA_omni/topics/sales.topic.yaml b/converters/omni/tests/fixtures/fixtureA_omni/topics/sales.topic.yaml index 6324461b..f3df13b7 100644 --- a/converters/omni/tests/fixtures/fixtureA_omni/topics/sales.topic.yaml +++ b/converters/omni/tests/fixtures/fixtureA_omni/topics/sales.topic.yaml @@ -1,3 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + base_view: orders description: Sales orders with customer attributes ai_context: Use this model for order analysis. diff --git a/converters/omni/tests/fixtures/fixtureA_omni/views/customer.view.yaml b/converters/omni/tests/fixtures/fixtureA_omni/views/customer.view.yaml index 5706a4df..6ebe1e1b 100644 --- a/converters/omni/tests/fixtures/fixtureA_omni/views/customer.view.yaml +++ b/converters/omni/tests/fixtures/fixtureA_omni/views/customer.view.yaml @@ -1,3 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + catalog: samples schema: tpch dimensions: diff --git a/converters/omni/tests/fixtures/fixtureA_omni/views/orders.view.yaml b/converters/omni/tests/fixtures/fixtureA_omni/views/orders.view.yaml index f61582ad..77cda90f 100644 --- a/converters/omni/tests/fixtures/fixtureA_omni/views/orders.view.yaml +++ b/converters/omni/tests/fixtures/fixtureA_omni/views/orders.view.yaml @@ -1,3 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + catalog: samples schema: tpch description: One row per order diff --git a/converters/omni/tests/fixtures/fixtureA_osi.yaml b/converters/omni/tests/fixtures/fixtureA_osi.yaml index b6e6863a..0cb830fd 100644 --- a/converters/omni/tests/fixtures/fixtureA_osi.yaml +++ b/converters/omni/tests/fixtures/fixtureA_osi.yaml @@ -1,3 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + # yaml-language-server: $schema=../../../../core-spec/osi-schema.json # # Fixture A -- all-native round-trip (OSI -> Omni -> OSI). diff --git a/converters/omni/tests/fixtures/fixtureB_omni/model.yaml b/converters/omni/tests/fixtures/fixtureB_omni/model.yaml index d2658969..b9602ec6 100644 --- a/converters/omni/tests/fixtures/fixtureB_omni/model.yaml +++ b/converters/omni/tests/fixtures/fixtureB_omni/model.yaml @@ -1,3 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + # Fixture B -- stash round-trip (Omni -> OSI -> Omni, lossless). # The model file has no OSI home and round-trips via the model-level stash. included_schemas: diff --git a/converters/omni/tests/fixtures/fixtureB_omni/relationships.yaml b/converters/omni/tests/fixtures/fixtureB_omni/relationships.yaml index cd91d26f..6dbc77ef 100644 --- a/converters/omni/tests/fixtures/fixtureB_omni/relationships.yaml +++ b/converters/omni/tests/fixtures/fixtureB_omni/relationships.yaml @@ -1,3 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + # Exercises: non-default join_type, reversible, a composite-key one_to_many # join (flipped to OSI's many-side-first orientation and flipped back on export). - join_from_view: order_items diff --git a/converters/omni/tests/fixtures/fixtureB_omni/topics/order_analysis.topic.yaml b/converters/omni/tests/fixtures/fixtureB_omni/topics/order_analysis.topic.yaml index 57d0eaec..9107f42e 100644 --- a/converters/omni/tests/fixtures/fixtureB_omni/topics/order_analysis.topic.yaml +++ b/converters/omni/tests/fixtures/fixtureB_omni/topics/order_analysis.topic.yaml @@ -1,3 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + # Topic curation (label, joins, default_filters, fields) has no OSI home and # round-trips via the model-level stash; description/ai_context map natively. base_view: order_items diff --git a/converters/omni/tests/fixtures/fixtureB_omni/views/order_items.view.yaml b/converters/omni/tests/fixtures/fixtureB_omni/views/order_items.view.yaml index ca845975..07f479cb 100644 --- a/converters/omni/tests/fixtures/fixtureB_omni/views/order_items.view.yaml +++ b/converters/omni/tests/fixtures/fixtureB_omni/views/order_items.view.yaml @@ -1,3 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + # Exercises the dimension/measure stash: format, hidden, group_label, # timeframes, convert_tz, a quoted-identifier sql, a ${field} reference, a # filtered measure, and a percentile measure. diff --git a/converters/omni/tests/fixtures/fixtureB_omni/views/orders.view.yaml b/converters/omni/tests/fixtures/fixtureB_omni/views/orders.view.yaml index 32649958..f20a220d 100644 --- a/converters/omni/tests/fixtures/fixtureB_omni/views/orders.view.yaml +++ b/converters/omni/tests/fixtures/fixtureB_omni/views/orders.view.yaml @@ -1,3 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + schema: ecomm dimensions: order_id: diff --git a/converters/omni/tests/fixtures/fixtureB_omni/views/users.view.yaml b/converters/omni/tests/fixtures/fixtureB_omni/views/users.view.yaml index 5b42d8ba..4cf25721 100644 --- a/converters/omni/tests/fixtures/fixtureB_omni/views/users.view.yaml +++ b/converters/omni/tests/fixtures/fixtureB_omni/views/users.view.yaml @@ -1,3 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + schema: ecomm dimensions: id: diff --git a/converters/omni/tests/fixtures/tpcds_omni/relationships.yaml b/converters/omni/tests/fixtures/tpcds_omni/relationships.yaml index 4a70f2da..33c0abb5 100644 --- a/converters/omni/tests/fixtures/tpcds_omni/relationships.yaml +++ b/converters/omni/tests/fixtures/tpcds_omni/relationships.yaml @@ -1,3 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + - join_from_view: store_sales join_to_view: date_dim on_sql: ${store_sales.ss_sold_date_sk} = ${date_dim.d_date_sk} diff --git a/converters/omni/tests/fixtures/tpcds_omni/topics/tpcds_retail_model.topic.yaml b/converters/omni/tests/fixtures/tpcds_omni/topics/tpcds_retail_model.topic.yaml index 51fcb06f..783d4cf8 100644 --- a/converters/omni/tests/fixtures/tpcds_omni/topics/tpcds_retail_model.topic.yaml +++ b/converters/omni/tests/fixtures/tpcds_omni/topics/tpcds_retail_model.topic.yaml @@ -1,3 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + base_view: store_sales description: TPC-DS retail semantic model for sales and customer analytics ai_context: Use this semantic model for retail analytics. It provides comprehensive diff --git a/converters/omni/tests/fixtures/tpcds_omni/views/customer.view.yaml b/converters/omni/tests/fixtures/tpcds_omni/views/customer.view.yaml index c70c8c0e..c195c6d6 100644 --- a/converters/omni/tests/fixtures/tpcds_omni/views/customer.view.yaml +++ b/converters/omni/tests/fixtures/tpcds_omni/views/customer.view.yaml @@ -1,3 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + catalog: tpcds schema: public description: Customer dimension with demographic information diff --git a/converters/omni/tests/fixtures/tpcds_omni/views/date_dim.view.yaml b/converters/omni/tests/fixtures/tpcds_omni/views/date_dim.view.yaml index dcc71603..068c8088 100644 --- a/converters/omni/tests/fixtures/tpcds_omni/views/date_dim.view.yaml +++ b/converters/omni/tests/fixtures/tpcds_omni/views/date_dim.view.yaml @@ -1,3 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + catalog: tpcds schema: public description: Date dimension with calendar attributes diff --git a/converters/omni/tests/fixtures/tpcds_omni/views/item.view.yaml b/converters/omni/tests/fixtures/tpcds_omni/views/item.view.yaml index c4fa8c2e..08436b38 100644 --- a/converters/omni/tests/fixtures/tpcds_omni/views/item.view.yaml +++ b/converters/omni/tests/fixtures/tpcds_omni/views/item.view.yaml @@ -1,3 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + catalog: tpcds schema: public description: Item/Product dimension with product attributes diff --git a/converters/omni/tests/fixtures/tpcds_omni/views/store.view.yaml b/converters/omni/tests/fixtures/tpcds_omni/views/store.view.yaml index 5a9520de..342a480e 100644 --- a/converters/omni/tests/fixtures/tpcds_omni/views/store.view.yaml +++ b/converters/omni/tests/fixtures/tpcds_omni/views/store.view.yaml @@ -1,3 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + catalog: tpcds schema: public description: Store dimension with location and store attributes diff --git a/converters/omni/tests/fixtures/tpcds_omni/views/store_sales.view.yaml b/converters/omni/tests/fixtures/tpcds_omni/views/store_sales.view.yaml index 0a211180..084dc55c 100644 --- a/converters/omni/tests/fixtures/tpcds_omni/views/store_sales.view.yaml +++ b/converters/omni/tests/fixtures/tpcds_omni/views/store_sales.view.yaml @@ -1,3 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + catalog: tpcds schema: public description: Fact table containing all store sales transactions diff --git a/converters/omni/tests/test_omni_to_osi.py b/converters/omni/tests/test_omni_to_osi.py index b1248086..704d5443 100644 --- a/converters/omni/tests/test_omni_to_osi.py +++ b/converters/omni/tests/test_omni_to_osi.py @@ -1,3 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + """Unit tests for the Omni -> OSI importer.""" import json diff --git a/converters/omni/tests/test_osi_to_omni.py b/converters/omni/tests/test_osi_to_omni.py index ba0fb613..e6d1d0a7 100644 --- a/converters/omni/tests/test_osi_to_omni.py +++ b/converters/omni/tests/test_osi_to_omni.py @@ -1,3 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + """Unit tests for the OSI -> Omni exporter.""" import warnings diff --git a/converters/omni/tests/test_real_world_layout.py b/converters/omni/tests/test_real_world_layout.py index b58a1592..c78864dd 100644 --- a/converters/omni/tests/test_real_world_layout.py +++ b/converters/omni/tests/test_real_world_layout.py @@ -1,3 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + """Round-trip tests for the model shape Omni's API/IDE actually emits. A model pulled from a real instance (`omni models yaml-get`) differs from the diff --git a/converters/omni/tests/test_roundtrip.py b/converters/omni/tests/test_roundtrip.py index baccb520..6c4f5dd0 100644 --- a/converters/omni/tests/test_roundtrip.py +++ b/converters/omni/tests/test_roundtrip.py @@ -1,3 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + """Fixture-based round-trip tests. - Omni -> OSI -> Omni must be lossless (the stash carries everything). diff --git a/converters/omni/tests/test_roundtrip_properties.py b/converters/omni/tests/test_roundtrip_properties.py index 445c1e25..4d2973d6 100644 --- a/converters/omni/tests/test_roundtrip_properties.py +++ b/converters/omni/tests/test_roundtrip_properties.py @@ -1,3 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + """Property-based round-trip tests. Two drivers over the same builders (see _roundtrip_helpers): diff --git a/converters/orionbelt/pyproject.toml b/converters/orionbelt/pyproject.toml index d0396570..56a675e8 100644 --- a/converters/orionbelt/pyproject.toml +++ b/converters/orionbelt/pyproject.toml @@ -1,3 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + [build-system] requires = ["hatchling"] build-backend = "hatchling.build" diff --git a/converters/orionbelt/src/ossie_orionbelt/__init__.py b/converters/orionbelt/src/ossie_orionbelt/__init__.py index 5dc24fa6..34715998 100644 --- a/converters/orionbelt/src/ossie_orionbelt/__init__.py +++ b/converters/orionbelt/src/ossie_orionbelt/__init__.py @@ -1,3 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + """ossie-orionbelt: bidirectional OBML <-> OSI converter. Converts between OrionBelt Markup Language (OBML) semantic models and Open diff --git a/converters/orionbelt/src/ossie_orionbelt/_common.py b/converters/orionbelt/src/ossie_orionbelt/_common.py index 3460381f..f0e73a3c 100644 --- a/converters/orionbelt/src/ossie_orionbelt/_common.py +++ b/converters/orionbelt/src/ossie_orionbelt/_common.py @@ -1,3 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + """Shared constants and mapping tables for the OSI ↔ OBML converter. These module-level constants are used by more than one of the converter diff --git a/converters/orionbelt/src/ossie_orionbelt/cli.py b/converters/orionbelt/src/ossie_orionbelt/cli.py index 196722f6..ec70aef7 100644 --- a/converters/orionbelt/src/ossie_orionbelt/cli.py +++ b/converters/orionbelt/src/ossie_orionbelt/cli.py @@ -1,3 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + """Command-line entry point for the OBML <-> OSI converter. A single ``ossie-orionbelt`` command with two format-named subcommands, mirroring diff --git a/converters/orionbelt/src/ossie_orionbelt/converter.py b/converters/orionbelt/src/ossie_orionbelt/converter.py index 9d08ff8b..ae3f5d72 100644 --- a/converters/orionbelt/src/ossie_orionbelt/converter.py +++ b/converters/orionbelt/src/ossie_orionbelt/converter.py @@ -1,4 +1,20 @@ #!/usr/bin/env python3 +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. """ OSI ↔ OBML Bidirectional Converter =================================== diff --git a/converters/orionbelt/src/ossie_orionbelt/obml_to_osi.py b/converters/orionbelt/src/ossie_orionbelt/obml_to_osi.py index 9f3dacaf..db9ce97b 100644 --- a/converters/orionbelt/src/ossie_orionbelt/obml_to_osi.py +++ b/converters/orionbelt/src/ossie_orionbelt/obml_to_osi.py @@ -1,3 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + """OBML → OSI conversion (the :class:`OBMLtoOSI` direction). Extracted verbatim from ``converter.py``; see that module for the package-level diff --git a/converters/orionbelt/src/ossie_orionbelt/ontology.py b/converters/orionbelt/src/ossie_orionbelt/ontology.py index 86886c2a..9715c5be 100644 --- a/converters/orionbelt/src/ossie_orionbelt/ontology.py +++ b/converters/orionbelt/src/ossie_orionbelt/ontology.py @@ -1,3 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + """OBML → OSI ontology derivation (the :class:`OBMLtoOSIOntology` direction). Extracted verbatim from ``converter.py``; reuses :class:`OBMLtoOSI` for the diff --git a/converters/orionbelt/src/ossie_orionbelt/osi_to_obml.py b/converters/orionbelt/src/ossie_orionbelt/osi_to_obml.py index cc3e4fe2..52a8c235 100644 --- a/converters/orionbelt/src/ossie_orionbelt/osi_to_obml.py +++ b/converters/orionbelt/src/ossie_orionbelt/osi_to_obml.py @@ -1,3 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + """OSI → OBML conversion (the :class:`OSItoOBML` direction). Extracted verbatim from ``converter.py``; see that module for the package-level diff --git a/converters/orionbelt/src/ossie_orionbelt/validation.py b/converters/orionbelt/src/ossie_orionbelt/validation.py index 64c9f515..4f0c137b 100644 --- a/converters/orionbelt/src/ossie_orionbelt/validation.py +++ b/converters/orionbelt/src/ossie_orionbelt/validation.py @@ -1,3 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + """Validation helpers for OBML / OSI / OSI-ontology documents. Extracted verbatim from ``converter.py``. Schema files are vendored beside the diff --git a/converters/orionbelt/tests/fixtures/obml_as_osi.yaml b/converters/orionbelt/tests/fixtures/obml_as_osi.yaml index 7d8fe87a..ef055ac6 100644 --- a/converters/orionbelt/tests/fixtures/obml_as_osi.yaml +++ b/converters/orionbelt/tests/fixtures/obml_as_osi.yaml @@ -1,3 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + version: '0.1.1' semantic_model: - name: sales_analytics diff --git a/converters/orionbelt/tests/fixtures/tpcds_as_obml.yaml b/converters/orionbelt/tests/fixtures/tpcds_as_obml.yaml index acb8f0f7..94a92caa 100644 --- a/converters/orionbelt/tests/fixtures/tpcds_as_obml.yaml +++ b/converters/orionbelt/tests/fixtures/tpcds_as_obml.yaml @@ -1,3 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + version: 1.0 dataObjects: store_sales: diff --git a/converters/orionbelt/tests/fixtures/tpcds_osi.yaml b/converters/orionbelt/tests/fixtures/tpcds_osi.yaml index b038f3ef..f59b7f7a 100644 --- a/converters/orionbelt/tests/fixtures/tpcds_osi.yaml +++ b/converters/orionbelt/tests/fixtures/tpcds_osi.yaml @@ -1,3 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + # yaml-language-server: $schema=../core-spec/osi-schema.json # TPC-DS Semantic Model Example diff --git a/converters/orionbelt/tests/fixtures/tpcds_semantic_model.yaml b/converters/orionbelt/tests/fixtures/tpcds_semantic_model.yaml index 7dd27851..a677c82f 100644 --- a/converters/orionbelt/tests/fixtures/tpcds_semantic_model.yaml +++ b/converters/orionbelt/tests/fixtures/tpcds_semantic_model.yaml @@ -1,3 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + # yaml-language-server: $schema=../core-spec/osi-schema.json # TPC-DS Semantic Model Example diff --git a/converters/orionbelt/tests/test_osi_converter_cumulative.py b/converters/orionbelt/tests/test_osi_converter_cumulative.py index c19fa801..1897ac03 100644 --- a/converters/orionbelt/tests/test_osi_converter_cumulative.py +++ b/converters/orionbelt/tests/test_osi_converter_cumulative.py @@ -1,3 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + """Tests for OSI ↔ OBML cumulative metric conversion. Validates that cumulative metrics survive the OBML → OSI → OBML roundtrip diff --git a/converters/orionbelt/tests/test_osi_converter_filters.py b/converters/orionbelt/tests/test_osi_converter_filters.py index 91be10a5..ccc5ef59 100644 --- a/converters/orionbelt/tests/test_osi_converter_filters.py +++ b/converters/orionbelt/tests/test_osi_converter_filters.py @@ -1,3 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + """Tests for OSI ↔ OBML static filter roundtrip. Validates that model-level static filters survive the OBML → OSI → OBML diff --git a/converters/orionbelt/tests/test_osi_converter_measure_overrides.py b/converters/orionbelt/tests/test_osi_converter_measure_overrides.py index c610dc9c..0f69c29f 100644 --- a/converters/orionbelt/tests/test_osi_converter_measure_overrides.py +++ b/converters/orionbelt/tests/test_osi_converter_measure_overrides.py @@ -1,3 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + """Tests for OSI ↔ OBML roundtrip of measure grain and filterContext properties. Validates that grain override and filterContext configurations survive the diff --git a/converters/orionbelt/tests/test_osi_converter_ontology.py b/converters/orionbelt/tests/test_osi_converter_ontology.py index 7669387e..b4b4d51b 100644 --- a/converters/orionbelt/tests/test_osi_converter_ontology.py +++ b/converters/orionbelt/tests/test_osi_converter_ontology.py @@ -1,3 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + """Tests for the OBML → OSI **ontology** converter (OBMLtoOSIOntology). Validates that the derived ontology document passes the converter's semantic diff --git a/converters/orionbelt/tests/test_osi_converter_pop.py b/converters/orionbelt/tests/test_osi_converter_pop.py index c1fdcf3f..f0601597 100644 --- a/converters/orionbelt/tests/test_osi_converter_pop.py +++ b/converters/orionbelt/tests/test_osi_converter_pop.py @@ -1,3 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + """Tests for OSI ↔ OBML period-over-period metric conversion. Validates that PoP metrics survive the OBML → OSI → OBML roundtrip diff --git a/converters/orionbelt/tests/test_osi_converter_properties.py b/converters/orionbelt/tests/test_osi_converter_properties.py index 0e33d0b4..4d07303e 100644 --- a/converters/orionbelt/tests/test_osi_converter_properties.py +++ b/converters/orionbelt/tests/test_osi_converter_properties.py @@ -1,3 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + """Tests for OSI ↔ OBML roundtrip of data types, settings, owner, and column properties. Validates that recently added OBML properties survive the OBML → OSI → OBML diff --git a/converters/orionbelt/tests/test_osi_converter_trend_v26.py b/converters/orionbelt/tests/test_osi_converter_trend_v26.py index 0d950e0d..f9f1d797 100644 --- a/converters/orionbelt/tests/test_osi_converter_trend_v26.py +++ b/converters/orionbelt/tests/test_osi_converter_trend_v26.py @@ -1,3 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + """OSI ↔ OBML roundtrip for v2.6 trend-analysis fields. Validates that: diff --git a/converters/orionbelt/tests/test_osi_converter_vendors.py b/converters/orionbelt/tests/test_osi_converter_vendors.py index 05eae9b3..79b00cee 100644 --- a/converters/orionbelt/tests/test_osi_converter_vendors.py +++ b/converters/orionbelt/tests/test_osi_converter_vendors.py @@ -1,3 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + """Vendor-identity rules for OSI custom_extensions. - OBML -> OSI tags OrionBelt-proprietary payloads as ``ORIONBELT``. diff --git a/converters/orionbelt/tests/test_osi_metric_no_silent_loss.py b/converters/orionbelt/tests/test_osi_metric_no_silent_loss.py index f843d759..3a9d1d32 100644 --- a/converters/orionbelt/tests/test_osi_metric_no_silent_loss.py +++ b/converters/orionbelt/tests/test_osi_metric_no_silent_loss.py @@ -1,3 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + """Third-party OSI metrics must never be silently lost on import. Regression coverage for the review on OSI PR #153: the converter only emits diff --git a/converters/orionbelt/tests/test_osi_tpcds_baseline.py b/converters/orionbelt/tests/test_osi_tpcds_baseline.py index 3165b087..43ca284b 100644 --- a/converters/orionbelt/tests/test_osi_tpcds_baseline.py +++ b/converters/orionbelt/tests/test_osi_tpcds_baseline.py @@ -1,3 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + """OSI TPC-DS baseline (the converter-contributing step-5 requirement). Exercises the conceptual conversion flow from the OSI converters guide against diff --git a/converters/orionbelt/tests/test_osi_v02_compat.py b/converters/orionbelt/tests/test_osi_v02_compat.py index f5c110b9..144b2b13 100644 --- a/converters/orionbelt/tests/test_osi_v02_compat.py +++ b/converters/orionbelt/tests/test_osi_v02_compat.py @@ -1,3 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + """OSI v0.2 compatibility tests. Covers the v2.6 spec bump from OSI v0.1.1 → v0.2.0.dev0: