docs: def concept_adapter(obj, request):
      '''
      Adapter for rendering a :class:`skosprovider.skos.Concept` to json.
  
      :param skosprovider.skos.Concept obj: The concept to be rendered.
      :rtype: :class:`dict`
      '''
      p = request.skos_registry.get_provider(obj.concept_scheme.uri)
      language = request.params.get('language', request.locale_name)
      label = obj.label(language)
      return {
          'id': obj.id,
          'type': 'concept',
          'uri': obj.uri,
          'label': label.label if label else None,
          'concept_scheme': {
              'uri': obj.concept_scheme.uri,
              'labels': obj.concept_scheme.labels
          },
          'labels': obj.labels,
          'notes': obj.notes,
          'sources': obj.sources,
          'narrower': _map_relations(obj.narrower, p, language),
          'broader': _map_relations(obj.broader, p, language),
          'related': _map_relations(obj.related, p, language),
          'member_of': _map_relations(obj.member_of, p, language),
          'subordinate_arrays':  _map_relations(obj.subordinate_arrays, p, language),
          'matches': obj.matches
      }