Mentions légales du service

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

- added the invert operation

parent 1f380909
No related branches found
No related tags found
No related merge requests found
......@@ -97,6 +97,11 @@ public class BasicOntologyNetwork implements OntologyNetwork {
if (!ontologies.containsKey(onto)) return Collections.emptySet();
return ontologies.get( onto ).sourceAlignments;
};
public void invert() throws AlignmentException {
for ( Alignment al : alignments ) {
addAlignment( al.inverse() );
}
}
}
......
......@@ -47,6 +47,11 @@ public interface OntologyNetwork extends Cloneable {
public Set<Alignment> getTargetingAlignments( URI onto );
public Set<Alignment> getSourceAlignments( URI onto );
/**
* close reflexively the network.
* The network is modified.
*/
public void invert() throws AlignmentException;
}
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