@@ -0,0 +1,1162 @@
+package de.linkvt.bachelor.features.classes.values;%0A%0Aimport de.linkvt.bachelor.features.Feature;%0Aimport de.linkvt.bachelor.features.FeatureCategory;%0A%0Aimport org.semanticweb.owlapi.model.IRI;%0Aimport org.semanticweb.owlapi.model.OWLClass;%0Aimport org.semanticweb.owlapi.model.OWLIndividual;%0Aimport org.semanticweb.owlapi.model.OWLObjectHasSelf;%0Aimport org.semanticweb.owlapi.model.OWLObjectHasValue;%0Aimport org.semanticweb.owlapi.model.OWLObjectProperty;%0Aimport org.springframework.stereotype.Component;%0A%0A@Component%0Apublic class OwlHasSelfFeature extends Feature %7B%0A  @Override%0A  public void addToOntology() %7B%0A    OWLObjectProperty loves = featurePool.getExclusiveProperty(%22loves%22);%0A%0A    OWLClass narcisticPerson = featurePool.getExclusiveClass(%22NarcisticPerson%22);%0A%0A    OWLObjectHasSelf restriction = factory.getOWLObjectHasSelf(loves);%0A    addAxiomToOntology(factory.getOWLEquivalentClassesAxiom(narcisticPerson, restriction));%0A  %7D%0A%0A  @Override%0A  public String getName() %7B%0A    return %22owl:hasSelf%22;%0A  %7D%0A%0A  @Override%0A  public String getToken() %7B%0A    return %22hasself%22;%0A  %7D%0A%0A  @Override%0A  public FeatureCategory getCategory() %7B%0A    return FeatureCategory.CLASS;%0A  %7D%0A%7D%0A

Add owl hasSelf restriction