CWR two-way conversion

The CWR-JSON core schema is a faithful JSON expression of CWR 2.2 Revision 3. Any valid CWR 2.2 Revision 3 EDI file must be convertible into CWR-JSON, and that CWR-JSON shall be convertible back into CWR 2.2 Revision 3 EDI. The mapping below shows how CWR EDI records and fields are represented as JSON elements. It is intended to make the relationship between the original CWR structure and the CWR-JSON structure clear, so implementers can understand where each piece of data belongs.

NWR / REV — Work Registration Header

The NWR and REV records are the root of every CWR transaction.

Mapping

CWR EDI FieldJSON PathNotes
Record typework.messages.typeLowercased: "nwr", "rev", or "ack"
Title / WorkTitlework.titles[]{ value, type: "TT" }
ISWCwork.identifiers[].iswc[]Dotted ISO T-NNN.NNN.NNN-C. One { iswc } entry
SubmitterWorkNumberwork.identifiers[]{ type: "submitterWorkId", value, source: { type: "cwrSubmitter", value: HDR sender id, name } }
RevocationIndicatorwork.messages.revocation.indicator
RevocationReasonwork.messages.revocation.reason
AnomalousWorkIndicatorwork.flags.anomalous"Y" → true
AnomalousWorkReasonwork.flags.anomalousReason
AIIndicatorwork.flags.aiUsageRaw value preserved

Notes

  • For REV: all work fields must be re-submitted in full. Structure is identical to NWR.
  • For REV with RevocationIndicator = "Y": the work is being revoked.

XRF — Work ID Cross Reference

CWR 2.2 XRF records carry additional work identifiers (society work numbers, ISWC/ISRC cross-refs, submitter IDs).

Mapping

CWR EDI FieldJSON PathNotes
IdentifierType = W, org ISWwork.identifiers[].iswc[]Dotted ISO. Deduped with NWR / REV ISWC
IdentifierType = W, numeric society codework.identifiers[]{ type: "societyWorkId", source: { type: "cisacSociety", value: org } }
IdentifierType = W, 2–3 letter submitter codework.identifiers[]{ type: "publisherWorkId", source: { type: "cwrSubmitter", value: org } }
IdentifierType = W, other or missing orgwork.identifiers[]{ type: "proprietary", value } and no source
IdentifierType = R, valid ISRCrecordings[].isrc[]Matching recording ISRC is not copied. Each unmatched code is its own recording shell
IdentifierType = P, 13-digit EANrecordings[].releases[].ean[]Its own recording with one release. Not attached to other recordings
IdentifierType = V—Not mapped
OrganisationCode 000 / 099—Skipped
Validity—Not mapped to JSON. Rows with every value (Y/N/U) are mapped

Notes

  • Triples match on type, value, source.type, and source.value.
  • REC.ISRC is one entry in recordings[].isrc[]. REC EAN is releases[].ean[]. Catalog number stays on releases[].catno.


Did this page help you?