mex.backend.auxiliary package

Submodules

mex.backend.auxiliary.ldap module

mex.backend.auxiliary.ldap.search_persons_in_ldap(q: Annotated[str, Query(PydanticUndefined)] = 'A*', offset: Annotated[int, Query(PydanticUndefined)] = 0, limit: Annotated[int, Query(PydanticUndefined)] = 10) PaginatedItemsContainer[ExtractedPerson]

Search for persons in LDAP.

Parameters:
  • q – The name of the person to be searched

  • offset – The starting index for pagination (not implemented)

  • limit – The maximum number of results to return

Returns:

Paginated list of ExtractedPersons

mex.backend.auxiliary.orcid module

mex.backend.auxiliary.orcid.search_persons_in_orcid(q: Annotated[str, Query(PydanticUndefined)] = 'Robert Koch', offset: Annotated[int, Query(PydanticUndefined)] = 0, limit: Annotated[int, Query(PydanticUndefined)] = 10) PaginatedItemsContainer[ExtractedPerson]

Search for persons in orcid.

Parameters:
  • q – The name of the person to be searched

  • offset – The starting index for pagination

  • limit – The maximum number of results to return

Returns:

Paginated list of ExtractedPersons

mex.backend.auxiliary.organigram module

mex.backend.auxiliary.organigram.extracted_organizational_units() list[ExtractedOrganizationalUnit]

Auxiliary function to get ldap as primary resource and ingest org units.

mex.backend.auxiliary.primary_source module

mex.backend.auxiliary.primary_source._fetch_or_insert_primary_source(name: str) ExtractedPrimarySource

Fetch and return or load, ingest and return a primary source by name.

mex.backend.auxiliary.primary_source.extracted_primary_source_ldap() ExtractedPrimarySource

Get the ldap primary source.

mex.backend.auxiliary.primary_source.extracted_primary_source_orcid() ExtractedPrimarySource

Get the orcid primary source.

mex.backend.auxiliary.primary_source.extracted_primary_source_organigram() ExtractedPrimarySource

Get the organigram primary source.

mex.backend.auxiliary.primary_source.extracted_primary_source_wikidata() ExtractedPrimarySource

Get the wikidata primary source.

mex.backend.auxiliary.wikidata module

mex.backend.auxiliary.wikidata.search_organizations_in_wikidata(q: Annotated[str, Query(PydanticUndefined)] = 'Q679041', offset: Annotated[int, Query(PydanticUndefined)] = 0, limit: Annotated[int, Query(PydanticUndefined)] = 10) PaginatedItemsContainer[ExtractedOrganization]

Search for organizations in wikidata.

Parameters:
  • q – Wikidata item ID or full URL

  • offset – start page number

  • limit – end page number

Returns:

Paginated list of ExtractedOrganizations

Module contents