-
Notifications
You must be signed in to change notification settings - Fork 6
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
Error in attempting to load RDFa #34
Comments
Hey, thanks for reporting this and getting to a minimal reproduction. I am aware that blank nodes are not supported, that's a know limitation tracked here: NoelDeMartin/soukai-solid#19 However, it's very weird that it's parsing the html because I haven't done any of that :/. The fetch request includes an In any case, I agree that this type of error should probably be handled explicitly, so I'll leave this issue open at least until I handle that. I'll leave it as an enhancement, though. |
That's right. I'm using community solid server. I've now checked and can confirm that the minimal example is returned as:
This is possibly an argument for avoiding a data model that overloads |
I see. The thing with All in all, seeing how things stand right now, I think the best solution is to handle these malformed document errors. What I'm unsure about is whether to bother users with a warning or something, or silently ignoring the problem. I think I'll end up doing the latter, but showing some warning in console for developers trying to debug what's going on. |
The type index spec is a little unclear about what I also quoted the position that "Linked data is a set of documents", which came up in a disagreement as to whether the document (in that case a type index) should use predicates to link to its contents (in that case a type registration), or whether it is sufficient for the contents to be in the document. Personally I have used both patterns. It seems both approaches can easily coexist, so I don't have an issue with Media Kraken sticking to this approach. |
This is a rather niche error, but I thought I'd document it anyway.
I saved an index.html file in my movies folder and Media Kraken failed to load, with the error below.
Stack trace:
I tracked the error down to this minimal example
It turns out I had defined a blank node of type schema:Movie, and Media Kraken was not able to cope with it.
I think it makes sense for Media Kraken to not support blank node movies.
However, I don't think it's the intended behaviour that Media Kraken tried to parse RDFa in index.html in the first place?
While it is correct that a html file in the movies folder could contain valid data, I don't think Media Kraken is set up to write to it.
I suspect that the intended behaviour here would be for Media Kraken to ignore invalid data, perhaps with a warning.
The text was updated successfully, but these errors were encountered: