/** * Convert a TripleID object to a TripleString, using the dictionary to perform the conversion. * If any of the components do not exist in the dictionary, it throws an exception. * @param tripleID TripleID to be converted. * @return resultant TripleSTring */ void tripleIDtoTripleString(TripleID &tripleID, TripleString &ts) { string s = idToString(tripleID.getSubject(), SUBJECT); string p = idToString(tripleID.getPredicate(), PREDICATE); string o = idToString(tripleID.getObject(), OBJECT); ts.setSubject(s); ts.setPredicate(p); ts.setObject(o); }