001    /***************************************************************************/
002    /*  Copyright (C) 2010-2011, Sebastian Hellmann                            */
003    /*  Note: If you need parts of NLP2RDF in another licence due to licence   */
004    /*  incompatibility, please mail hellmann@informatik.uni-leipzig.de        */
005    /*                                                                         */
006    /*  This file is part of NLP2RDF.                                          */
007    /*                                                                         */
008    /*  NLP2RDF is free software; you can redistribute it and/or modify        */
009    /*  it under the terms of the GNU General Public License as published by   */
010    /*  the Free Software Foundation; either version 3 of the License, or      */
011    /*  (at your option) any later version.                                    */
012    /*                                                                         */
013    /*  NLP2RDF is distributed in the hope that it will be useful,             */
014    /*  but WITHOUT ANY WARRANTY; without even the implied warranty of         */
015    /*  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the           */
016    /*  GNU General Public License for more details.                           */
017    /*                                                                         */
018    /*  You should have received a copy of the GNU General Public License      */
019    /*  along with this program. If not, see <http://www.gnu.org/licenses/>.   */
020    /***************************************************************************/
021    
022    package org.nlp2rdf.core;
023    
024    import eu.lod2.nlp2rdf.schema.sso.Word;
025    import opennlp.tools.util.Span;
026    
027    /**
028     * @author Sebastian Hellmann - http://bis.informatik.uni-leipzig.de/SebastianHellmann
029     *         <p/>
030     *         This is a data collection class (Plain Old Java Object) with no functionality.
031     *         It is used to decouple tokenization from RDF generation.
032     */
033    public class WordPOJO {
034    
035        //these should be set before the conversion
036        private Span span;
037        private String text;
038    
039        //these will be set during the conversion to owl
040        private String uri;
041        private Word word;
042    
043    
044        public Span getSpan() {
045            return span;
046        }
047    
048        public void setSpan(Span span) {
049            this.span = span;
050        }
051    
052        public String getText() {
053            return text;
054        }
055    
056        public void setText(String text) {
057            this.text = text;
058        }
059    
060        public String getUri() {
061            return uri;
062        }
063    
064        public void setUri(String uri) {
065            this.uri = uri;
066        }
067    
068        public Word getWord() {
069            return word;
070        }
071    
072        public void setWord(Word word) {
073            this.word = word;
074        }
075    }