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

ITS namespace #51

Closed
afs opened this issue Dec 8, 2024 · 2 comments · Fixed by #54
Closed

ITS namespace #51

afs opened this issue Dec 8, 2024 · 2 comments · Fixed by #54

Comments

@afs
Copy link
Contributor

afs commented Dec 8, 2024

All the examples are of the form:

<sparql xmlns="http://www.w3.org/2005/sparql-results#"
  xmlns:its="http://www.w3.org/2005/11/its" 
  its:version="2.0">

and the spec notes it is only needed if there are literals with base direction appearing in the results.

Writing a result set may be a streaming process - the contents aren't known when the <sparql ... start element is written, possibly leading to systems always adding xmlns:its="http://www.w3.org/2005/11/its" its:version="2.0".

The main problem with that is the transition impact - RDF 1.1 data but with added its. It shouldn't matter but it is a visible change.

It is also possible to write XML namespaces on other start elements to give an inline form:

    <binding name="x">
        <literal xml:lang="en" xmlns:its="http://www.w3.org/2005/11/its" its:version="2.0" its:dir="ltr">abc</literal>
    </binding>

then it only appears as needed but can become very verbose (compression would be good though).

@rubensworks
Copy link
Member

Shall we add a note to make it explicit that the inline-form is also allowed, with an example?

@afs
Copy link
Contributor Author

afs commented Dec 18, 2024

Yes
(I couldn't at the time when I raised the issue, because of juggling other PRs.)

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 a pull request may close this issue.

2 participants