diff --git a/html/tutorial/tutorial2/MyApp.java b/html/tutorial/tutorial2/MyApp.java index 995099e619973fc11938ef14d42b7d2cb748e0b7..9ed49bea8a24cb3540ef10e59ee25321065818b1 100644 --- a/html/tutorial/tutorial2/MyApp.java +++ b/html/tutorial/tutorial2/MyApp.java @@ -1,7 +1,7 @@ /* * $Id$ * - * Copyright (C) INRIA, 2006-2010 + * Copyright (C) INRIA, 2006-2010, 2012 * * Modifications to the initial code base are copyright of their * respective authors, or their employers as appropriate. Authorship @@ -32,7 +32,6 @@ import org.semanticweb.owl.align.Evaluator; // Alignment API implementation classes import fr.inrialpes.exmo.align.impl.BasicAlignment; -import fr.inrialpes.exmo.align.impl.BasicParameters; import fr.inrialpes.exmo.align.impl.method.StringDistAlignment; import fr.inrialpes.exmo.align.impl.renderer.OWLAxiomsRendererVisitor; import fr.inrialpes.exmo.align.impl.renderer.RDFRendererVisitor; @@ -65,7 +64,7 @@ public class MyApp { public static void main( String[] args ) { URI onto1 = null; URI onto2 = null; - Properties params = new BasicParameters(); + Properties params = new Properties(); int question = 1; try { @@ -86,7 +85,7 @@ public class MyApp { a1.align( (Alignment)null, params ); AlignmentProcess a2 = new StringDistAlignment(); a2.init ( onto1, onto2 ); - params = new BasicParameters(); + params = new Properties(); params.setProperty("stringFunction","ngramDistance"); a2.align( (Alignment)null, params ); @@ -121,7 +120,7 @@ public class MyApp { double best = 0.; Alignment result = null; - Properties p = new BasicParameters(); + Properties p = new Properties(); for ( int i = 0; i <= 10 ; i += 2 ){ a1.cut( ((double)i)/10 ); // This operation must be repeated because the modifications in a1 diff --git a/html/tutorial/tutorial2/index.html b/html/tutorial/tutorial2/index.html index fdac6717d31dafad3d872cc548b67bd6756b6957..2498f979e3d45109f8baa6331303be697ac12fb4 100644 --- a/html/tutorial/tutorial2/index.html +++ b/html/tutorial/tutorial2/index.html @@ -93,7 +93,7 @@ the <tt>StringDistAlignment</tt> matcher: <div class="java"> AlignmentProcess a = new StringDistAlignment(); a.init ( onto1, onto2 ); - a.align( (Alignment)null, new BasicParameters() ); + a.align( (Alignment)null, new Properties() ); </div> </p> @@ -108,7 +108,7 @@ parameters corresponding to "smoaDistance" and "ngramDistance". </div> <div class="explain" id="qu1"> <div class="java"> - Properties params = new BasicParameters(); + Properties params = new Properties(); // Run two different alignment methods (e.g., ngram distance and smoa) AlignmentProcess a1 = new StringDistAlignment(); params.setProperty("stringFunction","smoaDistance"); @@ -116,7 +116,7 @@ parameters corresponding to "smoaDistance" and "ngramDistance". a1.align( (Alignment)null, params ); AlignmentProcess a2 = new StringDistAlignment(); a2.init ( onto1, onto2 ); - params = new BasicParameters(); + params = new Properties(); params.setProperty("stringFunction","ngramDistance"); a2.align( (Alignment)null, params ); </div> @@ -226,7 +226,7 @@ F-measure. // and choose the one with the best F-Measure double best = 0.; Alignment result = null; - Properties p = new BasicParameters(); + Properties p = new Properties(); for ( int i = 0; i <= 10 ; i += 2 ){ a1.cut( ((double)i)/10 ); // This operation must be repeated because the modifications in a1 @@ -293,7 +293,7 @@ alignment selected at the previous exercise as a set of OWL axioms. a1.align( (Alignment)null, params ); AlignmentProcess a2 = new StringDistAlignment(); a2.init ( onto1, onto2 ); - params = new BasicParameters(); + params = new Properties(); params.setProperty("stringFunction","ngramDistance"); a2.align( (Alignment)null, params ); @@ -311,7 +311,7 @@ alignment selected at the previous exercise as a set of OWL axioms. // and choose the one with the best F-Measure double best = 0.; Alignment result = null; - Properties p = new BasicParameters(); + Properties p = new Properties(); for ( int i = 0; i <= 10 ; i += 2 ){ a1.cut( ((double)i)/10 ); // This operation must be repeated because the modifications in a1