Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Print parsing error #21

Open
rmfranken opened this issue Sep 4, 2024 · 2 comments
Open

Print parsing error #21

rmfranken opened this issue Sep 4, 2024 · 2 comments

Comments

@rmfranken
Copy link
Member

I would like to use rdfpipe as a tool to quickly check whether a graph does not contain any syntax errors, and format it. If it does contain syntax errors however, currently the tool just outputs "Could not parse graph". It would be extremely useful to get a pointer to which line in the input contains the mistake. Is that possible to print in addition to the generic error message?

@cmdoret
Copy link
Member

cmdoret commented Sep 4, 2024

I don't think we can do it with the current approach; we just do source.add_to_graph(graph), which calls insert_all().
We should change the approach as suggested in #14 to stream triples (instead of loading the whole graph in RAM as is done now).

Once triples are parsed iteratively, it should be possible to return the exact line raising the error.

@rmfranken
Copy link
Member Author

That makes sense. Great issue for our brand new rustaceans! For now I will use the elsecvier vscode extnesion to do it, if I cannot parse with rdfpipe,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants