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

Can't store N3 triple with subject formula because of incompatible isSubject #567

Open
RubenVerborgh opened this issue Aug 9, 2022 · 1 comment
Assignees
Labels

Comments

@RubenVerborgh
Copy link
Member

The document at https://drive.verborgh.org/tmp/2022/cha-58-direct.n3 causes problems when read/written in a Solid Pod via Mashlib, with the following error:

Outline.expand: Unable to fetch <https://drive.verborgh.org/tmp/2022/cha-58-direct.n3>: Failed to load  <https://drive.verborgh.org/tmp/2022/cha-58-direct.n3> Fetcher: Error trying to parse <https://drive.verborgh.org/tmp/2022/cha-58-direct.n3> as Notation3:
Error: Subject is not a subject type status: 200

The Subject is not a subject is thrown by src/store.ts, which uses an isSubject call that checks for NamedNodeTermType/VariableTermType/BlankNodeTermType.

So either rdflib needs to be adjusted to output RDF/JS-compatible Notation3 subjects (which is what N3.js does), or the isSubject check needs to be adjusted when working with Notation3.

@RubenVerborgh RubenVerborgh changed the title Can't process formula in subject because isSubject not compatible with N3 Can't store N3 triple with subject formula because of incompatible isSubject Aug 9, 2022
@bourgeoa
Copy link
Contributor

So either rdflib needs to be adjusted to output RDF/JS-compatible Notation3 subjects (which is what N3.js does), or the isSubject check needs to be adjusted when working with Notation3.

@timbl Can you help with this I don't understand what is missing in isSubject call

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

No branches or pull requests

3 participants