public static Predicate dataProperty(String name){ return TERM_FACTORY.getDataPropertyPredicate(name); }
DataPropertyExpressionImpl(String name) { this.predicate = TERM_FACTORY.getDataPropertyPredicate(name); this.name = name; this.isTop = name.equals(owlTopDataPropertyIRI); this.isBottom = name.equals(owlBottomDataPropertyIRI); this.domains.put(DatatypeImpl.rdfsLiteral, new DataSomeValuesFromImpl(this, DatatypeImpl.rdfsLiteral)); this.range = new DataPropertyRangeExpressionImpl(this); }
/** * 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(); }
ValueConstant pr = (ValueConstant) ((Function) pred).getTerm(0); if (object instanceof Variable) { predicate = TERM_FACTORY.getDataPropertyPredicate(pr.getValue()); } else { if (object instanceof Function) { predicate = TERM_FACTORY.getDataPropertyPredicate(pr.getValue());