UJG / Editor's Draft /
GitHub
Table of Contents
  • 1Overview
  • 2Terminology
  • 3Persona
  • 4Touchpoint
  • 5Surface
  • 6SurfaceInstance
  • 7Shared Semantics
  • 8Normative Artifacts
    • 8.1Ontology
    • 8.2JSON-LD Context
    • 8.3Validation
  • 9Examples
    • 9.1Combined Surface Example
    • 9.2Private Extension Payloads
W3C Community Group Draft Report

Surface

draft

Status of this Document

This report was published by the User Journey Graph Community Group . It is not a W3C Standard nor is it on the W3C Standards Track. Please note that under the W3C Community Contributor License Agreement (CLA) there is a limited opt-out and other conditions apply. Learn more about W3C Community and Business Groups .

Last Update
2026-11-27
Editors
  • Seva Dolgopolov
Group
User Journey Graph Community Group
Repository
View Source
License
W3C-Software-and-Document

1. Overview

This core-family specification describes how an intended journey is made visible to people. It defines four concepts:

  • A Persona describes a human role or perspective, such as a customer or support agent.

  • A Touchpoint describes where an experience is presented, such as a website, mobile app, kiosk, or call center.

  • A Surface gives a stable identity to something visible that represents a Graph node.

  • A SurfaceInstance identifies one concrete occurrence of a Surface at runtime.

The concepts form two independent relationship chains:

flowchart LR
  Persona -->|touchpoints| Touchpoint
  Touchpoint -->|journeys| Journey
  SurfaceInstance -->|surface| Surface
  Surface -->|graphNode| GraphNode["State, CompositeState, or Command"]

The first chain describes the human perspective and presenting boundary around a Journey. The second describes how visible materialization connects to Graph meaning. Neither chain adds Graph edges, changes traversal, or identifies who actually used a system at runtime.

Graph does not depend on Surface. A Graph model remains meaningful without personas, touchpoints, surfaces, or runtime instances.

Examples compose the shared baseline context with https://ujg.specs.openuji.org/ed/ns/surface.context.jsonld.

2. Terminology

  • Persona: A human role, archetype, or participant perspective relevant to an experience.

  • Touchpoint: A system, channel, or service boundary through which one or more Journeys are presented.

  • Surface: A stable, addressable, design-system-agnostic visible boundary for one supported Graph node.

  • SurfaceInstance: One concrete runtime-visible occurrence of a Surface.

3. Persona

A Persona gives a name to a human perspective that matters to an experience. For example, "Customer", "Support agent", and "Store manager" can be personas. A persona can be associated with one or more Touchpoints through touchpoints.

A Persona is not a person record. It does not identify an account, authenticated identity, runtime actor, authorization subject, legal person, system, or organization. It also does not own Graph nodes. Graph nodes therefore never need a Persona in order to be understood.

  1. A Persona MUST have an IRI so it can be referenced consistently.

  2. A Persona MAY have a label, tags, and one or more touchpoints.

  3. Every touchpoints value MUST identify a Touchpoint.

  4. Graph nodes MUST NOT reference a Persona directly.

  5. Persona relationships MUST NOT create Graph edges, alter Graph traversal, assert that something occurred, identify a Runtime actor, or imply authentication or authorization.

classDiagram
  class Persona {
    id
    label
    tags
    touchpoints
  }
  class Touchpoint
  Persona --> "0..*" Touchpoint : touchpoints

Example nodes:

YAML-LD

yaml
- type: Persona
  id: urn:ujg:persona:customer
  label: Customer
  tags:
    - shopper
  touchpoints:
    - urn:ujg:touchpoint:web
- type: Touchpoint
  id: urn:ujg:touchpoint:web
  label: Web shop
  channel: web
- type: Persona
  id: urn:ujg:persona:customer
  label: Customer
  tags:
    - shopper
  touchpoints:
    - urn:ujg:touchpoint:web
