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

Confusing example of distinguishability of IRIs and literals #72

Closed
jyasskin opened this issue Nov 14, 2023 · 1 comment · Fixed by #73
Closed

Confusing example of distinguishability of IRIs and literals #72

jyasskin opened this issue Nov 14, 2023 · 1 comment · Fixed by #73
Labels
spec:editorial Minor change in the specification (markup, typo, informative text; class 1 or 2)

Comments

@jyasskin
Copy link
Member

https://www.w3.org/TR/rdf12-concepts/#section-triples has

IRIs, literals, blank nodes, and quoted triples are distinct and distinguishable. For example, http://example.org/ as a string literal is equal to neither http://example.org/ as an IRI ...

When I first read this, I looked up the definition of IRI, found "An IRI ... is a string" and thought this was a discriminated union where someone had forgotten to tag the components. In fact, I should have looked up the definition of literal and discovered that "http://example.org/ as a string literal" meant the pair ("http://example.org", "xsd:string"), which is clearly different from the IRI/string "http://example.org/".

I'd suggest updating this example with an indication that literals include their types, so something like

... For example, http://example.org/^^xsd:string as a literal is equal to neither http://example.org/ as an IRI ...

@gkellogg gkellogg added the spec:editorial Minor change in the specification (markup, typo, informative text; class 1 or 2) label Nov 14, 2023
hartig added a commit that referenced this issue Nov 14, 2023
@hartig
Copy link
Contributor

hartig commented Nov 14, 2023

@jyasskin see PR #73 -- or directly in the following preview of that PR: https://pr-preview.s3.amazonaws.com/w3c/rdf-concepts/pull/73.html#section-triples

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
spec:editorial Minor change in the specification (markup, typo, informative text; class 1 or 2)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants