Pre-release. Until the official launch, content may change, including published files.
Skip to content

Source: https://datamodels.jp/en/models/decision/Decision/ · Text CC BY 4.0

Decision draft ​

One automated decision about one entity: a model's answers to the questions of a rule set, with probabilities, and the resulting action.

Kindentity
Type IRIhttps://datamodels.jp/ns/decision/Decision
@contexthttps://datamodels.jp/context/decision/v1.jsonld
JSON Schema/schema/decision/Decision/v1.json
DownloadCSV template Table Schema PostgreSQL / PostGIS table About these files
LicenceCC0 1.0: the files (@context, JSON Schema, examples) can be used without conditions

These @context and JSON Schema URLs (version aliases) always point to the latest compatible version.
For URLs that never change, see Versions. More in URLs and versions.

Types and relationships ​

Types and their relationshipsrefersToDecisionDecision↻ wasInformedBy, replacesany entity

Relationship (attribute name)↻ Relationship to the same type

Attributes ​

AttributeDescriptionValue
refersToThe entity the decision is about (the input). One of refersTo or externalReference is required
http://www.w3.org/ns/prov#used
Relationship → any entity
externalReferenceWhat the decision is about when it is not an entity in the broker, for example an issue URL
https://datamodels.jp/ns/decision/externalReference
Property, string
action*The action the rules gave, meaning what happens next (for example auto, review, publish, urgent). The values are defined by the rule set
https://datamodels.jp/ns/decision/action
Property, string
answers*The model's answers, one per question, each with its probability. Each item has name (the question), type (noul for yes or no, choice for one of a list of options, score for a level on an ordered scale), value, probability (of that value) and, for choice and score, probabilities (per option or level). An empty list for a decision made by rules only; its model is then none
https://datamodels.jp/ns/decision/answers
JsonProperty, array
factsEvery spatial fact the rule set asks for, as looked up for this decision (whether or not the matching rule used it), computed by spatial operations, not by the model (for example inside a flood zone, or the distance to the nearest evacuation site). Each item has name and missing, and either values (per field) and source, or, when it could not be looked up, reason (no_location, unavailable, timeout, error). Rules that need a missing fact do not match
https://datamodels.jp/ns/decision/facts
JsonProperty, array
profile*Id of the rule set that asked the questions and turned the answers into the action
https://datamodels.jp/ns/decision/profile
Property, string
profileVersion*Version of the rule set
https://datamodels.jp/ns/decision/profileVersion
Property, integer, ≥ 1
policyRuleWhich rule gave the action: its index from 0 as text ("0", "1", ...), or "default" when no rule matched. The reason for the result
https://datamodels.jp/ns/decision/policyRule
Property, string
model*Id of the model that answered; none for a decision made by rules only, with no model, whose answers are then an empty list
https://datamodels.jp/ns/decision/model
Property, string
decidedAt*When the decision was made
http://www.w3.org/ns/prov#endedAtTime
Property, string (date-time)
humanInvolvementHow a person takes part, as a W3C DPV term: dpv:HumanInvolvementForVerification (a person checks before the action is taken), dpv:HumanInvolvementForOversight (the action is taken, and a person can check and correct it later), dpv:HumanInvolvementForDecision (a person decides, and the answers only inform), dpv:HumanNotInvolved
https://w3id.org/dpv#hasHumanInvolvement
VocabProperty, string: dpv:HumanInvolvementForVerification | dpv:HumanInvolvementForOversight | dpv:HumanInvolvementForDecision | dpv:HumanNotInvolved
reviewStatusState of the check by a person: pending, resolved, or superseded (the check was still pending when a newer decision replaced this one, so it is no longer needed). Absent when no check was asked. Corrections of answers do not depend on it: they can come at any time
https://datamodels.jp/ns/decision/reviewStatus
Property, string: pending | resolved | superseded
finalActionThe action after the check by a person
https://datamodels.jp/ns/decision/finalAction
Property, string
reviewedBy
personal data
Who resolved the check, as an account, role or team identifier, not a personal name
https://datamodels.jp/ns/decision/reviewedBy
Property, string
reviewedAtWhen the check was resolved
https://datamodels.jp/ns/decision/reviewedAt
Property, string (date-time)
corrections
personal data
Answers corrected by a person (the ground truth for measuring the model). Each item has name, value, by (an identifier), at and optionally note. They can come at any time, also without a check (reviewStatus)
https://datamodels.jp/ns/decision/corrections
JsonProperty, array
wasInformedByThe earlier decisions this one used, in a chain of decisions. Always an array in the key-values form, even with one decision. In DMN terms, the decisions this one requires
http://www.w3.org/ns/prov#wasInformedBy
Relationship → Decision (multiple)
requiredDecisionsWhich earlier decision played which part: one item per earlier decision, with name (the name the rule set gives it, for example check) and decision (its id). Each name appears once. Every decision listed here must also be in wasInformedBy
https://datamodels.jp/ns/decision/requiredDecisions
JsonProperty, array
replacesThe decision this one replaces. This one is the same rule set's decision about the same entity, made again (for example a final decision, made again after a person checked one of the decisions it used)
http://purl.org/dc/terms/replaces
Relationship → Decision

* required

"Personal data" marks attributes that often hold personal data. It is a hint: other attributes can hold it too, and whoever stores the data decides how to protect it (Personal data).

Using this model ​

  • How to validate data and send it to a broker: Using the models.

  • To add attributes of your own to this model, the extension builder writes the @context and JSON Schema.

  • Extended this model? If you publish it on a site made with the toolkit, it shows on this page once your site is on the list of sites. Without a site, list your extension so others can reuse your names (how it works).

  • Files that particular brokers and tools can load as they are, made from this model: Adapters

  • The Link header, for sending data without @context in the body:

    http
    Link: <https://datamodels.jp/context/decision/v1.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"

Example ​

Most examples are a fictional scenario (heavy rain in Chiyoda, Tokyo). Place names and codes are real; the events, people and teams are invented. Some examples copy a real row of a published list instead; their notes name the source. See writing examples.

json
{
  "id": "urn:ngsi-ld:Decision:7d20731d-5cc8-4315-97ba-1576c5466269",
  "type": "Decision",
  "refersTo": "urn:ngsi-ld:RoadRestriction:0001",
  "action": "review",
  "answers": {
    "json": [
      {
        "name": "category",
        "type": "choice",
        "value": "closedWeather",
        "probability": 0.81,
        "probabilities": {
          "closedWeather": 0.81,
          "closedConstruction": 0.02,
          "closedHeavyVehicle": 0.01,
          "closedWinter": 0,
          "laneRestriction": 0.09,
          "alternatingOneWay": 0.05,
          "mobileRestriction": 0,
          "chainRestriction": 0,
          "chainGuidance": 0,
          "other": 0.02
        }
      },
      {
        "name": "status_matches",
        "type": "noul",
        "value": true,
        "probability": 0.92
      },
      {
        "name": "danger",
        "type": "noul",
        "value": false,
        "probability": 0.58
      },
      {
        "name": "clarity",
        "type": "score",
        "value": 3,
        "probability": 0.74,
        "probabilities": {
          "0": 0.02,
          "1": 0.06,
          "2": 0.18,
          "3": 0.74
        }
      }
    ]
  },
  "facts": {
    "json": [
      {
        "name": "flood",
        "missing": false,
        "values": {
          "inside": true,
          "rank": 4,
          "class": "1 to 3 m"
        },
        "source": "gsi-flood-max"
      }
    ]
  },
  "profile": "road-restriction-check",
  "profileVersion": 1,
  "policyRule": "default",
  "model": "clef-flash",
  "decidedAt": "2026-07-08T10:46:12+09:00",
  "humanInvolvement": {
    "vocab": "dpv:HumanInvolvementForVerification"
  },
  "reviewStatus": "resolved",
  "finalAction": "publish",
  "reviewedBy": "staff-0012",
  "reviewedAt": "2026-07-08T10:52:40+09:00",
  "corrections": {
    "json": [
      {
        "name": "category",
        "value": "closedWeather",
        "by": "staff-0012",
        "at": "2026-07-08T10:52:40+09:00",
        "note": "冠水による通行止めで間違いない"
      }
    ]
  }
}

Files: example.json · example-normalized.jsonld · Open in the JSON-LD Playground: see the full IRI behind every attribute (expanded form).

Something missing or wrong?

Open an issue, or propose new attributes or models with the proposal form. How it works: Contributing. The source files (notes, mapping tables) are on GitHub.

Notes ​

  • The provenance part rests on W3C PROV-O (https://www.w3.org/TR/prov-o/, W3C Recommendation 2013). A decision is a prov:Activity: refersTo is prov:used, decidedAt prov:endedAtTime, wasInformedBy prov:wasInformedBy. The model that answered is a prov:SoftwareAgent and the rule set version a prov:Plan; model, profile and profileVersion are plain values (ids) so they are easy to use in NGSI-LD. Full PROV-O would mint IRIs for models and rule set versions and add a prov:qualifiedAssociation (prov:agent, prov:hadPlan). The check by a person is a separate activity in PROV-O; it is kept on the same entity to keep consumers simple.
  • W3C/OGC SOSA/SSN (https://www.w3.org/TR/vocab-ssn/) publishes its own alignment to PROV-O with the same shape: sosa:hasFeatureOfInterest ⊑ prov:used (refersTo), sosa:madeBySensor ⊑ prov:wasAssociatedWith (model), sosa:usedProcedure (profile), sosa:resultTime ⊑ prov:endedAtTime (2017; sosa:endTime in the 2023 draft). Not used as the type: one observation has one result, and a question is not really an observable property.
  • The values of humanInvolvement are W3C DPV 2.3 terms (https://w3c-cg.github.io/dpv/2.3/dpv/, W3C Community Group report). DPV describes kinds of processing, not single decision records, so only its human-involvement terms are borrowed.
  • Upstream considered (2026-10-07). Smart Data Models SMAnalysis (SocialMedia: one analysis with one value and one confidence) is the closest, but has no multiple answers and no review. MLModel and MLProcessing (descriptions of models and jobs), Alert, Anomaly, AIPrediction, DataQualityAssessment, schema.org AssessAction and ChooseAction, ML Schema, FAIR4ML, AIRO and VAIR do not fit as the type. DMN does not fit as the record type either: it defines decisions and their logic, not the record of one evaluation. Chains of decisions, however, follow its decision requirements graph (see the note on DMN). ETSI ISG CIM has no model for AI results. The probability standards checked (DQV, ISO 19156 result quality, UncertML, QUDT) do not fit a probability per option, so probability and probabilities are our own.
  • Laws and guidelines (checked 2026-10-07) define no record format. policyRule (the reason for the result) is there because AI事業者ガイドライン 第1.2版 6)① and the Digital Agency's DS-920 6.5 ask for it in logs; humanInvolvement records how a person takes part; it is useful for the duties in GDPR Art. 22(3) and 13–15, the EU AI Act Art. 26(11) and 86, and the guideline's U-7. Retention is a deployment setting, not a model attribute.
  • answers and corrections are NGSI-LD 1.8 JsonProperties (their keys are not expanded as JSON-LD), humanInvolvement a VocabProperty (its value is an IRI). Orion-LD (post-1.12.0, as of 2026-09-25) refuses both types, so it cannot store entities of this model; Scorpio 6.0.2, Stellio 2.38.0 and GeonicDB can (checked 2026-10-07). No copy of the input: it can hold personal data, so refersTo points to it.
  • facts are the spatial facts the rule set asks for, as looked up for the decision; a JsonProperty keeps the values themselves. In PROV-O they are inputs of the decision, but as a JsonProperty they make no prov:used link (only refersTo does); full PROV-O would make an entity per fact and link it with prov:used. source is an id such as a layer and its date, not an IRI. The location itself is not stored (it is on the refersTo entity). Only the rules use the facts; the model does not see them (in tests, language models rated danger higher whenever facts were present).
  • Chains of decisions. A decision can use the results of earlier decisions about the same entity (for example a final decision that combines a first check and an evacuation check). wasInformedBy lists them. In the normalized form it is a multi-valued Relationship, one instance per earlier decision, told apart by datasetId, like relatedTo and assignee on Task. The NGSI-LD 1.8 ListRelationship (one attribute with an ordered list of targets) is not used: the catalog's checks and adapters know only Property, Relationship, GeoProperty, JsonProperty and VocabProperty, and the order of the earlier decisions means nothing. Data written before, with one Relationship and no datasetId in the normalized form, stays valid. In the key-values form wasInformedBy is always an array, even with one decision, like the multi-valued attributes of Task. A decision made by rules only, with no model, has model none and an empty answers list. For example, when a final decision uses the decision in this page's example (rule set road-restriction-check) and an evacuation check, wasInformedBy lists both ids, and requiredDecisions is [{"name": "check", "decision": the first id}, {"name": "evacuation", "decision": the second id}].
  • requiredDecisions says which earlier decision played which part: the name the rule set gives it (for example check), each name once, and the decision's id. The nearest PROV-O term is prov:qualifiedCommunication, but PROV-O gives a prov:Communication no role (prov:hadRole is for associations and instantaneous events), so the name is our own. It is a JsonProperty, so that each name stays with its id in one attribute. When requiredDecisions is present, wasInformedBy must be too; the schema checks this (dependentRequired). JSON Schema cannot check that every decision in requiredDecisions is also in wasInformedBy, or that the names differ.
  • replaces points to the decision this one replaces. This one is the same rule set's decision about the same entity, made again (for example a final decision, made again after a person checked one of the decisions it used). The earlier decision stays; the newer one counts. If the earlier decision's check was still pending, its reviewStatus becomes superseded: the check is no longer needed, and it has no finalAction, reviewedBy or reviewedAt. The IRI is Dublin Core dcterms:replaces (http://purl.org/dc/terms/replaces), which does not restrict what it links. PROV-O prov:wasRevisionOf is not used: it links entities (prov:Entity), while a decision here is a prov:Activity, so a PROV validator rejects a decision with both prov:wasInformedBy and prov:wasRevisionOf.
  • DMN (Decision Model and Notation, OMG; newer versions than 1.3 exist, tools read 1.3) describes chains of decisions as a decision requirements graph. One Decision entity is one evaluation of one DMN decision, and profile and profileVersion name the decision's definition (the rule set and its version). DMN's informationRequirement and requiredDecision link decision definitions; wasInformedBy and requiredDecisions record which evaluations of the required decisions (which decision records) were used. DMN defines the graph and the decision logic, but no record of an evaluation, so the record stays our own. The rule sets do not use DMN decision logic (FEEL, decision tables).
  • Draft. The subject name decision and the namespace https://datamodels.jp/ns/decision/ are for the group to decide, as a new subject. Real data: decisions on road restriction reports in an NGSI-LD broker (GeonicDB).
Change history (1)
  • 2026-10-20 (team decision; a pre-release correction of 1.0.0 in place): for chains of decisions, wasInformedBy became a multi-valued Relationship (always an array in the key-values form), and requiredDecisions and replaces were added. reviewStatus gained superseded. answers may be an empty list, for a decision made by rules only (its model is then none).