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

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

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

origin: apache/stanbol

if(textConstraint.getTexts() != null){
  log.warn("Filtering based on values is not implemented");
origin: org.apache.stanbol/org.apache.stanbol.entityhub.core

if(textConstraint.getTexts() != null){
  log.warn("Filtering based on values is not implemented");
origin: apache/stanbol

                 String intend) {
boolean filterAdded = false;
boolean isTextValueConstraint = constraint.getTexts() != null && !constraint.getTexts().isEmpty();
    queryString.append(" \n").append(intend).append("  FILTER(");
    filterAdded = true;
    addRegexFilter(queryString, var, constraint.getTexts(), constraint.isCaseSensitive());
  } else {
      queryString.append(". \n  ").append(intend);
      queryString.append(String.format("?%s bif:contains '%s'", var,
        createFullTextQueryString(constraint.getTexts())));
    } else if (SparqlEndpointTypeEnum.LARQ == endpointType) {
      queryString.append(". \n  ").append(intend);
      queryString.append(String.format(
        "?%s <http://jena.hpl.hp.com/ARQ/property#textMatch> '%s'", var,
        createFullTextQueryString(constraint.getTexts())));
    } else {
      queryString.append(" \n").append(intend).append("  FILTER(");
            constraint.getTexts().size());
        for (String textConstraint : constraint.getTexts()) {
          if (textConstraint != null && !textConstraint.isEmpty()) {
            regexQueryTexts.add(PatternUtils.word2Regex(textConstraint));
        Collection<String> regexQueryTexts = new ArrayList<String>(constraint.getTexts()
            .size());
        for (String textConstraint : constraint.getTexts()) {
          if (textConstraint != null && !textConstraint.isEmpty()) {
origin: org.apache.stanbol/org.apache.stanbol.entityhub.query.sparql

                 String intend) {
boolean filterAdded = false;
boolean isTextValueConstraint = constraint.getTexts() != null && !constraint.getTexts().isEmpty();
    queryString.append(" \n").append(intend).append("  FILTER(");
    filterAdded = true;
    addRegexFilter(queryString, var, constraint.getTexts(), constraint.isCaseSensitive());
  } else {
      queryString.append(". \n  ").append(intend);
      queryString.append(String.format("?%s bif:contains '%s'", var,
        createFullTextQueryString(constraint.getTexts())));
    } else if (SparqlEndpointTypeEnum.LARQ == endpointType) {
      queryString.append(". \n  ").append(intend);
      queryString.append(String.format(
        "?%s <http://jena.hpl.hp.com/ARQ/property#textMatch> '%s'", var,
        createFullTextQueryString(constraint.getTexts())));
    } else {
      queryString.append(" \n").append(intend).append("  FILTER(");
            constraint.getTexts().size());
        for (String textConstraint : constraint.getTexts()) {
          if (textConstraint != null && !textConstraint.isEmpty()) {
            regexQueryTexts.add(PatternUtils.word2Regex(textConstraint));
        Collection<String> regexQueryTexts = new ArrayList<String>(constraint.getTexts()
            .size());
        for (String textConstraint : constraint.getTexts()) {
          if (textConstraint != null && !textConstraint.isEmpty()) {
origin: apache/stanbol

if (textConstraint.getTexts() != null && !textConstraint.getTexts().isEmpty()) {
  if(textConstraint.getTexts().size() == 1){ //write a string
    jConstraint.put("text", textConstraint.getTexts().get(0));
  } else { //write an array
    jConstraint.put("text", textConstraint.getTexts());
origin: org.apache.stanbol/org.apache.stanbol.entityhub.yard.solr

for(String text : textConstraint.getTexts()){
  constraintValue.getValues().add(indexValueFactory.createIndexValue(
    valueFactory.createText(text)));
origin: apache/stanbol

for(String text : textConstraint.getTexts()){
  constraintValue.getValues().add(indexValueFactory.createIndexValue(
    valueFactory.createText(text)));
org.apache.stanbol.entityhub.servicesapi.queryTextConstraintgetTexts

Javadoc

Getter for the text constraints. Multiple constraints need to be connected with OR. For AND simple post all required words in a single String.

Popular methods of TextConstraint

  • <init>
    Creates a TextConstraint for multiple texts and languages. Parsed texts are connected using OR and m
  • getLanguages
    The set of languages for this query.
  • 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

  • Making http post requests using okhttp
  • setContentView (Activity)
  • getSystemService (Context)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • Menu (java.awt)
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • JTextField (javax.swing)
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • Top Vim 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