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

Do not preserve markup of elements with the property attribute and without markup preserving datatype #49

Open
csarven opened this issue Nov 6, 2022 · 2 comments
Labels
bug Something isn't working
Projects

Comments

@csarven
Copy link

csarven commented Nov 6, 2022

Elements with the property attribute and without the datatype attribute, datatype="", datatype="rdf:HTML", or datatype="rdf:XMLLiteral" should not have the parser preserve the markup in the content of the element and add all namespaces and prefixes.

For example, given input:

<dd about="#foo" property="skos:definition">foo <em>bar</em> baz</dd>

the following is given:

<#foo> skos:definition "foo <em xmlns=\"http://www.w3.org/1999/xhtml\".......\">bar</em> baz" .

but the expected RDF is:

<#foo> skos:definition "foo bar baz" .
@rubensworks
Copy link
Owner

It's been a while since I looked into the processing model of RDFa.
But do you mean that the markup should not be preserved without the datatype attribute or datatype="", but it must be preserved when using datatype="rdf:HTML" or datatype="rdf:XMLLiteral"?

@rubensworks rubensworks added the bug Something isn't working label Nov 7, 2022
@rubensworks rubensworks added this to To do in Work via automation Nov 7, 2022
@csarven
Copy link
Author

csarven commented Nov 7, 2022

That's right AFAICT.

Doublechecking.. Some cases appear to give the expected output but some others do not, i.e., markup is preserved. For example, see https://solidproject.org/ED/protocol 's skos:definition values.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Work
  
To do
Development

No branches or pull requests

2 participants