Including resource previews in annotations #257
|
The data model indeed does not deal with the ways implementation interact with the user, including the way the information is presented. This feature of the spec was, I believe, deliberately chosen as a separation of concerns. I would be very uneasy opening this issue at this point (let us remember that we are planning for CR, which also means a feature freeze). Finding a consensus on what the best way is to encode this feature, what other, UI specific features could/should be available (e.g., how do I control the presentation of an annotation that the data model includes as pure text?), etc, is not something we can decide at this point. If there is a consensus that the data model should include UI specific features, that is definitely a version 2 issue. My proposal is to postpone this issue for version 2. |
|
I understand your concerns regarding the CR. However, my claim is that this is a "mandatory" functionality for implementations. This means, that each implementation will need to extend the annotation serialization in a way that is not standardized. |
Having a living document, in more general manner, on implementation experiences and possible V2 features is a good idea in any case. We will have to have a discussion, when the time comes, to set up some sort of a 'life after Rec' mechanism exactly for these purposes. This is a clear possible topic. But, for now, I would propose to set this issue as postponed. |
|
+1 to postpone -- we don't know what information is required for clients to display a preview yet, and we can both find that out and already implement it via extensions. |
|
In view of the last comment from @gsergiu, shouldn't a reference be added to the CR? Ie, should this issue be added to the "V1 CR" milestone? @azaroth42 ? @tcole3 |
The presentaion of Annotations (in client applications) to end users needs to be based on human readable information insted of URIs.
For example, when the Resources of some Annotation include the following Wikidata URI
https://www.wikidata.org/wiki/Q43715, at least the name of pe person (in this case "Vlad Tepes"), and eventually a depiction ( in this casehttps://commons.wikimedia.org/wiki/File:Vlad_Tepes_coloured_drawing.png) should be displayed to the end users.The generation of "previews" needs to be performed at creation time, either by client or by server, so that the retrieval of annotations and presentation of annotations should require only one http request.
(This is especially important for annotations with multiple bodies and/or multiple targets)
The current specifications doesn't make any recommendations about how to include these previews in the Annotation serialization, even if the dc and foaf namespaces are already included in the
@context1 . One possibility of including the previews is to embed them in the Resource Serialization like:
and
respectively.
2 . Another posibility that would reduce verbosity is to use an own field for resourcePreview(s), like
(PS: I didn't check the full syntactic correctness from the RDF perspective, but this can be done when the functionality is accepted for integration in the specifications)
So ... the two questions I have:
Br,
Sergiu