NNexus - Procedural API for NNexus indexing, auto-linking and annotation.
NNexus
use NNexus; $annotated_text = linkentry($text,%options); $invalidated_urls = indexentry($url,%options);
This class provides a high-level user-facing procedural API for NNexus processing. Useful for Perl scripting, for example:
perl -MNNexus -e 'print linkentry(join("",<>))' < example.html > linked_example.html
$annotated_text = linkentry($text,%options);
Wikifies/auto-links the provided $text against the default NNexus database, unless otherwise specified. The accepted %options are all accepted options of the NNexus::Job new constructor.
$invalidated_urls = indexentry($url,%options);
Indexes a new entry located at the provided $url, invalidates the current auto-link jobs known to the default database and returns the entries to be invalidated. The accepted %options are all accepted options of the NNexus::Job new constructor.
NNexus::Job, nnexus, NNexus::Manual
Deyan Ginev <d.ginev@jacobs-university.de>
Research software, produced as part of work done by the KWARC group at Jacobs University Bremen. Released under the MIT License (MIT)
To install NNexus, copy and paste the appropriate command in to your terminal.
cpanm
cpanm NNexus
CPAN shell
perl -MCPAN -e shell install NNexus
For more information on module installation, please visit the detailed CPAN module installation guide.