@Deprecated private Term getConstantObject(String objectString) { if (objectString.startsWith("http:")) return getURIFunction(objectString); else { // literal Constant constt = fac.getConstantLiteral(objectString); return fac.getTypedTerm(constt, COL_TYPE.LITERAL); } }
/** * Get body predicates with templates * * @param pom * @return */ public List<Function> getBodyURIPredicates(PredicateObjectMap pom) { List<Function> predicateAtoms = new ArrayList<>(); // process PREDICATEMAP for (PredicateMap pm : pom.getPredicateMaps()) { Template t = pm.getTemplate(); if (t != null) { // create uri("...",var) Function predicateAtom = getURIFunction(t.toString()); predicateAtoms.add(predicateAtom); } // process column declaration String c = pm.getColumn(); if (c != null) { Function predicateAtom = getURIFunction(c); predicateAtoms.add(predicateAtom); } } return predicateAtoms; }
/** * get a typed atom of a specific type * * @param type * - iri, blanknode or literal * @param string * - the atom as string * @return the contructed Function atom */ private Function getTermTypeAtom(String string, Object type, String joinCond) { if (type.equals(R2RMLVocabulary.iri)) { return getURIFunction(string, joinCond); } else if (type.equals(R2RMLVocabulary.blankNode)) { return getTypedFunction(string, 2, joinCond); } else if (type.equals(R2RMLVocabulary.literal)) { return getTypedFunction(trim(string), 3, joinCond); } return null; }
if (subj != null) { subjectAtom = getURIFunction(subj, joinCond);