Skip to content
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

Variables for URI templates #115

Open
Akron opened this issue May 14, 2020 · 0 comments
Open

Variables for URI templates #115

Akron opened this issue May 14, 2020 · 0 comments
Assignees

Comments

@Akron
Copy link
Member

Akron commented May 14, 2020

Idea

With the mechanism of link assets, KorAP can also enable the use of URI templates in Kalamar. Similar to values that iframe-plugins can receive to get information about a query, a VC or a match, document URI templates should be filled with values for a certain document and/or match.

Example

A URI template stored per document is data:application/x.korap-link-template;title=OWID-Suche,https://www.owid.de/suche/wort?wort={match/orth:0}. When the link is embedded in the metadata view, the field can be filled by the match information, where {match:orth:0} is replaced by the first orth token of the match. Similar values could be {field:title} where the variable is replaced by the metadata field "title". Annotations may need to be retrieved additionally to fill the templates to make variables like {match:tt/l:0} possible.

The variable names should be accessible in the same way with match-based iframe-plugins. Actually it would be good to have an identical mechanism.

Goal

Simple connection between between KorAP and other linguistic ressources, like DGD, where linkage to passages would require access to token identifier.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants