Mentions légales du service

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

- Modified Cell interface so that object URIs can be found in a generic way

        -> solves a database storage bug
parent 801c3598
No related branches found
No related tags found
No related merge requests found
......@@ -143,14 +143,15 @@ public class RDFRendererVisitor implements AlignmentVisitor
}
public void visit( Cell cell ) throws AlignmentException {
this.cell = cell;
URI u1, u2;
if ( cell instanceof ObjectCell ) {
u1 = ((LoadedOntology)((BasicAlignment)alignment).getOntologyObject1()).getEntityURI( cell.getObject1() );
u2 = ((LoadedOntology)((BasicAlignment)alignment).getOntologyObject2()).getEntityURI( cell.getObject2() );
} else {
u1 = cell.getObject1AsURI();
u2 = cell.getObject2AsURI();
}
//URI u1, u2;
// JE: I think that now these two clauses should be unified (3.4)
//if ( cell instanceof ObjectCell ) {
// u1 = ((LoadedOntology)((BasicAlignment)alignment).getOntologyObject1()).getEntityURI( cell.getObject1() );
// u2 = ((LoadedOntology)((BasicAlignment)alignment).getOntologyObject2()).getEntityURI( cell.getObject2() );
//} else {
URI u1 = cell.getObject1AsURI(alignment);
URI u2 = cell.getObject2AsURI(alignment);
//}
if ( ( u1 != null && u2 != null)
|| alignment.getLevel().equals("2OMWG") ){
writer.print(" <map>\n");
......
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