Package edu.isi.karma.kr2rml.template

Examples of edu.isi.karma.kr2rml.template.TemplateTermSetPopulator


      URIFormatter uriFormatter, RepFactory factory,
      KR2RMLMappingColumnNameHNodeTranslator translator,
      SuperSelection sel) {
    super(kr2rmlMapping, uriFormatter, factory, translator, sel);
    this.pom = pom;
    objectTemplateTermSetPopulator = new TemplateTermSetPopulator(pom.getObject().getTemplate(), new StringBuilder(), uriFormatter, false, true);
    try {
      generateInternal(subjectMapTemplate, pom, subjectTermsToPaths);
    } catch (HNodeNotFoundKarmaException e) {
      LOG.error("Unable to generate plan!", e);
    }
View Full Code Here


    literalTemplateValue = null;
    if(literalTemplate != null)
    {
      literalTemplateValue = generateStringValueForTemplate(literalTemplate);
    }
    objectTemplateTermSetPopulator = new TemplateTermSetPopulator(pom.getObject().getTemplate(), new StringBuilder(), uriFormatter, false, true);
    generateInternal(subjectMapTemplate, pom, subjectTermsToPaths);
    if(generateContext && objectTemplateTermSetPopulator.getTerms().isSingleColumnTerm())
    {
      getColumnContextUri(translator.getHNodeIdForColumnName(objectTemplateTermSetPopulator.getTerms().getAllTerms().get(0).getTemplateTermValue()));
    }
View Full Code Here

    this.translator = translator;
    this.selection = sel;
  }
  protected TemplateTermSetPopulator generateTemplateTermSetPopulatorForSubjectMap(SubjectMap subjMap) throws HNodeNotFoundKarmaException {
    TemplateTermSet subjMapTemplate = null;
    TemplateTermSetPopulator subjectMapTTSPopulator = null;
    if (subjMap.isBlankNode()) {
      List<String> columnsCovered  = kr2rmlMapping.getAuxInfo().getBlankNodesColumnCoverage().get(subjMap.getId());
      subjMapTemplate = generateSubjectMapTemplateForBlankNode(subjMap, columnsCovered)
      subjectMapTTSPopulator = new TemplateTermSetPopulator(subjMapTemplate, new StringBuilder(), uriFormatter, true, false);
    } else {
      subjMapTemplate = subjMap.getTemplate();
      subjectMapTTSPopulator = new TemplateTermSetPopulator(subjMapTemplate, new StringBuilder(), uriFormatter);
    }
    return subjectMapTTSPopulator;
  }
View Full Code Here

    this.pom = pom;
    List<ColumnTemplateTerm> subjectAndObjectTemplateTerms = new LinkedList<ColumnTemplateTerm>();
    subjectAndObjectTemplateTerms.addAll(this.combinedSubjectObjectTermsToPaths.keySet());
    LinkedList<ColumnTemplateTerm> predicateColumnTemplateTerms = new LinkedList<ColumnTemplateTerm>();
    predicateColumnTemplateTerms.addAll(pom.getPredicate().getTemplate().getAllColumnNameTermElements());
    predicateTemplateTermSetPopulator = new TemplateTermSetPopulator(pom.getPredicate().getTemplate(), new StringBuilder(), uriFormatter, true, true);
    Map<ColumnTemplateTerm, HNodePath> combinedSubjectObjectPredicateTermsToPaths = new HashMap<ColumnTemplateTerm, HNodePath>();
    combinedSubjectObjectPredicateTermsToPaths.putAll(combinedSubjectObjectTermsToPaths);
    Map<ColumnTemplateTerm, HNodePath> predicateTermsToPaths = new HashMap<ColumnTemplateTerm, HNodePath>();
   
    populateTermsToPathForSubject(predicateTermsToPaths, pom.getPredicate().getTemplate());
View Full Code Here

TOP

Related Classes of edu.isi.karma.kr2rml.template.TemplateTermSetPopulator

Copyright © 2018 www.massapicom. 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.