- type: Touchpoint
  id: urn:ujg:touchpoint:web
  label: Web shop
  channel: web

JSON-LD

json
[
  {
    "type": "Persona",
    "id": "urn:ujg:persona:customer",
    "label": "Customer",
    "tags": [
      "shopper"
    ],
    "touchpoints": [
      "urn:ujg:touchpoint:web"
    ]
  },
  {
    "type": "Touchpoint",
    "id": "urn:ujg:touchpoint:web",
    "label": "Web shop",
    "channel": "web"
  }
]
[
  {
    "type": "Persona",
    "id": "urn:ujg:persona:customer",
    "label": "Customer",
    "tags": [
      "shopper"
    ],
    "touchpoints": [
      "urn:ujg:touchpoint:web"
    ]
  },
  {
    "type": "Touchpoint",
    "id": "urn:ujg:touchpoint:web",
    "label": "Web shop",
    "channel": "web"
  }
]

4. Touchpoint

A Touchpoint describes where people encounter an experience. A website, mobile app, kiosk, branch office, and call center are all possible touchpoints. The optional channel is a short name for the kind of boundary, while journeys identifies the Journeys presented there.

Touchpoints connect to meaningful Journey boundaries rather than individual States or Surfaces. This keeps a coherent part of an experience together. A Touchpoint does not identify a Persona, account, Runtime observer, or protocol state by itself.

  1. A Touchpoint MUST have an IRI and one label.

  2. A Touchpoint MAY have one channel and one or more journeys.

  3. Every journeys value MUST identify a Journey.

  4. Touchpoint assignment SHOULD be made at a Journey boundary when that Journey represents one coherent experience on the Touchpoint.

  5. journeys MUST NOT create hidden Graph edges, change traversal, assert occurrence, or change Runtime event ordering.

classDiagram
  class Touchpoint {
    id
    label
    channel
    journeys
  }
  class Journey
  Touchpoint --> "0..*" Journey : journeys

Example node:

YAML-LD

yaml
type: Touchpoint
id: urn:ujg:touchpoint:web
label: Web shop
channel: web
journeys:
  - urn:ujg:journey:checkout
type: Touchpoint
id: urn:ujg:touchpoint:web
label: Web shop
channel: web
journeys:
  - urn:ujg:journey:checkout

JSON-LD

json
{
  "type": "Touchpoint",
  "id": "urn:ujg:touchpoint:web",
  "label": "Web shop",
  "channel": "web",
  "journeys": [
    "urn:ujg:journey:checkout"
  ]
}
{
  "type": "Touchpoint",
  "id": "urn:ujg:touchpoint:web",
  "label": "Web shop",
  "channel": "web",
  "journeys": [
    "urn:ujg:journey:checkout"
  ]
}

5. Surface

A Surface gives a stable identity to one visible boundary and connects that boundary to its Graph meaning with graphNode. The referenced Graph node can be a State, CompositeState, or Command.

For example, a shipping form can be the Surface for a shipping State. A visible "Place order" control can be the Surface for a Command. Referencing a Command does not prescribe a button, link, or any other widget; it only says which intentional invocation the visible boundary represents.

Multiple Surfaces can reference the same Graph node when they are genuinely different visible boundaries. A different color, framework, or renderer does not by itself make a new Surface.

When Graph traversal creates multiple concrete occurrences, the corresponding Surface can also appear more than once. Surface does not define occurrence counts, instance keys, collection data, or rendering behavior. Those details come from Graph semantics and runtime or application data. A StateCollection is such Graph semantics; its members are told apart by their SurfaceInstances (see SurfaceInstance).

  1. A Surface MUST have an IRI and exactly one graphNode.

  2. graphNode MUST identify a State, CompositeState, or Command.

  3. A Surface MUST NOT declare a Persona or Touchpoint directly.

  4. A Surface MUST NOT change Graph traversal or assert that its Graph node occurred.

  5. A Surface MUST NOT define occurrence multiplicity, instance keys, data sources, collection iteration, or rendering behavior.

  6. A Surface MUST NOT reference a Transition, AdjacentTransition, OutgoingTransition, or InvokingTransition through graphNode.

