|
1 | 1 | /*
|
2 | 2 | * This file is part of the ONT API.
|
3 | 3 | * The contents of this file are subject to the LGPL License, Version 3.0.
|
4 |
| - * Copyright (c) 2019, The University of Manchester, owl.cs group. |
| 4 | + * Copyright (c) 2020, The University of Manchester, owl.cs group. |
5 | 5 | *
|
6 | 6 | * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
7 | 7 | * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
|
13 | 13 | */
|
14 | 14 | package com.github.owlcs.ontapi.owlapi.axioms;
|
15 | 15 |
|
16 |
| -import org.semanticweb.owlapi.model.*; |
17 | 16 | import com.github.owlcs.ontapi.owlapi.objects.ce.OWLObjectMaxCardinalityImpl;
|
| 17 | +import org.semanticweb.owlapi.model.*; |
18 | 18 |
|
19 | 19 | import javax.annotation.Nonnull;
|
20 | 20 | import java.util.Collection;
|
@@ -50,13 +50,12 @@ public OWLInverseFunctionalObjectPropertyAxiomImpl getAxiomWithoutAnnotations()
|
50 | 50 | @SuppressWarnings("unchecked")
|
51 | 51 | @Override
|
52 | 52 | public <T extends OWLAxiom> T getAnnotatedAxiom(@Nonnull Stream<OWLAnnotation> anns) {
|
53 |
| - return (T) new OWLInverseFunctionalObjectPropertyAxiomImpl(getProperty(), |
54 |
| - mergeAnnotations(this, anns)); |
| 53 | + return (T) new OWLInverseFunctionalObjectPropertyAxiomImpl(getProperty(), mergeAnnotations(this, anns)); |
55 | 54 | }
|
56 | 55 |
|
57 | 56 | @Override
|
58 | 57 | public OWLSubClassOfAxiom asOWLSubClassOfAxiom() {
|
59 |
| - return new OWLSubClassOfAxiomImpl(OWL_THING, new OWLObjectMaxCardinalityImpl(getProperty().getInverseProperty() |
60 |
| - .getSimplified(), 1, OWL_THING), NO_ANNOTATIONS); |
| 58 | + return new OWLSubClassOfAxiomImpl(OWL_THING, |
| 59 | + new OWLObjectMaxCardinalityImpl(getProperty().getInverseProperty(), 1, OWL_THING), NO_ANNOTATIONS); |
61 | 60 | }
|
62 | 61 | }
|
0 commit comments