Coder Social home page Coder Social logo

Comments (13)

dosumis avatar dosumis commented on July 27, 2024

Any system for hyperlinking has to be inconspicuous - text should be easily readable in raw marked up form as most consumers of ontology won't turn markup to hyperlinks.

There is a long standing proposal for marking up text in defs for hyperlinks: text goes in backticks
`` and are followed by ID in brackets. But perhaps it would make more sense to use Markdown. We could potentially use this to update names in defs, but it often makes sense to use shorter names in defs than the official ones.

from vfb.

Robbie1977 avatar Robbie1977 commented on July 27, 2024

Without markup or some sort we could only feasibly resolve the abbreviations.

@dosumis would it be feasible to append instances of names and synonyms found in text fields with their FBbt ref in brackets during OWL creation? I could then make these links quite quickly.

from vfb.

Robbie1977 avatar Robbie1977 commented on July 27, 2024

It would also be nice to still mark the name so it could be marked as non-translatable for google #237

from vfb.

dosumis avatar dosumis commented on July 27, 2024

We have almost 2000 classes with an OBO-style FBbt ID in brackets in the definition, following the name in some form in the text. In almost all cases, the name is not delimited. It wouldn't be a huge job to write a perl script that searched for matches to names (& synonyms?) of the term in the preceding text and delimited those found. The most sensible way to do this would be to use Markdown link syntax. => name or maybe name. We could covert to a full URL, but this wouldn't be great for readability.

I wouldn't be keen to mine the text for matches to term names/synonyms and then automatically generate links - as I don't think this will be sufficiently reliable. We could mine as a way of generating lists of suggestions for hyperlinking that could then be reviewed by a curator.

from vfb.

mmc46 avatar mmc46 commented on July 27, 2024

It would be good to hyperlink names and synonyms in text, but without adding FBbt ids or URLs to the text itself, please. That will make it hard to read the definition.

from vfb.

Robbie1977 avatar Robbie1977 commented on July 27, 2024

Just putting square brackets around all terms would be satisfactory to resolve although I'd be happier if we precalculated and put the FBbt in the OWL version of the text when it's created to reduce the live processing.

from vfb.

dosumis avatar dosumis commented on July 27, 2024

It would be good to hyperlink names and synonyms in text, but without adding FBbt ids or URLs to the text itself, please.

We already have almost 2000 classes with an OBO-style FBbt ID in brackets in the definition. Many of these are auto-rolled definitions, but some were manually added.

from vfb.

dosumis avatar dosumis commented on July 27, 2024

BTW - auto-rolled don't appear in the editor's file.

from vfb.

Robbie1977 avatar Robbie1977 commented on July 27, 2024

FBbt and also FBal all auto linked on the vfbdev site now.
Examples:
http://vfbdev.inf.ed.ac.uk/site/tools/anatomy_finder/index.htm?id=FBbt:00110858
http://vfbdev.inf.ed.ac.uk/site/tools/anatomy_finder/index.htm?id=FBbt:00110857

from vfb.

Robbie1977 avatar Robbie1977 commented on July 27, 2024

Would be nicer to read if I could put the links on the names and then remove the refs in brackets.

If we could possibly square bracket the name before (at least on the auto-rolled ones) this would result in a more readable output?

from vfb.

Robbie1977 avatar Robbie1977 commented on July 27, 2024

Also added FBti FBtp FBgn links - any more I should cover?

from vfb.

mmc46 avatar mmc46 commented on July 27, 2024

I meant to add any more FBids to the ones already there.

I think it's just missing FBim

to link to

http://flybase.org/reports/FBimXXXXXXX.html

I could try changing the brackets. @dosumis would know if it might break something.

from vfb.

dosumis avatar dosumis commented on July 27, 2024

Having the IDs in place and the names delimited in some way has two potential purposes. One is for hyperlinking, the other is that it gives us a way to keep names in text in sync. I'm not keen to remove the IDs in brackets as I'm not confident of automatically generating links based on lexical matching - given that names drift, and we often use shorter forms of names in text than when naming ontology classes.

If square brackets as delimiters are too distracting for consumers of the raw file, we could go with using backticks ( ` ) instead - as per the original proporal. I belive there are some OBO ontology dev groups who do this - most notably HPO.

from vfb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.