Angular service
BieService source
Description
Methods to interact with ALA BIE
Parameters
| Name | Type | Description |
|---|---|---|
| $http | service |
angular html service |
Methods
-
classification (lsid) -> Promise(List)
-
Get taxon classification information
Example
Input: ["http://id.biodiversity.org.au/instance/apni/852793"] Output: [{ "rank": "species", "rankID": 7000, "scientificName": "Eucalyptus subcaerulea", "guid": "http://id.biodiversity.org.au/instance/apni/852793", "url": "https://bie.ala.org.au/species/http://id.biodiversity.org.au/instance/apni/852793" }]Parameters
Name Type Description lsid String taxon LSID
Returns
Type Description Promise(List) classification
-
guidLookup (lsids) -> Promise(List)
-
Bulk taxon information lookup using LSIDs
Example
Input: ["http://id.biodiversity.org.au/instance/apni/852793"] Ouput: [{ "guid": "http://id.biodiversity.org.au/instance/apni/852793", "name": "Eucalyptus subcaerulea", "scientificName": "Eucalyptus subcaerulea", "author": "K.D.Hill", "nameComplete": "Eucalyptus subcaerulea K.D.Hill", "rank": "species", "kingdom": null, "phylum": null, "classs": null, "order": null, "family": null, "genus": null, "datasetName": "APC", "datasetID": "dr5214", "acceptedConceptGuid": "http://id.biodiversity.org.au/instance/apni/852793", "searchTerm": "http://id.biodiversity.org.au/instance/apni/852793" }]Parameters
Name Type Description lsids List List of LSIDs to search
Returns
Type Description Promise(List) search results that will contain taxon information if found
-
nameLookup (names) -> Promise(List)
-
Bulk LSID lookup using taxon names
Example
Input: ["Macropus"] Output: [{ "identifier": "urn:lsid:biodiversity.org.au:afd.taxon:b1d9bf29-648f-47e6-8544-2c2fbdf632b1", "guid": "urn:lsid:biodiversity.org.au:afd.taxon:b1d9bf29-648f-47e6-8544-2c2fbdf632b1", "parentGuid": "urn:lsid:biodiversity.org.au:afd.taxon:3281c966-5119-4146-89e5-3c874754f23a", "name": "Macropus", "nameComplete": "Macropus Shaw, 1790", "commonName": null, "commonNameSingle": null, "rank": "genus", "rankId": 6000, "acceptedConceptGuid": "urn:lsid:biodiversity.org.au:afd.taxon:b1d9bf29-648f-47e6-8544-2c2fbdf632b1", "acceptedConceptName": "Macropus", "taxonomicStatus": "accepted", "imageId": "274ed24e-481e-4532-bead-66fa479fb272", "imageUrl": "https://images.ala.org.au/image/proxyImage?imageId=274ed24e-481e-4532-bead-66fa479fb272", "thumbnailUrl": "https://images.ala.org.au/image/proxyImageThumbnail?imageId=274ed24e-481e-4532-bead-66fa479fb272", "largeImageUrl": "https://images.ala.org.au/image/proxyImageThumbnailLarge?imageId=274ed24e-481e-4532-bead-66fa479fb272", "smallImageUrl": "https://images.ala.org.au/image/proxyImageThumbnailLarge?imageId=274ed24e-481e-4532-bead-66fa479fb272", "imageMetadataUrl": "https://images.ala.org.au/ws/image/274ed24e-481e-4532-bead-66fa479fb272", "kingdom": "ANIMALIA", "phylum": "CHORDATA", "classs": "MAMMALIA", "order": "DIPROTODONTIA", "family": "MACROPODIDAE", "genus": null, "author": "Shaw, 1790", "linkIdentifier": null, "searchTerm": "Macropus" }]Parameters
Name Type Description names List List of taxon names to search
Returns
Type Description Promise(List) search results that will contain LSID if found