classDiagram
  class State
  class CompositeState
  class Command
  class Surface {
    id
    graphNode
  }
  Surface --> State : graphNode
  Surface --> CompositeState : graphNode
  Surface --> Command : graphNode

Example node:

YAML-LD

yaml
type: Surface
id: urn:ujg:surface:shipping-form
graphNode: urn:ujg:state:shipping
type: Surface
id: urn:ujg:surface:shipping-form
graphNode: urn:ujg:state:shipping

JSON-LD

json
{
  "type": "Surface",
  "id": "urn:ujg:surface:shipping-form",
  "graphNode": "urn:ujg:state:shipping"
}
{
  "type": "Surface",
  "id": "urn:ujg:surface:shipping-form",
  "graphNode": "urn:ujg:state:shipping"
}

6. SurfaceInstance

A SurfaceInstance identifies one concrete occurrence of a Surface. For example, the same shipping form Surface can appear during many executions, and each visible occurrence can have its own SurfaceInstance. Runtime events use surfaceInstance to say where an observed moment occurred.

  1. A SurfaceInstance MUST have an IRI and exactly one surface.

  2. surface MUST identify a Surface.

  3. A SurfaceInstance MUST NOT declare Graph-node identity directly; its Graph meaning is found through the referenced Surface.

  4. Each member of a StateCollection MUST be observed through its own SurfaceInstance, and every observation of that member MUST use the same one. Mapping tells members apart only by their SurfaceInstances.

classDiagram
  class Surface
  class SurfaceInstance {
    id
    surface
  }
  SurfaceInstance --> Surface : surface

Example node:

YAML-LD

yaml
type: SurfaceInstance
id: urn:ujg:surface-instance:shipping-form:1
surface: urn:ujg:surface:shipping-form
type: SurfaceInstance
id: urn:ujg:surface-instance:shipping-form:1
surface: urn:ujg:surface:shipping-form

JSON-LD

json
{
  "type": "SurfaceInstance",
  "id": "urn:ujg:surface-instance:shipping-form:1",
  "surface": "urn:ujg:surface:shipping-form"
}
{
  "type": "SurfaceInstance",
  "id": "urn:ujg:surface-instance:shipping-form:1",
  "surface": "urn:ujg:surface:shipping-form"
}

7. Shared Semantics

  1. Persona.touchpoints and Touchpoint.journeys form the descriptive path from a human perspective to the Journeys presented for that perspective.

  2. Surface.graphNode is the canonical relationship from a visible boundary to Graph meaning.

  3. SurfaceInstance.surface is the canonical relationship from one concrete visible occurrence to its stable Surface.

  4. To find the Touchpoints applicable to a Surface, a consumer first finds the Journey or Journeys in which the referenced Graph node is used, then finds Touchpoints whose journeys include those Journeys. A shared Graph node can therefore lead to more than one applicable Touchpoint.

  5. To find the Personas associated with those Touchpoints, a consumer finds Personas whose touchpoints include them. This can produce no Persona, one Persona, or several Personas.

  6. An associated Persona describes the intended human perspective. It MUST NOT be treated as the identity of a person observed at runtime.

  7. When OutgoingTransition or InvokingTransition nodes need stable visible invocation identity, model a Command and let those transitions share that Command through command.

  8. Surface terms do not select design-system components, templates, slots, tokens, or renderers.

  9. Concrete Surface occurrence multiplicity derives from Graph traversal and runtime or application data; Surface does not add its own multiplicity vocabulary.

  10. A consumer may ignore Surface semantics while preserving recognized JSON-LD data.

8. Normative Artifacts

