diff --git a/src/fr/inrialpes/exmo/align/impl/BasicAlignment.java b/src/fr/inrialpes/exmo/align/impl/BasicAlignment.java index ccc8775330fb09cb1be4c4b620b95809b1d844e9..2d27d0b835413c4d3013884dc20de522696353d4 100644 --- a/src/fr/inrialpes/exmo/align/impl/BasicAlignment.java +++ b/src/fr/inrialpes/exmo/align/impl/BasicAlignment.java @@ -188,6 +188,12 @@ public class BasicAlignment implements Alignment { } /** Cell methods **/ + public Cell addAlignCell( String id, Object ob1, Object ob2, Relation relation, double measure, Parameters extensions ) throws AlignmentException { + Cell cell = createCell( id, ob1, ob2, relation, measure); + cell.setExtensions( extensions ); + addCell( cell ); + return cell; + } public Cell addAlignCell( String id, Object ob1, Object ob2, Relation relation, double measure ) throws AlignmentException { Cell cell = createCell( id, ob1, ob2, relation, measure); addCell( cell ); diff --git a/src/fr/inrialpes/exmo/align/impl/OWLAPIAlignment.java b/src/fr/inrialpes/exmo/align/impl/OWLAPIAlignment.java index 7721396c292ef5b4f811434672b7d678a1aafc8d..f2c88dfcc3cce913d9f260f5f9f082d642dcd944 100644 --- a/src/fr/inrialpes/exmo/align/impl/OWLAPIAlignment.java +++ b/src/fr/inrialpes/exmo/align/impl/OWLAPIAlignment.java @@ -140,6 +140,11 @@ public class OWLAPIAlignment extends BasicAlignment { }; /** Cell methods **/ + public Cell addAlignCell(String id, Object ob1, Object ob2, Relation relation, double measure, Parameters extensions ) throws AlignmentException { + if ( !( ob1 instanceof OWLEntity && ob2 instanceof OWLEntity ) ) + throw new AlignmentException("arguments must be OWLEntities"); + return super.addAlignCell( id, ob1, ob2, relation, measure, extensions); + }; public Cell addAlignCell(String id, Object ob1, Object ob2, Relation relation, double measure) throws AlignmentException { if ( !( ob1 instanceof OWLEntity && ob2 instanceof OWLEntity ) ) throw new AlignmentException("arguments must be OWLEntities"); @@ -274,7 +279,8 @@ public class OWLAPIAlignment extends BasicAlignment { getEntity( onto1, c.getObject1AsURI() ), getEntity( onto2, c.getObject2AsURI() ), c.getRelation(), - c.getStrength() ); + c.getStrength(), + c.getExtensions() ); }; return alignment; }