001    /**
002     * Copyright (C) 2007-2011, Jens Lehmann
003     *
004     * This file is part of DL-Learner.
005     *
006     * DL-Learner is free software; you can redistribute it and/or modify
007     * it under the terms of the GNU General Public License as published by
008     * the Free Software Foundation; either version 3 of the License, or
009     * (at your option) any later version.
010     *
011     * DL-Learner is distributed in the hope that it will be useful,
012     * but WITHOUT ANY WARRANTY; without even the implied warranty of
013     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
014     * GNU General Public License for more details.
015     *
016     * You should have received a copy of the GNU General Public License
017     * along with this program.  If not, see <http://www.gnu.org/licenses/>.
018     */
019    
020    package org.dllearner.algorithms.gp;
021    
022    import java.util.Map;
023    
024    import org.dllearner.core.owl.Description;
025    import org.dllearner.core.owl.DescriptionVisitor;
026    import org.dllearner.core.owl.KBElementVisitor;
027    import org.semanticweb.owlapi.model.OWLClass;
028    import org.semanticweb.owlapi.model.OWLClassExpressionVisitor;
029    import org.semanticweb.owlapi.model.OWLObjectVisitor;
030    
031    /**
032     * ADC stand for "automatically defined concept". It is used for
033     * concept invention in the Genetic Programming Algorithm. 
034     * However, it is not used 
035     * 
036     * @author Jens Lehmann
037     *
038     */
039    public class ADC extends Description {
040    
041            /*
042            @Override
043            protected void calculateSets(FlatABox abox, SortedSet<String> adcPosSet, SortedSet<String> adcNegSet) {
044                    posSet = adcPosSet;
045                    negSet = adcNegSet;
046            }
047            */
048    
049            private static final long serialVersionUID = -3820156025424386445L;
050    
051            public int getLength() {
052                    // ein ADC-Knoten hat Laenge 1, da effektiv nur ein Knoten benoetigt wird
053                    // um die Gesamtlaenge des gelernten Konzepts zu haben, muss man natuerlich
054                    // noch zusaetzliche die Laenge der ADC addieren
055                    return 1;
056            }
057    
058            public String toString(String baseURI, Map<String,String> prefixes) {
059                    return "ADC";
060            }
061            
062            public String toKBSyntaxString(String baseURI, Map<String,String> prefixes) {
063                    return "ADC";
064            }
065            
066            
067    
068            /* (non-Javadoc)
069             * @see org.dllearner.core.owl.Description#toManchesterSyntaxString()
070             */
071            @Override
072            public String toManchesterSyntaxString(String baseURI, Map<String,String> prefixes) {
073                    // TODO Auto-generated method stub
074                    return null;
075            }       
076            
077            @Override
078            public int getArity() {
079                    return 0;
080            }
081    
082            /* (non-Javadoc)
083             * @see org.dllearner.core.owl.Description#accept(org.dllearner.core.owl.DescriptionVisitor)
084             */
085            @Override
086            public void accept(DescriptionVisitor visitor) {
087                    visitor.visit(this);
088            }
089    
090            public void accept(KBElementVisitor visitor) {
091                    visitor.visit(this);
092            }
093    
094            /* (non-Javadoc)
095             * @see org.semanticweb.owl.model.OWLDescription#accept(org.semanticweb.owl.model.OWLDescriptionVisitor)
096             */
097            public void accept(OWLClassExpressionVisitor arg0) {
098                    // TODO Auto-generated method stub
099                    
100            }
101    
102            /* (non-Javadoc)
103             * @see org.semanticweb.owl.model.OWLDescription#asOWLClass()
104             */
105            public OWLClass asOWLClass() {
106                    // TODO Auto-generated method stub
107                    return null;
108            }
109    
110            /* (non-Javadoc)
111             * @see org.semanticweb.owl.model.OWLDescription#isAnonymous()
112             */
113            public boolean isAnonymous() {
114                    // TODO Auto-generated method stub
115                    return false;
116            }
117    
118            /* (non-Javadoc)
119             * @see org.semanticweb.owl.model.OWLDescription#isOWLNothing()
120             */
121            public boolean isOWLNothing() {
122                    // TODO Auto-generated method stub
123                    return false;
124            }
125    
126            /* (non-Javadoc)
127             * @see org.semanticweb.owl.model.OWLDescription#isOWLThing()
128             */
129            public boolean isOWLThing() {
130                    // TODO Auto-generated method stub
131                    return false;
132            }
133    
134            /* (non-Javadoc)
135             * @see org.semanticweb.owl.model.OWLObject#accept(org.semanticweb.owl.model.OWLObjectVisitor)
136             */
137            public void accept(OWLObjectVisitor arg0) {
138                    // TODO Auto-generated method stub
139                    
140            }
141    
142    
143    
144    }