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
fc6b88f7
Commit
fc6b88f7
authored
16 years ago
by
Jérôme Euzenat
Browse files
Options
Downloads
Patches
Plain Diff
- moved the reachable test so that alignment with unreachable ontologies can be served
parent
cdc5db93
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
src/fr/inrialpes/exmo/align/service/AServProtocolManager.java
+14
-3
14 additions, 3 deletions
...fr/inrialpes/exmo/align/service/AServProtocolManager.java
with
14 additions
and
3 deletions
src/fr/inrialpes/exmo/align/service/AServProtocolManager.java
+
14
−
3
View file @
fc6b88f7
/*
/*
* $Id$
* $Id$
*
*
* Copyright (C) INRIA, 2006-200
8
* Copyright (C) INRIA, 2006-200
9
*
*
* This program is free software; you can redistribute it and/or
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* modify it under the terms of the GNU Lesser General Public License
...
@@ -255,6 +255,8 @@ public class AServProtocolManager {
...
@@ -255,6 +255,8 @@ public class AServProtocolManager {
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
return
new
NonConformParameters
(
newId
(),
mess
,
myId
,
mess
.
getSender
(),
"nonconform/params/onto"
,(
Parameters
)
null
);
return
new
NonConformParameters
(
newId
(),
mess
,
myId
,
mess
.
getSender
(),
"nonconform/params/onto"
,(
Parameters
)
null
);
};
};
// JE 15/1/2009: avoided to check for reachability
/*
if ( ( onto1 = reachable( uri1 ) ) == null ){
if ( ( onto1 = reachable( uri1 ) ) == null ){
return new UnreachableOntology(newId(),mess,myId,mess.getSender(),(String)params.getParameter("onto1"),(Parameters)null);
return new UnreachableOntology(newId(),mess,myId,mess.getSender(),(String)params.getParameter("onto1"),(Parameters)null);
} else if ( ( onto2 = reachable( uri2 ) ) == null ){
} else if ( ( onto2 = reachable( uri2 ) ) == null ){
...
@@ -262,6 +264,8 @@ public class AServProtocolManager {
...
@@ -262,6 +264,8 @@ public class AServProtocolManager {
}
}
// Try to retrieve first
// Try to retrieve first
Set alignments = alignmentCache.getAlignments( onto1.getURI(), onto2.getURI() );
Set alignments = alignmentCache.getAlignments( onto1.getURI(), onto2.getURI() );
*/
Set
alignments
=
alignmentCache
.
getAlignments
(
uri1
,
uri2
);
if
(
alignments
!=
null
&&
params
.
getParameter
(
"force"
)
==
null
)
{
if
(
alignments
!=
null
&&
params
.
getParameter
(
"force"
)
==
null
)
{
for
(
Iterator
it
=
alignments
.
iterator
();
it
.
hasNext
()
;
){
for
(
Iterator
it
=
alignments
.
iterator
();
it
.
hasNext
()
;
){
Alignment
al
=
((
Alignment
)
it
.
next
());
Alignment
al
=
((
Alignment
)
it
.
next
());
...
@@ -842,7 +846,6 @@ public class AServProtocolManager {
...
@@ -842,7 +846,6 @@ public class AServProtocolManager {
result
=
new
NonConformParameters
(
newId
(),
mess
,
myId
,
mess
.
getSender
(),
"nonconform/params/onto"
,(
Parameters
)
null
);
result
=
new
NonConformParameters
(
newId
(),
mess
,
myId
,
mess
.
getSender
(),
"nonconform/params/onto"
,(
Parameters
)
null
);
return
;
return
;
};
};
// The unreachability test has already been done
// find initial alignment
// find initial alignment
Alignment
init
=
null
;
Alignment
init
=
null
;
...
@@ -880,7 +883,15 @@ public class AServProtocolManager {
...
@@ -880,7 +883,15 @@ public class AServProtocolManager {
aresult
.
setExtension
(
Annotations
.
ALIGNNS
,
Annotations
.
TIME
,
Long
.
toString
(
newTime
-
time
)
);
aresult
.
setExtension
(
Annotations
.
ALIGNNS
,
Annotations
.
TIME
,
Long
.
toString
(
newTime
-
time
)
);
}
catch
(
AlignmentException
e
)
{
}
catch
(
AlignmentException
e
)
{
result
=
new
NonConformParameters
(
newId
(),
mess
,
myId
,
mess
.
getSender
(),
"nonconform/params/"
+
e
.
getMessage
(),(
Parameters
)
null
);
// The unreachability test has already been done
// JE 15/1/2009: commented the unreachability test
if
(
reachable
(
uri1
)
==
null
){
result
=
new
UnreachableOntology
(
newId
(),
mess
,
myId
,
mess
.
getSender
(),(
String
)
params
.
getParameter
(
"onto1"
),(
Parameters
)
null
);
}
else
if
(
reachable
(
uri2
)
==
null
){
result
=
new
UnreachableOntology
(
newId
(),
mess
,
myId
,
mess
.
getSender
(),(
String
)
params
.
getParameter
(
"onto2"
),(
Parameters
)
null
);
}
else
{
result
=
new
NonConformParameters
(
newId
(),
mess
,
myId
,
mess
.
getSender
(),
"nonconform/params/"
+
e
.
getMessage
(),(
Parameters
)
null
);
}
return
;
return
;
}
}
// ask to store A'
// ask to store A'
...
...
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