SpeciesFileGroup / symbiotaTaxonWorks

A repo for spamming ideas about integrating the two efforts.
1 stars 0 forks source link

Describe Symbiota MapServer parameterized search #9

Open mjy opened 7 years ago

mjy commented 7 years ago

I.e. what are the parameter names the geoJSON returning form.

bdbrandt commented 7 years ago

The DwC parameters that are relied on as query parameters in thee spatial module include: decimalLatitude, decimalLongitude, country, stateProvince, county, municipality, locality, year, month, day, eventDate, recordedBy, recordNumber, catalogNumber, and otherCatalogNumbers.

In addition to these, there is the capacity to limit record returns by a collection, or set of collections, within the portal. The parameter used for this is the Symbiota-specific field collid which is the primary key for the collections table in the database. This parameter could be easily reconfigured to be the concatenation of the DwC fields institutionCode and collectionCode as both are maintained in Symbiota as well. Additionally, the parameters used for specifying taxonomic criteria rely on Symbiota-specific fields as well. Within Symbiota, there is the capacity to track parent-child relationships between taxa as well as acceptance relationships. These are both done by referencing the primary key (tid) for taxa within the main taxa table. So Symbiota-specific fields include tid, parenttid, and tidaccepted, but these can supplanted by their equivalences in universal identifiers for the taxa. There is also the Symbiota-specific field of sciname used for querying name parameters. This field is the equivalent of the DwC field scientificName, but without the authorship. So it could be replaced with a concatenation of genus, specificEpithet, and infraspecificEpithet in DwC. In addition the DwC family and taxonRank fields are also used. Finally, there are also the Symbiota-specific localitySecurity and localitySecurityReason fields which are designed to flag and provide explanation for records that have sensitive information regarding the locality.

The GeoJSON output that the spatial module is developed to accept includes the DwC fields: catalogNumber, otherCatalogNumbers, family, scientificNameAuthorship, identifiedBy, dateIdentified, typeStatus, recordedBy, recordNumber, eventDate, year, month, day, habitat, associatedTaxa, country, StateProvince, county, municipality, minimumElevationInMeters, maximumElevationInMeters, InstitutionCode, CollectionCode, and family. There are also the following Symbiota-specific fields that are included, but could be excluded: sciname, tidinterpreted, displayDate, cultivationStatus, localitySecurity, localitySecurityReason, labelProject, CollType, CollectionName, and thumbnailurl. These Symbiota-specific fields can easily be filtered out of the return, but the spatial module is also designed to ignore them if they are not included.

Next step will be to setup a stand-alone version of the spatial module which is limited to DwC-specifc fields both in query parameters and those returned.

Does TW contain equivalences of any of the Symbiota-specifc fields listed above?

mjy commented 6 years ago

@tuckerjd can you please create google Sheet, or table inline here, and to the best of your ability match TW attributes (draw primarily from CollectionObject, CollectingEvent, Georeference and DwcOccurence) to those listed by @bdbrandt?

TuckerJD commented 6 years ago