def _is_instance(self, triple):
subj, pred, obj = triple<EOL>input_pred_ns = self._namespace_from_uri(self._expand_qname(pred))<EOL>triples = self.graph.triples(<EOL>(subj, rt.URIRef(self.schema_def.lexicon['<STR_LIT:type>']), None)<EOL>)<EOL>if triples:<EOL><INDENT>for tr in triples:<EOL><INDENT>triple_obj_ns = self._namespace_from_uri(<EOL>self._expand_qname(tr[<NUM_LIT:2>]))<EOL>if input_pred_ns == triple_obj_ns:  <EOL><INDENT>return tr[<NUM_LIT:2>]<EOL><DEDENT><DEDENT><DEDENT>
helper, returns the class type of subj