huc-tapir-0.7.4 is not a library.
tapir -h
tapir
Text & Annotation Processor for Indexing Resources
Usage
)
)
) for
Example use in Makefile
:
tapir -h
Text & Annotation Processor for Indexing Resources
tapir [OPTIONS]
Options:
-i, --input <INPUT> Input W3C Web Annotation file (in JSONL) [default: stdin]
-o, --output <OUTPUT> Output ElasticSearch index file (in JSON) [default: stdout]
-f, --with-field <FIELDS> Add field to index. Use 'key=value' for custom mapping, or 'key' to use the key as both field name and value
-m, --with-mention <MENTIONS> Extract 'mentionedBy' on Reference annotations having, e.g., body.subtype=='BibReference#vangogh'
-p, --pretty Pretty print the generated ElasticSearch index file
-q, --quiet Quiet mode
-w, --workdir <WORKDIR> Workdir containing extracted text files (in TXT) for <input> [default: ./work]
-h, --help Print help
-V, --version Print version
work/%.index.json: work/%.webannotations.jsonl
tapir \
--with-field correspondent=participant \
--with-field correspondentId=participantId \
--with-field file=n \
--with-field location \
--with-field msId=identifier \
--with-field period=namedPeriod \
--with-field recipient \
--with-field sender \
--with-field title \
--with-mention vangogh \
--quiet \
--input $< \
--output $@