jjrom / resto Goto Github PK
View Code? Open in Web Editor NEWA metadata catalog and search engine for geospatialized data
License: Apache License 2.0
A metadata catalog and search engine for geospatialized data
License: Apache License 2.0
Update README to tell so
Location is not detected with "de" ('in' equivalent) modifier. Apparently this is a regression introduced by previous commit
Assume the query "In the town of Lota". Analyzer detects two locations "in the town" and "of Lota".
The first search for "the-town" with no result and then "the" which appears to be a toponym in Pakistan.
General handling should be : never search location if remaining toponym name is a stop word
Operator for dc:date (i.e. updated) filter is '='. It should be '>=' since a request on the updated date should return all products that have been inserted after the updated date
$RESTO_HOME/_install/createAdminUser.sh -u admin -p mypass
INSERT 0 1
$RESTO_HOME/_install/createAdminUser.sh -u admin_resto -p mypass
ERROR: duplicate key value violates unique constraint "users_activationcode_key"
DETAIL: Key (activationcode)=(41b95ca5************b1fa5823a529c74a) already exists.
For instance "Search for all imagery" is incorrectly processed because "for all imagery" is understood as "for all" (location) and "imagery" (keyword).
Add 'of' as a synonym of 'with' in quantityModifier
Set 3 different precisions for polygon simplification(i.e. for continents, countries and states)
Refactor of QueryAnalyzer in 2.0RC1 broke the detection of multiple word keywords. For instance, in the sentence "Volcano eruption in Villarrica last month" - "Volcano eruption" is not detected. As a consequence, "Volcano" is the location and Villarica is discared without being detected
When DELETE a non existing collection, resto returns a {"ErrorMessage":"instantiate - Class name is not set","ErrorCode":500} instead of a 404 Not Found
Add "to" to noise words otherwise it is detected as a toponym in last pass
Modify iTag module to handle iTag v3.0RC1+ new interface
Both queries are detected as "earthquake" but the latter indicated "de terre" as NOT_UNDERSTOOD which is obviously not the case
Problem in WhenExtractor / extractDuration() function - it should return null when duration is not valid (currently it returns an incomplete duration)
"last year" is detected unless a non modifier word directly follows the sentence (e.g. "last year and next month")
Sentences like "vers Toulouse" are note understood. "vers" should be added to the french locationModifiers keywords as a synonym of "in"
For consistency, year:XXXX should be replaced by time:start/time:end if no season:YYYY keyword is present
Typo in https://github.com/jjrom/resto2/blob/master/include/resto/Routes/RestoRoutePUT.php#L137 : assertion is always false which to a 404 error everytime !
Currently license are per collection (i.e. each product within a collection share the same license).
However, in the frame of Recovery Observatory project, one collection should contain products with different licences.
This update implies :
Critical vulnerabilities was found in several JSON Web Token libraries (see https://auth0.com/blog/2015/03/31/critical-vulnerabilities-in-json-web-token-libraries/).
The current version of php-jwt library is compromised. Upgrade to v2.0 is mandatory
The download link is missing a '/' between the collection name and the feature identifier (same problem for feature links)
Not easy to solve...
The file deploy.sh contains references to old code which result in (non blockin) errors message
With the upgrade to iTag 3.0 relative location are stored in the database
Consecutive '/' character is found between resto endpoint and 'collections'. For instance http://localhost/resto//collections/...
When searching for "with something" and "something" is not a valid keyword, then words should be marked as processed and NOT_UNDERSTOOD.
This is not the case currently - as a consequence "something" is processed afterward by the WhereProcessor leading to incorrect results
Only instrument and platform are supported by QueryAnalyzer - should add productType
This function contains duplicated code
Some french words are noted 'en' instead of 'fr' within generalKeywords.sql file
Third party library JWT uses non standard exception - to be replaced by UnexpectedValueException instead of importing these non standard exception
To ease administration module, Function_rights/getFullRights and Function_rights/getRights should return null instead of array with null values
The usage text is ambiguous
The endpoint /collections/:collection/:something.json returns the collection description. It should returns an HTTP 404 error instead
Search on "texas" would propose both toponyms and state. Search on "texas, usa" only returns toponyms and no more state.
on line 72
Notice: Undefined index: email in /Users/jrom/Devel/resto2/include/resto/RestoUser.php</b
on line 76
Notice: Undefined index: groupname in /Users/jrom/Devel/resto2/include/resto/RestoUser.php
on line 76
Notice: Undefined index: email in /Users/jrom/Devel/resto2/include/resto/RestoCart.php</b
on line 50
The sha1(...) functions is called in several part within the code. Proposal to move this function to RestoUtil so it could be easily upgraded to other hashing algorithms
E.g. "on coastal area" - by the way add "area" to noisy words
With the following query : http://localhost/resto2/api/collections/RO/search.json?q=haiti
I get the following answer (only partial answer is quoted here) :
query: {
searchFilters: {
searchTerms: ""
},
analysis: {
query: "haiti",
language: "en",
analyze: {
What: [ ],
When: [ ],
Where: [ ],
Errors: [
{
error: "LOCATION_NOT_FOUND",
message: "haiti"
}
]
},
processingTime: 0.0031042098999
},
processingTime: 0.00775694847107
},
I see this in the logs
[09-Apr-2015 15:40:34 Europe/Paris] PHP Warning: pg_query(): Query failed: ERROR: function normalize(character varying) does not exist
LINE 1: SELECT name,countryname,normalize(countryname) as countrynor...
^
HINT: No function matches the given name and argument types. You might need to add explicit type casts. in /Users/laurent.baresse/Documents/workspaces/workspaces/workspace_RO/LocalDeploy/resto2/include/resto/Modules/Gazetteer.php on line 296
[09-Apr-2015 15:40:34 Europe/Paris] PHP Warning: pg_fetch_assoc() expects parameter 1 to be resource, boolean given in /Users/laurent.baresse/Documents/workspaces/workspaces/workspace_RO/LocalDeploy/resto2/include/resto/Modules/Gazetteer.php on line 297
[09-Apr-2015 15:40:34 Europe/Paris] PHP Warning: pg_query(): Query failed: ERROR: function normalize(character varying) does not exist
LINE 1: SELECT name,countryname,normalize(countryname) as countrynor...
^
HINT: No function matches the given name and argument types. You might need to add explicit type casts. in /Users/laurent.baresse/Documents/workspaces/workspaces/workspace_RO/LocalDeploy/resto2/include/resto/Modules/Gazetteer.php on line 296
[09-Apr-2015 15:40:34 Europe/Paris] PHP Warning: pg_fetch_assoc() expects parameter 1 to be resource, boolean given in /Users/laurent.baresse/Documents/workspaces/workspaces/workspace_RO/LocalDeploy/resto2/include/resto/Modules/Gazetteer.php on line 297
[09-Apr-2015 15:40:34 Europe/Paris] PHP Warning: pg_query(): Query failed: ERROR: function normalize(character varying) does not exist
LINE 1: SELECT admin, normalize(admin) as normalized, continent, ST_...
^
HINT: No function matches the given name and argument types. You might need to add explicit type casts. in /Users/laurent.baresse/Documents/workspaces/workspaces/workspace_RO/LocalDeploy/resto2/include/resto/Modules/Gazetteer.php on line 489
[09-Apr-2015 15:40:34 Europe/Paris] PHP Warning: pg_fetch_assoc() expects parameter 1 to be resource, boolean given in /Users/laurent.baresse/Documents/workspaces/workspaces/workspace_RO/LocalDeploy/resto2/include/resto/Modules/Gazetteer.php on line 490
Currently only SH256 encrypted JSON Web Tokens are supported (this is hardcoded in the call to JWT::decode within RestoContext decode function). It would be better to support a list of encryption methods stored within the config.php file instead.
During location detection process, if first word is a stop word discard it unless it is a part of the location name (e.g. "The Hague"). For instance in french "near Toulouse" would be "près (de) Toulouse". In this case "de" should be discarded (i.e. stop word). However in "near the Hague", "the" should not be discarded since it is a part of the city name.
The keywords property in iTag v3.0 indicates :
The sentence "Images de cyclone durant l'été austral sur la zone côtière près de Sydney" is not completely understood (missing "cyclone", "austral", "zone côtière")
The query "in Toulouse last month" is incorrectly handled because "in ... last month" is detected as a whole by the WhenProcessor. Correct handling should be "in Toulouse" discarded by WhenProcessor then "last month" detected by WhenProcessor, then "in Toulouse" detected by WhereProcessor.
For instance the query "last month in Toulouse" is correctly analyzed
Currently WhenProcessor returns an array of properties - thus it cannot support multiple times query like "between may and june 2014 and between september and november 2015".
When should return an array of array in this case
Add 'dans' as a quantity modifier
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.