SynBioHub / synbiohub3

Web application enabling users and software to browse, upload, and share synthetic biology designs. This repository is a redesign of the original SynBioHub using React and Spring Boot.
BSD 2-Clause "Simplified" License
11 stars 1 forks source link

Custom filters not working for custom namespaces #704

Closed cjmyers closed 1 month ago

cjmyers commented 3 months ago

Cannot filter by igem/cello/etc. properties

cjmyers commented 1 month ago

I was unable to filter with advanced search on dev2 these custom annotation fields for some reason

cl117 commented 1 month ago

image Additional search -> select igem:status -> error

cjmyers commented 1 month ago

Should try both logged in and out

Should add and remove filters

Should investigate the query sent when it showing that there are no results to make sure query is correct

Can also validate no results with same advanced search in SBH1

cl117 commented 1 month ago
WHERE {
       ?subject igem:status <http://wiki.synbiohub.org/wiki/Terms/igem#status/Planning> . FILTER ((CONTAINS(lcase(?displayId), lcase('gfp'))||CONTAINS(lcase(?name), lcase('gfp'))||CONTAINS(lcase(?description), lcase('gfp'))))

    ?subject a ?type .
    ?subject sbh:topLevel ?subject .
cl117 commented 1 month ago

I tried both login and logout. No errors. Local and dev2.

cl117 commented 1 month ago

logout: info: query:igem:status=http://wiki.synbiohub.org/wiki/Terms/igem#status/Deleted&gfp info: template: {"criteria":[" ?subject igem:status http://wiki.synbiohub.org/wiki/Terms/igem#status/Deleted . FILTER ((CONTAINS(lcase(?displayId), lcase('gfp'))||CONTAINS(lcase(?name), lcase('gfp'))||CONTAINS(lcase(?description), lcase('gfp'))))"],"offset":"","limit":" LIMIT 50","from":""}

login: info: query:igem:status=http://wiki.synbiohub.org/wiki/Terms/igem#status/Unavailable&gfp info: template: {"criteria":[" ?subject igem:status http://wiki.synbiohub.org/wiki/Terms/igem#status/Unavailable . FILTER ((CONTAINS(lcase(?displayId), lcase('gfp'))||CONTAINS(lcase(?name), lcase('gfp'))||CONTAINS(lcase(?description), lcase('gfp'))))"],"offset":"","limit":" LIMIT 50","from":"FROM https://synbiohub.org/public FROM https://synbiohub.org/user/Admin"}

cjmyers commented 1 month ago

Cannot reproduce