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
5b307198
Commit
5b307198
authored
16 years ago
by
Jérôme Euzenat
Browse files
Options
Downloads
Patches
Plain Diff
- simplified URI management
- added a flush() of the stream for avoiding problem when embedded
parent
6224be34
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
examples/embed/MyAlign.java
+7
-7
7 additions, 7 deletions
examples/embed/MyAlign.java
with
7 additions
and
7 deletions
examples/embed/MyAlign.java
+
7
−
7
View file @
5b307198
/*
* $Id$
*
* Copyright (C) 2003-2005, 2008
, INRIA Rhne-Alpes
* Copyright (C)
INRIA
2003-2005, 2008
*
* Modifications to the initial code base are copyright of their
* respective authors, or their employers as appropriate. Authorship
...
...
@@ -49,19 +49,18 @@ import java.net.URI;
/**
Compile with:
javac -c
lasspath ../../lib/api.jar:../../lib/commons-logging.jar:../../lib/log4j.jar:../../lib/procalign.jar:../../lib/rdfapi.jar:../../lib/rdfparser
.jar MyAlign.java
javac -c
p .:../../lib/procalign
.jar MyAlign.java
Run with:
java -c
lasspath
.:../../lib/
api.jar:../../lib/commons-logging.jar:../../lib/log4j.jar:../../lib/procalign.jar:../../lib/rdfapi.jar:../../lib/rdfparser
.jar MyAlign
java -c
p
.:../../lib/
procalign
.jar MyAlign
*/
public
class
MyAlign
{
public
static
void
main
(
String
[]
args
)
{
try
{
String
CWD
=
"/Java/alignapi/examples"
;
URI
uri1
=
new
URI
(
"file://localhost"
+
CWD
+
"/rdf/edu.umbc.ebiquity.publication.owl"
);
URI
uri2
=
new
URI
(
"file://localhost"
+
CWD
+
"/rdf/edu.mit.visus.bibtex.owl"
);
URI
uri1
=
new
URI
(
"file:../rdf/edu.umbc.ebiquity.publication.owl"
);
URI
uri2
=
new
URI
(
"file:../rdf/edu.mit.visus.bibtex.owl"
);
Parameters
p
=
new
BasicParameters
();
AlignmentProcess
A1
=
new
SubsDistNameAlignment
();
...
...
@@ -81,7 +80,8 @@ public class MyAlign {
new
OutputStreamWriter
(
System
.
out
,
"UTF-8"
)),
true
));
if
(
((
PRecEvaluator
)
E
).
getPrecision
()
>
.
6
)
A3
.
render
(
V
);
if
(
((
PRecEvaluator
)
E
).
getPrecision
()
>
.
6
)
A3
.
render
(
V
);
System
.
out
.
flush
();
// necessary when the program is really embedded
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
};
}
}
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