ampligraph.datasets.load_from_rdf(folder_name, file_name, rdf_format='nt', data_home=None)

Large RDF graphs should be serialized to ntriples beforehand and loaded with load_from_ntriples() instead.
It is recommended to use ampligraph.evaluation.train_test_split_no_unseen() to split custom knowledge graphs into train, validation, and test sets. Using this function will lead to validation, test sets that do not include triples with entities that do not occur in the training set.