Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 0ea80a07 authored by Jérôme Euzenat's avatar Jérôme Euzenat
Browse files

- Put URI in ParserPrinter arguments / fixed one ParserPrinter interface

parent c1106ec4
No related branches found
No related tags found
No related merge requests found
......@@ -239,7 +239,7 @@ $ java -jar ../../../lib/procalign.jar -i fr.inrialpes.exmo.align.impl.method.St
<p><b>Other manipulations:</b> It is possible to invert an alignment with the following command:</p>
<div class="terminal">
$ java -cp ../../../lib/procalign.jar fr.inrialpes.exmo.align.cli.ParserPrinter -i results/SMOA5.rdf -o results/AOMS5.rdf
$ java -cp ../../../lib/procalign.jar fr.inrialpes.exmo.align.cli.ParserPrinter file:results/SMOA5.rdf -o results/AOMS5.rdf
</div>
<p>See the output in <a href="results/AOMS5.rdf"><abbr>RDF</abbr>/<abbr>XML</abbr></a> or <a href="results/AOMS5.html"><abbr>HTML</abbr></a> (if rendered as before). The results is an alignment from the source to the target. Inverting alignment is only the exchange of the order of the elements in the alignment file. This can be useful when you have an alignment of <i>A</i> to <i>B</i>, an alignment from <i>C</i> to <i>B</i> and you want to go from <i>A</i> to <i>C</i>. The solution is then to invert the second alignment and to compose them.</p>
......@@ -251,7 +251,7 @@ $ java -cp ../../../lib/procalign.jar fr.inrialpes.exmo.align.cli.ParserPrinter
<p>Once a good alignment has been found, only half of the work has been done. In order to actually use our result it is necessary to transform it into some processable format. For instance, if one wants to merge two OWL ontologies, the alignment can be changed into set of <acronym>OWL</acronym> "bridging" axioms. This is achieved by "rendering" the alignment in <acronym>OWL</acronym> (through the <tt>-r</tt> switch):</p>
<div class="terminal">
$ java -cp ../../../lib/procalign.jar fr.inrialpes.exmo.align.cli.ParserPrinter results/SMOA5.rdf -r fr.inrialpes.exmo.align.impl.renderer.OWLAxiomsRendererVisitor
$ java -cp ../../../lib/procalign.jar fr.inrialpes.exmo.align.cli.ParserPrinter file:results/SMOA5.rdf -r fr.inrialpes.exmo.align.impl.renderer.OWLAxiomsRendererVisitor
</div>
<p>The result is a set of OWL assertions of the form:</p>
......@@ -267,7 +267,7 @@ $ java -cp ../../../lib/procalign.jar fr.inrialpes.exmo.align.cli.ParserPrinter
<p>If one wants to use the alignments only for infering on instances without actually merging the classes, she can generate SWRL rules:</p>
<div class="terminal">
$ java -cp ../../../lib/procalign.jar fr.inrialpes.exmo.align.cli.ParserPrinter results/SMOA5.rdf -r fr.inrialpes.exmo.align.impl.renderer.SWRLRendererVisitor
$ java -cp ../../../lib/procalign.jar fr.inrialpes.exmo.align.cli.ParserPrinter file:results/SMOA5.rdf -r fr.inrialpes.exmo.align.impl.renderer.SWRLRendererVisitor
</div>
<p>which brings for the same assertions:</p>
<div class="swrl">
......@@ -304,7 +304,7 @@ $ java -cp ../../../lib/procalign.jar fr.inrialpes.exmo.align.cli.ParserPrinter
<p>Exchanging data can also be achieved more simply through <abbr>XSLT</abbr> transformations which will transform the <acronym>OWL</acronym> instance files from one ontology to another:</p>
<div class="terminal">
$ java -cp ../../../lib/procalign.jar fr.inrialpes.exmo.align.cli.ParserPrinter results/SMOA5.rdf -r fr.inrialpes.exmo.align.impl.renderer.XSLTRendererVisitor -o results/SMOA5.xsl
$ java -cp ../../../lib/procalign.jar fr.inrialpes.exmo.align.cli.ParserPrinter file:results/SMOA5.rdf -r fr.inrialpes.exmo.align.impl.renderer.XSLTRendererVisitor -o results/SMOA5.xsl
</div>
<p>this transformation can be applied to the data of <a href="data.xml">data.xml</a>:</p>
<div class="terminal">
......
......@@ -303,7 +303,6 @@ alignment selected at the previous exercise as a set of OWL axioms.
// Load the reference alignment
AlignmentParser aparser = new AlignmentParser(0);
// Changed by Angel for Windows
//Alignment reference = aparser.parse( "file://"+(new File ( "../refalign.rdf" ) . getAbsolutePath()) );
Alignment reference = aparser.parse( new File( "../refalign.rdf" ).toURI() );
// Trim at various thresholds
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment