def get_available_semantics(dl): res = set() for link in dl: res.add(link["semantics"]) return res