code: def test_get_query(self):
      entity = f"{URL}#Bob"
      query = connector.get_query(entity)
      assert query == f"SELECT ?p ?o WHERE {{ <{entity}> ?p ?o . }}"
  
      preds = [f"{URL}#knows", f"{URL}#loves"]
      query = connector.get_query(entity, [preds[0]])
      assert query == (
          f"SELECT ?o WHERE {{ <{entity}> <{preds[0]}> ?o . }}"
      )
  
      query = connector.get_query(f"{URL}#Bob", preds)
      assert query == (
          f"SELECT ?o WHERE {{ <{entity}> <{preds[0]}> ?o1 . "
          + f"?o1 <{preds[1]}> ?o . }}"
      )
  
file_path: pyRDF2Vec/tests/test_connectors.py
imports: import asyncio
  import aiohttp
  import numpy
  import pytest
  from numpy.testing import assert_almost_equal
  from pyrdf2vec.connectors import Connector, SPARQLConnector
label_desc: Use image node_id 2 for calling the TestSPARQLConnector obj's underlying member method code with example usage: obj.test_get_query() without return types