| Item | Value |
|---|---|
| Name | WIKIDATA-PID (a 5Q bundle. See the member table below for the name of each code) |
| TAG ID | 0x019L~0x01DL |
| Section | 0 0000 (Reference entity), offset within section C = 25~29 |
| Kind | Reference · category: declaration |
| Hugo side | reference/wikidata-pid.md |
Members
This page covers one 5Q set, five codes together. The quantification is the offset within the section, C % 5 (Reference). There is one codec document per code. The fields of the five codec documents are the same; only the DECLARE target and the name (BIND) differ.
| TAG ID | Name | Quantification | Codec ID | Spec document | TAG WORD |
|---|---|---|---|---|---|
0x019L | WIKIDATA-PID-IDENTIFIED | Identified | 0x00000190 | 0x00000000/codecs/0x00000190/ | 0000 0001 1001 LLLL |
0x01AL | WIKIDATA-PID-GENERIC | Generic | 0x000001A0 | 0x00000000/codecs/0x000001A0/ | 0000 0001 1010 LLLL |
0x01BL | WIKIDATA-PID-FREE-CHOICE | Free-choice | 0x000001B0 | 0x00000000/codecs/0x000001B0/ | 0000 0001 1011 LLLL |
0x01CL | WIKIDATA-PID-UNIVERSAL | Universal | 0x000001C0 | 0x00000000/codecs/0x000001C0/ | 0000 0001 1100 LLLL |
0x01DL | WIKIDATA-PID-VARIABLE | Variable | 0x000001D0 | 0x00000000/codecs/0x000001D0/ | 0000 0001 1101 LLLL |
Fields (spec document)
The order of FIELDs in the document is the order of Payload fields (Codec spec document).
| Order | Field (BIND) | FIELD | Width | Accepted form (CODEC) | ENUM |
|---|---|---|---|---|---|
| 1 | pid | #2 | Remaining raw value (0xFFFF) |
WIKIDATA-PID is a declaration Reference that points to a Wikidata property. It writes the numeric part of the P-ID, without the P, as an unsigned integer.
Layout
TAG WORD 0000 0001 1001 LLLL Codec 0x019L~0x01DL (Identified 0x019L)
[Length extension TAG]
PID unsigned big-endian in the shortest width
- The PID is written in the shortest width. Current property numbers fit in 1 WORD, so the total is 2 WORD; beyond 65535 it naturally grows to 3 WORD.
- It is mainly used in the Predicate slot of TRIPLE and the Property slot of QUALIFIER.
Examples
| Property | WORD sequence |
|---|---|
P31 (instance of) | 0191 001F |
P279 (subclass of) | 0191 0117 |
P569 (date of birth) | 0191 0239 |
Related pages
Spec document source
This is the spec document 0x00000000/codecs/0x00000190/latest.geul as read by geul show (hex in uppercase).
SPEC-VERSION 0x0001
DOC-ID 0x0426000000000000019000000000
BODY
#1 DECLARE 0x0190
#2 FIELD #1 rest
#3 BIND #1 "WIKIDATA-PID-IDENTIFIED"
#4 BIND #2 "pid"
The above is the codec document of WIKIDATA-PID-IDENTIFIED (0x019L). The codec documents of the other members (WIKIDATA-PID-GENERIC, WIKIDATA-PID-FREE-CHOICE, WIKIDATA-PID-UNIVERSAL, WIKIDATA-PID-VARIABLE) differ only in the codec ID of the DOC-ID, the DECLARE target, and the name bound in #1 (BIND).