Contents
check_kg_df_structure()
Utility to perform sanity checks on the structure of the provided DataFrame, to ensure that it encodes a Knowledge Graph in a compatible way.
kg_df (DataFrame) – The Knowledge Graph DataFrame.
DataFrame
h (str) – The name of the column with the IDs of head entities.
str
r (str) – The name of the column with the IDs of relation types.
t (str) – The name of the column with the IDs of tail entities.
None