#!/usr/bin/python3
import sys

# Wikipedia api url
URL = "https://query.wikidata.org/sparql"

# Set a user Agent to request Wikidata
USER_AGENT = "Leia/%s.%s" % (
    sys.version_info[0], sys.version_info[1])

# Wikipedia params for requests list of taxon categories
WIKIDATA_QUERY = """SELECT ?esp_ce__teinte ?esp_ce__teinteLabel ?nom_scientifique_du_taxon ?image ?nom_vernaculaire WHERE {
  SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
  ?esp_ce__teinte wdt:P141 wd:Q237350.
  OPTIONAL { ?esp_ce__teinte wdt:P225 ?nom_scientifique_du_taxon. }
  OPTIONAL { ?esp_ce__teinte wdt:P18 ?image. }
  OPTIONAL { ?esp_ce__teinte wdt:P1843 ?nom_vernaculaire.
           FILTER(lang(?nom_vernaculaire) = "en")}
}
"""

# GBIF
GBIF_API_SUGGEST_URL = 'https://api.gbif.org/v1/species/suggest?'
GBIF_API_DISTRIBUTIONS_PREFIX_URL = 'https://api.gbif.org/v1/species/'
GBIF_API_DISTRIBUTIONS_SUFFIX_URL = '/distributions'

2795ebc5676fc6b5b0c81599c398ac90a94226fe
<mask token>

<mask token>
URL = 'https://query.wikidata.org/sparql'
USER_AGENT = 'Leia/%s.%s' % (sys.version_info[0], sys.version_info[1])
WIKIDATA_QUERY = """SELECT ?esp_ce__teinte ?esp_ce__teinteLabel ?nom_scientifique_du_taxon ?image ?nom_vernaculaire WHERE {
  SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
  ?esp_ce__teinte wdt:P141 wd:Q237350.
  OPTIONAL { ?esp_ce__teinte wdt:P225 ?nom_scientifique_du_taxon. }
  OPTIONAL { ?esp_ce__teinte wdt:P18 ?image. }
  OPTIONAL { ?esp_ce__teinte wdt:P1843 ?nom_vernaculaire.
           FILTER(lang(?nom_vernaculaire) = "en")}
}
"""
GBIF_API_SUGGEST_URL = 'https://api.gbif.org/v1/species/suggest?'
GBIF_API_DISTRIBUTIONS_PREFIX_URL = 'https://api.gbif.org/v1/species/'
GBIF_API_DISTRIBUTIONS_SUFFIX_URL = '/distributions'

import sys
URL = 'https://query.wikidata.org/sparql'
USER_AGENT = 'Leia/%s.%s' % (sys.version_info[0], sys.version_info[1])
WIKIDATA_QUERY = """SELECT ?esp_ce__teinte ?esp_ce__teinteLabel ?nom_scientifique_du_taxon ?image ?nom_vernaculaire WHERE {
  SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
  ?esp_ce__teinte wdt:P141 wd:Q237350.
  OPTIONAL { ?esp_ce__teinte wdt:P225 ?nom_scientifique_du_taxon. }
  OPTIONAL { ?esp_ce__teinte wdt:P18 ?image. }
  OPTIONAL { ?esp_ce__teinte wdt:P1843 ?nom_vernaculaire.
           FILTER(lang(?nom_vernaculaire) = "en")}
}
"""
GBIF_API_SUGGEST_URL = 'https://api.gbif.org/v1/species/suggest?'
GBIF_API_DISTRIBUTIONS_PREFIX_URL = 'https://api.gbif.org/v1/species/'
GBIF_API_DISTRIBUTIONS_SUFFIX_URL = '/distributions'

#!/usr/bin/python3
import sys

# Wikipedia api url
URL = "https://query.wikidata.org/sparql"

# Set a user Agent to request Wikidata
USER_AGENT = "Leia/%s.%s" % (
    sys.version_info[0], sys.version_info[1])

# Wikipedia params for requests list of taxon categories
WIKIDATA_QUERY = """SELECT ?esp_ce__teinte ?esp_ce__teinteLabel ?nom_scientifique_du_taxon ?image ?nom_vernaculaire WHERE {
  SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
  ?esp_ce__teinte wdt:P141 wd:Q237350.
  OPTIONAL { ?esp_ce__teinte wdt:P225 ?nom_scientifique_du_taxon. }
  OPTIONAL { ?esp_ce__teinte wdt:P18 ?image. }
  OPTIONAL { ?esp_ce__teinte wdt:P1843 ?nom_vernaculaire.
           FILTER(lang(?nom_vernaculaire) = "en")}
}
"""

# GBIF
GBIF_API_SUGGEST_URL = 'https://api.gbif.org/v1/species/suggest?'
GBIF_API_DISTRIBUTIONS_PREFIX_URL = 'https://api.gbif.org/v1/species/'
GBIF_API_DISTRIBUTIONS_SUFFIX_URL = '/distributions'
