ItemValue
NameWIKIDATA-PID (a 5Q bundle. See the member table below for the name of each code)
TAG ID0x019L~0x01DL
Section0 0000 (Reference entity), offset within section C = 25~29
KindReference · category: declaration
Hugo sidereference/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 IDNameQuantificationCodec IDSpec documentTAG WORD
0x019LWIKIDATA-PID-IDENTIFIEDIdentified0x000001900x00000000/codecs/0x00000190/0000 0001 1001 LLLL
0x01ALWIKIDATA-PID-GENERICGeneric0x000001A00x00000000/codecs/0x000001A0/0000 0001 1010 LLLL
0x01BLWIKIDATA-PID-FREE-CHOICEFree-choice0x000001B00x00000000/codecs/0x000001B0/0000 0001 1011 LLLL
0x01CLWIKIDATA-PID-UNIVERSALUniversal0x000001C00x00000000/codecs/0x000001C0/0000 0001 1100 LLLL
0x01DLWIKIDATA-PID-VARIABLEVariable0x000001D00x00000000/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).

OrderField (BIND)FIELDWidthAccepted form (CODEC)ENUM
1pid#2Remaining 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

PropertyWORD 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).