Mentions légales du service

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

- translated composition by propertyChainAxioms

parent b94710e6
No related branches found
No related tags found
No related merge requests found
...@@ -711,6 +711,7 @@ public class OWLAxiomsRendererVisitor extends IndentedRendererVisitor implements ...@@ -711,6 +711,7 @@ public class OWLAxiomsRendererVisitor extends IndentedRendererVisitor implements
increaseIndent(); increaseIndent();
final Constructor op = e.getOperator(); final Constructor op = e.getOperator();
String owlop = null; String owlop = null;
if ( op == Constructor.COMP ) owlop = "propertyChainAxiom";
// JE: FOR TESTING // JE: FOR TESTING
//owlop = "FORTESTING("+op.name()+")"; //owlop = "FORTESTING("+op.name()+")";
if ( owlop == null ) throw new AlignmentException( "Cannot translate property construction in OWL : "+op ); if ( owlop == null ) throw new AlignmentException( "Cannot translate property construction in OWL : "+op );
...@@ -861,7 +862,7 @@ public class OWLAxiomsRendererVisitor extends IndentedRendererVisitor implements ...@@ -861,7 +862,7 @@ public class OWLAxiomsRendererVisitor extends IndentedRendererVisitor implements
* closure and the compositional closure (or composition) can only be obtained by * closure and the compositional closure (or composition) can only be obtained by
* defining a property subsumed by this closure through an axiom. * defining a property subsumed by this closure through an axiom.
* It is also possible to rewrite the reflexive closures as axioms as well. * It is also possible to rewrite the reflexive closures as axioms as well.
* But the transitive closure can only be obtained through subsuption. * But the transitive closure can only be obtained through subsumption.
*/ */
public void visit( final RelationConstruction e ) throws AlignmentException { public void visit( final RelationConstruction e ) throws AlignmentException {
Relation toProcessNext = toProcess; Relation toProcessNext = toProcess;
...@@ -870,7 +871,11 @@ public class OWLAxiomsRendererVisitor extends IndentedRendererVisitor implements ...@@ -870,7 +871,11 @@ public class OWLAxiomsRendererVisitor extends IndentedRendererVisitor implements
increaseIndent(); increaseIndent();
final Constructor op = e.getOperator(); final Constructor op = e.getOperator();
String owlop = null; String owlop = null;
if ( op == Constructor.INVERSE ) owlop = "owl:inverseOf"; if ( op == Constructor.INVERSE ) {
owlop = "inverseOf";
} else if ( op == Constructor.COMP ) {
owlop = "propertyChainAxiom";
}
// JE: FOR TESTING // JE: FOR TESTING
//owlop = "FORTESTING("+op.name()+")"; //owlop = "FORTESTING("+op.name()+")";
if ( owlop == null ) throw new AlignmentException( "Cannot translate relation construction in OWL : "+op ); if ( owlop == null ) throw new AlignmentException( "Cannot translate relation construction in OWL : "+op );
......
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