@Override public Optional<Predicate.COL_TYPE> getColType(Attribute attribute) { return Optional.of(jdbcTypeMapper.getPredicate(attribute.getType())); }
Predicate.COL_TYPE type = JdbcTypeMapper.getInstance().getPredicate(attribute.getType()); defaultTypeBuilder.add(TYPE_FACTORY.getTermType(type));
Predicate.COL_TYPE type = JdbcTypeMapper.getInstance().getPredicate(attribute.getType()); defaultTypeBuilder.add(TYPE_FACTORY.getTermType(type));
Optional<RDFDatatype> type; if (attribute.getType() == 0){
Optional<Predicate.COL_TYPE> colType; if (attribute.getType() == 0){
/** * Definition row graph: an RDF graph consisting of the following triples: * <p/> * - the row type triple. * - a literal triple for each column in a table where the column value is non-NULL. * */ public ImmutableList<ImmutableFunctionalTerm> getCQ(DatabaseRelationDefinition table) { ImmutableList.Builder<ImmutableFunctionalTerm> atoms = ImmutableList.builder(); //Class Atom ImmutableTerm sub = generateSubject(table, false); atoms.add(df.getImmutableFunctionalTerm(df.getClassPredicate(getTableIRI(table.getID())), sub)); //DataType Atoms for (Attribute att : table.getAttributes()) { Predicate.COL_TYPE type = typeMapper.getPredicate(att.getType()); Variable objV = df.getVariable(att.getID().getName()); ImmutableTerm obj = df.getImmutableTypedTerm(objV, type); atoms.add(df.getImmutableFunctionalTerm(df.getDataPropertyPredicate(getLiteralPropertyIRI(att)), sub, obj)); } return atoms.build(); }
for (Attribute a : relation.getAttributes()) { if (a.getID().equals(columnId)) { switch (a.getType()) { case Types.VARCHAR: case Types.CHAR:
for (Attribute a : attr) { if (a.getID().equals(colId)) { switch (a.getType()) { case Types.VARCHAR: case Types.CHAR:
for (Attribute a : relation.getAttributes()) { if (a.getID().equals(columnId)) { switch (a.getType()) { case Types.VARCHAR: case Types.CHAR: