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

Lexical-to-value mapping is not a "partial mapping" #66

Open
hartig opened this issue Jan 9, 2025 · 5 comments
Open

Lexical-to-value mapping is not a "partial mapping" #66

hartig opened this issue Jan 9, 2025 · 5 comments

Comments

@hartig
Copy link

hartig commented Jan 9, 2025

This issue is about the following sentence in Sec.7 of RDF Semantics.

A datatype is understood to define a partial mapping, called the lexical-to-value mapping, from a lexical space (a set of character strings) to values.

This sentence is incorrect in the sense that, by the definition of the notion of a lexical-to-value mapping in RDF Concepts, it is not a partial mapping but a total mapping (or, simply, a function). The relevant part of the definition is that is says: "Each member of the lexical space is paired with ..."

Related to this issue, the following sentence (in the same paragraph as the one quoted above) is also not particularly accurate.

An ill-typed literal is one whose datatype IRI is recognized, but whose character string is assigned no value by the lexical-to-value mapping for that datatype.

To fix this issue, I suggest to change the first sentence quoted above as follows:

A datatype is understood to define a function, called the lexical-to-value mapping, from a lexical space (a set of character strings) to values.

And the second sentence quoted above may be changed as follows:

An ill-typed literal is one whose datatype IRI is recognized, but whose character string is not in the lexical space of the datatype identified by that IRI and, thus, is not in the domain of the lexical-to-value mapping of that datatype.

@afs
Copy link

afs commented Jan 9, 2025

A datatype is understood to define a function, called the lexical-to-value mapping, from a lexical space (a set of character strings) to values.

Minor tweaking: maybe "character string" could be RDF strings). This avoids "character". An "RDF String" is a sequences of Unicode scale values -- all codepoints except the surrogates.

Unicode D76:
"Unicode scalar value: Any Unicode code point except high-surrogate and low-surrogate code points."

@pfps
Copy link
Contributor

pfps commented Jan 9, 2025

Yeah the wording needs to be improved. I think the best thing is to defer more to RDF Concepts.

@hartig
Copy link
Author

hartig commented Jan 9, 2025

Minor tweaking: maybe "character string" could be RDF strings).

While I agree, I see this as a separate issue because it is not only in this particular sentence. Instead, the term "character string" appears multiple times in the paragraph in which this sentence is.

@hartig
Copy link
Author

hartig commented Jan 9, 2025

Yeah the wording needs to be improved. I think the best thing is to defer more to RDF Concepts.

I agree. There is quite a bit of repetition here in terms of things that are already in RDF Concepts.

@afs
Copy link

afs commented Jan 9, 2025

The paragraph also needs #64 which adds that rdf:dirLangString is an exception, along side rdf:langString.

afs added a commit that referenced this issue Jan 9, 2025
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

No branches or pull requests

3 participants