-
Notifications
You must be signed in to change notification settings - Fork 19
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
Informative and structural "properties" are relationships #426
Comments
This might also solve some of my concern with properties and relationships having different naming conventions. IANA mixes all kinds of naming conventions, but so far we only adopt "privacy-policy" and "contents" from the relations. Perhaps properties can remain camelcased and we can hyphenate relationships for consistency? This would mean only "pagelist" might potentially need to change to "page-list" (which would match EPUB but not DPUB-ARIA, though that hardly matters in this context). But leaving it as-is would fit just as well within the relations, too. |
Yes, I think separating those relationships to a different "thing" (table, list, or whatever) is a good idea. The quick reference may include property terms that come either from schema.org or from our own vocabulary, and it is unnecessary to refer to them as URL-s because they are only used as terms by the author. The relationship, alas!, is different. (Unfortunately, I am not sure we can get around using URL-s for those at least for now...) |
(We should probably merge #425 before doing any change...) |
Ya, this is a confusing one to piece apart. What we've done for some of these is define properties based on the relations, so we're not actually realizing that there is a property until the canonicalization step (although even that isn't clear for all). In other words, what starts off as:
after processing becomes:
since there are rules for compiling the table of contents, but they're not in canonicalization section. But what about a resource that identifies itself as a privacy policy, does it become:
If so, we're effectively minting new properties for every link relation that we compile up. But processing of privacy policy, cover and accessibility report is not detailed in the canonicalization steps, either, so when and where does it occur? Or are these supposed to be separate entities that a user agent might make itself aware of? At any rate, this changes the dynamic of what I was proposing. We can (maybe?) keep the current groupings, since we (maybe?) need properties eventually, but it raises a number of questions:
|
I do not understand what you mean by:
Canonicalization does not involve generating HTML markup... As for
yes, I think that is how the processing of So the overall answer is that canonicalization has nothing to do with these. A canonical version of the manifest is a bona fide 'authored' manifest, with all the shortcuts resolved. A full and automatic authoring system for WPUB could bypass canonicalization altogether; the canonicalization is only there because some manifests will be produced by human, and we make their life easier. |
That's what I was expecting, but that's not what the specification currently seems to say. We have a table of contents relationship defined here: https://w3c.github.io/wpub/#pub-table-of-contents And a process for creating To add to the confusion, the process to extract the toc nav ends by saying:
Which makes no sense, as the process results in the toc markup. The only interpretation I could make is that the HTML has to be added to the manifest property and this either happens before or during canonicalization. The same is true of page-list. My expectation before reading the spec was that the rel values were intended to do nothing more than identify resources that could be used after canonicalization, but it's not what I found. Assuming I was right to begin with, though, and that the rel values just allow a user agent to identify resources and do things independent of canonicalization (i.e., there is no property computation), then I can continue what I was originally intending. But, if that's true, I also need to go through and rewrite the toc and pagelist sections, as they're confusing the hell out of me. |
Hah! I think the confusion in the TOC section comes from this thing:
That was left pending due to an open issue (whose number I do not remember) but is now out, because we agreed that the only way a TOC is represented is in HTML, and the Manifest simply refers to the TOC via a URL. The paragraph is simply wrong; only the first sentence is true. It is up to the user agent what it does with the extracted TOC. |
Okay, that makes more sense; it is just a I'll keep pushing ahead with what I think needs changing and then see if you agree with the PR. |
Closing as this was addressed in #428. |
To separate this discussion away from #421, I find a bit awkward that we lump the resource relationships into the properties. These should really be a separate section, for example:
The extensibility of relationships is also different from properties, since we expect these to be standardized in IANA.
The text was updated successfully, but these errors were encountered: