-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[names] Match OpenUp! functionality #1
Comments
For consistency the route will be set to |
OpenUp! throws a BadRequest error if the type parameter is not |
Sources might be deprecated or unreachable. Web services a prioritized because they are easier to implement and usually more up to date. |
JACQ internal common names are to be included as a data source. They are currently available from http://131.130.131.9/taxamatch/jsonRPC/json_rpc_taxamatchMdld.php using legacy code. This code will likely be migrated later. The data source uses JSON-RPC and receives POST requests in the format of {
"id": 1,
"method": "getMatchesService",
"params": [
"vienna",
"Cynodon dactylon",
{
"includeCommonNames": true
}
]
} the result for this particular request looks like this (only one common name is included here): {
"id": 1,
"result": {
"error": "",
"result": [
{
"searchtext": "Cynodon dactylon",
"searchtextNearmatch": "",
"rowsChecked": 33900,
"type": "multi",
"database": "freud",
"includeCommonNames": true,
"searchresult": [
{
"genus": "Cynodon",
"distance": "0",
"ratio": 1,
"taxon": "Cynodon Rich. (Poaceae)",
"ID": "12747",
"taxonID": "21179",
"family": "Poaceae",
"species": [
{
"name": "dactylon",
"distance": 0,
"ratio": 1,
"taxon": "Cynodon dactylon (L.) Pers.",
"taxonID": "1753",
"family": "Poaceae",
"syn": "",
"synID": 0,
"commonNames": [
{
"id": "11127",
"name": "مرغ",
"language": "fas",
"geography": "Islamic Republic of Iran, Iran (independent political entity: country, state, region,...), (, Iran,IR, , 00)",
"period": "recent",
"reference": "Mozaffarian, V. (2007): 1-671; index."
}
]
}
]
}
]
}
]
},
"error": null
} |
Meertens KNAW (Pland) returns either as a website or a serialized PHP array. Libraries to deserialize PHP in Java are rare and mpstly outdated. The most popular seems to be Pherialize which has not been updated in 6 years. |
Both Artsdatabanken and Dyntaxa are providing SOAP endpoints which are hard to use and as it seems poorly documented too. Using WSDL files to generate code is recommended but adds a huge amount of complexity for an otherwise simple task. |
Sources without endpoint are to be sourced exclusively from cache as stated in #15. |
Dyntaxa endpoint was implemented as follows in OpenUp!: https://github.com/wkollernhm/openup/blob/master/protected/components/Sources/DyntaxaSe.php |
Many static source tables already used in OpenUp! do not have a unique combination of columns to use for identification. In order to use those tables for JPA mapping an alter table tbl_source_{table_name}
add id int not null auto_increment primary key; The text in braces This change is required for the following OpenUp! tables:
Although these changes do not lead to possible data loss, it might be a good idea to backup the OpenUp! database before using its sources and caches directly. mysqldump --user={user} --password={password} --host {host} {database} > {database}.sql 2020-05-27: The remote tables have been altered accordingly. In case of a static source update they will have to be updated again manually. |
Regarding test it might be a good idea to make a list of query parameters to test specific common name sources. For static sources they can be looked up from the database. The following scientific names are found in multiple Web services:
|
defaultTypes
The text was updated successfully, but these errors were encountered: