MCPcopy
hub / github.com/HKUDS/MiniRAG / _fix_name

Method _fix_name

minirag/kg/gremlin_impl.py:123–127  ·  view source on GitHub ↗

Strip double quotes and format as a proper field name

(name: str)

Source from the content-addressed store, hash-verified

121
122 @staticmethod
123 def _fix_name(name: str) -> str:
124 """Strip double quotes and format as a proper field name"""
125 name = GremlinStorage._to_value_map(name.strip('"').replace(r"\'", "'"))
126
127 return name
128
129 async def _query(self, query: str) -> List[Dict[str, Any]]:
130 """

Callers 8

has_nodeMethod · 0.80
has_edgeMethod · 0.80
get_nodeMethod · 0.80
node_degreeMethod · 0.80
get_edgeMethod · 0.80
get_node_edgesMethod · 0.80
upsert_nodeMethod · 0.80
upsert_edgeMethod · 0.80

Calls 1

_to_value_mapMethod · 0.80

Tested by

no test coverage detected