load_from_ntriples¶
-
ampligraph.datasets.
load_from_ntriples
(folder_name, file_name, data_home=None)¶ Load RDF ntriples as csv statements
Loads an RDF knowledge graph serialized as ntriples, without building an RDF graph in mmeory. This function is faster thanload_from_rdf()
.Parameters: - folder_name (str) – base folder within AMPLIGRAPH_DATA_HOME where the file is stored.
- file_name (str) – file name
Returns: triples – the actual triples of the file.
Return type: ndarray , shape [n, 3]