Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
Alignment API
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
moex
Alignment API
Commits
88a23523
Commit
88a23523
authored
11 years ago
by
Jérôme Euzenat
Browse files
Options
Downloads
Patches
Plain Diff
- replaced BasicParameters by Properties
parent
a84f9ce0
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
html/tutorial/tutorial2/MyApp.java
+4
-5
4 additions, 5 deletions
html/tutorial/tutorial2/MyApp.java
html/tutorial/tutorial2/index.html
+6
-6
6 additions, 6 deletions
html/tutorial/tutorial2/index.html
with
10 additions
and
11 deletions
html/tutorial/tutorial2/MyApp.java
+
4
−
5
View file @
88a23523
/*
* $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
BasicParameter
s
();
Properties
params
=
new
Propertie
s
();
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
BasicParameter
s
();
params
=
new
Propertie
s
();
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
BasicParameter
s
();
Properties
p
=
new
Propertie
s
();
for
(
int
i
=
0
;
i
<=
10
;
i
+=
2
){
a1
.
cut
(
((
double
)
i
)/
10
);
// This operation must be repeated because the modifications in a1
...
...
This diff is collapsed.
Click to expand it.
html/tutorial/tutorial2/index.html
+
6
−
6
View file @
88a23523
...
...
@@ -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
BasicParameter
s() );
a.align( (Alignment)null, new
Propertie
s() );
</div>
</p>
...
...
@@ -108,7 +108,7 @@ parameters corresponding to "smoaDistance" and "ngramDistance".
</div>
<div
class=
"explain"
id=
"qu1"
>
<div
class=
"java"
>
Properties params = new
BasicParameter
s();
Properties params = new
Propertie
s();
// 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
BasicParameter
s();
params = new
Propertie
s();
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
BasicParameter
s();
Properties p = new
Propertie
s();
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
BasicParameter
s();
params = new
Propertie
s();
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
BasicParameter
s();
Properties p = new
Propertie
s();
for ( int i = 0; i
<
=
10
;
i
+=
2
){
a1.cut
(
((
double
)
i
)/10
);
//
This
operation
must
be
repeated
because
the
modifications
in
a1
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment