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
Admin message
GitLab upgrade completed. Current version is 17.11.3.
Show more breadcrumbs
moex
Alignment API
Commits
95f1b0fa
Commit
95f1b0fa
authored
16 years ago
by
Jérôme Euzenat
Browse files
Options
Downloads
Patches
Plain Diff
- updated with regard to 3.3
parent
a0b7ba11
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
html/tutorial/MyApp.java
+3
-9
3 additions, 9 deletions
html/tutorial/MyApp.java
with
3 additions
and
9 deletions
html/tutorial/MyApp.java
+
3
−
9
View file @
95f1b0fa
/*
* $Id$
*
* Copyright (C) 2006-200
7
, INRIA Rhne-Alpes
* Copyright (C) 2006-200
8
, INRIA Rhne-Alpes
*
* Modifications to the initial code base are copyright of their
* respective authors, or their employers as appropriate. Authorship
...
...
@@ -34,7 +34,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.OntologyCache
;
import
fr.inrialpes.exmo.align.impl.method.StringDistAlignment
;
import
fr.inrialpes.exmo.align.impl.renderer.SWRLRendererVisitor
;
import
fr.inrialpes.exmo.align.impl.eval.PRecEvaluator
;
...
...
@@ -58,17 +57,12 @@ import java.net.URI;
public
class
MyApp
{
static
OntologyCache
loaded
=
null
;
public
static
void
main
(
String
[]
args
)
{
URI
onto1
=
null
;
URI
onto2
=
null
;
Parameters
params
=
new
BasicParameters
();
try
{
// Initializing ontology parsers
loaded
=
new
OntologyCache
();
// Loading ontologies
if
(
args
.
length
>=
2
)
{
onto1
=
new
URI
(
args
[
0
]);
...
...
@@ -81,10 +75,10 @@ public class MyApp {
// Run two different alignment methods (e.g., ngram distance and smoa)
AlignmentProcess
a1
=
new
StringDistAlignment
();
params
.
setParameter
(
"stringFunction"
,
"smoaDistance"
);
a1
.
init
(
onto1
,
onto2
,
loaded
);
a1
.
init
(
onto1
,
onto2
);
a1
.
align
(
(
Alignment
)
null
,
params
);
AlignmentProcess
a2
=
new
StringDistAlignment
();
a2
.
init
(
onto1
,
onto2
,
loaded
);
a2
.
init
(
onto1
,
onto2
);
params
=
new
BasicParameters
();
params
.
setParameter
(
"stringFunction"
,
"ngramDistance"
);
a2
.
align
(
(
Alignment
)
null
,
params
);
...
...
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