congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
SubstringAtom
Code IndexAdd Tabnine to your IDE (free)

How to use
SubstringAtom
in
org.apache.stanbol.rules.manager.atoms

Best Java code snippets using org.apache.stanbol.rules.manager.atoms.SubstringAtom (Showing top 5 results out of 315)

origin: apache/stanbol

@SuppressWarnings("unchecked")
@Override
public <T> T adapt(RuleAtom ruleAtom) throws RuleAtomCallExeption,
                   UnavailableRuleObjectException,
                   UnsupportedTypeForExportException {
  org.apache.stanbol.rules.manager.atoms.SubstringAtom tmp = (org.apache.stanbol.rules.manager.atoms.SubstringAtom) ruleAtom;
  StringFunctionAtom argument = tmp.getStringFunctionAtom();
  NumericFunctionAtom start = tmp.getStart();
  NumericFunctionAtom length = tmp.getLength();
  ClerezzaSparqlObject clerezzaArgument = (ClerezzaSparqlObject) adapter.adaptTo(argument,
    ConstructQuery.class);
  ClerezzaSparqlObject clerezzaStart = (ClerezzaSparqlObject) adapter.adaptTo(start,
    ConstructQuery.class);
  ClerezzaSparqlObject clerezzaLength = (ClerezzaSparqlObject) adapter.adaptTo(length,
    ConstructQuery.class);
  List<Expression> argumentExpressions = new ArrayList<Expression>();
  argumentExpressions.add((Expression) clerezzaArgument.getClerezzaObject());
  argumentExpressions.add((Expression) clerezzaStart.getClerezzaObject());
  argumentExpressions.add((Expression) clerezzaLength.getClerezzaObject());
  FunctionCall functionCall = new FunctionCall(new IRI(
      "<http://www.w3.org/2005/xpath-functions#substring>"), argumentExpressions);
  return (T) new ClerezzaSparqlObject(functionCall);
}
origin: apache/stanbol

final public SubstringAtom substringAtom() throws ParseException {
StringFunctionAtom arg; NumericFunctionAtom start; NumericFunctionAtom length;
 jj_consume_token(SUBSTRING);
 jj_consume_token(LPAR);
 arg = stringFunctionAtom();
 jj_consume_token(COMMA);
 start = numericFunctionAtom();
 jj_consume_token(COMMA);
 length = numericFunctionAtom();
 jj_consume_token(RPAR);
    {if (true) return new SubstringAtom(arg, start, length);}
 throw new Error("Missing return statement in function");
}
origin: org.apache.stanbol/org.apache.stanbol.rules.manager

final public SubstringAtom substringAtom() throws ParseException {
StringFunctionAtom arg; NumericFunctionAtom start; NumericFunctionAtom length;
 jj_consume_token(SUBSTRING);
 jj_consume_token(LPAR);
 arg = stringFunctionAtom();
 jj_consume_token(COMMA);
 start = numericFunctionAtom();
 jj_consume_token(COMMA);
 length = numericFunctionAtom();
 jj_consume_token(RPAR);
    {if (true) return new SubstringAtom(arg, start, length);}
 throw new Error("Missing return statement in function");
}
origin: apache/stanbol

StringFunctionAtom stringFunctionAtom = tmp.getStringFunctionAtom();
NumericFunctionAtom startAtom = tmp.getStart();
NumericFunctionAtom lengthAtom = tmp.getLength();
origin: apache/stanbol

StringFunctionAtom stringFunction = tmp.getStringFunctionAtom();
NumericFunctionAtom start = tmp.getStart();
NumericFunctionAtom length = tmp.getLength();
org.apache.stanbol.rules.manager.atomsSubstringAtom

Most used methods

  • getLength
  • getStart
  • getStringFunctionAtom
  • <init>

Popular in Java

  • Reactive rest calls using spring rest template
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getSupportFragmentManager (FragmentActivity)
  • compareTo (BigDecimal)
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • Top plugins for WebStorm
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