-
Notifications
You must be signed in to change notification settings - Fork 179
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
Citation Typing Ontology (CiTO) annotation support #420
Comments
Also linking an experimental repo where the CiTO info is added to the reference entry. It requires a second filter which is run after the citeproc processor completed its work. |
I did some initial testing with this version of I believe the issue is that the pattern used to find a CiTO property is The pattern
Input and output files (with I haven't tried running the cito filter in the Manubot build script or checked the filters in the example showing how to insert the CiTO properties in the bibliography. Does this seem promising? If so, what should we consider for next steps? I'll note that this adds the CiTO support per-reference instead of per-citation. Is that correct @tarleb? |
That is correct. I changed the behaviorof the filters in the jcheminf repo such that it's per citation. Thanks for debugging the pattern, I should make that change in pandoc-scholar as well. |
I'd love to see this fully supported in Manubot. Is there anything that one could be of help with? |
One approach would be to try to integrate the existing cito lua filter as discussed above. However, I have two worries about that approach:
So a precursor to contextualizing citations with CiTO would be to figure out how we can pass citation prefixes and suffixes into the pandoc HTML output. Some initial notes on this at #423 (comment). I am not currently sure what happens to citation prefix/suffixes... they might just drop out in the pandoc conversion. If we figure that out, we could then make a filter that inteprets CiTO prefixes/suffixes and validates and renders them. |
Totally agree. In the example the bibliography contains all different uses. So if I cite For the Manubot HTML output I guess would be nice if we can add a
Not sure if I'd prefer the suffix. I like |
Agreed, but I think you mean the span elements that contain the citations rather than the references. For example this: Line 253 in 08a71d6
One challenge appears to be how multiple citations are encoded like Line 261 in 08a71d6
So perhaps we'd need something like
No hard opinion on my end. My motivation is to do what will be most compatible with the Pandoc syntax and design. Including the cito term in the citation key would mean that it might be easier for our pandoc-manubot-cite filter to add CiTO support, since we're already extracting and updating citation keys. We'd just need to strip the CiTO portion and then see if there is a way to put that in the HTML output. |
Any advances on the topic? Happy to crash test if needed |
In case it might help: |
@egonw Had a look at it, nice because they include the insert cito in biblio afterwards! I was only able to make it run correctly with the short IDs generated by manubot to avoid clashes...
@larsgw any hints on this as you helped with the lua filters implementation? |
|
Any news on this? |
Fix input parsing when the second part includes a colon. See manubot/rootstock#420 (comment)
On the Manubot side, no one has been actively working on this. We like the idea but don't have a lot of time for developing new features right now. |
Fix input parsing when the second part includes a colon. See manubot/rootstock#420 (comment)
Fix input parsing when the second part includes a colon. See manubot/rootstock#420 (comment)
This issue summarizes some of the discussion in a recent Twitter thread about options for supporting CiTO annotations in Manubot.
The most promising lead is the cito lua filter for pandoc. It uses a colon-separated prefix for the CiTO annotation, for example
[@cites_as_evidence:Li95]
, so we'll have to see how that interacts with Manubot's identifier prefixes, which are also colon-separated prefixes. Manubot's recent ability to infer the prefix further complicates the pattern matching. If the cito filter is run first and no cito properties overlap with the identifiers Manubot supports, there's a chance it could work without modifications.A pandoc-scholar example demonstrates the usage of this filter.
The text was updated successfully, but these errors were encountered: