@@ -0,0 +1,1491 @@
+package de.linkvt.bachelor.features.dataranges;%0A%0Aimport de.linkvt.bachelor.features.Feature;%0Aimport de.linkvt.bachelor.features.FeatureCategory;%0A%0Aimport org.semanticweb.owlapi.model.OWLDataProperty;%0Aimport org.semanticweb.owlapi.model.OWLDatatype;%0Aimport org.semanticweb.owlapi.model.OWLDatatypeRestriction;%0Aimport org.semanticweb.owlapi.model.OWLFacetRestriction;%0Aimport org.semanticweb.owlapi.model.OWLLiteral;%0Aimport org.semanticweb.owlapi.vocab.OWLFacet;%0Aimport org.springframework.stereotype.Component;%0A%0A@Component%0Apublic class OwlDatatypeRestrictionFeature extends Feature %7B%0A  @Override%0A  public void addToOntology() %7B%0A    OWLDatatype datatype = factory.getOWLDatatype(%22:DatatypeRestrictionDatatype%22, pm);%0A%0A    OWLFacetRestriction fr1 = factory.getOWLFacetRestriction(OWLFacet.MIN_LENGTH, 10);%0A    OWLLiteral patternLiteral = factory.getOWLLiteral(%22DatatypeRestrictionLiteral%22);%0A    OWLFacetRestriction fr2 = factory.getOWLFacetRestriction(OWLFacet.PATTERN, patternLiteral);%0A%0A    OWLDatatypeRestriction restriction = factory.getOWLDatatypeRestriction(datatype, fr1, fr2);%0A%0A    OWLDataProperty property = factory.getOWLDataProperty(%22:datatypeRestrictionProperty%22, pm);%0A    addToGenericDomainAndNewRange(property, restriction);%0A  %7D%0A%0A  @Override%0A  public String getName() %7B%0A    return %22DatatypeRestriction%22;%0A  %7D%0A%0A  @Override%0A  public String getToken() %7B%0A    return %22restrictiondata%22;%0A  %7D%0A%0A  @Override%0A  public FeatureCategory getCategory() %7B%0A    return FeatureCategory.DATA_RANGES;%0A  %7D%0A%7D%0A

Add a datatype restriction feature