import re


def _get_eagle_uri_for_objecttype(objecttype):
    """
    returns URI of EAGLE objecttype vocabulary
    see: https://www.eagle-network.eu/voc/objtyp.html
    """
    fragezeichen = ""
    if re.search(".+\?$", objecttype):
        objecttype = re.sub("\?$", "", objecttype)
        fragezeichen = "?"
    switcher = {
        "Altar": "https://www.eagle-network.eu/voc/objtyp/lod/29",
        "Architekturteil": "https://www.eagle-network.eu/voc/objtyp/lod/35",
        "Bueste": "https://www.eagle-network.eu/voc/objtyp/lod/135",
        "Bank": "https://www.eagle-network.eu/voc/objtyp/lod/254",
        "Barren": "https://www.eagle-network.eu/voc/objtyp/lod/154",
        "Basis": "https://www.eagle-network.eu/voc/objtyp/lod/53",
        "Block": "https://www.eagle-network.eu/voc/objtyp/lod/189",
        "Brunnen": "https://www.eagle-network.eu/voc/objtyp/lod/40",
        "Cippus": "https://www.eagle-network.eu/voc/objtyp/lod/85",
        "Clipeus": "https://www.eagle-network.eu/voc/objtyp/lod/94",
        "Cupa": "https://www.eagle-network.eu/voc/objtyp/lod/112",
        "Diptychon": "https://www.eagle-network.eu/voc/objtyp/lod/118",
        "EhrenVotivbogen": "https://www.eagle-network.eu/voc/objtyp/lod/20",
        "EhrenVotivsäule": "https://www.eagle-network.eu/voc/objtyp/lod/102",
        "Fels": "https://www.eagle-network.eu/voc/objtyp/lod/210",
        "Grabbau": "https://www.eagle-network.eu/voc/objtyp/lod/230",
        "Herme": "https://www.eagle-network.eu/voc/objtyp/lod/132",
        "instrdom": "https://www.eagle-network.eu/voc/objtyp/lod/140",
        "instrmil": "https://www.eagle-network.eu/voc/objtyp/lod/141",
        "instrsac": "https://www.eagle-network.eu/voc/objtyp/lod/142",
        "Meilenstein": "https://www.eagle-network.eu/voc/objtyp/lod/89",
        "Mensa": "https://www.eagle-network.eu/voc/objtyp/lod/157",
        "Olla": "https://www.eagle-network.eu/voc/objtyp/lod/182",
        "Pflaster": "https://www.eagle-network.eu/voc/objtyp/lod/190",
        "Platte": "https://www.eagle-network.eu/voc/objtyp/lod/260",
        "Relief": "https://www.eagle-network.eu/voc/objtyp/lod/24",
        "Sarkophag": "https://www.eagle-network.eu/voc/objtyp/lod/214",
        "Schmuck": "https://www.eagle-network.eu/voc/objtyp/lod/163",
        "Skulptur": "https://www.eagle-network.eu/voc/objtyp/lod/224",
        "Stadtbefestigung": "https://www.eagle-network.eu/voc/objtyp/lod/67",
        "Statue": "https://www.eagle-network.eu/voc/objtyp/lod/241",
        "Statuenbasis": "https://www.eagle-network.eu/voc/objtyp/lod/57",
        "Stele": "https://www.eagle-network.eu/voc/objtyp/lod/250",
        "Tafel": "https://www.eagle-network.eu/voc/objtyp/lod/257",
        "Tessera": "https://www.eagle-network.eu/voc/objtyp/lod/276",
        "Urne": "https://www.eagle-network.eu/voc/objtyp/lod/78",
        "Waffe": "https://www.eagle-network.eu/voc/objtyp/lod/42",
        "Ziegel": "https://www.eagle-network.eu/voc/objtyp/lod/147",
    }
    return switcher.get(objecttype, "#")