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

Updated addLiteral to properly support XMLLiteral #133

Closed
wants to merge 1 commit into from
Closed

Updated addLiteral to properly support XMLLiteral #133

wants to merge 1 commit into from

Conversation

jamsden
Copy link

@jamsden jamsden commented Jul 18, 2016

Parsing an XMLLiteral should store a normalized (sorted attributes) XML
string as the value for the literal, not the parsed XML dom.

Addresses issue #75.

Parsing an XMLLiteral should store a normalized (sorted attributes) XML
string as the value for the literal, not the parsed XML dom.

Addresses issue #75.
@dmitrizagidulin
Copy link
Contributor

@jamsden @timbl - is this PR ready to merge?

@jamsden
Copy link
Author

jamsden commented Jul 19, 2016

It doesn’t do the attribution normalization (sorting the attributes) so === works on XMLLiterals that are the same except for ordering, but it does at least capture the correct contents.

Not sure === on XMLLiterals is a high priority, so this can possibly be deferred.

On Jul 19, 2016, at 4:16 PM, Dmitri Zagidulin [email protected] wrote:

@jamsden https://github.com/jamsden @timbl https://github.com/timbl - is this PR ready to merge?


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub #133 (comment), or mute the thread https://github.com/notifications/unsubscribe-auth/ABECqmFsmnFo0esSvscMZSud51m-2NcMks5qXTCVgaJpZM4JPIrn.

@timbl
Copy link
Member

timbl commented Aug 22, 2016

Sounds like a definite improvement - suggest merge

@timbl
Copy link
Member

timbl commented Aug 22, 2016

(I had earlier left the DOM pointer as th value, as that is what is useful to software. - if we have the DOM then maybe it would be be usefulk to leave a pointer to it, so that the caller doesn't have to waste time parsing it again?

@jamsden
Copy link
Author

jamsden commented Aug 23, 2016

Good point, but it doesn't follow the RDF/XLM spec and creates inconsistencies for consumers. For example, it breaks OSLC resources.

Sent from my iPad

On Aug 22, 2016, at 2:02 PM, Tim Berners-Lee [email protected] wrote:

(I had earlier left the DOM pointer as th value, as that is what is useful to software. - if we have the DOM then maybe it would be be usefulk to leave a pointer to it, so that the caller doesn't have to waste time parsing it again?


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

@timbl
Copy link
Member

timbl commented Aug 23, 2016

This now needs to be patched in
rdfxmlparser.js
at line:
if (this.parent.datatype) {
Line 156 in rdfxmlparser.js

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

Successfully merging this pull request may close these issues.

4 participants