Ctrl K

jQUDT

Java Library to deal with QUDT units and conversions between them. QUDT is an ontology for "Quantities, Units, Dimensions and Data Types in OWL and XML"

1
contributor

Cite this software

Description

Installation

Maven:

<dependency>
  <groupId>com.github.egonw</groupId>
  <artifactId>jqudt</artifactId>
  <version>1.5.1</version>
</dependency>

Groovy:

@Grab(group='com.github.egonw', module='jqudt', version='1.5.1')

Quick demo

Keep in mind, that the below conversions are purely derived from the information defined in the QUDT ontology, taking advantage from the fact that the have the same unit type, qudt:MolarConcentrationUnit and qudt:TemperatureUnit respectively.

Source:

Quantity obs = new Quantity(0.1, ConcentrationUnit.MICROMOLAR);
System.out.println(obs + " = " +  obs.convertTo(ConcentrationUnit.NANOMOLAR));

Quantity temp = new Quantity(20, TemperatureUnit.CELSIUS);
System.out.println(temp + " = " +  temp.convertTo(TemperatureUnit.KELVIN));

Output

0.1 μM = 100.00000000000001 nM
20.0 C = 293.0 K
Keywords
License
</>Source code
Packages

Participating organisations

Maastricht University

Contributors

Related software

Bacting

BA

Bacting is an open-source platform for chemo- and bioinformatics based on Bioclipse that defines a number of common domain objects and wraps common functionality, providing a toolkit independent, scriptable solution to handle data from the life sciences.

Updated 36 months ago
9 1