protected Collection<Triple> getTriplesForSubject(Object subj) { Collection<Triple> coll = store.getAll(tripleFactory.newTriple(subj, Variable.v, Variable.v)); Iterator<Triple> iter = coll.iterator(); while (iter.hasNext()) { if ((iter.next().getProperty()).equals(TripleStore.TYPE)) { iter.remove(); } } return coll; }
protected Triple property(String property, Object value) { return tripleFactory.newTriple(getObject(), property, value); }
protected Triple propertyKey(String property) { return tripleFactory.newTriple(getObject(), property, Variable.v); }