Overview

This is a continuation of the following article.

One of the features of LEAF-WRITER is described as follows:

the ability to look up and select identifiers for named entity tags (persons, organizations, places, or titles) from the following Linked Open Data authorities: DBPedia, Geonames, Getty, LGPN, VIAF, and Wikidata.

This feature uses libraries such as the following.

https://github.com/cwrc/wikidata-entity-lookup

I tried out this feature.

Usage

npm packages are published at the following locations.

https://www.npmjs.com/search?q=cwrc

Although not listed above, the target for this time is the following.

https://www.npmjs.com/package/wikidata-entity-lookup

Install it with the following command.

npmiwikidata-entity-lookup

wikidataLookup.findPerson can be executed as follows.

<ii}ccc}smnooo;/cptindunnnw}sr@oedaersssi)citrr:msitttkr;rpstfec:ieit-as:rqrsdspiwctisueeautlgiersptesatl>ankittrruratnoiEnriiylcLsgrdngiontho.=eat;nng=sov"tig:;=katat;r=ulsLysepu"otfr.eo{r<efskisf=i=eunt<>ntpgrEdru;in{Pepfntes>rgiruo>tslm(yot"[n;""](w)>qi;(uk[ei]rd)ya;.tvaa-leunet)i.ttyh-elno(o(krueps"u;lt:Entity[])=>{

Demo

I prepared an implementation example with Nuxt.

https://github.com/nakamura196/nuxt3-demo/blob/main/pages/wikidata-entity-lookup/index.vue

You can try it at the following URL.

https://nakamura196.github.io/nuxt3-demo/wikidata-entity-lookup

Summary

I hope this serves as a helpful reference.