def getSubjectObjectsByPredicate(self, predicate):
        """
    Args:
      predicate : str
        Predicate for which to return subject, object tuples.

    Returns:
      list of subject, object tuples: All subject/objects with ``predicate``.

    Notes:

      Equivalent SPARQL:

      .. highlight: sql

      ::

        SELECT DISTINCT ?s ?o
        WHERE {{
          ?s {0} ?o .
        }}
    """
        return sorted(
            set(
                [
                    (str(s), str(o))
                    for s, o in self.subject_objects(rdflib.term.URIRef(predicate))
                ]
            )
        )
def getSubjectObjectsByPredicate ( self , predicate ) : return sorted ( set ( [ ( str ( s ) , str ( o ) ) for s , o in self . subject_objects ( rdflib . term . URIRef ( predicate ) ) ] ) )
Args:
      predicate : str
        Predicate for which to return subject, object tuples.

    Returns:
      list of subject, object tuples: All subject/objects with ``predicate``.

    Notes:

      Equivalent SPARQL:

      .. highlight: sql

      ::

        SELECT DISTINCT ?s ?o
        WHERE {{
          ?s {0} ?o .
        }}