code: def find_prop_overlap(rdf, prop1, prop2):
      
      for s, o in sorted(rdf.subject_objects(prop1)):
          if (s, prop2, o) in rdf:
              yield (s, o)
docs: Generate (subject,object) pairs connected by two properties.