Skip to content

Commit

Permalink
Merge pull request #39 from openMetadataInitiative/lzehl_removeSemEqu
Browse files Browse the repository at this point in the history
Update schema.py
  • Loading branch information
Raphael-Gazzotti authored Jan 30, 2025
2 parents 4b4992e + 716ca25 commit 9bd70a2
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions pipeline/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,6 @@ def build(self):
if "description" in self._schema_payload and self._schema_payload["description"]:
doc.content(self._schema_payload["description"])
doc.newline()
semantic_equivalent = self._extract_semantic_equivalents()
if semantic_equivalent:
doc.field(name="Semantic equivalents", value=semantic_equivalent)
doc.newline()
doc.newline()
if self.instancelib_docu_path_for_schema:
library_link = os.path.join(self.readthedocs_url, self.version, "instance_libraries", self.instancelib_docu_path_for_schema)
Expand Down Expand Up @@ -104,14 +100,6 @@ def _extract_optional_properties(self) -> str:
optional_properties.append(f"`{p_split} <{p_split}_heading_>`_")
return ", ".join(optional_properties)

def _extract_semantic_equivalents(self) -> Optional[str]:
if "semanticEquivalent" in self._schema_payload:
semantic_equivalents = []
for se in self._schema_payload["semanticEquivalent"]:
semantic_equivalents.append(se)
return ", ".join(semantic_equivalents)
return None

def _identify_value_type(self, property) -> str:
v_type = property["type"] if "type" in property else "object"
if isinstance(v_type, list):
Expand Down

0 comments on commit 9bd70a2

Please sign in to comment.