This is a very basic prototype written just to support a proof of concept with GBIF's pipelines data processing backend.
- Run
mvn clean install
to build your application - Download a pre-built name matching index (e.g https://archives.ala.org.au/archives/nameindexes/latest/namematching-20190213.tgz), and unpackage zip or tar to
/data/lucene/namematching
- Start application with
java -jar target/ala-name-matching-service-1.0-SNAPSHOT.jar server config.yml
- To check that your application is running enter url
http://localhost:9180
- Test with
http://localhost:9179/api/search?q=Acacia
. The response should look similar to:
{
"success": true,
"scientificName": "Acacia",
"scientificNameAuthorship": "Mill.",
"taxonConceptID": "http://id.biodiversity.org.au/node/apni/6719673",
"rank": "genus",
"rankID": 6000,
"lft": 590410,
"rgt": 593264,
"matchType": "exactMatch",
"kingdom": "Plantae",
"kingdomID": "http://id.biodiversity.org.au/node/apni/9443092",
"phylum": "Charophyta",
"phylumID": "http://id.biodiversity.org.au/node/apni/9443091",
"classs": "Equisetopsida",
"classID": "http://id.biodiversity.org.au/node/apni/9443090",
"order": "Fabales",
"orderID": "http://id.biodiversity.org.au/node/apni/9443087",
"family": "Fabaceae",
"familyID": "http://id.biodiversity.org.au/node/apni/9443086",
"genus": "Acacia",
"genusID": "http://id.biodiversity.org.au/node/apni/6719673",
"species": null,
"speciesID": null,
"vernacularName": "Acacia",
"speciesGroup": [
"Plants"
],
"speciesSubgroup": []
}
To see your applications health enter url http://localhost:9180/healthcheck
http://localhost:9179/search?q=macropus+rufus
docker build -f docker/Dockerfile . -t ala-namematching-service:v20200214-2