// Path: src/main/java/fr/eurecom/stanfordnlprestapi/enums/NlpProcess.java
// public enum NlpProcess {
//   NER,
//   POS,
//   TOKENIZE,
//   COREF,
//   DATE,
//   NUMBER,
//   GAZETTEER
// }
// 
// Path: src/main/java/fr/eurecom/stanfordnlprestapi/interfaces/Sentence.java
// public interface Sentence {
//   void addToken(final Token newToken);
// 
//   void addEntity(final Entity newEntity);
//   
//   void addCoref(final Coref newCoref);
// 
//   void nextSentence(final Sentence newNextSentence);
// 
//   List<Entity> entities();
// 
//   int index();
// 
//   int start();
// 
//   int end();
// 
//   Model rdfModel(final String tool, final NlpProcess process, final String host);
// }
// 
// Path: src/main/java/fr/eurecom/stanfordnlprestapi/nullobjects/NullSentence.java
// public final class NullSentence implements Sentence {
//   static final Logger LOGGER = LoggerFactory.getLogger(NullSentence.class);
//   private static final NullSentence INSTANCE = new NullSentence();
//   
//   public static NullSentence getInstance() {
//     return NullSentence.INSTANCE;
//   }
//   
//   private NullSentence() {
//   }
// 
//   @Override
//   public void addToken(final Token newToken) {
//     throw new UnsupportedOperationException("Not implemented");
//   }
// 
//   @Override
//   public void addEntity(final Entity newEntity) {
//     throw new UnsupportedOperationException("Not implemented");
//   }
//   
//   @Override
//   public void addCoref(final Coref newCoref) {
//     throw new UnsupportedOperationException("Not implemented");
//   }
// 
//   @Override
//   public void nextSentence(final Sentence newNextSentence) {
//     throw new UnsupportedOperationException("Not implemented");
//   }
// 
//   @Override
//   public List<Entity> entities() {
//     return null;
//   }
// 
//   @Override
//   public int index() {
//     return -1;
//   }
// 
//   @Override
//   public int start() {
//     return 0;
//   }
// 
//   @Override
//   public int end() {
//     return 0;
//   }
// 
//   @Override
//   public Model rdfModel(final String tool, final NlpProcess process, final String host) {
//     return ModelFactory.createDefaultModel();
//   }
// }


import org.apache.jena.rdf.model.ResourceFactory;
import org.apache.jena.vocabulary.RDF;
import org.junit.Assert;
import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import fr.eurecom.stanfordnlprestapi.enums.NlpProcess;
import fr.eurecom.stanfordnlprestapi.interfaces.Sentence;
import fr.eurecom.stanfordnlprestapi.nullobjects.NullSentence;
import java.util.HashMap;
import java.util.Map;
import org.apache.jena.datatypes.xsd.XSDDatatype;
import org.apache.jena.rdf.model.Model;
import org.apache.jena.rdf.model.ModelFactory;
/**
 * StanfordNLPRESTAPI - Offering a REST API over Stanford CoreNLP to get results in NIF format.
 * Copyright © 2017 Julien Plu (julien.plu@redaction-developpez.com)
 *
 * 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.
 *
 * 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.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
 */
package fr.eurecom.stanfordnlprestapi.datatypes;










/**
 * @author Julien Plu
 */
public class ContextTest {
  static final Logger LOGGER = LoggerFactory.getLogger(ContextTest.class);

  public ContextTest() {
  }

  /**
   * Test {@link Context#rdfModel(String, NlpProcess, String)} method for POS.
   */
  @Test
  public final void testPosRdfModel() {
    final Context context = new Context("My favorite actress is: Natalie Portman. She is very "
        + "stunning.", 0, 62);
// Path: src/main/java/fr/eurecom/stanfordnlprestapi/enums/NlpProcess.java
// public enum NlpProcess {
//   NER,
//   POS,
//   TOKENIZE,
//   COREF,
//   DATE,
//   NUMBER,
//   GAZETTEER
// }
// 
// Path: src/main/java/fr/eurecom/stanfordnlprestapi/interfaces/Sentence.java
// public interface Sentence {
//   void addToken(final Token newToken);
// 
//   void addEntity(final Entity newEntity);
//   
//   void addCoref(final Coref newCoref);
// 
//   void nextSentence(final Sentence newNextSentence);
// 
//   List<Entity> entities();
// 
//   int index();
// 
//   int start();
// 
//   int end();
// 
//   Model rdfModel(final String tool, final NlpProcess process, final String host);
// }
// 
// Path: src/main/java/fr/eurecom/stanfordnlprestapi/nullobjects/NullSentence.java
// public final class NullSentence implements Sentence {
//   static final Logger LOGGER = LoggerFactory.getLogger(NullSentence.class);
//   private static final NullSentence INSTANCE = new NullSentence();
//   
//   public static NullSentence getInstance() {
//     return NullSentence.INSTANCE;
//   }
//   
//   private NullSentence() {
//   }
// 
//   @Override
//   public void addToken(final Token newToken) {
//     throw new UnsupportedOperationException("Not implemented");
//   }
// 
//   @Override
//   public void addEntity(final Entity newEntity) {
//     throw new UnsupportedOperationException("Not implemented");
//   }
//   
//   @Override
//   public void addCoref(final Coref newCoref) {
//     throw new UnsupportedOperationException("Not implemented");
//   }
// 
//   @Override
//   public void nextSentence(final Sentence newNextSentence) {
//     throw new UnsupportedOperationException("Not implemented");
//   }
// 
//   @Override
//   public List<Entity> entities() {
//     return null;
//   }
// 
//   @Override
//   public int index() {
//     return -1;
//   }
// 
//   @Override
//   public int start() {
//     return 0;
//   }
// 
//   @Override
//   public int end() {
//     return 0;
//   }
// 
//   @Override
//   public Model rdfModel(final String tool, final NlpProcess process, final String host) {
//     return ModelFactory.createDefaultModel();
//   }
// }


// Path: src/test/java/fr/eurecom/stanfordnlprestapi/datatypes/ContextTest.java
import org.apache.jena.rdf.model.ResourceFactory;
import org.apache.jena.vocabulary.RDF;
import org.junit.Assert;
import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import fr.eurecom.stanfordnlprestapi.enums.NlpProcess;
import fr.eurecom.stanfordnlprestapi.interfaces.Sentence;
import fr.eurecom.stanfordnlprestapi.nullobjects.NullSentence;
import java.util.HashMap;
import java.util.Map;
import org.apache.jena.datatypes.xsd.XSDDatatype;
import org.apache.jena.rdf.model.Model;
import org.apache.jena.rdf.model.ModelFactory;

/**
 * StanfordNLPRESTAPI - Offering a REST API over Stanford CoreNLP to get results in NIF format.
 * Copyright © 2017 Julien Plu (julien.plu@redaction-developpez.com)
 *
 * 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.
 *
 * 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.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
 */
package fr.eurecom.stanfordnlprestapi.datatypes;










/**
 * @author Julien Plu
 */
public class ContextTest {
  static final Logger LOGGER = LoggerFactory.getLogger(ContextTest.class);

  public ContextTest() {
  }

  /**
   * Test {@link Context#rdfModel(String, NlpProcess, String)} method for POS.
   */
  @Test
  public final void testPosRdfModel() {
    final Context context = new Context("My favorite actress is: Natalie Portman. She is very "
        + "stunning.", 0, 62);
    final Sentence sentence = NullSentence.getInstance();