From dd342943d84624d18fbf38b0d162cfb4ee64164f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Euzenat?= <Jerome.Euzenat@inria.fr> Date: Sat, 21 May 2011 12:57:25 +0000 Subject: [PATCH] - added extensions and pretty to basic samples --- build.xml | 2 ++ examples/rdf/newsample.rdf | 5 +++++ test/src/READMETest.java | 2 +- 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/build.xml b/build.xml index e2c4b40b..51b28241 100644 --- a/build.xml +++ b/build.xml @@ -437,6 +437,8 @@ <delete> <fileset dir="classes" includes="**/*.class"/> <fileset dir="examples" includes="**/*.class"/> + <fileset dir="examples/rdf" includes="*.rdf" excludes="newsample.rdf"/> + <fileset dir="examples/rdf" includes="*.tex"/> <fileset dir="examples/omwg" includes="wine?.xml"/> <fileset dir="examples" includes="**/*.jar"/> <fileset dir="html/tutorial" includes="**/*.class"/> diff --git a/examples/rdf/newsample.rdf b/examples/rdf/newsample.rdf index 5b0ccfe8..f00dce61 100644 --- a/examples/rdf/newsample.rdf +++ b/examples/rdf/newsample.rdf @@ -3,13 +3,16 @@ xml:base='http://knowledgeweb.semanticweb.org/heterogeneity/alignment#' xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#' xmlns:xsd='http://www.w3.org/2001/XMLSchema#' + xmlns:kha='http://www.example.com/newTagnamespace#' > <Alignment> <xml>yes</xml> <level>0</level> <type>**</type> <time>7</time> + <pretty>SDNAlignment between onto1 and onto2</pretty> <method>fr.inrialpes.exmo.align.impl.method.StringDistAlignment</method> + <kha:myTag>Testing extension tags in alignments</kha:myTag> <onto1> <Ontology rdf:about="http://www.example.org/ontology1"> <location>file:examples/rdf/onto1.owl</location> @@ -31,7 +34,9 @@ <entity1 rdf:resource='http://www.example.org/ontology1#reviewedarticle'/> <entity2 rdf:resource='http://www.example.org/ontology2#journalarticle'/> <relation>=</relation> + <kha:myCorrespondenceTag>Testing tags in correspondences</kha:myCorrespondenceTag> <measure rdf:datatype='http://www.w3.org/2001/XMLSchema#float'>0.4666666666666667</measure> + <!--invalidTag>This tag would be ignored</invalidTag--> </Cell> </map> <map> diff --git a/test/src/READMETest.java b/test/src/READMETest.java index bf5be09a..42f64618 100644 --- a/test/src/READMETest.java +++ b/test/src/READMETest.java @@ -120,7 +120,7 @@ $ java -cp lib/procalign.jar fr.inrialpes.exmo.align.util.ParserPrinter examples result.render( renderer ); writer.flush(); writer.close(); - assertTrue( ( 1729 <= stream.toString().length() ) && ( stream.toString().length() <= 1731 ), "Rendered differently: expected "+1730+" but was "+stream.toString().length() ); + assertTrue( ( 2009 <= stream.toString().length() ) && ( stream.toString().length() <= 2011 ), "Rendered differently: expected "+2010+" but was "+stream.toString().length() ); } @Test(groups = { "full", "impl", "raw" }, dependsOnMethods = {"routineTest3"}) -- GitLab