SciGraph / golr-loader

Convert SciGraph queries into json that can be loaded by Golr
Apache License 2.0
1 stars 3 forks source link

Add edge label to evidence graph #15

Closed kshefchek closed 7 years ago

kshefchek commented 8 years ago

It would be useful to have edge labels available when creating visuals of an evidence graph.

Getting labels for edges is currently a two step process: Get the iri for an edge Find the node with the same iri property and get its label

Two ideas:

  1. Add label property to edges for whole graph
  2. Add labels only to evidence graph (as json) in golr json
jnguyenx commented 8 years ago

Some thoughts:

We can retrieve this information when the golr-loader runs, no need to add this in the graph itself.

The bbop graph json format has a field meta for edges, we can fiddle the label there.

cmungall commented 8 years ago

You could also return the object properties as nodes

On Tuesday, June 28, 2016, Jeremy notifications@github.com wrote:

Some thoughts:

We can retrieve this information when the golr-loader runs, no need to add this in the graph itself.

The bbop graph json format has a field meta for edges, we can fiddle the label there.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/SciGraph/golr-loader/issues/15#issuecomment-229164039, or mute the thread https://github.com/notifications/unsubscribe/AADGOWP_gqOcaojlHqc9ik2_d1qDI5ysks5qQXyxgaJpZM4Iq56U .

jnguyenx commented 7 years ago

https://github.com/SciGraph/SciGraph/commit/a07566543ff84d978bff377c3a4d374637abfe69