2727 set_resolver ,
2828)
2929from oold .utils .codegen import OOLDJsonSchemaParser
30+ from opensemantic import OswBaseModel
3031from pydantic import PydanticDeprecatedSince20
3132from pydantic .v1 import BaseModel , Field , PrivateAttr , create_model , validator
3233from pyld import jsonld
3334
3435import osw .model .entity as model
3536from osw .defaults import params as default_params
36- from osw .model .static import OswBaseModel
3737from osw .utils .oold import (
3838 AggregateGeneratedSchemasParam ,
3939 AggregateGeneratedSchemasParamMode ,
@@ -587,7 +587,7 @@ def _fetch_schema(self, fetchSchemaParam: _FetchSchemaParam = None) -> None:
587587 --input { schema_path } \
588588 --input-file-type jsonschema \
589589 --output { temp_model_path } \
590- --base-class osw.model.static .OswBaseModel \
590+ --base-class opensemantic .OswBaseModel \
591591 --use-default \
592592 --use-unique-items-as-set \
593593 --enum-field-as-literal all \
@@ -614,7 +614,7 @@ def _fetch_schema(self, fetchSchemaParam: _FetchSchemaParam = None) -> None:
614614 input_ = pathlib .Path (schema_path ),
615615 input_file_type = "jsonschema" ,
616616 output = pathlib .Path (temp_model_path ),
617- base_class = "osw.model.static .OswBaseModel" ,
617+ base_class = "opensemantic .OswBaseModel" ,
618618 # use_default=True,
619619 apply_default_values_for_required_fields = True ,
620620 use_unique_items_as_set = True ,
@@ -647,7 +647,7 @@ def _fetch_schema(self, fetchSchemaParam: _FetchSchemaParam = None) -> None:
647647 # parser = OOLDJsonSchemaParserFixedRefs(
648648 # source=pathlib.Path(schema_path),
649649
650- # base_class="osw.model.static .OswBaseModel",
650+ # base_class="opensemantic .OswBaseModel",
651651 # data_model_type=data_model_types.data_model,
652652 # data_model_root_type=data_model_types.root_model,
653653 # data_model_field_type=data_model_types.field_model,
@@ -720,8 +720,8 @@ def _fetch_schema(self, fetchSchemaParam: _FetchSchemaParam = None) -> None:
720720 header = (
721721 "from uuid import uuid4\n "
722722 "from typing import Type, TypeVar\n "
723- "from osw.model.static import OswBaseModel, Ontology \n "
724- # "from osw.model.static import *\n"
723+ "from opensemantic import OswBaseModel\n "
724+ # "from opensemantic import *\n"
725725 "\n "
726726 )
727727
0 commit comments