congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
TargetQueryRenderer.getNestedConcats
Code IndexAdd Tabnine to your IDE (free)

How to use
getNestedConcats
method
in
it.unibz.inf.ontop.spec.mapping.serializer.TargetQueryRenderer

Best Java code snippets using it.unibz.inf.ontop.spec.mapping.serializer.TargetQueryRenderer.getNestedConcats (Showing top 5 results out of 315)

origin: ontop/ontop

private static String displayConcat(ImmutableFunctionalTerm function) {
  StringBuilder sb = new StringBuilder();
  ImmutableList<? extends ImmutableTerm> terms = function.getTerms();
  sb.append("\"");
  getNestedConcats(sb, terms.get(0), terms.get(1));
  sb.append("\"");
  return sb.toString();
}
origin: ontop/ontop

public static void getNestedConcats(StringBuilder stb, ImmutableTerm term1, ImmutableTerm term2) {
  if (term1 instanceof ImmutableFunctionalTerm) {
    ImmutableFunctionalTerm f = (ImmutableFunctionalTerm) term1;
    getNestedConcats(stb, f.getTerms().get(0), f.getTerms().get(1));
  } else {
    stb.append(appendTerms(term1));
  }
  if (term2 instanceof ImmutableFunctionalTerm) {
    ImmutableFunctionalTerm f = (ImmutableFunctionalTerm) term2;
    getNestedConcats(stb, f.getTerms().get(0), f.getTerms().get(1));
  } else {
    stb.append(appendTerms(term2));
  }
}
origin: it.unibz.inf.ontop/ontop-mapping-sql-core

public static void getNestedConcats(StringBuilder stb, Term term1, Term term2){
  if (term1 instanceof Function){
    Function f = (Function) term1;
    getNestedConcats(stb, f.getTerms().get(0), f.getTerms().get(1));
    }else{
      stb.append(appendTerms(term1));
      }
     if (term2 instanceof Function){
       Function f = (Function) term2;
       getNestedConcats(stb, f.getTerms().get(0), f.getTerms().get(1));
     }else{
       stb.append(appendTerms(term2));
     }
}
origin: it.unibz.inf.ontop/ontop-mapping-sql-core

List<Term> terms = function.getTerms();
sb.append("\"");
getNestedConcats(sb, terms.get(0),terms.get(1));
sb.append("\"");
origin: ontop/ontop

TargetQueryRenderer.getNestedConcats(sb, terms.get(0),terms.get(1));
obm = mfact.createObjectMap(mfact.createTemplate(sb.toString()));
obm.setTermType(R2RMLVocabulary.literal);
it.unibz.inf.ontop.spec.mapping.serializerTargetQueryRenderergetNestedConcats

Popular methods of TargetQueryRenderer

  • encode
    Transforms the given OBDAQuery into a string. The method requires a prefix manager to shorten full I
  • appendTerms
  • displayBnode
  • displayConcat
  • displayDatatypeFunction
  • displayFunction
  • displayFunctionalBnode
  • displayOrdinaryFunction
  • displayURIConstant
  • displayURITemplate
  • displayValueConstant
  • displayVariable
  • displayValueConstant,
  • displayVariable,
  • getAbbreviatedName,
  • getDisplayName,
  • isUnary

Popular in Java

  • Making http requests using okhttp
  • getSystemService (Context)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • setScale (BigDecimal)
  • ObjectMapper (com.fasterxml.jackson.databind)
    ObjectMapper provides functionality for reading and writing JSON, either to and from basic POJOs (Pl
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • JFileChooser (javax.swing)
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now