MCPcopy Create free account
hub / github.com/KnowledgeXLab/LeanRAG / triple_json_format

Method triple_json_format

CommonKG/triple.py:20–21  ·  view source on GitHub ↗
(self, triple, doc_name="", source_id="")

Source from the content-addressed store, hash-verified

18 return f"<{self.head}>\t<{self.relation}>\t<{self.tail}>"
19 @classmethod
20 def triple_json_format(self, triple, doc_name="", source_id=""):
21 return {"triple": triple, "doc_name": doc_name, "source_id": source_id}
22
23 @classmethod
24 def get_example(self, entity, ref_kg_path):

Callers 1

process_single_fileFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected