Tabnine Logo
TextConstraint.getLanguages
Code IndexAdd Tabnine to your IDE (free)

How to use
getLanguages
method
in
org.apache.stanbol.entityhub.servicesapi.query.TextConstraint

Best Java code snippets using org.apache.stanbol.entityhub.servicesapi.query.TextConstraint.getLanguages (Showing top 9 results out of 315)

origin: org.apache.stanbol/org.apache.stanbol.entityhub.core

private static void serializeConstraint(StringBuilder builder,TextConstraint constraint){
  builder.append("| @=");
  boolean first = true;
  for(String lang : constraint.getLanguages()){
    if(first){
      first = false;
    } else {
      builder.append(';');
    }
    builder.append(lang);
  }
}
private static void serializeConstraint(StringBuilder builder,ValueConstraint constraint){
origin: apache/stanbol

private static void serializeConstraint(StringBuilder builder,TextConstraint constraint){
  builder.append("| @=");
  boolean first = true;
  for(String lang : constraint.getLanguages()){
    if(first){
      first = false;
    } else {
      builder.append(';');
    }
    builder.append(lang);
  }
}
private static void serializeConstraint(StringBuilder builder,ValueConstraint constraint){
origin: apache/stanbol

Set<String> langs = textConstraint.getLanguages();
boolean acceptDefaultLanguage = textConstraint.getLanguages().contains(null);
for(Iterator<Object> it = values.iterator();it.hasNext();){
  Object value = it.next();
origin: org.apache.stanbol/org.apache.stanbol.entityhub.core

Set<String> langs = textConstraint.getLanguages();
boolean acceptDefaultLanguage = textConstraint.getLanguages().contains(null);
for(Iterator<Object> it = values.iterator();it.hasNext();){
  Object value = it.next();
origin: apache/stanbol

if (constraint.getLanguages() != null && !constraint.getLanguages().isEmpty()) {
    queryString.append(" . \n").append(intend).append("  FILTER(");
    filterAdded = true;
    writeLanguagesFilter(queryString, constraint.getLanguages(), var, null);
  } else {
    writeLanguagesFilter(queryString, constraint.getLanguages(), var, " && ");
origin: org.apache.stanbol/org.apache.stanbol.entityhub.query.sparql

if (constraint.getLanguages() != null && !constraint.getLanguages().isEmpty()) {
    queryString.append(" . \n").append(intend).append("  FILTER(");
    filterAdded = true;
    writeLanguagesFilter(queryString, constraint.getLanguages(), var, null);
  } else {
    writeLanguagesFilter(queryString, constraint.getLanguages(), var, " && ");
origin: apache/stanbol

case text:
  TextConstraint textConstraint = (TextConstraint) constraint;
  Collection<String> languages = textConstraint.getLanguages();
  if (languages != null && !languages.isEmpty()) {
    if(languages.size() == 1){
origin: org.apache.stanbol/org.apache.stanbol.entityhub.yard.solr

new IndexField(indexConstraint.getPath(), 
  IndexDataTypeEnum.TXT.getIndexType(),
  textConstraint.getLanguages()));
origin: apache/stanbol

new IndexField(indexConstraint.getPath(), 
  IndexDataTypeEnum.TXT.getIndexType(),
  textConstraint.getLanguages()));
org.apache.stanbol.entityhub.servicesapi.queryTextConstraintgetLanguages

Javadoc

The set of languages for this query.

Popular methods of TextConstraint

  • <init>
    Creates a TextConstraint for multiple texts and languages. Parsed texts are connected using OR and m
  • getTexts
    Getter for the text constraints. Multiple constraints need to be connected with OR. For AND simple p
  • getPatternType
    The pattern type to be used for this query.
  • isCaseSensitive
    If the query is case sensitive
  • isProximityRanking
    Getter for the Term Proximity state. If enabled the proximity of the parsed terms should be used to
  • setProximityRanking
    Setter for the proximity ranking state. If enabled the proximity of the parsed terms should be used

Popular in Java

  • Finding current android device location
  • setScale (BigDecimal)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • scheduleAtFixedRate (Timer)
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • Table (org.hibernate.mapping)
    A relational table
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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