Skip to content

Numerical Identifiers

Vera-IER edited this page Apr 16, 2020 · 26 revisions

The OEO switched from human readable names to alphanumeric identifiers. To get a personal user ID, add yourself to the list.

List of user IDs

Please add yourself to the list to reserve an ID.

  • 0000: entities created before the switch to IDs
  • 0001: @l-emele
  • 0002: @stap-m
  • 0003: @akleinau
  • 0004: @jannahastings
  • 0005: @Vera-IER

Motivation

See the #133 for the whole discussion. Alphanumeric identifiers are listed as best practice and commonly used because in most cases their advantages outweigh the disadvantages. A short summary is given below:

Advantages

  • versioning and backward compability: a name for a concept can change in a new version of the ontology without its identifier (in databases etc) having to be changed everywhere.
  • user groups: if people talk about the same concept but can't decide on a main name for it they can both be added as labels for this concept and the people can get their own views of the ontology showing their preferred label.
  • better readability of long names: in labels we dont have to use CamelCase. Long names like NonRenewableMunicipalWasteFuel are better readable in lower case as "non renewable municipial waste fuel".

Disadvantages

  • the file is harder to read without a tool like protege (that will automatically show labels instead of the alphanumerical identifiers).

Implementation in the OEO

Identifiers look like this: OEO_00140123

They are structured in three parts: OEO_[yyyy][xxxx]

  • "OEO_" identifies them as part of the OEO ontology
  • [yyyy] identifies the user who added the classes. Each user gets a unique ID (list below). Entities with the ID 0000 were created before the change to alphanumeric identifiers was made.
  • [xxxx] identifies the specific class added by the user. This enables every user to create 10000 entities before having to get a new ID. IDs are assigned chronologically to each entity, starting with 0000.

How to change your settings

Every user has to set his protégé user settings according to the structure of the identifiers used in the OEO.

This is done by opening the "oeo.omn" file in Protégé and clicking on File -> Preferences -> new entities.

Then the following settings are selected:

Entity IRI:

Entity Label:

  • Same as label renderer

Auto-generated ID:

  • Numeric (iterative)
  • prefix: OEO_[your user id] e.g. OEO_0001 if you user ID is 1
  • Digit count: 4

check "Remember last ID between Protégé sessions"

then click "OK"

Clone this wiki locally