The following sections contain the exact machine-readable vocabulary, JSON-LD term mappings, and validation rules. Readers who only need the conceptual model can continue to the examples.

8.1. Ontology

The Surface ontology is published at https://ujg.specs.openuji.org/ed/ns/surface.

turtle
@prefix ujg: <https://ujg.specs.openuji.org/ed/ns/core#> .
@prefix ujggraph: <https://ujg.specs.openuji.org/ed/ns/graph#> .
@prefix ujgsurface: <https://ujg.specs.openuji.org/ed/ns/surface#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix dct: <http://purl.org/dc/terms/> .

<https://ujg.specs.openuji.org/ed/ns/surface#> a owl:Ontology ;
  rdfs:label "UJG Surface Editor's Draft Vocabulary"@en ;
  dct:description "UJG Surface ontology declaration" .

### Classes

ujgsurface:Surface a owl:Class ;
  rdfs:subClassOf ujg:Node .

ujgsurface:SurfaceInstance a owl:Class ;
  rdfs:subClassOf ujg:Node .

ujgsurface:Touchpoint a owl:Class ;
  rdfs:subClassOf ujg:Node .

ujgsurface:Persona a owl:Class ;
  rdfs:subClassOf ujg:Node ;
  rdfs:label "Persona" ;
  rdfs:comment "A human role, archetype, or participant perspective associated with one or more human-facing touchpoints." .

### Properties

ujgsurface:graphNode a owl:ObjectProperty ;
  rdfs:domain ujgsurface:Surface ;
  rdfs:range [
    a owl:Class ;
    owl:unionOf (
      ujggraph:State
      ujggraph:CompositeState
      ujggraph:Command
    )
  ] .

ujgsurface:surface a owl:ObjectProperty ;
  rdfs:domain ujgsurface:SurfaceInstance ;
  rdfs:range ujgsurface:Surface .

ujgsurface:touchpoints a owl:ObjectProperty ;
  rdfs:domain ujgsurface:Persona ;
  rdfs:range ujgsurface:Touchpoint ;
  rdfs:label "touchpoints" ;
  rdfs:comment "References touchpoints associated with this human role, archetype, or participant perspective." .

ujgsurface:journeys a owl:ObjectProperty ;
  rdfs:domain ujgsurface:Touchpoint ;
  rdfs:range ujggraph:Journey ;
  rdfs:label "journeys" ;
  rdfs:comment "References meaningful Journey boundaries presented through this Touchpoint." .

ujgsurface:channel a owl:DatatypeProperty ;
  rdfs:domain ujgsurface:Touchpoint ;
  rdfs:range xsd:string .
@prefix ujg: <https://ujg.specs.openuji.org/ed/ns/core#> .
@prefix ujggraph: <https://ujg.specs.openuji.org/ed/ns/graph#> .
@prefix ujgsurface: <https://ujg.specs.openuji.org/ed/ns/surface#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix dct: <http://purl.org/dc/terms/> .

<https://ujg.specs.openuji.org/ed/ns/surface#> a owl:Ontology ;
  rdfs:label "UJG Surface Editor's Draft Vocabulary"@en ;
  dct:description "UJG Surface ontology declaration" .

### Classes

ujgsurface:Surface a owl:Class ;
  rdfs:subClassOf ujg:Node .

ujgsurface:SurfaceInstance a owl:Class ;
  rdfs:subClassOf ujg:Node .

ujgsurface:Touchpoint a owl:Class ;
  rdfs:subClassOf ujg:Node .

ujgsurface:Persona a owl:Class ;
  rdfs:subClassOf ujg:Node ;
  rdfs:label "Persona" ;
  rdfs:comment "A human role, archetype, or participant perspective associated with one or more human-facing touchpoints." .

### Properties

ujgsurface:graphNode a owl:ObjectProperty ;
  rdfs:domain ujgsurface:Surface ;
  rdfs:range [
    a owl:Class ;
    owl:unionOf (
      ujggraph:State
      ujggraph:CompositeState
      ujggraph:Command
    )
  ] .

