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

Support directional language-tagged strings, Closes #32 #33

Merged
merged 4 commits into from
Nov 30, 2023

Conversation

rubensworks
Copy link
Member

@rubensworks rubensworks commented Oct 25, 2023

"its:dir" was chosen as key to be aligned with "xml:lang" following https://www.w3.org/TR/2007/REC-its-20070403/#att.dir


Preview | Diff

@rubensworks rubensworks requested review from kasei, afs and Tpt October 25, 2023 11:38
@rubensworks rubensworks added the spec:substantive Issue or proposed change in the spec that changes its normative content label Oct 25, 2023
@gkellogg
Copy link
Member

I note that previously xml:lang and ids:dir use something that looks like XML Namespaces. Previously, it may have not been necessary to describe the xml namespace, as it's the default for XML documents, but this probably warrants a mention someplace, as JSON (other than JSON-LD) doesn't really have this concept. Same for its.

@rubensworks
Copy link
Member Author

Previously, it may have not been necessary to describe the xml namespace, as it's the default for XML documents, but this probably warrants a mention someplace, as JSON (other than JSON-LD) doesn't really have this concept. Same for its.

Good idea, I'll look into adding this.

spec/index.html Outdated Show resolved Hide resolved
Co-authored-by: Ted Thibodeau Jr <[email protected]>
spec/index.html Outdated
@@ -513,6 +517,7 @@ <h4>Encoding RDF terms</h4>
<p>The blank node label is scoped to the results object. That is, two blank nodes with the same label in a single SPARQL Results JSON object are the same blank node. This is not an
indication of any internal system identifier the SPARQL processor may use. Use of the same label in another SPARQL Results JSON object does not imply it is the same blank node.</p>
<p>The subject, predicate, and object of a quoted triple are encoded using the same format, recursively.</p>
<p class="note">The "xml:lang" and "its:dir" keys resemble usage of XML namespaces due to alignment with the [[[SPARQL12-RESULTS-XML]]] specification, but namespaces do not exist JSON, which means that these keys should be used as-is.</p>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"xml:lang" - > <code>xml:lang</code>, the same with its:dir.

spec/index.html Outdated Show resolved Hide resolved
@rubensworks rubensworks merged commit 340f5ee into main Nov 30, 2023
2 checks passed
@rubensworks rubensworks deleted the feature/basedir branch November 30, 2023 17:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
spec:substantive Issue or proposed change in the spec that changes its normative content
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants