Snow Owl® is a terminology server and a collaborative terminology authoring platform. The authoring platform maintains terminology artifacts developed by a team and supported by business workflows that are driven by external task management systems like Bugzilla and JIRA. With its modular design, the server can maintain multiple terminologies where new terminologies can be plugged-in to the platform. The functionality of Snow Owl is exposed via a REST API.
These instructions will get Snow Owl up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy Snow Owl on a live system.
From version 5.1.0, Snow Owl requires Java 8 update 102 or later.
Snow Owl is an Equinox-OSGi based server (using either Virgo or standalone OSGi). To develop plug-ins for Snow Owl you need to use Eclipse as IDE:
- Use latest Neon Eclipse IDE for Eclipse Committers: http://www.eclipse.org/downloads/packages/eclipse-ide-eclipse-committers/neon1a
Required Eclipse plug-ins (install the listed features):
Note: you may have to untick the Show only the latest versions of the available software checkbox to get older versions of a feature. Please use the exact version specified below, not the latest point release.
- Xtext/Xtend (http://download.eclipse.org/modeling/tmf/xtext/updates/composite/releases/)
- MWE 2 Language SDK 2.8.1
- Xtend IDE 2.8.4
- Xtext Complete SDK 2.8.4
- Optional: Maven integration (http://download.eclipse.org/technology/m2e/releases)
Make sure you have the following preferences enabled/disabled.
- Plug-in development API baseline errors is set to Ignored (Preferences > Plug-in Development > API Baselines)
- The Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-clean-plugin:2.5:clean type of errors can be ignored or changed to Warnings in Preferences->Maven->Errors/Warnings.
- Set the workspace encoding to UTF-8 (Preferences->General->Workspace)
- Set the line endings to Unix style (Preferences->General->Workspace)
- Make sure the Git line endings are set to input (Preferences->Team->Git->Configuration - add key if missing core.autocrlf = input)
- Create a prefetched target platform and copy the contents of the
target_platform_<version>directory under<eclipse_home>/target_platform. - (Re)Open Eclipse and find the
com.b2international.snowowl.server.target.updateproject - Open the file:
com.b2international.snowowl.server.local.target - Click on
Set as Target platform
- Find
com.b2international.snowowl.server.updateproject - Open
so_server.productfile, click onLaunch an Eclipse applicationand terminate it - Open Run Configurations and find the launch config
so_server.product - Open Arguments tab
- Add
-Djetty.home.bundle=org.eclipse.jetty.osgi.bootto the end of VM arguments
- Open Plug-ins tab
- Add
org.eclipse.jetty.osgi.bootbundle (set Auto-Start totrue, and Start Level to5) - Click on Add required bundles
- Remove
org.eclipse.equinox.http.jetty,org.eclipse.jetty.annotations, all*jsp*and*jasper*bundles - Set the API bundles to start automatically (
com.b2international.snowowl.api.rest,com.b2international.snowowl.snomed.api.rest) by setting Auto-Start totrue, and Start Level to5. - Add the
com.sun.elbundle and remove theorg.apache.elbundle if necessary - Run and point your browser to
http://localhost:8080/snowowl/snomed-ct/v2/ - By default Snow Owl will use an empty embedded
H2database. To useMySQL, you have to configure the database in thesnowowl_config.ymlconfiguration file (or copy an existingMySQLorH2configuration file located in thereleng/com.b2international.snowowl.server.update/assembly/mysql or h2directory to<eclipse_home>/target_platform).
Snow Owl uses Maven for its build system.
In order to create a distribution, simply run the mvn clean package -Pdependencies -Psite -Pdist command in the cloned directory.
To run the test cases, simply run:
mvn clean verify -Pdependencies -Psite -Pdist
The distribution package can be found in the releng/distribution/target folder, when the build completes.
Here are few tips to improve the quality of the default build process.
We highly recommend to install a local artifact repository (Nexus OSS is supported), so the build can deploy and reuse (in downstream projects) Maven and p2 artifacts.
- Download and install Nexus OSS or Professional (http://www.sonatype.org/nexus/go/).
- Install
Nexus Unzip Pluginto easily reference p2 repositories deployed as zip: https://wiki.eclipse.org/Tycho/Nexus_Unzip_Plugin - Define the
nexus.urlparameter in thesettings.xmlfile under.m2folder on your build server (use thesettings.xmlin the root of this repository as template). - Define a deployment user in Nexus, and reference it in the
.m2/settings.xmlfile. - Use
mvn clean deployinstead ofmvn clean verifywhen you execute the process. - Optional: deploy only if build succeeds (requires a
Jenkins CIjob with post build step to deploy artifacts toNexus
The -Pdependencies profile includes all required third party repositories and modules as part of the build process using Tycho's p2 and Maven dependency resolution capabilities.
While this should be enough to run the process, in production builds we recommend using a prefetched target platform, as it will ensure consistent third party versions and reduces the execution time significantly.
- Create the target platform update site, run
mvn clean verify -Pdependencies -Ptarget_sitefrom the releng folder - Navigate to
com.b2international.snowowl.server.target.update/targetfolder - Copy the
target_platform_<version>folder to a webserver, or useNexusto serve the site as unzipped p2 (requires Nexus OSS with Unzip Plugin installed, see previous section) - Define an
httpURL astarget.platform.urlparameter in the global Maven.m2/settings.xmlfile - Run Snow Owl maven process with
mvn clean verify -Ptp_dependencies -Psite -Pdist(NOTE: the tp_dependencies profile will use the prefetched local p2 repository instead of querying all remote sites)
Please refer to the installation guide. Prerequisites are detailed in the software requirements document. Then see the configuration guide to configure for your particular installation.
The SNOMED CT extension management guide provides details for managing multiple SNOMED extensions on a single terminology server.
See the administration guide. You may find the quick references for console commands and the administration REST API helpful.
Please see CONTRIBUTING.md for details.
Our releases use semantic versioning. You can find a chronologically ordered list of notable changes in CHANGELOG.md.
This project is licensed under the Apache 2.0 License. See LICENSE for details and refer to NOTICE for additional licencing notes and uses of third-party components.
In March 2015, SNOMED International generously licensed the Snow Owl Terminology Server components supporting SNOMED CT. They subsequently made the licensed code available to their members and the global community under an open-source license.