ujgsurface:surface a owl:ObjectProperty ;
  rdfs:domain ujgsurface:SurfaceInstance ;
  rdfs:range ujgsurface:Surface .

ujgsurface:touchpoints a owl:ObjectProperty ;
  rdfs:domain ujgsurface:Persona ;
  rdfs:range ujgsurface:Touchpoint ;
  rdfs:label "touchpoints" ;
  rdfs:comment "References touchpoints associated with this human role, archetype, or participant perspective." .

ujgsurface:journeys a owl:ObjectProperty ;
  rdfs:domain ujgsurface:Touchpoint ;
  rdfs:range ujggraph:Journey ;
  rdfs:label "journeys" ;
  rdfs:comment "References meaningful Journey boundaries presented through this Touchpoint." .

ujgsurface:channel a owl:DatatypeProperty ;
  rdfs:domain ujgsurface:Touchpoint ;
  rdfs:range xsd:string .

8.2. JSON-LD Context

The Surface context is published at https://ujg.specs.openuji.org/ed/ns/surface.context.jsonld.

json-ld
{
  "@context": {
    "@version": 1.1,
    "ujgsurface": "https://ujg.specs.openuji.org/ed/ns/surface#",
    "Surface": "ujgsurface:Surface",
    "SurfaceInstance": "ujgsurface:SurfaceInstance",
    "Touchpoint": "ujgsurface:Touchpoint",
    "Persona": "ujgsurface:Persona",
    "graphNode": {
      "@id": "ujgsurface:graphNode",
      "@type": "@id"
    },
    "surface": {
      "@id": "ujgsurface:surface",
      "@type": "@id"
    },
    "touchpoints": {
      "@id": "ujgsurface:touchpoints",
      "@type": "@id",
      "@container": "@set"
    },
    "journeys": {
      "@id": "ujgsurface:journeys",
      "@type": "@id",
      "@container": "@set"
    },
    "channel": "ujgsurface:channel"
  }
}
{
  "@context": {
    "@version": 1.1,
    "ujgsurface": "https://ujg.specs.openuji.org/ed/ns/surface#",
    "Surface": "ujgsurface:Surface",
    "SurfaceInstance": "ujgsurface:SurfaceInstance",
    "Touchpoint": "ujgsurface:Touchpoint",
    "Persona": "ujgsurface:Persona",
    "graphNode": {
      "@id": "ujgsurface:graphNode",
      "@type": "@id"
    },
    "surface": {
      "@id": "ujgsurface:surface",
      "@type": "@id"
    },
    "touchpoints": {
      "@id": "ujgsurface:touchpoints",
      "@type": "@id",
      "@container": "@set"
    },
    "journeys": {
      "@id": "ujgsurface:journeys",
      "@type": "@id",
      "@container": "@set"
    },
    "channel": "ujgsurface:channel"
  }
}

8.3. Validation

The Surface SHACL shape is published at https://ujg.specs.openuji.org/ed/ns/surface.shape.

turtle
@prefix ujggraph: <https://ujg.specs.openuji.org/ed/ns/graph#> .
@prefix ujgsurface: <https://ujg.specs.openuji.org/ed/ns/surface#> .
@prefix ujgsurfaceshape: <https://ujg.specs.openuji.org/ed/ns/surface.shape#> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

ujgsurfaceshape:GraphNodeTargetShape a sh:NodeShape ;
  sh:nodeKind sh:IRI ;
  sh:or (
    [ sh:class ujggraph:State ]
    [ sh:class ujggraph:CompositeState ]
    [ sh:class ujggraph:Command ]
  ) .

