示例#1
0
 private List<Thing> handlePrepositions(CSVEntry csvEntry) {
   List<Thing> entities = new ArrayList<>();
   String key1 = getLeftHandSideOfPreposition();
   entities.addAll(processIndividualWords(key1, csvEntry));
   entities.addAll(handleElementOfPreposition(key1, csvEntry));
   return entities;
 }
示例#2
0
  public void convert(List<CSVEntry> itemsToConvert) {
    rdfElements = new ArrayList<>();

    addTopLevelElements();

    for (CSVEntry csvEntry : itemsToConvert) {
      rdfElements.addAll(processAnnotations(csvEntry));
      if (descriptionNeedsSpecialHandling(csvEntry)) {
        rdfElements.addAll(processSpecialCases(csvEntry));
      } else {
        rdfElements.addAll(processCompoundWords(csvEntry));
        rdfElements.addAll(processDescription(csvEntry));
      }
    }
  }