Skip to content

Commit 9bd70a2

Browse files
Merge pull request #39 from openMetadataInitiative/lzehl_removeSemEqu
Update schema.py
2 parents 4b4992e + 716ca25 commit 9bd70a2

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

pipeline/schema.py

-12
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,6 @@ def build(self):
3636
if "description" in self._schema_payload and self._schema_payload["description"]:
3737
doc.content(self._schema_payload["description"])
3838
doc.newline()
39-
semantic_equivalent = self._extract_semantic_equivalents()
40-
if semantic_equivalent:
41-
doc.field(name="Semantic equivalents", value=semantic_equivalent)
42-
doc.newline()
4339
doc.newline()
4440
if self.instancelib_docu_path_for_schema:
4541
library_link = os.path.join(self.readthedocs_url, self.version, "instance_libraries", self.instancelib_docu_path_for_schema)
@@ -104,14 +100,6 @@ def _extract_optional_properties(self) -> str:
104100
optional_properties.append(f"`{p_split} <{p_split}_heading_>`_")
105101
return ", ".join(optional_properties)
106102

107-
def _extract_semantic_equivalents(self) -> Optional[str]:
108-
if "semanticEquivalent" in self._schema_payload:
109-
semantic_equivalents = []
110-
for se in self._schema_payload["semanticEquivalent"]:
111-
semantic_equivalents.append(se)
112-
return ", ".join(semantic_equivalents)
113-
return None
114-
115103
def _identify_value_type(self, property) -> str:
116104
v_type = property["type"] if "type" in property else "object"
117105
if isinstance(v_type, list):

0 commit comments

Comments
 (0)