The NCBO Annotator allows you to get annotations for (biomedical) text from a number of standard ontologies. For instance, if I want to find the corresponding RadLex codes for ‘abdomen knee’, I can type them into the textbox, and restrict the ontology list to just RadLex. This manual approach works fine if you just want... Continue Reading →
Extracting RadLex codes and descriptions from ontology
I was trying to find a flat list of RadLex terms that just had the IDs and descriptions. You can easily browse RadLex using the RadLex Term Browser, but my requirement was to do a quick lookup using a local database. I couldn’t find something online that was readily available, so I wrote some code... Continue Reading →
Connecting to SQL Server from Java
Almost every time I try to connect to SQL Server from Java I end up hacking something together, like copy-pasting the connection string from an old project; then again, more often than not I end up getting some sort of error and spending quite sometime Googling. So I spent sometime trying to understand the different... Continue Reading →
Determining shortest distance between ontology concepts using Jena OntTools
For something I was trying to do, I wanted to determine the shortest distance between two concepts in an ontology. In some forum I was reading someone had suggested to use Jena’s findShortestPath() method. Couldn’t really find a solid example as to how this works, so here’s something that worked for me. May be there’s... Continue Reading →
Connecting to SQL Server using jTDS
There are a few posts around on the internet explaining how to connect to SQL Server from Java. The most popular is probably using the JDBC driver (http://msdn.microsoft.com/en-us/sqlserver/aa937724), but somewhere I read that for bulk insertions the jTDS driver (http://jtds.sourceforge.net/) is faster. I’m trying to insert some SNOMED related data into SQL Server (started with... Continue Reading →
Importing existing source code into Eclipse
This sounds like a trivial task, but I spent a good few hours reading various forums, blogs and other online material trying to find an answer to this, but I simply couldn’t! Now that I finally figured out how to do this, thought I’d write it up and hopefully someone will find this useful as... Continue Reading →
Weird behaviour in modal dialog with ActiveX controls
For a simple test program I was implementing, I had a couple of forms – Form 1 which had all the authentication stuff and Form 2 which had the ActiveX object. The idea was to show Form 2 once a user has successfully logged in. I had the following code in Form1: if (iSiteEntFrm ==... Continue Reading →