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

Open
#284 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
python

Research direction

Start with the load_from_rdf(folder_name="kg", file_name="kg.n3", rdf_format="n3") entry point and inspect how it resolves the ampligraph_datasets path. Reproduce the FileNotFoundError with the kg/kg.n3 example; done means a dataset located outside the default directory can be loaded or the supported location requirement is made explicit.

Written by the indexing model from the issue text.

Description

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.

Dominant language
Python
Stars
2.2k
Forks
257
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Accenture/AmpliGraph

All issues in Accenture/AmpliGraph

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.