def __repr__(self):
        """
        Return some info for the ontospy instance.

        note: if it's a sparql backend, limit the info returned to avoid long queries (tip: a statement like `if self.rdflib_graph` on a sparql endpoint is enough to cause a long query!)

        """
        if self.sparql_endpoint and self.rdflib_graph != None:
            return "<Ontospy Graph (sparql endpoint = <%s>)>" % self.sparql_endpoint
        elif self.rdflib_graph != None:
            return "<Ontospy Graph (%d triples)>" % (len(self.rdflib_graph))
        else:
            return "<Ontospy object created but not initialized (use the `load_rdf` method to load an rdf schema)>"
def __repr__ ( self ) : if self . sparql_endpoint and self . rdflib_graph != None : return "<Ontospy Graph (sparql endpoint = <%s>)>" % self . sparql_endpoint elif self . rdflib_graph != None : return "<Ontospy Graph (%d triples)>" % ( len ( self . rdflib_graph ) ) else : return "<Ontospy object created but not initialized (use the `load_rdf` method to load an rdf schema)>"
Return some info for the ontospy instance.

        note: if it's a sparql backend, limit the info returned to avoid long queries (tip: a statement like `if self.rdflib_graph` on a sparql endpoint is enough to cause a long query!)