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

Directional language-tagged strings #113

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft

Directional language-tagged strings #113

wants to merge 2 commits into from

Conversation

afs
Copy link
Contributor

@afs afs commented Jul 6, 2023

This closes #112

Function and syntax for working with rdf:dirLangString.


Preview | Diff

@afs
Copy link
Contributor Author

afs commented Jul 6, 2023

Currently WIP.

@afs afs force-pushed the langdir branch 3 times, most recently from 701e3a1 to 571ef20 Compare July 13, 2023 15:22
Copy link
Member

@TallTed TallTed left a comment

Choose a reason for hiding this comment

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

(editorial) a couple of tweaks for clarity and typo fixes

argument is a literal with a language
tag. Otherwise, the function returns false.
</p>
<p>If the argument is a lteral, the function is
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
<p>If the argument is a lteral, the function is
<p>If the argument is a literal, the function is

Comment on lines +6340 to +6343
The function <code>LANGDIR</code> returns the
language direction of a literal with datatype
<code>rdf:dirLangString</code>.
Otherwise, the function return the empty
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
The function <code>LANGDIR</code> returns the
language direction of a literal with datatype
<code>rdf:dirLangString</code>.
Otherwise, the function return the empty
the function <code>LANGDIR</code> returns the
language direction of the literal with datatype
<code>rdf:dirLangString</code>;
otherwise, the function return the empty

<td><code>false</code></td>
</tr>
<tr>
<td><code>isLANG("abc@en--ltrl"</code></td>
Copy link
Contributor

Choose a reason for hiding this comment

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

Is the second double-quote meant to be before the language tag here?

Copy link
Member

Choose a reason for hiding this comment

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

Yes. There is also a missing close-paren.

Suggested change
<td><code>isLANG("abc@en--ltrl"</code></td>
<td><code>isLANG("abc"@en--ltrl)</code></td>

Copy link
Member

@gkellogg gkellogg left a comment

Choose a reason for hiding this comment

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

Prefer the term "base direction" to "language direction";.

<p>
If the argument is a literal,
The function <code>LANGDIR</code> returns the
language direction of a literal with datatype
Copy link
Member

Choose a reason for hiding this comment

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

"base direction" is the term from RDF Concepts. Maybe needs a reference?

Suggested change
language direction of a literal with datatype
base direction of a literal with datatype

@afs
Copy link
Contributor Author

afs commented Sep 12, 2024

This PR is being broken up to make progress easier.

#153 includes the grammar changes for initial text direction.

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.

Support directional language-tagged strings (rdf:dirLangString)
4 participants