Roles

Roles are temporary functions played by objects (e.g. the person that is the arresting officer or the subject in a law enforcement case).

Each role references the base object with the @id keyword from JSON-LD.

Here is an example of a NIEM role j:ArrestOfficial in JSON schema:

{
  "$id": "http://release.niem.gov/niem/domains/jxdm/6.0/",
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "object",
  "additionalProperties": false,
  "definitions": {
    "j:EnforcementOfficialBadgeIdentification": {
      "$ref": "./nc.schema.json#/definitions/nc:IdentificationType",
      "description": "An identification used to refer to an enforcement official."
    },
    "j:EnforcementOfficialType": {
      "additionalProperties": false,
      "description": "A data type for a person involved in the enforcement of law.",
      "properties": {
        "j:EnforcementOfficialBadgeIdentification": {
          "description": "An identification used to refer to an enforcement official.",
          "$ref": "#/definitions/j:EnforcementOfficialBadgeIdentification"
        },
        "nc:RoleOfPerson": {
          "description": "A person of whom the role object is a function.",
          "$ref": "./nc.schema.json#/definitions/nc:RoleOfPerson"
        }
      },
      "required": [
        "nc:RoleOfPerson"
      ],
      "type": "object"
    }
  },
  "properties": {
    "j:ArrestOfficial": {
      "$ref": "#/definitions/j:EnforcementOfficialType",
      "description": "A peace official who makes an arrest."
    },
    "nc:Person": {
      "$ref": "./nc.schema.json#/definitions/nc:PersonType",
      "description": "A human being."
    }
  },
  "required": [
  ]
}

This schema references other schemas: nc and xs

Here is a JSON instance of that role:

{
  "@context": {
    "j": "http://release.niem.gov/niem/domains/jxdm/6.0/#",
    "nc": "http://release.niem.gov/niem/niem-core/4.0/#",
    "xs": "http://www.w3.org/2001/XMLSchema#"
  },
  "j:ArrestOfficial": {
    "j:EnforcementOfficialBadgeIdentification": {
      "nc:IdentificationID": "100",
      "nc:IdentificationSourceText": "Springfield Police Department"
    },
    "nc:RoleOfPerson": {
      "@id": "Person1"
    }
  },
  "nc:Person": {
    "@id": "Person1",
    "nc:PersonName": {
      "nc:PersonFullName": "John Smith"
    }
  }
}