class_docstr: Wikidata service
  
  Args:
      http_proxy(str) : http proxy
      https_proxy(str) : https proxy
class_docstr_tok: ["Wikidata","service","Args",":","http_proxy","(","str",")",":","http","proxy","https_proxy","(","str",")",":","https","proxy"]
docstr: Send a SPARQL query to wikidata, and return response
  
  Args:
      phrase (str):  a noun-phrase
  
  Returns:
      bool: True if exist in Wikidata for phrase, else False
docstr_tok: ["Send","a","SPARQL","query","to","wikidata",",","and","return","response","Args",":","phrase","(","str",")",":","a","noun-phrase","Returns",":","bool",":","True","if","exist","in","Wikidata","for","phrase",",","else","False"]
code: def has_item(self, phrase):
      """
      Send a SPARQL query to wikidata, and return response
  
      Args:
          phrase (str):  a noun-phrase
  
      Returns:
          bool: True if exist in Wikidata for phrase, else False
      """
      chr_url = (
          """https://query.wikidata.org/sparql?query=
                          SELECT ?item ?lable
                          WHERE
                          {
                              ?item ?label '"""
          + phrase
          + """'@en .
              SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
                          }
                          &format = JSON"""
      )
      r = requests.get(
          chr_url, headers=self.headers, proxies=self.proxies
      )
      empty_result = (
          b'{\n  "head" : {\n    "vars" : [ "item",'
          b' "lable" ]\n  },\n  '
          b'"results" : {\n    "bindings" : [ ]\n  }\n}'
      )
      if r.status_code == 200 and empty_result != r.content:
          return True
      return False
  
imports: import nltk
  import nltk.corpus
  import numpy
  import requests
  from gensim.models.keyedvectors import KeyedVectors
  from nltk.corpus import wordnet
  from nltk.stem.snowball import SnowballStemmer
  from nlp_architect.utils.generic import license_prompt
label_desc: Use image node_id 3 for calling the Wikidata obj's underlying member method code with example usage: obj.has_item(phrase) and returns: False, True