diff --git a/html/relnotes.html b/html/relnotes.html index c3f847317dd1042106dfaa8bf4bc5f3c3bae94ef..219c9e31a3ec9c18ba88603127e212f55e729c63 100644 --- a/html/relnotes.html +++ b/html/relnotes.html @@ -63,6 +63,7 @@ with a warning: <li><span style="color: red;">Suppressed</span> empty constructor in <tt>DBServiceImpl</tt> (serv)</li> <li>Fixed a bug in <tt>SQLCache</tt> loading from database which prevented to reload EDOAL alignments (serv)</li> <li>Fixed a problem with Jade when running a server with no X server running (serv)</li> +<li>Fixed a bug in test generation without URI (gen)</li> <li>Moved all shell examples from csh to bash (html)</li> <li>Clarified EDOAL documentation (html)</li> <li>Several documentation fixes --alignwn, rest-- (html)</li> diff --git a/src/fr/inrialpes/exmo/align/gen/Alterator.java b/src/fr/inrialpes/exmo/align/gen/Alterator.java index d357f59aaaae710567dbfcafded683eb16970b69..b5360c5cd25a7fe88c49c93a5d66d11957525e24 100644 --- a/src/fr/inrialpes/exmo/align/gen/Alterator.java +++ b/src/fr/inrialpes/exmo/align/gen/Alterator.java @@ -1,7 +1,7 @@ /* * $Id$ * - * Copyright (C) 2011, 2015 INRIA + * Copyright (C) INRIA, 2011, 2015, 2017 * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License @@ -24,6 +24,7 @@ package fr.inrialpes.exmo.align.gen; import java.util.Properties; import org.semanticweb.owl.align.Alignment; +import org.semanticweb.owl.align.AlignmentException; import org.apache.jena.ontology.OntModel; @@ -61,7 +62,7 @@ public interface Alterator { * @param params: the alteration to be performed * @return the Alterator object with alterations performed */ - public Alterator modify( Properties params ); + public Alterator modify( Properties params ) throws AlignmentException; // Temporary /** diff --git a/src/fr/inrialpes/exmo/align/gen/AlteratorFactory.java b/src/fr/inrialpes/exmo/align/gen/AlteratorFactory.java index b10fb356fd6eccd608ee13142bad5d000553906d..3dbda310a9fdde3367b1c3b6a7bd06f9dd4232c6 100644 --- a/src/fr/inrialpes/exmo/align/gen/AlteratorFactory.java +++ b/src/fr/inrialpes/exmo/align/gen/AlteratorFactory.java @@ -1,7 +1,7 @@ /** * $Id$ * - * Copyright (C) INRIA, 2011, 2013-2015 + * Copyright (C) INRIA, 2011, 2013-2015, 2017 * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by @@ -29,6 +29,8 @@ import org.slf4j.LoggerFactory; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Constructor; +import org.semanticweb.owl.align.AlignmentException; + public class AlteratorFactory { final static Logger logger = LoggerFactory.getLogger( AlteratorFactory.class ); @@ -93,7 +95,7 @@ public class AlteratorFactory { // I should add a run primitive // which executes all the parameters in the given order - public static Alterator cascadeAlterators( Alterator init, Properties params ) { + public static Alterator cascadeAlterators( Alterator init, Properties params ) throws AlignmentException { Alterator modifier = init; // JE: Of course, this could be improved (at least be rendered generic) if ( params.getProperty( ParametersIds.REMOVE_CLASSES ) != null ) { diff --git a/src/fr/inrialpes/exmo/align/gen/TestGenerator.java b/src/fr/inrialpes/exmo/align/gen/TestGenerator.java index 071a3ba8d88db345ed5dd024b62dbcb228b2539e..87bc874bc349d25e432cd7d4e4eed5c3175152e0 100644 --- a/src/fr/inrialpes/exmo/align/gen/TestGenerator.java +++ b/src/fr/inrialpes/exmo/align/gen/TestGenerator.java @@ -1,7 +1,7 @@ /* * $Id$ * - * Copyright (C) 2011-2013, 2015 INRIA + * Copyright (C) INRIA, 2011-2013, 2015, 2017 * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License @@ -35,6 +35,7 @@ import fr.inrialpes.exmo.align.impl.URIAlignment; import fr.inrialpes.exmo.align.impl.renderer.RDFRendererVisitor; import org.semanticweb.owl.align.Alignment; +import org.semanticweb.owl.align.AlignmentException; import org.semanticweb.owl.align.AlignmentVisitor; //Java classes @@ -181,7 +182,7 @@ public class TestGenerator { * @param testNb: name (number) of the test to be generated * @return the protoalignment expressed as properties */ - public Properties incrementModifyOntology( String pKey, String pVal, String suffix, String prevTest, Properties al, String testNb ) { + public Properties incrementModifyOntology( String pKey, String pVal, String suffix, String prevTest, Properties al, String testNb ) throws AlignmentException { Properties p = new Properties(); p.setProperty( pKey, pVal ); String prevDirName = directoryName( prevTest, suffix ); @@ -198,7 +199,7 @@ public class TestGenerator { * @param params: parameters describing the test alterations * @return the protoalignment expressed as properties */ - public Properties incrementModifyOntology( String prevTestDir, Properties al, String testDir, Properties params ) { + public Properties incrementModifyOntology( String prevTestDir, Properties al, String testDir, Properties params ) throws AlignmentException { return modifyOntology( dirprefix+"/"+prevTestDir+"/"+ontoname, al, testDir, params ); } @@ -212,7 +213,7 @@ public class TestGenerator { * @param params: parameters describing the test alterations * @return the protoalignment expressed as properties */ - public Properties modifyOntology( String file, Properties al, String dirName, Properties params) { + public Properties modifyOntology( String file, Properties al, String dirName, Properties params) throws AlignmentException { logger.trace( "Source: {}; Target {}", file, dirName ); //set the TestGenerator ontology OntModel onto = loadOntology( file ); @@ -230,7 +231,7 @@ public class TestGenerator { // ******************************************************* GENERATOR //generate the alignment - public Alterator generate( OntModel onto, Properties params, Properties initalign ) { + public Alterator generate( OntModel onto, Properties params, Properties initalign ) throws AlignmentException { logger.debug( "[-------------------------------------------------]" ); logger.debug( "{} / {} / {} / {}", urlprefix, dirprefix, ontoname, alignname ); // Load the ontology diff --git a/src/fr/inrialpes/exmo/align/gen/TestSet.java b/src/fr/inrialpes/exmo/align/gen/TestSet.java index 5ea4d443619a36b275e4fd80991c0e2090773fad..d6dd0030eacaa23057b1e7110776ed6a2e826552 100644 --- a/src/fr/inrialpes/exmo/align/gen/TestSet.java +++ b/src/fr/inrialpes/exmo/align/gen/TestSet.java @@ -1,7 +1,7 @@ /* * $Id$ * - * Copyright (C) 2011-2014, INRIA + * Copyright (C) INRIA 2011-2014, 2017 * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License @@ -45,6 +45,8 @@ import java.util.HashSet; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import org.semanticweb.owl.align.AlignmentException; + public abstract class TestSet { final static Logger logger = LoggerFactory.getLogger( TestSet.class ); @@ -95,7 +97,7 @@ public abstract class TestSet { // ---------------------------------------------------------- // Generates the test set - public void generate( Properties params ) { + public void generate( Properties params ) throws AlignmentException { // Generator parameters... are these OK? initOntoFile = params.getProperty( "filename" ); // If no filename error if ( params.getProperty( "urlprefix" ) != null ) generator.setURLPrefix( params.getProperty( "urlprefix" ) ); @@ -114,22 +116,19 @@ public abstract class TestSet { // Print it // printTestHierarchy( root, 0 ); if ( params.getProperty( "alignname" ) != null ) generator.setAlignFilename( params.getProperty( "alignname" ) ); - // Generate all tests - startTestGeneration(); - } - - // Recursively generate tests - // All this is really tied to - public void startTestGeneration() { + // Recursively generate all tests + // All this is really tied to Properties parameters = new Properties(); parameters.setProperty( "copy101", "" ); + if ( params.getProperty( "urlprefix" ) != null ) + parameters.setProperty( "urlprefix", params.getProperty( "urlprefix" ) ); Properties newalign = generator.modifyOntology( initOntoFile, (Properties)null, root.name, parameters ); for ( TestCase sub : root.subTests ) { generateTest( sub, newalign ); } } - public void generateTest( TestCase c, Properties align ) { + public void generateTest( TestCase c, Properties align ) throws AlignmentException { Properties newalign; if ( continuous ) { newalign = generator.incrementModifyOntology( c.father.name, (Properties)align.clone(), c.name, c.parameters ); diff --git a/src/fr/inrialpes/exmo/align/gen/alt/AddClassLevel.java b/src/fr/inrialpes/exmo/align/gen/alt/AddClassLevel.java index 42507e0ffc248ac3bf7a5ef3c2f5ec296dc6e591..838d36480a6fcee9bc21c8ecb69583c11dd82df8 100755 --- a/src/fr/inrialpes/exmo/align/gen/alt/AddClassLevel.java +++ b/src/fr/inrialpes/exmo/align/gen/alt/AddClassLevel.java @@ -1,7 +1,7 @@ /* * $Id$ * - * Copyright (C) 2011-2013, 2015 INRIA + * Copyright (C) INRIA 2011-2013, 2015, 2017 * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License @@ -37,7 +37,7 @@ public class AddClassLevel extends BasicAlterator { final static Logger logger = LoggerFactory.getLogger( AddClassLevel.class ); public AddClassLevel( Alterator om ) { - initModel( om ); + super( om ); }; public Alterator modify( Properties params ) { diff --git a/src/fr/inrialpes/exmo/align/gen/alt/AddClasses.java b/src/fr/inrialpes/exmo/align/gen/alt/AddClasses.java index 50d082ff8f7ae758e5b00cd099df54e17436eb5f..e5ab57c82e61deb2b029a1ccbf51bd611c9efbd5 100755 --- a/src/fr/inrialpes/exmo/align/gen/alt/AddClasses.java +++ b/src/fr/inrialpes/exmo/align/gen/alt/AddClasses.java @@ -1,7 +1,7 @@ /* * $Id$ * - * Copyright (C) INRIA, 2011, 2015 + * Copyright (C) INRIA, 2011, 2015, 2017 * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License @@ -33,7 +33,7 @@ import fr.inrialpes.exmo.align.gen.ParametersIds; public class AddClasses extends BasicAlterator { public AddClasses( Alterator om ) { - initModel( om ); + super( om ); }; public Alterator modify( Properties params ) { diff --git a/src/fr/inrialpes/exmo/align/gen/alt/AddProperties.java b/src/fr/inrialpes/exmo/align/gen/alt/AddProperties.java index 437c6bef066c384bbcee758236a7fa4f81708c10..c7438297967c18f1bb2849295084070f3372a467 100755 --- a/src/fr/inrialpes/exmo/align/gen/alt/AddProperties.java +++ b/src/fr/inrialpes/exmo/align/gen/alt/AddProperties.java @@ -1,7 +1,7 @@ /* * $Id$ * - * Copyright (C) INRIA, 2011, 2015 + * Copyright (C) INRIA, 2011, 2015, 2017 * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License @@ -39,7 +39,7 @@ import fr.inrialpes.exmo.align.gen.ParametersIds; public class AddProperties extends BasicAlterator { public AddProperties( Alterator om ) { - initModel( om ); + super( om ); }; public Alterator modify( Properties params ) { diff --git a/src/fr/inrialpes/exmo/align/gen/alt/BasicAlterator.java b/src/fr/inrialpes/exmo/align/gen/alt/BasicAlterator.java index b34d9f49ab3dc8c9982dfd8f195d058583521ac5..d1f720de30bfa3ba8f8c67a33bdb7abc676de14c 100644 --- a/src/fr/inrialpes/exmo/align/gen/alt/BasicAlterator.java +++ b/src/fr/inrialpes/exmo/align/gen/alt/BasicAlterator.java @@ -1,7 +1,7 @@ /** * $Id$ * - * Copyright (C) INRIA, 2011-2015 + * Copyright (C) INRIA, 2011-2015, 2017 * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License @@ -138,7 +138,7 @@ public abstract class BasicAlterator implements Alterator { } // abstract - public abstract Alterator modify( Properties params ); + public abstract Alterator modify( Properties params ) throws AlignmentException; // ------------------------- // Accessors diff --git a/src/fr/inrialpes/exmo/align/gen/alt/EmptyModification.java b/src/fr/inrialpes/exmo/align/gen/alt/EmptyModification.java index 7cb7835be5357ab15c17f2fc0f6cab0d18771e40..0d1ec6c28b64e8fd924d06b7e531d0054c0cd96b 100755 --- a/src/fr/inrialpes/exmo/align/gen/alt/EmptyModification.java +++ b/src/fr/inrialpes/exmo/align/gen/alt/EmptyModification.java @@ -1,7 +1,7 @@ /* * $Id$ * - * Copyright (C) INRIA, 2011-2013, 2015 + * Copyright (C) INRIA, 2011-2013, 2015, 2017 * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License @@ -39,6 +39,7 @@ import fr.inrialpes.exmo.align.gen.Alterator; import fr.inrialpes.exmo.align.gen.ParametersIds; import org.semanticweb.owl.align.Alignment; +import org.semanticweb.owl.align.AlignmentException; public class EmptyModification extends BasicAlterator { final static Logger logger = LoggerFactory.getLogger( EmptyModification.class ); @@ -53,11 +54,19 @@ public class EmptyModification extends BasicAlterator { // Clearly here setDebug, setNamespace are important - public Alterator modify( Properties params ) { + public Alterator modify( Properties params ) throws AlignmentException { //logger.trace( "NEW MODIFICATION ------------------------------------" ); relocateSource = ( params.getProperty( "copy101" ) != null ); if ( alignment == null ) { + if ( params != null && params.getProperty( "urlprefix" ) != null ) { + modifiedOntologyNS = params.getProperty( "urlprefix" ); + } + + if ( modifiedOntologyNS == null ) { + logger.error( "Unknown ontology URI" ); + throw new AlignmentException( "Unknown ontology URI" ); + } initOntologyNS = modifiedOntologyNS; alignment = new Properties(); diff --git a/src/fr/inrialpes/exmo/align/gen/alt/FlattenLevel.java b/src/fr/inrialpes/exmo/align/gen/alt/FlattenLevel.java index d0dba44d57966bd513dedacb7a9483158930e3e2..948179649b14800ff035f6c1bc11d66c22245115 100755 --- a/src/fr/inrialpes/exmo/align/gen/alt/FlattenLevel.java +++ b/src/fr/inrialpes/exmo/align/gen/alt/FlattenLevel.java @@ -1,7 +1,7 @@ /* * $Id$ * - * Copyright (C) INRIA, 2011-2013, 2015 + * Copyright (C) INRIA, 2011-2013, 2015, 2017 * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License @@ -40,7 +40,7 @@ public class FlattenLevel extends BasicAlterator { final static Logger logger = LoggerFactory.getLogger( FlattenLevel.class ); public FlattenLevel( Alterator om ) { - initModel( om ); + super( om ); }; public Alterator modify( Properties params ) { diff --git a/src/fr/inrialpes/exmo/align/gen/alt/RemoveClassLevel.java b/src/fr/inrialpes/exmo/align/gen/alt/RemoveClassLevel.java index 848383286ed72abe3d6aee6125fd7fa421d32e60..679d69f7eba752d2861effbcb57d5f4d4a905a2c 100755 --- a/src/fr/inrialpes/exmo/align/gen/alt/RemoveClassLevel.java +++ b/src/fr/inrialpes/exmo/align/gen/alt/RemoveClassLevel.java @@ -1,7 +1,7 @@ /* * $Id$ * - * Copyright (C) INRIA, 2011-2013, 2015 + * Copyright (C) INRIA, 2011-2013, 2015, 2017 * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License @@ -38,7 +38,7 @@ public class RemoveClassLevel extends BasicAlterator { final static Logger logger = LoggerFactory.getLogger( RemoveClassLevel.class ); public RemoveClassLevel( Alterator om ) { - initModel( om ); + super( om ); }; public Alterator modify( Properties params ) { diff --git a/src/fr/inrialpes/exmo/align/gen/alt/RemoveClasses.java b/src/fr/inrialpes/exmo/align/gen/alt/RemoveClasses.java index fd398cd18eee48ae8edcc32629b808724d1a70d6..4b4f9149b8f7223a7a751854ec746dcc93803273 100755 --- a/src/fr/inrialpes/exmo/align/gen/alt/RemoveClasses.java +++ b/src/fr/inrialpes/exmo/align/gen/alt/RemoveClasses.java @@ -1,7 +1,7 @@ /* * $Id$ * - * Copyright (C) INRIA, 2011-2012, 2015 + * Copyright (C) INRIA, 2011-2012, 2015, 2017 * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License @@ -34,7 +34,7 @@ import fr.inrialpes.exmo.align.gen.ParametersIds; public class RemoveClasses extends BasicAlterator { public RemoveClasses( Alterator om ) { - initModel( om ); + super( om ); }; public Alterator modify( Properties params ) { diff --git a/src/fr/inrialpes/exmo/align/gen/alt/RemoveComments.java b/src/fr/inrialpes/exmo/align/gen/alt/RemoveComments.java index a79ba784c70920e9ed64f8a44926a1082672cdee..975c04429a2949557111cfb72795beedae6017d1 100755 --- a/src/fr/inrialpes/exmo/align/gen/alt/RemoveComments.java +++ b/src/fr/inrialpes/exmo/align/gen/alt/RemoveComments.java @@ -1,7 +1,7 @@ /* * $Id$ * - * Copyright (C) INRIA, 2011, 2014-2015 + * Copyright (C) INRIA, 2011, 2014-2015, 2017 * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License @@ -43,7 +43,7 @@ import fr.inrialpes.exmo.align.gen.ParametersIds; public class RemoveComments extends BasicAlterator { public RemoveComments( Alterator om ) { - initModel( om ); + super( om ); }; public Alterator modify( Properties params ) { diff --git a/src/fr/inrialpes/exmo/align/gen/alt/RemoveIndividuals.java b/src/fr/inrialpes/exmo/align/gen/alt/RemoveIndividuals.java index 26aedbb8179f00ed01c82cae2b176b5899f8a96d..0905065743efff11cf60ccb4838cb959cba44bb2 100755 --- a/src/fr/inrialpes/exmo/align/gen/alt/RemoveIndividuals.java +++ b/src/fr/inrialpes/exmo/align/gen/alt/RemoveIndividuals.java @@ -1,7 +1,7 @@ /* * $Id$ * - * Copyright (C) INRIA, 2011-2012, 2015 + * Copyright (C) INRIA, 2011-2012, 2015, 2017 * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License @@ -37,7 +37,7 @@ import fr.inrialpes.exmo.align.gen.ParametersIds; public class RemoveIndividuals extends BasicAlterator { public RemoveIndividuals( Alterator om ) { - initModel( om ); + super( om ); }; public Alterator modify( Properties params ) { diff --git a/src/fr/inrialpes/exmo/align/gen/alt/RemoveProperties.java b/src/fr/inrialpes/exmo/align/gen/alt/RemoveProperties.java index d9eeda13e325102c6d48e8b0f9a5a9de5fdfc8f1..5ad153bc279e9f1fbec8495b49b3f9ca1a000916 100755 --- a/src/fr/inrialpes/exmo/align/gen/alt/RemoveProperties.java +++ b/src/fr/inrialpes/exmo/align/gen/alt/RemoveProperties.java @@ -1,7 +1,7 @@ /* * $Id$ * - * Copyright (C) INRIA, 2011-2015 + * Copyright (C) INRIA, 2011-2015, 2017 * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License @@ -48,7 +48,7 @@ public class RemoveProperties extends BasicAlterator { final static Logger logger = LoggerFactory.getLogger( RemoveProperties.class ); public RemoveProperties( Alterator om ) { - initModel( om ); + super( om ); }; public Alterator modify( Properties params ) { diff --git a/src/fr/inrialpes/exmo/align/gen/alt/RemoveRestrictions.java b/src/fr/inrialpes/exmo/align/gen/alt/RemoveRestrictions.java index 47b66a9e421c6decbc3448aa6b786068d9d5e27b..413f5e93874893038b273ab6b87b6a82ed4a6e9d 100755 --- a/src/fr/inrialpes/exmo/align/gen/alt/RemoveRestrictions.java +++ b/src/fr/inrialpes/exmo/align/gen/alt/RemoveRestrictions.java @@ -1,7 +1,7 @@ /* * $Id$ * - * Copyright (C) INRIA, 2011, 2015 + * Copyright (C) INRIA, 2011, 2015, 2017 * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License @@ -34,7 +34,7 @@ import fr.inrialpes.exmo.align.gen.ParametersIds; public class RemoveRestrictions extends BasicAlterator { public RemoveRestrictions( Alterator om ) { - initModel( om ); + super( om ); }; public Alterator modify( Properties params ) { diff --git a/src/fr/inrialpes/exmo/align/gen/alt/RenameClasses.java b/src/fr/inrialpes/exmo/align/gen/alt/RenameClasses.java index 73f8cc54c3a228a58154d3f5f2d2736044ec7427..030efcf2a8bc4bfefe1a72a499770b1e8524b3c6 100755 --- a/src/fr/inrialpes/exmo/align/gen/alt/RenameClasses.java +++ b/src/fr/inrialpes/exmo/align/gen/alt/RenameClasses.java @@ -1,7 +1,7 @@ /* * $Id$ * - * Copyright (C) INRIA, 2011-2012, 2015 + * Copyright (C) INRIA, 2011-2012, 2015, 2017 * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License @@ -33,7 +33,7 @@ import fr.inrialpes.exmo.align.gen.ParametersIds; public class RenameClasses extends RenameThings { public RenameClasses( Alterator om ) { - initModel( om ); + super( om ); }; public Alterator modify( Properties params ) { diff --git a/src/fr/inrialpes/exmo/align/gen/alt/RenameProperties.java b/src/fr/inrialpes/exmo/align/gen/alt/RenameProperties.java index 94355153c0c1dc7c61989091df6be5c593a61310..63f6b03ae64e1cdd7a954a618f3accd9eab33529 100755 --- a/src/fr/inrialpes/exmo/align/gen/alt/RenameProperties.java +++ b/src/fr/inrialpes/exmo/align/gen/alt/RenameProperties.java @@ -1,7 +1,7 @@ /* * $Id$ * - * Copyright (C) 2011-2012, INRIA + * Copyright (C) INRIA, 2011-2012, 2017 * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License @@ -29,7 +29,7 @@ import fr.inrialpes.exmo.align.gen.ParametersIds; public class RenameProperties extends RenameThings { public RenameProperties( Alterator om ) { - initModel( om ); + super( om ); }; public Alterator modify( Properties params ) { diff --git a/src/fr/inrialpes/exmo/align/gen/alt/RenameThings.java b/src/fr/inrialpes/exmo/align/gen/alt/RenameThings.java index ad53276d8135e59ddb10e73b2c0c60d30b0e6422..c9f155b815e19c8a6cafba784a00a33e0ac609f8 100755 --- a/src/fr/inrialpes/exmo/align/gen/alt/RenameThings.java +++ b/src/fr/inrialpes/exmo/align/gen/alt/RenameThings.java @@ -1,7 +1,7 @@ /* * $Id$ * - * Copyright (C) INRIA, 2011-2013, 2015 + * Copyright (C) INRIA, 2011-2013, 2015, 2017 * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License @@ -67,6 +67,10 @@ public abstract class RenameThings extends BasicAlterator { // ------------------------- // Label replacement + public RenameThings( Alterator om ) { + super( om ); + }; + //replaces the label of the property public void replacePropertyLabel( String uri, String newLabel, boolean activeRandomString, boolean activeTranslateString, boolean activeSynonym, int activeStringOperation ) { OntProperty prop = modifiedModel.getOntProperty( uri ); diff --git a/src/fr/inrialpes/exmo/align/gen/alt/SuppressHierarchy.java b/src/fr/inrialpes/exmo/align/gen/alt/SuppressHierarchy.java index d8e230643d6b72dbef9f81db5cbbbf6a89e1cdd8..2549ed36ca12e9443d94d2456151d248f8d755a0 100755 --- a/src/fr/inrialpes/exmo/align/gen/alt/SuppressHierarchy.java +++ b/src/fr/inrialpes/exmo/align/gen/alt/SuppressHierarchy.java @@ -1,7 +1,7 @@ /* * $Id$ * - * Copyright (C) INRIA, 2011-2012, 2015 + * Copyright (C) INRIA, 2011-2012, 2015, 2017 * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License @@ -33,7 +33,7 @@ import fr.inrialpes.exmo.align.gen.ParametersIds; public class SuppressHierarchy extends BasicAlterator { public SuppressHierarchy( Alterator om ) { - initModel( om ); + super( om ); }; public Alterator modify( Properties params ) {