@@ -0,0 +1,1831 @@
+package tbx2rdf;%0A%0Aimport com.hp.hpl.jena.rdf.model.Model;%0Aimport com.hp.hpl.jena.rdf.model.RDFNode;%0Aimport com.hp.hpl.jena.rdf.model.Statement;%0Aimport com.hp.hpl.jena.vocabulary.RDF;%0Aimport java.io.FileReader;%0Aimport java.util.List;%0Aimport org.junit.After;%0Aimport org.junit.AfterClass;%0Aimport org.junit.Before;%0Aimport org.junit.BeforeClass;%0Aimport org.junit.Test;%0Aimport tbx2rdf.types.TBX_Terminology;%0Aimport tbx2rdf.vocab.ONTOLEX;%0A%0A/**%0A *%0A * @author jmccrae%0A */%0Apublic class Simple1Test %7B%0A    %0A    private Model model;%0A    %0A    public Simple1Test() %7B%0A    %7D%0A    %0A    @BeforeClass%0A    public static void setUpClass() %7B%0A    %7D%0A    %0A    @AfterClass%0A    public static void tearDownClass() %7B%0A    %7D%0A    %0A    @Before%0A    public void setUp() throws Exception %7B      %0A        final Mappings mappings = Mappings.readInMappings(%22mappings2.default%22);%0A        final TBX_Terminology terminology = new TBX2RDF_Converter().convert(new FileReader(%22samples/simple1.xml%22), mappings);%0A        model = terminology.getModel(%22http://www.example.com/example#%22);  %0A    %7D%0A    %0A    @After%0A    public void tearDown() %7B%0A    %7D%0A%0A    /**%0A     * Test there is at least one triple in the model%0A     */%0A    @Test%0A    public void testNotEmpty() throws Exception %7B%0A        final List%3CStatement%3E stat = model.listStatements(null, null, (String)null).toList();%0A        assert(!stat.isEmpty());%0A    %7D%0A    %0A    /*%0A     * Test every lexical entry has a canonical form%0A    */%0A    @Test%0A    public void testCanonicalForm() throws Exception %7B%0A        final List%3CStatement%3E stats = model.listStatements(null, RDF.type, ONTOLEX.LexicalEntry).toList();%0A        for(Statement stat : stats) %7B%0A            final List%3CStatement%3E stats2 = model.listStatements(stat.getSubject(), ONTOLEX.canonicalForm, (RDFNode)null).toList();%0A            assert(!stats2.isEmpty());%0A        %7D%0A    %7D%0A%0A%7D%0A

Add unit test example for TDD with Philipp