MCPcopy Create free account
hub / github.com/Graphify-Labs/graphify / _triples

Function _triples

tests/test_sql_tsql_procedures.py:55–61  ·  view source on GitHub ↗
(result: dict)

Source from the content-addressed store, hash-verified

53
54
55def _triples(result: dict) -> set[tuple[str, str, str]]:
56 label = {n["id"]: n["label"] for n in result["nodes"]}
57 return {
58 (_name(label.get(e["source"], e["source"])), e["relation"], _name(label.get(e["target"], e["target"])))
59 for e in result["edges"]
60 if e["relation"] not in STRUCTURAL
61 }
62
63
64def _extract_project(tmp_path: Path, files: dict[str, str]) -> dict:

Calls 2

_nameFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected