ess-acppo / ag-bie

This repository has the code to the agriculture's implementation of ALA BIE
1 stars 4 forks source link

REST API / search page BNTi (NAQS NSL) identifiers #22

Open mbohun opened 6 years ago

mbohun commented 6 years ago

The BNTi (NAQS NSL) identifiers need verification and (most likely a BUG fix); example (https://dev1-ag-bie.oztaxa.com/species/tree/40017681/40017686#names):

screenshot from 2018-08-31 17-13-31

/ws/taxon/tree/40017681/40017686

curl -s 'https://dev1-ag-bie.oztaxa.com/ws/taxon/tree/40017681/40017686' | jq '.'
{
  "taxonConcept": {
    "guid": "tree/40017681/40017686",
    "parentGuid": "tree/40017681/40018919",
    "nameString": "Dilleniidae",
    "nameComplete": "Dilleniidae",
    "nameFormatted": "<span class=\"scientific-name rank-class\">Dilleniidae</span>",
    "author": null,
    "nomenclaturalCode": "ICBN",
    "taxonomicStatus": "accepted",
    "nomenclaturalStatus": null,
    "rankString": "subclass",
    "nameAuthority": "NAQS NSL",
    "rankID": 3200,
    "nameAccordingTo": "NAQS TopWatch database.",
    "nameAccordingToID": "http://id.biodiversity.org.au/reference/bpni/40009916",
    "namePublishedIn": null,
    "namePublishedInYear": null,
    "namePublishedInID": null,
    "taxonRemarks": null,
    "provenance": null,
    "infoSourceURL": "https://dev56-icn.oztaxa.com/nxl/mapper/name/bpni/40002683",
    "datasetURL": null,
    "taxonConceptID": "https://dev56-icn.oztaxa.com/nxl/mapper/instance/bpni/40009933",
    "scientificNameID": "https://dev56-icn.oztaxa.com/nxl/mapper/name/bpni/40002683"
  },
  "taxonName": [],
  "classification": {
    "superclass": "Magnoliidra",
    "kingdom": "Plantae",
    "kingdomGuid": "tree/40017681/40017682",
    "class": "Magnoliopsida",
    "phylum": "Tracheophyta",
    "classGuid": "tree/40017681/40018919",
    "superclassGuid": "tree/40017681/40018814",
    "phylumGuid": "tree/40017681/40018839",
    "scientificName": "Dilleniidae",
    "guid": "tree/40017681/40017686",
    "subclass": "Dilleniidae",
    "subclassGuid": "tree/40017681/40017686"
  },
  "synonyms": [],
  "commonNames": [],
  "imageIdentifier": null,
  "conservationStatuses": {},
  "extantStatuses": [],
  "habitats": [],
  "categories": [],
  "simpleProperties": [],
  "images": [],
  "identifiers": [
    {
      "identifier": "45C6B12F-FDCD-48D2-9B7E-F7D239C46FCB",
      "nameString": "GUID",
      "status": "current",
      "subject": null,
      "format": "guid",
      "provenance": null,
      "infoSourceName": "NAQS",
      "infoSourceURL": null,
      "datasetURL": null
    },
    {
      "identifier": "102357",
      "nameString": "Taxon",
      "status": "current",
      "subject": null,
      "format": null,
      "provenance": null,
      "infoSourceName": "NAQS",
      "infoSourceURL": null,
      "datasetURL": null
    },
    {
      "identifier": "102357",
      "nameString": "Taxon Concept",
      "status": "current",
      "subject": null,
      "format": null,
      "provenance": null,
      "infoSourceName": "NAQS",
      "infoSourceURL": null,
      "datasetURL": null
    },
    {
      "identifier": "tree/40017681/40017686",
      "nameString": "Taxon",
      "status": "current",
      "subject": null,
      "format": null,
      "provenance": null,
      "infoSourceName": "NAQS NSL",
      "infoSourceURL": "https://dev56-icn.oztaxa.com/nxl/mapper/name/bpni/40002683",
      "datasetURL": null
    },
    {
      "identifier": "https://dev56-icn.oztaxa.com/nxl/mapper/name/bpni/40002683",
      "nameString": "Scientific Name",
      "status": "current",
      "subject": null,
      "format": null,
      "provenance": null,
      "infoSourceName": "NAQS NSL",
      "infoSourceURL": "https://dev56-icn.oztaxa.com/nxl/mapper/name/bpni/40002683",
      "datasetURL": null
    },
    {
      "identifier": "https://dev56-icn.oztaxa.com/nxl/mapper/instance/bpni/40009933",
      "nameString": "Taxon Concept",
      "status": "current",
      "subject": null,
      "format": null,
      "provenance": null,
      "infoSourceName": "NAQS NSL",
      "infoSourceURL": "https://dev56-icn.oztaxa.com/nxl/mapper/name/bpni/40002683",
      "datasetURL": null
    }
  ],
  "variants": [
    {
      "nameString": "Dilleniidae",
      "nameComplete": "Dilleniidae",
      "nameFormatted": "<span class=\"scientific-name rank-class\">Dilleniidae</span>",
      "identifier": "102357",
      "nomenclaturalCode": "ICBN",
      "taxonomicStatus": "accepted",
      "nomenclaturalStatus": null,
      "nameAccordingTo": null,
      "nameAccordingToID": null,
      "namePublishedIn": null,
      "namePublishedInYear": null,
      "namePublishedInID": null,
      "nameAuthority": "NAQS",
      "taxonRemarks": null,
      "provenance": null,
      "infoSourceName": "NAQS",
      "infoSourceURL": null,
      "datasetURL": null,
      "priority": 4000
    },
    {
      "nameString": "Dilleniidae",
      "nameComplete": "Dilleniidae",
      "nameFormatted": "<span class=\"scientific-name rank-class\">Dilleniidae</span>",
      "identifier": "tree/40017681/40017686",
      "nomenclaturalCode": "ICBN",
      "taxonomicStatus": "accepted",
      "nomenclaturalStatus": null,
      "nameAccordingTo": "NAQS TopWatch database.",
      "nameAccordingToID": "http://id.biodiversity.org.au/reference/bpni/40009916",
      "namePublishedIn": null,
      "namePublishedInYear": null,
      "namePublishedInID": null,
      "nameAuthority": "NAQS NSL",
      "taxonRemarks": null,
      "provenance": null,
      "infoSourceName": "NAQS NSL",
      "infoSourceURL": "https://dev56-icn.oztaxa.com/nxl/mapper/name/bpni/40002683",
      "datasetURL": null,
      "priority": 5000
    }
  ]
}

/ws/childConcepts/tree/40017681/40017686

curl -s 'https://dev1-ag-bie.oztaxa.com/ws/childConcepts/tree/40017681/40017686' | jq '.'
[
  {
    "guid": "tree/40017681/40024350",
    "parentGuid": "tree/40017681/40017686",
    "name": "Batales",
    "nameComplete": "Batales",
    "nameFormatted": "<span class=\"scientific-name rank-order\">Batales</span>",
    "author": null,
    "rank": "order",
    "rankID": 4000
  },
  {
    "guid": "tree/40017681/40024351",
    "parentGuid": "tree/40017681/40017686",
    "name": "Capparales",
    "nameComplete": "Capparales",
    "nameFormatted": "<span class=\"scientific-name rank-order\">Capparales</span>",
    "author": null,
    "rank": "order",
    "rankID": 4000
  },
  {
    "guid": "tree/40017681/40024352",
    "parentGuid": "tree/40017681/40017686",
    "name": "Dilleniales",
    "nameComplete": "Dilleniales",
    "nameFormatted": "<span class=\"scientific-name rank-order\">Dilleniales</span>",
    "author": null,
    "rank": "order",
    "rankID": 4000
  },
  {
    "guid": "tree/40017681/40024353",
    "parentGuid": "tree/40017681/40017686",
    "name": "Ebenales",
    "nameComplete": "Ebenales",
    "nameFormatted": "<span class=\"scientific-name rank-order\">Ebenales</span>",
    "author": null,
    "rank": "order",
    "rankID": 4000
  },
  {
    "guid": "tree/40017681/40024354",
    "parentGuid": "tree/40017681/40017686",
    "name": "Ericales",
    "nameComplete": "Ericales",
    "nameFormatted": "<span class=\"scientific-name rank-order\">Ericales</span>",
    "author": null,
    "rank": "order",
    "rankID": 4000
  },
  {
    "guid": "tree/40017681/40024355",
    "parentGuid": "tree/40017681/40017686",
    "name": "Lecythidales",
    "nameComplete": "Lecythidales",
    "nameFormatted": "<span class=\"scientific-name rank-order\">Lecythidales</span>",
    "author": null,
    "rank": "order",
    "rankID": 4000
  },
  {
    "guid": "tree/40017681/40024356",
    "parentGuid": "tree/40017681/40017686",
    "name": "Malvales",
    "nameComplete": "Malvales",
    "nameFormatted": "<span class=\"scientific-name rank-order\">Malvales</span>",
    "author": null,
    "rank": "order",
    "rankID": 4000
  },
  {
    "guid": "tree/40017681/40024357",
    "parentGuid": "tree/40017681/40017686",
    "name": "Nepenthales",
    "nameComplete": "Nepenthales",
    "nameFormatted": "<span class=\"scientific-name rank-order\">Nepenthales</span>",
    "author": null,
    "rank": "order",
    "rankID": 4000
  },
  {
    "guid": "tree/40017681/40024358",
    "parentGuid": "tree/40017681/40017686",
    "name": "Primulales",
    "nameComplete": "Primulales",
    "nameFormatted": "<span class=\"scientific-name rank-order\">Primulales</span>",
    "author": null,
    "rank": "order",
    "rankID": 4000
  },
  {
    "guid": "tree/40017681/40024359",
    "parentGuid": "tree/40017681/40017686",
    "name": "Salicales",
    "nameComplete": "Salicales",
    "nameFormatted": "<span class=\"scientific-name rank-order\">Salicales</span>",
    "author": null,
    "rank": "order",
    "rankID": 4000
  },
  {
    "guid": "tree/40017681/40024360",
    "parentGuid": "tree/40017681/40017686",
    "name": "Theales",
    "nameComplete": "Theales",
    "nameFormatted": "<span class=\"scientific-name rank-order\">Theales</span>",
    "author": null,
    "rank": "order",
    "rankID": 4000
  },
  {
    "guid": "tree/40017681/40024361",
    "parentGuid": "tree/40017681/40017686",
    "name": "Violales",
    "nameComplete": "Violales",
    "nameFormatted": "<span class=\"scientific-name rank-order\">Violales</span>",
    "author": null,
    "rank": "order",
    "rankID": 4000
  }
]
mbohun commented 6 years ago

@pmcneil asked/noted: "I hate to ask, but why does this link to a name not the actual tree element is it a link of? also you can see everything in your BNTi looking at this : https://dev56-icn.oztaxa.com/nxl/services/rest/treeElement/40017681/40017682" selection_161

moziauddin commented 4 years ago

This is still an issue. Need to come up with a plan to address how the identifiers will look in NXL editors goinng into the BIE