earthcube / facetsearch

This is the main code base for the EarthCube GeoCODES search interface. Issues with UI operation should be posted in the issue tracker here.
3 stars 2 forks source link

Better handle 'Other' JSONLD Not dataset or tools #82

Open valentinedwv opened 2 years ago

valentinedwv commented 2 years ago

Is your feature request related to a problem? Please describe. There are events and other types in the triple store, but no way to display in detail, if them if the come up. Also may need to better render them on the results page.

put 'Rolling Deck to Repository' in the search on dev to see 'event' records

Describe the solution you'd like Object that are not tools nor datasets should route to a page that displays the JSONLD, at a minimum. Might make some HTML rendering of the file... aka table of the keys, value, nested.

Describe alternatives you've considered Could write query to only retrieve datasets and tools.

valentinedwv commented 2 years ago

Digging in the results with Chrome developer tools and the VUE plug in: Looks like events from BCODMO have no title.

s3 endpoint:"/bcodmo/497be04a7604bf39efd97257954b71c2fe340f32" g: "urn:gleaner:milled:bcodmo:497be04a7604bf39efd97257954b71c2fe340f32"


{"0":0,"subj":"https://www.bco-dmo.org/deployment/654455","g":"urn:gleaner:milled:bcodmo:497be04a7604bf39efd97257954b71c2fe340f32","resourceType":"Event","name":"TN235","description":"<p>More information is available from the <a href=\"http://www.rvdata.us/catalog/TN235\" target=\"_blank\">Rolling Deck to Repository (R2R)</a>.</p>\n","placenames":[""],"kw":null,"disurl":[""],"score":"0.37888611415569196","s3endpoint":"/bcodmo/497be04a7604bf39efd97257954b71c2fe340f32"}```
valentinedwv commented 2 years ago

Datacatlog: {"10":10,"subj":"https://www.bco-dmo.org","g":"urn:gleaner:milled:bcodmo:","resourceType":"DataCatalog","name":"Biological and Chemical Data Management Office","description":"The BCO-DMO resource catalog offers free and open access to publicly funded research products whose field of study are biological and chemical oceanography.","placenames":[""],"kw":null,"disurl":[""],"score":"0.2886751345948129","s3endpoint":"/bcodmo/"}

valentinedwv commented 2 years ago

Research Project: {"8":8,"subj":"https://www.bco-dmo.org","g":"urn:gleaner:milled:bcodmo:","resourceType":"Research Project","name":"Biological and Chemical Data Management Office","description":"The BCO-DMO resource catalog offers free and open access to publicly funded research products whose field of study are biological and chemical oceanography.","placenames":[""],"kw":null,"disurl":[""],"score":"0.2886751345948129","s3endpoint":"/bcodmo/"}