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
74af9c37
Commit
74af9c37
authored
11 years ago
by
Jérôme David
Browse files
Options
Downloads
Patches
Plain Diff
Fix a bug in EDOALAlignment which did not allow to load ontologies when they were not
parent
0a6a14dd
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/impl/edoal/EDOALAlignment.java
+12
-2
12 additions, 2 deletions
src/fr/inrialpes/exmo/align/impl/edoal/EDOALAlignment.java
with
12 additions
and
2 deletions
src/fr/inrialpes/exmo/align/impl/edoal/EDOALAlignment.java
+
12
−
2
View file @
74af9c37
...
@@ -37,6 +37,7 @@ import org.semanticweb.owl.align.Relation;
...
@@ -37,6 +37,7 @@ import org.semanticweb.owl.align.Relation;
import
fr.inrialpes.exmo.ontowrap.Ontology
;
import
fr.inrialpes.exmo.ontowrap.Ontology
;
import
fr.inrialpes.exmo.ontowrap.LoadedOntology
;
import
fr.inrialpes.exmo.ontowrap.LoadedOntology
;
import
fr.inrialpes.exmo.ontowrap.OntologyFactory
;
import
fr.inrialpes.exmo.ontowrap.OntowrapException
;
import
fr.inrialpes.exmo.ontowrap.OntowrapException
;
import
fr.inrialpes.exmo.align.impl.Annotations
;
import
fr.inrialpes.exmo.align.impl.Annotations
;
import
fr.inrialpes.exmo.align.impl.Namespace
;
import
fr.inrialpes.exmo.align.impl.Namespace
;
...
@@ -83,8 +84,17 @@ public class EDOALAlignment extends BasicAlignment {
...
@@ -83,8 +84,17 @@ public class EDOALAlignment extends BasicAlignment {
throw
new
AlignmentException
(
"The source and target ontologies must not be null"
);
throw
new
AlignmentException
(
"The source and target ontologies must not be null"
);
if
(
(
onto1
instanceof
Ontology
&&
onto2
instanceof
Ontology
)
){
if
(
(
onto1
instanceof
Ontology
&&
onto2
instanceof
Ontology
)
){
super
.
init
(
onto1
,
onto2
);
super
.
init
(
onto1
,
onto2
);
}
else
{
}
throw
new
AlignmentException
(
"arguments must be LoadedOntology"
);
else
if
((
onto1
instanceof
URI
&&
onto2
instanceof
URI
))
{
OntologyFactory
fact
=
OntologyFactory
.
getFactory
();
try
{
super
.
init
(
fact
.
loadOntology
((
URI
)
onto1
),
fact
.
loadOntology
((
URI
)
onto2
));
}
catch
(
OntowrapException
e
)
{
throw
new
AlignmentException
(
"Could not load ontologies"
,
e
);
}
}
else
{
throw
new
AlignmentException
(
"arguments must be LoadedOntology or deferencable URIs"
);
};
};
}
}
...
...
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