---
name: "rulexdb_dataset_name"
section: "3"
platform: "linux"
package: "librulexdb-dev"
version: "3.8.6-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/rulexdb_dataset_name"
---

# rulexdb\_dataset\_name(3)

get pointer to the dataset name string

## NAME

rulexdb\_dataset\_name - get pointer to the dataset name string

## SYNOPSIS

```
#include <rulexdb.h>

const char *rulexdb_dataset_name(int item_type);
```

## DESCRIPTION

The **rulexdb\_dataset\_name**() function gets pointer to the constant string containing internal name of the dataset identified by *item\_type* argument that may accept one of the following values:

- **RULEXDB\_LEXBASE**

  The **Implicit** dictionary.

- **RULEXDB\_EXCEPTION**

  The **Explicit** dictionary.

- **RULEXDB\_LEXCLASS**

  The **Classifiers** ruleset.

- **RULEXDB\_PREFIX**

  The **Prefix detectors** ruleset.

- **RULEXDB\_RULE**

  The **General** ruleset.

- **RULEXDB\_CORRECTOR**

  The **Correctors** ruleset.

Note that the dataset must be specified explicitly. The value **RULEXDB\_DEFAULT** is not allowed here.

## RETURN VALUE

The **rulexdb\_dataset\_name**() function returns pointer to the dataset name string or NULL for unknown dataset.

## SEE ALSO

[**rulexdb\_classify**(3)](/rulexdb_classify/3.md), [**rulexdb\_close**(3)](/rulexdb_close/3.md), [**rulexdb\_discard\_dictionary**(3)](/rulexdb_discard_dictionary/3.md), [**rulexdb\_discard\_ruleset**(3)](/rulexdb_discard_ruleset/3.md), [**rulexdb\_fetch\_rule**(3)](/rulexdb_fetch_rule/3.md), [**rulexdb\_lexbase**(3)](/rulexdb_lexbase/3.md), [**rulexdb\_load\_ruleset**(3)](/rulexdb_load_ruleset/3.md), [**rulexdb\_open**(3)](/rulexdb_open/3.md), [**rulexdb\_remove\_item**(3)](/rulexdb_remove_item/3.md), [**rulexdb\_remove\_rule**(3)](/rulexdb_remove_rule/3.md), [**rulexdb\_remove\_this\_item**(3)](/rulexdb_remove_this_item/3.md), [**rulexdb\_retrieve\_item**(3)](/rulexdb_retrieve_item/3.md), [**rulexdb\_search**(3)](/rulexdb_search/3.md), [**rulexdb\_seq**(3)](/rulexdb_seq/3.md), [**rulexdb\_subscribe\_item**(3)](/rulexdb_subscribe_item/3.md), [**rulexdb\_subscribe\_rule**(3)](/rulexdb_subscribe_rule/3.md)

## AUTHOR

Igor B. Poretsky \<poretsky@mlbox.ru\>.