ujgsurfaceshape:SurfaceShape a sh:NodeShape ;
  sh:targetClass ujgsurface:Surface ;
  sh:nodeKind sh:IRI ;

  sh:property [
    sh:path ujgsurface:graphNode ;
    sh:node ujgsurfaceshape:GraphNodeTargetShape ;
    sh:nodeKind sh:IRI ;
    sh:minCount 1 ;
    sh:maxCount 1 ;
  ] .

ujgsurfaceshape:SurfaceInstanceShape a sh:NodeShape ;
  sh:targetClass ujgsurface:SurfaceInstance ;
  sh:nodeKind sh:IRI ;

  sh:property [
    sh:path ujgsurface:surface ;
    sh:class ujgsurface:Surface ;
    sh:nodeKind sh:IRI ;
    sh:minCount 1 ;
    sh:maxCount 1 ;
  ] .

ujgsurfaceshape:PersonaShape a sh:NodeShape ;
  sh:targetClass ujgsurface:Persona ;
  sh:nodeKind sh:IRI ;

  sh:property [
    sh:path ujggraph:label ;
    sh:datatype xsd:string ;
    sh:maxCount 1 ;
  ] ;

  sh:property [
    sh:path ujggraph:tags ;
    sh:datatype xsd:string ;
  ] ;

  sh:property [
    sh:path ujgsurface:touchpoints ;
    sh:class ujgsurface:Touchpoint ;
    sh:nodeKind sh:IRI ;
  ] .

ujgsurfaceshape:TouchpointShape a sh:NodeShape ;
  sh:targetClass ujgsurface:Touchpoint ;
  sh:nodeKind sh:IRI ;

  sh:property [
    sh:path ujggraph:label ;
    sh:datatype xsd:string ;
    sh:minCount 1 ;
    sh:maxCount 1 ;
  ] ;

  sh:property [
    sh:path ujgsurface:channel ;
    sh:datatype xsd:string ;
    sh:maxCount 1 ;
  ] ;

  sh:property [
    sh:path ujgsurface:journeys ;
    sh:class ujggraph:Journey ;
    sh:nodeKind sh:IRI ;
  ] .
@prefix ujggraph: <https://ujg.specs.openuji.org/ed/ns/graph#> .
@prefix ujgsurface: <https://ujg.specs.openuji.org/ed/ns/surface#> .
@prefix ujgsurfaceshape: <https://ujg.specs.openuji.org/ed/ns/surface.shape#> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

ujgsurfaceshape:GraphNodeTargetShape a sh:NodeShape ;
  sh:nodeKind sh:IRI ;
  sh:or (
    [ sh:class ujggraph:State ]
    [ sh:class ujggraph:CompositeState ]
    [ sh:class ujggraph:Command ]
  ) .

ujgsurfaceshape:SurfaceShape a sh:NodeShape ;
  sh:targetClass ujgsurface:Surface ;
  sh:nodeKind sh:IRI ;

  sh:property [
    sh:path ujgsurface:graphNode ;
    sh:node ujgsurfaceshape:GraphNodeTargetShape ;
    sh:nodeKind sh:IRI ;
    sh:minCount 1 ;
    sh:maxCount 1 ;
  ] .

ujgsurfaceshape:SurfaceInstanceShape a sh:NodeShape ;
  sh:targetClass ujgsurface:SurfaceInstance ;
  sh:nodeKind sh:IRI ;

  sh:property [
    sh:path ujgsurface:surface ;
    sh:class ujgsurface:Surface ;
    sh:nodeKind sh:IRI ;
    sh:minCount 1 ;
    sh:maxCount 1 ;
  ] .

ujgsurfaceshape:PersonaShape a sh:NodeShape ;
  sh:targetClass ujgsurface:Persona ;
  sh:nodeKind sh:IRI ;

  sh:property [
    sh:path ujggraph:label ;
    sh:datatype xsd:string ;
    sh:maxCount 1 ;
  ] ;

  sh:property [
    sh:path ujggraph:tags ;
    sh:datatype xsd:string ;
  ] ;

  sh:property [
    sh:path ujgsurface:touchpoints ;
    sh:class ujgsurface:Touchpoint ;
    sh:nodeKind sh:IRI ;
  ] .

