-
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
Different relations for linking to manifest and primary entry page? #448
Comments
Good catch! my current take on it, but I am open to alternatives, is
|
I perceive that there is a move from what was agreed before = the possibility to link WP resources to the manifest, to a new type of linkage = the possibility to link WP resources to the PEP. I agree with this move, as the agreement is that the PEP is the entry point of the WP, so it makes sense to use it as a "boot record". But I don't remember it was explicitly agreed by the WG ; and modifications have to be applied to some wording in the spec, e.g. 3.3.3 "Although any resource can link to the manifest, ..." |
I'm just worried about using a generic term because: 1) it won't ever be able to convey that the resource belongs to a publication (e.g., it will be ambiguous when a page is referring to its actual site home page or a publication); and 2) I'm not sure whether the idea that a resource can belong to multiple publications meshes with the idea that a page has multiple home pages or start pages (i.e., will multiple links of a generic type be ignored). |
I think we should have a clear idea why we need those back links in the first place? What is the use case from a WP point of view to have such link elements? |
Given that user agents don't generally expose links, I wouldn't put much faith in that happening. But, where it seems like it might be useful would be for SEO (e.g., so that a search result could list what publications a resource belongs to). Maybe that could just be done with isPartOf, which also seems to be in schema.org/CreativeWork? The author could wire the semantic up onto a hyperlink for the user. |
@mattgarrish just to understand...
Meaning that the author of a, say, chapter, could put a standard schema.org data, in JSON-LD, RDFa, or microdata, using |
Exactly. It could just be placed on an explicit link back to the PEP, like so (hoping I have this right):
|
Which just shows that schema.org does have a bunch of things to offer... Should be part of some best practices doc, I guess. Or do think it should be part of the main spec? |
Ya, I think somewhere in between -- maybe a note that resources that need to be linked back to the PEP should use available web mechanisms, or something vague along those lines, with the actual practice in a BP doc. Would be useful in the section where we limit linking to the manifest to the PEP. If we're not expecting any behaviour from it, we shouldn't formally introduce anything in the specification. The world changes quickly... |
The point of the Imagine the following: GET /moby-dick/chapter1.html
<html>
<link rel="publication" href="/moby-dick/">
</html> GET /moby-dick/
<html>
<script type="application/ld+json" id="wpub">
{"...publication...": "...manifest..."}
</html> Discovering the publication from The manifest being external from the publication's "brain" is what introduces the weird indirection that seems to keep everyone confused. Because you then move from discovery (from chapter1) => found (publication address) => discovery (manifest) => found (publication address) => ...rinse and repeat. To accommodate that weird indirection, the manifest could get its own So, the embedded manifest would change to: GET /moby-dick/
<html>
<link rel="publication-manifest" href="wpub.json">
</html>
|
That's a theory for it, sure, but the way I read Ivan's question is whether there's any reality for it at this time. The specification doesn't detail anything more than how to harvest information from the manifest, and we have a semantic to locate it. Where we agree is that if we end up with two semantics, we're going down entirely the wrong road. I can readily imagine the confusion we'll cause by only allowing one page to reference the manifest while every other has to reference the page that references the manifest. But embedding doesn't remove the need for the entry page to have to identify itself as having a manifest. I don't see the day coming when user agents will parse the data of any script tag containing json-ld data anywhere on the web just to see if there might be a manifest inside. There still needs to be a trigger, even if it's a self-reference. |
I'm sure this was discussed before, but I can't find the right combination of keywords to locate the discussion.
At any rate, our algorithm requires that processing of the manifest begin with the primary entry page, so we have a significant distinction between:
I clarified in one of the last PRs that only the primary entry page can link to the manifest, and added a placeholder that other resources have to link to the primary entry page. But that still leaves the question, what is the expected relation for linking to the PEP:
The text was updated successfully, but these errors were encountered: