Accenture / AmpliGraph

Python library for Representation Learning on Knowledge Graphs https://docs.ampligraph.org
Apache License 2.0
2.12k stars 252 forks source link

file should be inside "ampligraph_datasets" directory to be able to load as dataset #284

Open mohmehmo opened 1 month ago

mohmehmo commented 1 month ago

Description

Hi, I have an N3 file that I would like to load as a dataset for use with Ampligraph. It seems that all datasets need to be loaded from "/home/\<user>/ampligraph_datasets/dataset.n3". Could you please advise me on how to load a dataset from a different location?

Actual Behavior

FileNotFoundError: [Errno 2] No such file or directory: '/home/\<user>/ampligraph_datasets/kg/kg.n3'

Steps to Reproduce

X = load_from_rdf(folder_name="kg", file_name="kg.n3", rdf_format="n3")
# dataset is inside "kg" directory which is located in the root of the project

Thanks.