ujgsurfaceshape:TouchpointShape a sh:NodeShape ;
  sh:targetClass ujgsurface:Touchpoint ;
  sh:nodeKind sh:IRI ;

  sh:property [
    sh:path ujggraph:label ;
    sh:datatype xsd:string ;
    sh:minCount 1 ;
    sh:maxCount 1 ;
  ] ;

  sh:property [
    sh:path ujgsurface:channel ;
    sh:datatype xsd:string ;
    sh:maxCount 1 ;
  ] ;

  sh:property [
    sh:path ujgsurface:journeys ;
    sh:class ujggraph:Journey ;
    sh:nodeKind sh:IRI ;
  ] .

9. Examples

9.1. Combined Surface Example

In this example, the Customer Persona is associated with the Web shop Touchpoint. That Touchpoint presents the Checkout Journey. The shipping form Surface gives visible identity to the Shipping State, and the SurfaceInstance identifies one concrete occurrence of that form.

YAML-LD

yaml
"@context":
  - https://ujg.specs.openuji.org/ed/ns/context.jsonld
  - https://ujg.specs.openuji.org/ed/ns/surface.context.jsonld
id: https://example.com/ujg/surface/checkout.jsonld
type: UJGDocument
nodes:
  - type: Persona
    id: urn:ujg:persona:customer
    label: Customer
    touchpoints:
      - urn:ujg:touchpoint:web
  - type: Touchpoint
    id: urn:ujg:touchpoint:web
    label: Web shop
    channel: web
    journeys:
      - urn:ujg:journey:checkout
  - type: Journey
    id: urn:ujg:journey:checkout
    defaultEntry: urn:ujg:entry:checkout-default
    entries:
      - type: JourneyEntry
        id: urn:ujg:entry:checkout-default
        state: urn:ujg:state:shipping
    states:
      - type: State
        id: urn:ujg:state:shipping
        label: Shipping
  - type: Surface
    id: urn:ujg:surface:shipping-form
    graphNode: urn:ujg:state:shipping
  - type: SurfaceInstance
    id: urn:ujg:surface-instance:shipping-form:1
    surface: urn:ujg:surface:shipping-form
"@context":
  - https://ujg.specs.openuji.org/ed/ns/context.jsonld
  - https://ujg.specs.openuji.org/ed/ns/surface.context.jsonld
id: https://example.com/ujg/surface/checkout.jsonld
type: UJGDocument
nodes:
  - type: Persona
    id: urn:ujg:persona:customer
    label: Customer
    touchpoints:
      - urn:ujg:touchpoint:web
  - type: Touchpoint
    id: urn:ujg:touchpoint:web
    label: Web shop
    channel: web
    journeys:
      - urn:ujg:journey:checkout
  - type: Journey
    id: urn:ujg:journey:checkout
    defaultEntry: urn:ujg:entry:checkout-default
    entries:
      - type: JourneyEntry
        id: urn:ujg:entry:checkout-default
        state: urn:ujg:state:shipping
    states:
      - type: State
        id: urn:ujg:state:shipping
        label: Shipping
  - type: Surface
    id: urn:ujg:surface:shipping-form
    graphNode: urn:ujg:state:shipping
  - type: SurfaceInstance
    id: urn:ujg:surface-instance:shipping-form:1
    surface: urn:ujg:surface:shipping-form

JSON-LD

