Codota Logo
Constant
Code IndexAdd Codota to your IDE (free)

How to use
Constant
in
it.unibz.inf.ontop.model

Best Java code snippets using it.unibz.inf.ontop.model.Constant (Showing top 5 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
DateTime d =
  • Codota Iconnew DateTime()
  • Codota IconDateTimeFormatter formatter;String text;formatter.parseDateTime(text)
  • Codota IconObject instant;new DateTime(instant)
  • Smart code suggestions by Codota
}
origin: it.unibz.inf.ontop/ontop-obdalib-core

private static String appendTerms(Term term){
  if (term instanceof Constant){
    String st = ((Constant) term).getValue();
    if (st.contains("{")){
      st = st.replace("{", "\\{");
      st = st.replace("}", "\\}");
    }
    return st;
  }else{
    return "{"+((Variable) term).getName()+"}";
  }
}
origin: it.unibz.inf.ontop/ontop-obdalib-core

private static boolean isRDFType(Term pred) {
//		if (pred instanceof Constant && ((Constant) pred).getValue().equals(OBDAVocabulary.RDF_TYPE)) {
//			return true;
//		}
    if (pred instanceof Function && ((Function) pred).getTerm(0) instanceof Constant ) {
      String c= ((Constant) ((Function) pred).getTerm(0)).getValue();
      return c.equals(OBDAVocabulary.RDF_TYPE);
    }    
    return false;
  }
origin: it.unibz.inf.ontop/ontop-quest-owlapi

private boolean executeConsistencyQuery(String strQuery) {
  QuestStatement query;
  try {
    query = conn.createStatement();
    ResultSet rs = query.execute(strQuery);
    TupleResultSet trs = ((TupleResultSet)rs);
    if (trs!= null && trs.nextRow()){
      String value = trs.getConstant(0).getValue();
      boolean b = Boolean.parseBoolean(value);				
      trs.close();
      if (b) 
        return false;
    }
    
  } catch (OBDAException e) {
    e.printStackTrace();
  }
  return true;
}
origin: it.unibz.inf.ontop/ontop-obdalib-r2rml

statements.add(vf.createStatement(objNode, R2RMLVocabulary.constant, vf.createLiteral(((Constant) objectTerm).getValue())));
origin: it.unibz.inf.ontop/ontop-obdalib-r2rml

      obm.setLanguageTag(((Constant) langTerm).getValue());
obm = mfact.createObjectMap(TermMapType.CONSTANT_VALUED, vf.createLiteral(((Constant) objectTerm).getValue()).stringValue());
    Term langTerm = ((Function) object).getTerm(1);
    if(langTerm instanceof Constant) {
      obm.setLanguageTag(((Constant) langTerm).getValue());
it.unibz.inf.ontop.modelConstant

Javadoc

This class defines a type of Term in which it has a constant value.

Most used methods

  • getValue

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getExternalFilesDir (Context)
  • orElseThrow (Optional)
  • onCreateOptionsMenu (Activity)
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • ResourceBundle (java.util)
    Resource bundles contain locale-specific objects. When your program needs a locale-specific resource
  • Timer (java.util)
    A facility for threads to schedule tasks for future execution in a background thread. Tasks may be s
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement.A servlet is a small Java program that runs within
  • JCheckBox (javax.swing)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now