equal
deleted
inserted
replaced
82 return LANGUAGE_URI_MAP.get(lang_uri, None) |
82 return LANGUAGE_URI_MAP.get(lang_uri, None) |
83 |
83 |
84 |
84 |
85 |
85 |
86 def get_labels_for_uris(uri_list, scheme_uri, lang, acronyms=False): |
86 def get_labels_for_uris(uri_list, scheme_uri, lang, acronyms=False): |
|
87 ''' |
|
88 This methods gathers labels for concept in thesaurus. |
|
89 |
|
90 :param uri_list: The list of uris of thesaurus entries. |
|
91 :param scheme_uri: The scheme (uri) of the thesaurus |
|
92 :param lang: The language for the label |
|
93 :param acronyms: do the labels must include the acronym (altLabel) |
|
94 ''' |
87 query_without_acronym = """ |
95 query_without_acronym = """ |
88 PREFIX skos:<http://www.w3.org/2004/02/skos/core#> |
96 PREFIX skos:<http://www.w3.org/2004/02/skos/core#> |
89 PREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#> |
97 PREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#> |
90 PREFIX owl:<http://www.w3.org/2002/07/owl#> |
98 PREFIX owl:<http://www.w3.org/2002/07/owl#> |
91 PREFIX rdfs:<http://www.w3.org/2000/01/rdf-schema#> |
99 PREFIX rdfs:<http://www.w3.org/2000/01/rdf-schema#> |