Skip to content

Commit

Permalink
ci-cd: update json file generation
Browse files Browse the repository at this point in the history
  • Loading branch information
tngTUDOR committed Oct 10, 2024
1 parent 4f1f119 commit f609ed2
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions sentier_vocab/custom_products.py
Original file line number Diff line number Diff line change
@@ -1,24 +1,35 @@
import json
from pathlib import Path

from loguru import logger

from sentier_vocab.add_terms import add_custom_terms
from sentier_vocab.input.custom_products import CUSTOM_PRODUCTS_DATA
from sentier_vocab.input.electricity_model_terms import ELECTRICITY_MODEL_TERMS_DATA
from sentier_vocab.input.electricity_products import ELECTRICITY_PRODUCTS_DATA

created_ttls = []


def add_custom_products():
out_file = add_custom_terms(CUSTOM_PRODUCTS_DATA, "https://vocab.sentier.dev/products/", "custom-products")
out_file = add_custom_terms(
CUSTOM_PRODUCTS_DATA, "https://vocab.sentier.dev/products/", "custom-products"
)
created_ttls.append(
{"graph": "https://vocab.sentier.dev/products/", "ttl_file": str(out_file.name)}
)
add_custom_terms(
)

out_file = add_custom_terms(
ELECTRICITY_PRODUCTS_DATA,
"https://vocab.sentier.dev/products/electricity/",
"electricity-custom-products",
)

out_file = created_ttls.append(
created_ttls.append(
{"graph": "https://vocab.sentier.dev/products/", "ttl_file": str(out_file.name)}
)
logger.info(f"Added {out_file} to outputs")

out_file = add_custom_terms(
ELECTRICITY_MODEL_TERMS_DATA,
"https://vocab.sentier.dev/model-terms/emission-factor/",
Expand Down

0 comments on commit f609ed2

Please sign in to comment.