Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 2602e640 authored by Jérôme Euzenat's avatar Jérôme Euzenat
Browse files

- moved to ontosim

parent 96374bff
No related branches found
No related tags found
No related merge requests found
/*
* $Id$
*
* Copyright (C) INRIA, 2003-2004, 2007-2008
* Copyright (C) INRIA, 2003-2004, 2007-2009
*
* 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
&& getOntologyObject1() instanceof HeavyLoadedOntology ))
&& getOntologyObject2() 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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment