Skip to content

Changes to synchronize with N-Triples. #107

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

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

Conversation

gkellogg
Copy link
Member

@gkellogg gkellogg commented Jul 18, 2025

Fixes #37. Fixes #108.


Preview | Diff

@gkellogg gkellogg requested review from afs and TallTed July 18, 2025 21:04
@gkellogg gkellogg added the spec:substantive Change in the spec affecting its normative content (class 3) –see also spec:bug, spec:new-feature label Jul 18, 2025
@gkellogg gkellogg mentioned this pull request Jul 18, 2025
…l`, which is the correct term to reference.
spec/index.html Outdated
@@ -1948,16 +1951,16 @@ <h3>RDF Term Constructors</h3>
<tr><th> production </th><th> type </th><th>procedure</th></tr>
</thead>
<tbody>
<tr id="handle-IRIREF" ><td style="text-align:left;" ><a class="type IRI" href="#grammar-production-IRIREF" >IRIREF </a></td><td><a data-cite="RDF12-CONCEPTS#dfn-iri" >IRI </a></td><td>The characters between <a href="#cp-less-than"><code title="less-than sign">&lt;</code></a> and <a href="#cp-greater-than"><code title="greater-than sign">&gt;</code></a> are taken, with the <a data-lt="numeric escape sequence">numeric escape sequences</a> unescaped, to form the IRI. <a data-cite="RDF12-CONCEPTS#dfn-relative-iri">Relative IRI reference</a> resolution is performed per <a href="#sec-iri-references" class="sectionRef">Section 6.3</a>.</td></tr>
<tr id="handle-IRIREF" ><td style="text-align:left;" ><a class="type IRI" href="#grammar-production-IRIREF" >IRIREF </a></td><td><a data-cite="RDF12-CONCEPTS#dfn-iri" >IRI </a></td><td>The characters between <a href="#cp-less-than"><code title="less-than sign">&lt;</code></a> and <a href="#cp-greater-than"><code title="greater-than sign">&gt;</code></a> are taken, with the <a data-lt="numeric escape sequence">numeric escape sequences</a> unescaped, to form the IRI. <a data-cite="RDF12-CONCEPTS#dfn-relative-iri">Relative IRI reference</a> resolution is performed per <a href="#sec-iri-references" class="sectionRef">Section 6.3</a>. The resulting IRI MUST comply with the <a data-cite="RFC3987#section-2.2">syntactic restrictions</a> of generic IRI syntax, and SHOULD comply with any narrower restrictions imposed by the corresponding IRI scheme specification.</td></tr>
Copy link
Contributor

@afs afs Jul 19, 2025

Choose a reason for hiding this comment

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

and SHOULD conform to section 3.3 of RFC3986

"""
The path segments "." and "..", also known as dot-segments, are
defined for relative reference within the path name hierarchy. They
are intended for use at the beginning of a relative-path reference
"""

which is advice at the level of a specific scheme except it applies to all URIs with apath.

Copy link
Member Author

Choose a reason for hiding this comment

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

In Turtle, do you think that wording would be repeated anywhere an IRI can be formed? (E.g., PNAME_NS/LN).

Copy link
Contributor

@afs afs Jul 25, 2025

Choose a reason for hiding this comment

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

If the NS is valid, can "NS:LN" be undesirable?
It might need PN_LOCAL_ESC to do that.

Copy link
Member Author

Choose a reason for hiding this comment

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

I don't quite get how PN_LOCAL_ESC might play into this. Either PNAME_NS or PNAME_LN can be used in the PrefixedName production, which results in an IRI that should have the same provisions as IRIREF.

We could potentially add a new "iri" term contsructor and put the requirements for the form of the resulting IRI there.

You might have a legitimate PNAME_NS IRI but when combined with PNAME_LN still not result in a valid IRI.

@gkellogg gkellogg requested a review from afs July 24, 2025 19:05
…ange how whitespace is introduced between `--`.
@gkellogg gkellogg requested a review from TallTed July 28, 2025 01:27
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.

Looking good!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
spec:substantive Change in the spec affecting its normative content (class 3) –see also spec:bug, spec:new-feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

language strings missing a language tag Broken links in RDF 1.2 Turtle
4 participants