json
{
  "@context": [
    "https://ujg.specs.openuji.org/ed/ns/context.jsonld",
    "https://ujg.specs.openuji.org/ed/ns/surface.context.jsonld"
  ],
  "id": "https://example.com/ujg/surface/checkout.jsonld",
  "type": "UJGDocument",
  "nodes": [
    {
      "type": "Persona",
      "id": "urn:ujg:persona:customer",
      "label": "Customer",
      "touchpoints": [
        "urn:ujg:touchpoint:web"
      ]
    },
    {
      "type": "Touchpoint",
      "id": "urn:ujg:touchpoint:web",
      "label": "Web shop",
      "channel": "web",
      "journeys": [
        "urn:ujg:journey:checkout"
      ]
    },
    {
      "type": "Journey",
      "id": "urn:ujg:journey:checkout",
      "defaultEntry": "urn:ujg:entry:checkout-default",
      "entries": [
        {
          "type": "JourneyEntry",
          "id": "urn:ujg:entry:checkout-default",
          "state": "urn:ujg:state:shipping"
        }
      ],
      "states": [
        {
          "type": "State",
          "id": "urn:ujg:state:shipping",
          "label": "Shipping"
        }
      ]
    },
    {
      "type": "Surface",
      "id": "urn:ujg:surface:shipping-form",
      "graphNode": "urn:ujg:state:shipping"
    },
    {
      "type": "SurfaceInstance",
      "id": "urn:ujg:surface-instance:shipping-form:1",
      "surface": "urn:ujg:surface:shipping-form"
    }
  ]
}
{
  "@context": [
    "https://ujg.specs.openuji.org/ed/ns/context.jsonld",
    "https://ujg.specs.openuji.org/ed/ns/surface.context.jsonld"
  ],
  "id": "https://example.com/ujg/surface/checkout.jsonld",
  "type": "UJGDocument",
  "nodes": [
    {
      "type": "Persona",
      "id": "urn:ujg:persona:customer",
      "label": "Customer",
      "touchpoints": [
        "urn:ujg:touchpoint:web"
      ]
    },
    {
      "type": "Touchpoint",
      "id": "urn:ujg:touchpoint:web",
      "label": "Web shop",
      "channel": "web",
      "journeys": [
        "urn:ujg:journey:checkout"
      ]
    },
    {
      "type": "Journey",
      "id": "urn:ujg:journey:checkout",
      "defaultEntry": "urn:ujg:entry:checkout-default",
      "entries": [
        {
          "type": "JourneyEntry",
          "id": "urn:ujg:entry:checkout-default",
          "state": "urn:ujg:state:shipping"
        }
      ],
      "states": [
        {
          "type": "State",
          "id": "urn:ujg:state:shipping",
          "label": "Shipping"
        }
      ]
    },
    {
      "type": "Surface",
      "id": "urn:ujg:surface:shipping-form",
      "graphNode": "urn:ujg:state:shipping"
    },
    {
      "type": "SurfaceInstance",
      "id": "urn:ujg:surface-instance:shipping-form:1",
      "surface": "urn:ujg:surface:shipping-form"
    }
  ]
}

9.2. Private Extension Payloads

Core extensions remains available for vendor-private Surface data.

YAML-LD

yaml
id: urn:ujg:surface:cart
type: Surface
graphNode: urn:ujg:state:cart
extensions:
  com.acme.audit:
    reviewTicket: ACME-1234
id: urn:ujg:surface:cart
type: Surface
graphNode: urn:ujg:state:cart
extensions:
  com.acme.audit:
    reviewTicket: ACME-1234

JSON-LD

json
{
  "id": "urn:ujg:surface:cart",
  "type": "Surface",
  "graphNode": "urn:ujg:state:cart",
  "extensions": {
    "com.acme.audit": {
      "reviewTicket": "ACME-1234"
    }
  }
}
{
  "id": "urn:ujg:surface:cart",
  "type": "Surface",
  "graphNode": "urn:ujg:state:cart",
  "extensions": {
    "com.acme.audit": {
      "reviewTicket": "ACME-1234"
    }
  }
}

Copyright © 2026 the Contributors to the ujg/surface, published by the User Journey Graph Community Group under the W3C Community Contributor License Agreement (CLA) . A human-readable summary is available.

GitHub Matrix room

generated by Speculator