cidgoh / ontotrek

A 3d ontology visualizer focusing on OBOFoundry.org ontologies
GNU General Public License v3.0
6 stars 0 forks source link

Unable to render PATO ontology #21

Closed matnguyen closed 3 years ago

matnguyen commented 3 years ago

Is the PATO ontology .owl file misformed? The following error is obtained when trying to render it:

Uncaught TypeError: Cannot read property 'prefix' of undefined
    at development.js:154
    at updateObj (3d-force-graph.min.js:5)
    at 3d-force-graph.min.js:2
    at Array.forEach (<anonymous>)
    at 3d-force-graph.min.js:2
    at eu (3d-force-graph.min.js:2)
    at Au (3d-force-graph.min.js:5)
    at Function.update (3d-force-graph.min.js:5)
    at 3d-force-graph.min.js:2
    at c (3d-force-graph.min.js:2)
ddooley commented 3 years ago

Is this still an issue?

matnguyen commented 3 years ago

Yep it is

ddooley commented 3 years ago

Try changing code line conditional to: if (link.target && !link.target.prefix) { ----> never mind. I've added change to master.

ddooley commented 3 years ago

This is resolved on the surface, PATO renders now. We can find out later what condition was leading to a link not having an lookup-able target.