Skip to content

User stories terms (c4us:)

What the user-stories skill tells about a system, as a graph: stories (as a person, I want, so that), the people and personas they are told for, the range of a runtime scenario each one covers, acceptance criteria and the code behind them, the screens a person sees at a step and their views at several sizes, and, only when asked for, readers' notes on those screens with their pins. A stories graph uses the base of the architecture graph it belongs to, so its actors, scenarios and steps are the core terms' resources of that graph. This page is the target of the namespace https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-stories#, generated from c4-stories.ttl when the site is built. Graphs are checked with c4-stories-shapes.ttl. The stories as an RDF graph gives the mapping from stories.js, the IRIs and tested queries.

Overview

Namespace c4us: = https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-stories# · ontology https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-stories · version 0.1.0 · download c4-stories.ttl

Classes
c4us:AcceptanceCriterion One condition a story must meet to be done, written for readers and checkable in the code: a role check on a route, an error answer and its status code, a transition of a state machine, a disabled button or a message the interface shows.
c4us:CodeReference A place in the repository where a story's criteria can be checked: a file (c4:path, relative to the repository root), a line in it (c4:line) and a short label of what is there.
c4us:Note One reader's feedback on one screen of one story: a comment, a drawing over the screen with numbered pins, and possibly a voice note, made in the stories page.
c4us:Persona A kind of person the stories are told for, in the stories' own words: a name, what they do with the system, and what they want from it. Usually a person of the architecture described again (c4us:portrays); sometimes someone the architecture does not show.
c4us:Pin A numbered point of a note on its screen view, with a short text: c4us:x and c4us:y are fractions (0 to 1) of the view's picture from its top-left corner; schema:position is the number shown in the drawing.
c4us:Screen What the person of a story sees at one step of its journey: a page or a dialog of the system, pictured by a screenshot, a wireframe, a mock-up, a diagram, an illustration or a photo, at one or more sizes (its views).
c4us:ScreenView A screen at one size (desktop, tablet, phone, or a name of the project's own): its picture, caption, text alternative and size in pixels. Readers' notes are made on one view.
c4us:StoryCollection The user stories told about one software system, as one stories page shows them: its stories in order, the personas they are told for, and, when the graph was written with them, the notes readers left.
c4us:UserStory One thing one person does with the system and can check: As a (its actor), I want (c4us:want), so that (c4us:soThat). It covers a range of steps of a runtime scenario, has acceptance criteria checkable in the code, and shows the screens the person sees.
Object properties
c4us:aboutStory The story a note was left on.
c4us:acceptanceCriterion One of the story's acceptance criteria, in order by its schema:position.
c4us:actor Who the story is told for (As a …): a person of the architecture, or a persona when the architecture does not show them.
c4us:architecture The architecture the stories are told about: the c4:Model of the explorer's graph, whose people, scenarios and steps the stories point at.
c4us:coversStep A step of the story's scenario that is part of its journey: one value per step from c4us:firstStep to c4us:lastStep.
c4us:defaultView The view the page shows first, and the one a note without a view of its own belongs to.
c4us:evidence A place in the code where the story's criteria can be checked.
c4us:firstStep The step of its scenario where the story starts.
c4us:hasNote A reader's note on one of the collection's stories.
c4us:hasView The screen at one size.
c4us:lastStep The step of its scenario where the story ends (the same as the first for a story of one step).
c4us:onScreen The screen a note was drawn on.
c4us:onView The view of the screen a note was drawn on: its pins are fractions of that view's picture.
c4us:persona A persona of the stories: from a collection, every persona it describes; from a story, the persona that says more about its actor.
c4us:pin A numbered pin of the note.
c4us:portrays The person of the architecture a persona describes again, in the stories' own words.
c4us:scenario The runtime scenario whose steps are the story's journey.
c4us:screen A screen the story's person sees, numbered by its schema:position in the order of the journey.
c4us:seenAtStep The step of the story's scenario at which the person sees the screen.
Datatype properties
c4us:altText The text alternative of a view's picture: what matters on the screen, for readers who cannot see it.
c4us:comment The written comment of a note, for the whole note.
c4us:given The context of a criterion written as Given …, when …, then …: what is true before.
c4us:goal The story's own goal, read as a use case, when it gives one (a story covering part of a scenario); otherwise the scenario's c4:goal applies.
c4us:hasRecording True when the note has a voice note. The audio is never in the graph. Written only when true.
c4us:illustrative True for a screen that is not a capture of the running software (a wireframe drawn from the code, a mock-up, a diagram): the page labels it. Written only when true.
c4us:markCount How many marks the note's drawing has: pen and highlighter strokes, arrows, boxes and pins. The drawing itself is not in the graph; extract-feedback.mjs draws it as a file.
c4us:note The limits and open questions about a story found in the code.
c4us:noteStatus Whether a note still asks for something: open or resolved.
c4us:outcome What holds once the story is done, when it gives its own; otherwise the scenario's c4:outcome applies.
c4us:personaGoal Something the persona wants from the system, in their words. One value per goal.
c4us:pinText The short note a pin carries.
c4us:pixelHeight The height of a view's picture in pixels.
c4us:pixelWidth The width of a view's picture in pixels.
c4us:precondition What must hold before the story starts, when it gives its own; one value per precondition.
c4us:recordingDuration The length of the note's voice note, in seconds.
c4us:recordingFile The file extract-feedback.mjs (or the page's Feedback as ZIP) writes the voice note to, relative to its output folder: audio/, the note's id, and the extension of the recording's format.
c4us:screenKind What pictures the screen: screenshot (a capture of the running software), wireframe, mockup, diagram, illustration or photo.
c4us:soThat Why, completing so that …
c4us:statement The text of an acceptance criterion, as readers read it.
c4us:status How far the code does the story: implemented, partial (part of it is missing; c4us:note says which) or planned (asked for, with no code yet).
c4us:then The expected result of a criterion written as Given …, when …, then …
c4us:transcript The text of the note's voice note, one line per recognised phrase, each starting with its time in the recording ([m:ss.s]). Only when the reader turned transcription on; speech recognition makes mistakes.
c4us:trigger What starts the story, when it gives its own; otherwise the scenario's c4:trigger applies.
c4us:viewName The name of a screen's view: desktop, tablet, phone, or a short name of the project's own. Unique among the views of a screen.
c4us:want What the actor wants to do, completing I want …
c4us:when The action of a criterion written as Given …, when …, then …
c4us:withFeedback Whether the graph holds readers' notes: true when its writer was asked for them (stories-rdf.mjs --with-feedback, the page's Stories and feedback download), false otherwise.
c4us:x Where a pin is across its view's picture: a fraction of the width from the left edge, from 0 to 1.
c4us:y Where a pin is down its view's picture: a fraction of the height from the top edge, from 0 to 1.

Terms

AcceptanceCriterion

c4us:AcceptanceCriterion · class · Acceptance criterion

One condition a story must meet to be done, written for readers and checkable in the code: a role check on a route, an error answer and its status code, a transition of a state machine, a disabled button or a message the interface shows.

  • Note: Its text is c4us:statement; when it reads Given …, when …, then …, the three parts are also c4us:given, c4us:when and c4us:then.
  • Source: https://cucumber.io/docs/gherkin/reference/
  • IRI: https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-stories#AcceptanceCriterion

CodeReference

c4us:CodeReference · class · Code reference

A place in the repository where a story's criteria can be checked: a file (c4:path, relative to the repository root), a line in it (c4:line) and a short label of what is there.

  • Note: rdfs:seeAlso links to that line in the repository's web view when the project's source host is known.
  • IRI: https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-stories#CodeReference

Note

c4us:Note · class · Note

One reader's feedback on one screen of one story: a comment, a drawing over the screen with numbered pins, and possibly a voice note, made in the stories page.

  • Note: People's words: written into a graph only when its writer is asked for feedback. The audio of a voice note is never in the graph; c4us:hasRecording, c4us:recordingDuration and c4us:recordingFile say that there is one, how long it is and the file extract-feedback.mjs writes it to. c4us:transcript is the speech recognition's text, which can be wrong.
  • Source: https://caviri.github.io/c4-model-agentic-plugin/reference/stories-feedback/
  • IRI: https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-stories#Note

Persona

c4us:Persona · class · Persona

A kind of person the stories are told for, in the stories' own words: a name, what they do with the system, and what they want from it. Usually a person of the architecture described again (c4us:portrays); sometimes someone the architecture does not show.

  • Note: A role, never an individual: Reviewer, not a named employee.
  • IRI: https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-stories#Persona

Pin

c4us:Pin · class · Pin

A numbered point of a note on its screen view, with a short text: c4us:x and c4us:y are fractions (0 to 1) of the view's picture from its top-left corner; schema:position is the number shown in the drawing.

  • IRI: https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-stories#Pin

Screen

c4us:Screen · class · Screen

What the person of a story sees at one step of its journey: a page or a dialog of the system, pictured by a screenshot, a wireframe, a mock-up, a diagram, an illustration or a photo, at one or more sizes (its views).

  • Note: c4us:seenAtStep is the step of the scenario where it is seen. Its views are c4us:hasView; the one the page shows first is c4us:defaultView. c4us:screenKind and c4us:illustrative apply to every view.
  • IRI: https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-stories#Screen

ScreenView

c4us:ScreenView · class · Screen view

A screen at one size (desktop, tablet, phone, or a name of the project's own): its picture, caption, text alternative and size in pixels. Readers' notes are made on one view.

  • Note: The picture is schema:contentUrl: an http(s) IRI, or an xsd:anyURI literal holding a path relative to the stories' source file (stories.js). A picture that exists only inside the page (a data: URL) has none.
  • IRI: https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-stories#ScreenView

StoryCollection

c4us:StoryCollection · class · Story collection

The user stories told about one software system, as one stories page shows them: its stories in order, the personas they are told for, and, when the graph was written with them, the notes readers left.

  • Note: Carries rdfs:label (the project's name), dcterms:identifier (the page's key, under which readers' browsers keep their notes), dcterms:conformsTo this ontology, c4us:withFeedback, and usually c4us:architecture (the c4:Model of the explorer's graph). Its stories are dcterms:hasPart, in order by their schema:position.
  • Source: https://caviri.github.io/c4-model-agentic-plugin/reference/stories-format/
  • IRI: https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-stories#StoryCollection

UserStory

c4us:UserStory · class · User story

One thing one person does with the system and can check: As a (its actor), I want (c4us:want), so that (c4us:soThat). It covers a range of steps of a runtime scenario, has acceptance criteria checkable in the code, and shows the screens the person sees.

  • Note: Its journey is c4us:scenario with c4us:firstStep, c4us:lastStep and every step between them as c4us:coversStep, all resources of the architecture graph. A story that covers the whole scenario shares that scenario's use-case facts (c4:goal …, in the architecture graph); the facts a story gives itself are c4us:goal, c4us:trigger, c4us:precondition and c4us:outcome.
  • Source: https://www.mountaingoatsoftware.com/agile/user-stories
  • IRI: https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-stories#UserStory

aboutStory

c4us:aboutStory · object property · about story

The story a note was left on.

  • Domain: c4us:Note
  • Range: c4us:UserStory
  • IRI: https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-stories#aboutStory

acceptanceCriterion

c4us:acceptanceCriterion · object property · acceptance criterion

One of the story's acceptance criteria, in order by its schema:position.

actor

c4us:actor · object property · actor

Who the story is told for (As a …): a person of the architecture, or a persona when the architecture does not show them.

architecture

c4us:architecture · object property · architecture

The architecture the stories are told about: the c4:Model of the explorer's graph, whose people, scenarios and steps the stories point at.

coversStep

c4us:coversStep · object property · covers step

A step of the story's scenario that is part of its journey: one value per step from c4us:firstStep to c4us:lastStep.

  • Domain: c4us:UserStory
  • Range: c4:Step
  • Note: With the architecture graph, it says which elements a story touches: the source and target of each step it covers.
  • IRI: https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-stories#coversStep

defaultView

c4us:defaultView · object property · default view

The view the page shows first, and the one a note without a view of its own belongs to.

evidence

c4us:evidence · object property · evidence

A place in the code where the story's criteria can be checked.

firstStep

c4us:firstStep · object property · first step

The step of its scenario where the story starts.

hasNote

c4us:hasNote · object property · has note

A reader's note on one of the collection's stories.

hasView

c4us:hasView · object property · has view

The screen at one size.

lastStep

c4us:lastStep · object property · last step

The step of its scenario where the story ends (the same as the first for a story of one step).

onScreen

c4us:onScreen · object property · on screen

The screen a note was drawn on.

  • Domain: c4us:Note
  • Range: c4us:Screen
  • IRI: https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-stories#onScreen

onView

c4us:onView · object property · on view

The view of the screen a note was drawn on: its pins are fractions of that view's picture.

  • Domain: c4us:Note
  • Range: c4us:ScreenView
  • IRI: https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-stories#onView

persona

c4us:persona · object property · persona

A persona of the stories: from a collection, every persona it describes; from a story, the persona that says more about its actor.

  • Range: c4us:Persona
  • IRI: https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-stories#persona

pin

c4us:pin · object property · pin

A numbered pin of the note.

  • Domain: c4us:Note
  • Range: c4us:Pin
  • IRI: https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-stories#pin

portrays

c4us:portrays · object property · portrays

The person of the architecture a persona describes again, in the stories' own words.

  • Domain: c4us:Persona
  • Range: c4:Person
  • IRI: https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-stories#portrays

scenario

c4us:scenario · object property · scenario

The runtime scenario whose steps are the story's journey.

  • Domain: c4us:UserStory
  • Range: c4:Scenario
  • IRI: https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-stories#scenario

screen

c4us:screen · object property · screen

A screen the story's person sees, numbered by its schema:position in the order of the journey.

seenAtStep

c4us:seenAtStep · object property · seen at step

The step of the story's scenario at which the person sees the screen.

  • Domain: c4us:Screen
  • Range: c4:Step
  • IRI: https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-stories#seenAtStep

altText

c4us:altText · datatype property · alt text

The text alternative of a view's picture: what matters on the screen, for readers who cannot see it.

  • Domain: c4us:ScreenView
  • Range: xsd:string
  • IRI: https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-stories#altText

comment

c4us:comment · datatype property · comment

The written comment of a note, for the whole note.

  • Domain: c4us:Note
  • Range: xsd:string
  • IRI: https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-stories#comment

given

c4us:given · datatype property · given

The context of a criterion written as Given …, when …, then …: what is true before.

  • Domain: c4us:AcceptanceCriterion
  • Range: xsd:string
  • IRI: https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-stories#given

goal

c4us:goal · datatype property · goal

The story's own goal, read as a use case, when it gives one (a story covering part of a scenario); otherwise the scenario's c4:goal applies.

  • Domain: c4us:UserStory
  • Range: xsd:string
  • IRI: https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-stories#goal

hasRecording

c4us:hasRecording · datatype property · has recording

True when the note has a voice note. The audio is never in the graph. Written only when true.

  • Domain: c4us:Note
  • Range: xsd:boolean
  • IRI: https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-stories#hasRecording

illustrative

c4us:illustrative · datatype property · illustrative

True for a screen that is not a capture of the running software (a wireframe drawn from the code, a mock-up, a diagram): the page labels it. Written only when true.

  • Domain: c4us:Screen
  • Range: xsd:boolean
  • IRI: https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-stories#illustrative

markCount

c4us:markCount · datatype property · mark count

How many marks the note's drawing has: pen and highlighter strokes, arrows, boxes and pins. The drawing itself is not in the graph; extract-feedback.mjs draws it as a file.

  • Domain: c4us:Note
  • Range: xsd:nonNegativeInteger
  • IRI: https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-stories#markCount

note

c4us:note · datatype property · note

The limits and open questions about a story found in the code.

  • Domain: c4us:UserStory
  • Range: xsd:string
  • IRI: https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-stories#note

noteStatus

c4us:noteStatus · datatype property · note status

Whether a note still asks for something: open or resolved.

  • Domain: c4us:Note
  • Range: xsd:string
  • IRI: https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-stories#noteStatus

outcome

c4us:outcome · datatype property · outcome

What holds once the story is done, when it gives its own; otherwise the scenario's c4:outcome applies.

  • Domain: c4us:UserStory
  • Range: xsd:string
  • IRI: https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-stories#outcome

personaGoal

c4us:personaGoal · datatype property · persona goal

Something the persona wants from the system, in their words. One value per goal.

  • Domain: c4us:Persona
  • Range: xsd:string
  • IRI: https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-stories#personaGoal

pinText

c4us:pinText · datatype property · pin text

The short note a pin carries.

  • Domain: c4us:Pin
  • Range: xsd:string
  • IRI: https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-stories#pinText

pixelHeight

c4us:pixelHeight · datatype property · height in pixels

The height of a view's picture in pixels.

  • Domain: c4us:ScreenView
  • Range: xsd:positiveInteger
  • Note: Plain xsd:integer literals in the data, as for c4:line.
  • IRI: https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-stories#pixelHeight

pixelWidth

c4us:pixelWidth · datatype property · width in pixels

The width of a view's picture in pixels.

  • Domain: c4us:ScreenView
  • Range: xsd:positiveInteger
  • Note: Plain xsd:integer literals in the data, as for c4:line.
  • IRI: https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-stories#pixelWidth

precondition

c4us:precondition · datatype property · precondition

What must hold before the story starts, when it gives its own; one value per precondition.

  • Domain: c4us:UserStory
  • Range: xsd:string
  • IRI: https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-stories#precondition

recordingDuration

c4us:recordingDuration · datatype property · recording duration

The length of the note's voice note, in seconds.

  • Domain: c4us:Note
  • Range: xsd:decimal
  • IRI: https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-stories#recordingDuration

recordingFile

c4us:recordingFile · datatype property · recording file

The file extract-feedback.mjs (or the page's Feedback as ZIP) writes the voice note to, relative to its output folder: audio/, the note's id, and the extension of the recording's format.

  • Domain: c4us:Note
  • Range: xsd:string
  • IRI: https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-stories#recordingFile

screenKind

c4us:screenKind · datatype property · screen kind

What pictures the screen: screenshot (a capture of the running software), wireframe, mockup, diagram, illustration or photo.

  • Domain: c4us:Screen
  • Range: xsd:string
  • IRI: https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-stories#screenKind

soThat

c4us:soThat · datatype property · so that

Why, completing so that …

  • Domain: c4us:UserStory
  • Range: xsd:string
  • Example: the annotator knows what to fix
  • IRI: https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-stories#soThat

statement

c4us:statement · datatype property · statement

The text of an acceptance criterion, as readers read it.

  • Domain: c4us:AcceptanceCriterion
  • Range: xsd:string
  • IRI: https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-stories#statement

status

c4us:status · datatype property · status

How far the code does the story: implemented, partial (part of it is missing; c4us:note says which) or planned (asked for, with no code yet).

  • Domain: c4us:UserStory
  • Range: xsd:string
  • IRI: https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-stories#status

then

c4us:then · datatype property · then

The expected result of a criterion written as Given …, when …, then …

  • Domain: c4us:AcceptanceCriterion
  • Range: xsd:string
  • IRI: https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-stories#then

transcript

c4us:transcript · datatype property · transcript

The text of the note's voice note, one line per recognised phrase, each starting with its time in the recording ([m:ss.s]). Only when the reader turned transcription on; speech recognition makes mistakes.

  • Domain: c4us:Note
  • Range: xsd:string
  • IRI: https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-stories#transcript

trigger

c4us:trigger · datatype property · trigger

What starts the story, when it gives its own; otherwise the scenario's c4:trigger applies.

  • Domain: c4us:UserStory
  • Range: xsd:string
  • IRI: https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-stories#trigger

viewName

c4us:viewName · datatype property · view name

The name of a screen's view: desktop, tablet, phone, or a short name of the project's own. Unique among the views of a screen.

  • Domain: c4us:ScreenView
  • Range: xsd:string
  • IRI: https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-stories#viewName

want

c4us:want · datatype property · want

What the actor wants to do, completing I want …

  • Domain: c4us:UserStory
  • Range: xsd:string
  • Example: to look at the oldest submitted task and send it back with a comment that says what is wrong
  • IRI: https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-stories#want

when

c4us:when · datatype property · when

The action of a criterion written as Given …, when …, then …

  • Domain: c4us:AcceptanceCriterion
  • Range: xsd:string
  • IRI: https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-stories#when

withFeedback

c4us:withFeedback · datatype property · with feedback

Whether the graph holds readers' notes: true when its writer was asked for them (stories-rdf.mjs --with-feedback, the page's Stories and feedback download), false otherwise.

  • Domain: c4us:StoryCollection
  • Range: xsd:boolean
  • IRI: https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-stories#withFeedback

x

c4us:x · datatype property · x

Where a pin is across its view's picture: a fraction of the width from the left edge, from 0 to 1.

  • Domain: c4us:Pin
  • Range: xsd:decimal
  • IRI: https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-stories#x

y

c4us:y · datatype property · y

Where a pin is down its view's picture: a fraction of the height from the top edge, from 0 to 1.

  • Domain: c4us:Pin
  • Range: xsd:decimal
  • IRI: https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-stories#y