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

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

Best Java code snippets using org.apache.stanbol.rules.manager.atoms.SubstringAtom.getStringFunctionAtom (Showing top 3 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

StringFunctionAtom stringFunction = tmp.getStringFunctionAtom();
NumericFunctionAtom start = tmp.getStart();
NumericFunctionAtom length = tmp.getLength();
origin: apache/stanbol

StringFunctionAtom stringFunctionAtom = tmp.getStringFunctionAtom();
NumericFunctionAtom startAtom = tmp.getStart();
NumericFunctionAtom lengthAtom = tmp.getLength();
org.apache.stanbol.rules.manager.atomsSubstringAtomgetStringFunctionAtom

Popular methods of SubstringAtom

  • getLength
  • getStart
  • <init>

Popular in Java

  • Start an intent from android
  • requestLocationUpdates (LocationManager)
  • scheduleAtFixedRate (Timer)
  • addToBackStack (FragmentTransaction)
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • Join (org.hibernate.mapping)
  • From CI to AI: The AI layer in your organization
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