Examples of SynonymSemanticTypes


Examples of edu.isi.karma.rep.alignment.SynonymSemanticTypes

    if (newType != null) {
      // Update the SemanticTypes data structure for the worksheet
      worksheet.getSemanticTypes().addType(newType);

      // Update the synonym semanticTypes
      newSynonymTypes = new SynonymSemanticTypes(typesList);
      worksheet.getSemanticTypes().addSynonymTypesForHNodeId(newType.getHNodeId(), newSynonymTypes);
    }

    // Identify the outliers if the semantic type exists in the crfmodel
//    List<String> existingLabels = new ArrayList<String>();
View Full Code Here

Examples of edu.isi.karma.rep.alignment.SynonymSemanticTypes

    pomList.add(poMap);
    r2rmlMapping.getAuxInfo().getColumnNameToPredObjLinks().put(columnName, pomList);
  }

  private void addSynonymTypesPredicateObjectMaps(TriplesMap subjTrMap, String hNodeId) {
    SynonymSemanticTypes synonyms = this.semanticTypes.getSynonymTypesForHNodeId(hNodeId);
    if (synonyms != null && !synonyms.getSynonyms().isEmpty()){
      for (SemanticType synType:synonyms.getSynonyms()) {
        if (synType.isClass()) {
          logger.error("Synonym type as class with no property are not allowed.");
          continue;
        }
       
View Full Code Here

Examples of edu.isi.karma.rep.alignment.SynonymSemanticTypes

         
         
          writer.endObject();

          // Iterate through the synonym semantic types
          SynonymSemanticTypes synTypes = types
              .getSynonymTypesForHNodeId(nodeId);

          if (synTypes != null) {
            for (SemanticType synType : synTypes.getSynonyms()) {
              writer.object()
                  .key(JsonKeys.HNodeId.name())
                  .value(synType.getHNodeId())
                  .key(JsonKeys.FullType.name())
                  .value(synType.getType().getUri())
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.