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
Section-aware annotations for query/display #3961
Comments
I have to admit I'm not fully able to grasp what this request is about. Given the reference to "... particular subsection within which they occur ..." I would assume you mean the context in which a query is embedded such as in the following example where the
Aside from the technical issues, what is the use case, why would someone need that information? |
I was thinking along the lines of properties: =Animals=
== Domestication ==
...
[[Has topic::wild dogs| ]]
== Breeding ==
[[Has topic::domestic dogs| ]]
[[Has topic::cats| ]] So that an ask query could turn up something like:
Even better would be this (e.g., as part of a book): <div id="chapter6"></div>
<div id="page321"></div>
...
[[Has topic::wild dogs| ]]
<div id="chapter7"></div>
...
<div id="chapter8"></div>
<div id="page451"></div>
[[Has topic::domestic dogs| ]]
<div id="page452"></div>
[[Has topic::cats| ]]
I know the
|
I understand the request but unless you codify the position at the time of the input there is no way an annotation knows its embedding context (i.e. meaning knows which part of Furthermore, I wouldn't know a method to make such information available and besides the technical issue of finding the context, each such annotation would have to be stored as "subobject" to record the value and its context (aka. position) because a simple |
Ok, sure... Well, maybe as just a enhancement request if it becomes more technically feasible in the future? |
Unlikely, but I suggest you have a look at [0, 1] which uses named subobjects and can be used to identify a section context. [0] https://sandbox.semantic-mediawiki.org/wiki/Issue/3961 |
A helpful demo, thank you, and I guess with templates, one could more easily add subobjects for the pages or chapters along with topics, and if #3702 were implemented, I suppose pages could be nested inside chapters. |
As a possible enhancement (assuming it is not already possible), I'm wondering if it may be possible for annotations to store information, accessible upon query and result formatting, about the particular subsection within which they occur (or possibly relative to the nearest ID on the page, e.g., as added by the likes of a page-marker template preceding the annotation).
The text was updated successfully, but these errors were encountered: