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
2602e640
Commit
2602e640
authored
15 years ago
by
Jérôme Euzenat
Browse files
Options
Downloads
Patches
Plain Diff
- moved to ontosim
parent
96374bff
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/method/NameAndPropertyAlignment.java
+6
-2
6 additions, 2 deletions
...lpes/exmo/align/impl/method/NameAndPropertyAlignment.java
with
6 additions
and
2 deletions
src/fr/inrialpes/exmo/align/impl/method/NameAndPropertyAlignment.java
+
6
−
2
View file @
2602e640
/*
* $Id$
*
* Copyright (C) INRIA, 2003-2004, 2007-200
8
* Copyright (C) INRIA, 2003-2004, 2007-200
9
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
...
...
@@ -34,6 +34,8 @@ import fr.inrialpes.exmo.align.impl.DistanceAlignment;
import
fr.inrialpes.exmo.align.onto.HeavyLoadedOntology
;
import
fr.inrialpes.exmo.align.onto.OntologyFactory
;
import
fr.inrialpes.exmo.ontosim.string.StringDistances
;
/** This class has been built for ISWC experiments with bibliography.
* It implements a non iterative (one step) OLA algorithms based on
* the name of classes and properties. It could be made iterative by
...
...
@@ -68,7 +70,7 @@ public class NameAndPropertyAlignment extends DistanceAlignment implements Align
public
void
init
(
Object
o1
,
Object
o2
,
Object
ontologies
)
throws
AlignmentException
{
super
.
init
(
o1
,
o2
,
ontologies
);
if
(
!(
getOntologyObject1
()
instanceof
HeavyLoadedOntology
&&
getOntologyObject
1
()
instanceof
HeavyLoadedOntology
))
&&
getOntologyObject
2
()
instanceof
HeavyLoadedOntology
))
throw
new
AlignmentException
(
"NameAndPropertyAlignment requires HeavyLoadedOntology ontology loader"
);
}
...
...
@@ -77,6 +79,8 @@ public class NameAndPropertyAlignment extends DistanceAlignment implements Align
loadInit
(
alignment
);
honto1
=
(
HeavyLoadedOntology
<
Object
>)
getOntologyObject1
();
honto2
=
(
HeavyLoadedOntology
<
Object
>)
getOntologyObject2
();
//System.err.println( honto1+" ==> "+honto1.getOntology() );
//System.err.println( honto2+" ==> "+honto2.getOntology() );
double
threshold
=
1
.;
// threshold above which distances are too high
int
i
,
j
=
0
;
// index for onto1 and onto2 classes
int
nbclass1
=
0
;
// number of classes in onto1
...
...
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