# The C4 user stories ontology (stories module) of c4-model-agentic-plugin.
#
# What the user-stories skill tells about a system, as a graph: who does what and why (stories, told for people of the
# architecture or for personas), the part of a runtime scenario each story covers, acceptance criteria checked against
# the code and where the code does it, the screens a person sees at a step (each at one or more sizes), and, only when
# asked for, the notes readers leave on those screens (comments, numbered pins, transcripts of voice notes).
#
# Builds on the core module (c4.ttl, c4:). A stories graph uses the base of the architecture graph it belongs to, so its
# links land on the explorer's resources: c4us:actor on a c4:Person, c4us:scenario on a c4:Scenario, c4us:coversStep and
# c4us:seenAtStep on c4:Step resources. Load the two graphs together to ask "which stories touch this container?".
#
# Design rules, the same as the core and data modules':
#   - Domain and range axioms cause inference, not validation, so there are few of them, only where the conclusion is
#     always right. Checking a graph is the job of the SHACL shapes (c4-stories-shapes.ttl).
#   - Reused terms keep their meaning: rdfs:label, dcterms:identifier, dcterms:description, dcterms:isPartOf and
#     dcterms:hasPart, schema:position, schema:keywords, schema:contentUrl, schema:caption, dcterms:creator,
#     dcterms:created and dcterms:modified, and the core's c4:path and c4:line. Core terms whose domain is a scenario
#     (c4:goal, c4:trigger, c4:precondition, c4:outcome) or an image (c4:altText, c4:illustrative) are not reused on
#     stories and screens, which would make them scenarios or images: this module has its own, mapped in alignments.ttl.
#   - A screen view is not a schema:ImageObject: the core's image shape (one owner by schema:image, an order) is for the
#     explorer's pictures. Its picture is schema:contentUrl, as there.
#   - Feedback is people's words. A graph holds notes only when its writer was asked for them (c4us:withFeedback says
#     which), and never the audio of a voice note: whether there is one, its length and the file name
#     extract-feedback.mjs gives it.

@prefix c4us:    <https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-stories#> .
@prefix c4:      <https://caviri.github.io/c4-model-agentic-plugin/ontology/c4#> .
@prefix owl:     <http://www.w3.org/2002/07/owl#> .
@prefix rdf:     <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs:    <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd:     <http://www.w3.org/2001/XMLSchema#> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix schema:  <https://schema.org/> .
@prefix skos:    <http://www.w3.org/2004/02/skos/core#> .
@prefix vann:    <http://purl.org/vocab/vann/> .

<https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-stories>
    a owl:Ontology ;
    owl:imports <https://caviri.github.io/c4-model-agentic-plugin/ontology/c4> ;
    dcterms:title "C4 user stories ontology"@en ;
    dcterms:description """User stories module of the C4 architecture ontology: the stories told about a software system (as a person, I want, so that), the people and personas they are told for, the part of a runtime scenario each one covers, acceptance criteria and the code that meets them, the screens a person sees at a step and their views at several sizes, and readers' notes on those screens. The user-stories skill of c4-model-agentic-plugin exports its pages in these terms (stories-rdf.mjs, build-stories.mjs --rdf, the page's Download menu), linked into the architecture graph the explorer exports."""@en ;
    dcterms:creator "caviri" ;
    dcterms:license <https://www.apache.org/licenses/LICENSE-2.0> ;
    dcterms:created "2026-12-04"^^xsd:date ;
    dcterms:modified "2026-12-04"^^xsd:date ;
    owl:versionInfo "0.1.0" ;
    vann:preferredNamespacePrefix "c4us" ;
    vann:preferredNamespaceUri "https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-stories#" ;
    rdfs:seeAlso <https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-stories/> , <https://caviri.github.io/c4-model-agentic-plugin/stories/> ;
    skos:note """Pre-1.0: terms may still change. Changes are listed in the plugin's ontology README."""@en .

#################################################################
#  Reused terms, declared so that OWL 2 DL tools load the file
#################################################################

dcterms:title       a owl:AnnotationProperty .
dcterms:description a owl:AnnotationProperty .
dcterms:identifier  a owl:AnnotationProperty .
dcterms:creator     a owl:AnnotationProperty .
dcterms:license     a owl:AnnotationProperty .
dcterms:created     a owl:AnnotationProperty .
dcterms:modified    a owl:AnnotationProperty .
dcterms:conformsTo  a owl:AnnotationProperty .
dcterms:isPartOf    a owl:ObjectProperty .
dcterms:hasPart     a owl:ObjectProperty .
schema:position     a owl:DatatypeProperty .
schema:keywords     a owl:DatatypeProperty .
schema:caption      a owl:DatatypeProperty .
schema:contentUrl   a owl:AnnotationProperty .
skos:definition     a owl:AnnotationProperty .
skos:scopeNote      a owl:AnnotationProperty .
skos:note           a owl:AnnotationProperty .
skos:example        a owl:AnnotationProperty .
vann:preferredNamespacePrefix a owl:AnnotationProperty .
vann:preferredNamespaceUri    a owl:AnnotationProperty .

#################################################################
#  Classes
#################################################################

c4us:StoryCollection a owl:Class ;
    rdfs:label "Story collection"@en ;
    skos:definition "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."@en ;
    rdfs:comment "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."@en ;
    dcterms:source <https://caviri.github.io/c4-model-agentic-plugin/reference/stories-format/> ;
    rdfs:isDefinedBy <https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-stories> .

c4us:Persona a owl:Class ;
    rdfs:label "Persona"@en ;
    skos:definition "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."@en ;
    rdfs:comment "A role, never an individual: Reviewer, not a named employee."@en ;
    rdfs:isDefinedBy <https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-stories> .

c4us:UserStory a owl:Class ;
    rdfs:label "User story"@en ;
    skos:definition "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."@en ;
    rdfs:comment "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."@en ;
    dcterms:source <https://www.mountaingoatsoftware.com/agile/user-stories> ;
    rdfs:isDefinedBy <https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-stories> .

c4us:AcceptanceCriterion a owl:Class ;
    rdfs:label "Acceptance criterion"@en ;
    skos:definition "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."@en ;
    rdfs:comment "Its text is c4us:statement; when it reads Given …, when …, then …, the three parts are also c4us:given, c4us:when and c4us:then."@en ;
    dcterms:source <https://cucumber.io/docs/gherkin/reference/> ;
    rdfs:isDefinedBy <https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-stories> .

c4us:CodeReference a owl:Class ;
    rdfs:label "Code reference"@en ;
    skos:definition "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."@en ;
    rdfs:comment "rdfs:seeAlso links to that line in the repository's web view when the project's source host is known."@en ;
    rdfs:isDefinedBy <https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-stories> .

c4us:Screen a owl:Class ;
    rdfs:label "Screen"@en ;
    skos:definition "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)."@en ;
    rdfs:comment "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."@en ;
    rdfs:isDefinedBy <https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-stories> .

c4us:ScreenView a owl:Class ;
    rdfs:label "Screen view"@en ;
    skos:definition "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."@en ;
    rdfs:comment "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."@en ;
    rdfs:isDefinedBy <https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-stories> .

c4us:Note a owl:Class ;
    rdfs:label "Note"@en ;
    skos:definition "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."@en ;
    rdfs:comment "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."@en ;
    dcterms:source <https://caviri.github.io/c4-model-agentic-plugin/reference/stories-feedback/> ;
    rdfs:isDefinedBy <https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-stories> .

c4us:Pin a owl:Class ;
    rdfs:label "Pin"@en ;
    skos:definition "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."@en ;
    rdfs:isDefinedBy <https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-stories> .

[] a owl:AllDisjointClasses ;
    owl:members ( c4us:StoryCollection c4us:Persona c4us:UserStory c4us:AcceptanceCriterion c4us:CodeReference c4us:Screen c4us:ScreenView c4us:Note c4us:Pin ) .

#################################################################
#  Object properties
#################################################################

c4us:architecture a owl:ObjectProperty ;
    rdfs:label "architecture"@en ;
    skos:definition "The architecture the stories are told about: the c4:Model of the explorer's graph, whose people, scenarios and steps the stories point at."@en ;
    rdfs:domain c4us:StoryCollection ;
    rdfs:range c4:Model ;
    rdfs:isDefinedBy <https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-stories> .

c4us:persona a owl:ObjectProperty ;
    rdfs:label "persona"@en ;
    skos:definition "A persona of the stories: from a collection, every persona it describes; from a story, the persona that says more about its actor."@en ;
    rdfs:range c4us:Persona ;
    rdfs:isDefinedBy <https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-stories> .

c4us:portrays a owl:ObjectProperty ;
    rdfs:label "portrays"@en ;
    skos:definition "The person of the architecture a persona describes again, in the stories' own words."@en ;
    rdfs:domain c4us:Persona ;
    rdfs:range c4:Person ;
    rdfs:isDefinedBy <https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-stories> .

c4us:actor a owl:ObjectProperty ;
    rdfs:label "actor"@en ;
    skos:definition "Who the story is told for (As a …): a person of the architecture, or a persona when the architecture does not show them."@en ;
    rdfs:domain c4us:UserStory ;
    rdfs:range [ a owl:Class ; owl:unionOf ( c4:Person c4us:Persona ) ] ;
    rdfs:isDefinedBy <https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-stories> .

c4us:scenario a owl:ObjectProperty ;
    rdfs:label "scenario"@en ;
    skos:definition "The runtime scenario whose steps are the story's journey."@en ;
    rdfs:domain c4us:UserStory ;
    rdfs:range c4:Scenario ;
    rdfs:isDefinedBy <https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-stories> .

c4us:coversStep a owl:ObjectProperty ;
    rdfs:label "covers step"@en ;
    skos:definition "A step of the story's scenario that is part of its journey: one value per step from c4us:firstStep to c4us:lastStep."@en ;
    rdfs:comment "With the architecture graph, it says which elements a story touches: the source and target of each step it covers."@en ;
    rdfs:domain c4us:UserStory ;
    rdfs:range c4:Step ;
    rdfs:isDefinedBy <https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-stories> .

c4us:firstStep a owl:ObjectProperty ;
    rdfs:subPropertyOf c4us:coversStep ;
    rdfs:label "first step"@en ;
    skos:definition "The step of its scenario where the story starts."@en ;
    rdfs:domain c4us:UserStory ;
    rdfs:range c4:Step ;
    rdfs:isDefinedBy <https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-stories> .

c4us:lastStep a owl:ObjectProperty ;
    rdfs:subPropertyOf c4us:coversStep ;
    rdfs:label "last step"@en ;
    skos:definition "The step of its scenario where the story ends (the same as the first for a story of one step)."@en ;
    rdfs:domain c4us:UserStory ;
    rdfs:range c4:Step ;
    rdfs:isDefinedBy <https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-stories> .

c4us:acceptanceCriterion a owl:ObjectProperty ;
    rdfs:label "acceptance criterion"@en ;
    skos:definition "One of the story's acceptance criteria, in order by its schema:position."@en ;
    rdfs:domain c4us:UserStory ;
    rdfs:range c4us:AcceptanceCriterion ;
    rdfs:isDefinedBy <https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-stories> .

c4us:evidence a owl:ObjectProperty ;
    rdfs:label "evidence"@en ;
    skos:definition "A place in the code where the story's criteria can be checked."@en ;
    rdfs:domain c4us:UserStory ;
    rdfs:range c4us:CodeReference ;
    rdfs:isDefinedBy <https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-stories> .

c4us:screen a owl:ObjectProperty ;
    rdfs:label "screen"@en ;
    skos:definition "A screen the story's person sees, numbered by its schema:position in the order of the journey."@en ;
    rdfs:domain c4us:UserStory ;
    rdfs:range c4us:Screen ;
    rdfs:isDefinedBy <https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-stories> .

c4us:seenAtStep a owl:ObjectProperty ;
    rdfs:label "seen at step"@en ;
    skos:definition "The step of the story's scenario at which the person sees the screen."@en ;
    rdfs:domain c4us:Screen ;
    rdfs:range c4:Step ;
    rdfs:isDefinedBy <https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-stories> .

c4us:hasView a owl:ObjectProperty ;
    rdfs:label "has view"@en ;
    skos:definition "The screen at one size."@en ;
    rdfs:domain c4us:Screen ;
    rdfs:range c4us:ScreenView ;
    rdfs:isDefinedBy <https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-stories> .

c4us:defaultView a owl:ObjectProperty ;
    rdfs:subPropertyOf c4us:hasView ;
    rdfs:label "default view"@en ;
    skos:definition "The view the page shows first, and the one a note without a view of its own belongs to."@en ;
    rdfs:domain c4us:Screen ;
    rdfs:range c4us:ScreenView ;
    rdfs:isDefinedBy <https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-stories> .

c4us:hasNote a owl:ObjectProperty ;
    rdfs:label "has note"@en ;
    skos:definition "A reader's note on one of the collection's stories."@en ;
    rdfs:domain c4us:StoryCollection ;
    rdfs:range c4us:Note ;
    rdfs:isDefinedBy <https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-stories> .

c4us:aboutStory a owl:ObjectProperty ;
    rdfs:label "about story"@en ;
    skos:definition "The story a note was left on."@en ;
    rdfs:domain c4us:Note ;
    rdfs:range c4us:UserStory ;
    rdfs:isDefinedBy <https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-stories> .

c4us:onScreen a owl:ObjectProperty ;
    rdfs:label "on screen"@en ;
    skos:definition "The screen a note was drawn on."@en ;
    rdfs:domain c4us:Note ;
    rdfs:range c4us:Screen ;
    rdfs:isDefinedBy <https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-stories> .

c4us:onView a owl:ObjectProperty ;
    rdfs:label "on view"@en ;
    skos:definition "The view of the screen a note was drawn on: its pins are fractions of that view's picture."@en ;
    rdfs:domain c4us:Note ;
    rdfs:range c4us:ScreenView ;
    rdfs:isDefinedBy <https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-stories> .

c4us:pin a owl:ObjectProperty ;
    rdfs:label "pin"@en ;
    skos:definition "A numbered pin of the note."@en ;
    rdfs:domain c4us:Note ;
    rdfs:range c4us:Pin ;
    rdfs:isDefinedBy <https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-stories> .

#################################################################
#  Datatype properties
#################################################################

c4us:withFeedback a owl:DatatypeProperty ;
    rdfs:label "with feedback"@en ;
    skos:definition "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."@en ;
    rdfs:domain c4us:StoryCollection ;
    rdfs:range xsd:boolean ;
    rdfs:isDefinedBy <https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-stories> .

c4us:personaGoal a owl:DatatypeProperty ;
    rdfs:label "persona goal"@en ;
    skos:definition "Something the persona wants from the system, in their words. One value per goal."@en ;
    rdfs:domain c4us:Persona ;
    rdfs:range xsd:string ;
    rdfs:isDefinedBy <https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-stories> .

c4us:want a owl:DatatypeProperty ;
    rdfs:label "want"@en ;
    skos:definition "What the actor wants to do, completing I want …"@en ;
    skos:example "to look at the oldest submitted task and send it back with a comment that says what is wrong" ;
    rdfs:domain c4us:UserStory ;
    rdfs:range xsd:string ;
    rdfs:isDefinedBy <https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-stories> .

c4us:soThat a owl:DatatypeProperty ;
    rdfs:label "so that"@en ;
    skos:definition "Why, completing so that …"@en ;
    skos:example "the annotator knows what to fix" ;
    rdfs:domain c4us:UserStory ;
    rdfs:range xsd:string ;
    rdfs:isDefinedBy <https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-stories> .

c4us:status a owl:DatatypeProperty ;
    rdfs:label "status"@en ;
    skos:definition "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)."@en ;
    rdfs:domain c4us:UserStory ;
    rdfs:range xsd:string ;
    rdfs:isDefinedBy <https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-stories> .

c4us:note a owl:DatatypeProperty ;
    rdfs:label "note"@en ;
    skos:definition "The limits and open questions about a story found in the code."@en ;
    rdfs:domain c4us:UserStory ;
    rdfs:range xsd:string ;
    rdfs:isDefinedBy <https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-stories> .

c4us:goal a owl:DatatypeProperty ;
    rdfs:label "goal"@en ;
    skos:definition "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."@en ;
    rdfs:domain c4us:UserStory ;
    rdfs:range xsd:string ;
    rdfs:isDefinedBy <https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-stories> .

c4us:trigger a owl:DatatypeProperty ;
    rdfs:label "trigger"@en ;
    skos:definition "What starts the story, when it gives its own; otherwise the scenario's c4:trigger applies."@en ;
    rdfs:domain c4us:UserStory ;
    rdfs:range xsd:string ;
    rdfs:isDefinedBy <https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-stories> .

c4us:precondition a owl:DatatypeProperty ;
    rdfs:label "precondition"@en ;
    skos:definition "What must hold before the story starts, when it gives its own; one value per precondition."@en ;
    rdfs:domain c4us:UserStory ;
    rdfs:range xsd:string ;
    rdfs:isDefinedBy <https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-stories> .

c4us:outcome a owl:DatatypeProperty ;
    rdfs:label "outcome"@en ;
    skos:definition "What holds once the story is done, when it gives its own; otherwise the scenario's c4:outcome applies."@en ;
    rdfs:domain c4us:UserStory ;
    rdfs:range xsd:string ;
    rdfs:isDefinedBy <https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-stories> .

c4us:statement a owl:DatatypeProperty ;
    rdfs:label "statement"@en ;
    skos:definition "The text of an acceptance criterion, as readers read it."@en ;
    rdfs:domain c4us:AcceptanceCriterion ;
    rdfs:range xsd:string ;
    rdfs:isDefinedBy <https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-stories> .

c4us:given a owl:DatatypeProperty ;
    rdfs:label "given"@en ;
    skos:definition "The context of a criterion written as Given …, when …, then …: what is true before."@en ;
    rdfs:domain c4us:AcceptanceCriterion ;
    rdfs:range xsd:string ;
    rdfs:isDefinedBy <https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-stories> .

c4us:when a owl:DatatypeProperty ;
    rdfs:label "when"@en ;
    skos:definition "The action of a criterion written as Given …, when …, then …"@en ;
    rdfs:domain c4us:AcceptanceCriterion ;
    rdfs:range xsd:string ;
    rdfs:isDefinedBy <https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-stories> .

c4us:then a owl:DatatypeProperty ;
    rdfs:label "then"@en ;
    skos:definition "The expected result of a criterion written as Given …, when …, then …"@en ;
    rdfs:domain c4us:AcceptanceCriterion ;
    rdfs:range xsd:string ;
    rdfs:isDefinedBy <https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-stories> .

c4us:screenKind a owl:DatatypeProperty ;
    rdfs:label "screen kind"@en ;
    skos:definition "What pictures the screen: screenshot (a capture of the running software), wireframe, mockup, diagram, illustration or photo."@en ;
    rdfs:domain c4us:Screen ;
    rdfs:range xsd:string ;
    rdfs:isDefinedBy <https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-stories> .

c4us:illustrative a owl:DatatypeProperty ;
    rdfs:label "illustrative"@en ;
    skos:definition "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."@en ;
    rdfs:domain c4us:Screen ;
    rdfs:range xsd:boolean ;
    rdfs:isDefinedBy <https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-stories> .

c4us:viewName a owl:DatatypeProperty ;
    rdfs:label "view name"@en ;
    skos:definition "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."@en ;
    rdfs:domain c4us:ScreenView ;
    rdfs:range xsd:string ;
    rdfs:isDefinedBy <https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-stories> .

c4us:altText a owl:DatatypeProperty ;
    rdfs:label "alt text"@en ;
    skos:definition "The text alternative of a view's picture: what matters on the screen, for readers who cannot see it."@en ;
    rdfs:domain c4us:ScreenView ;
    rdfs:range xsd:string ;
    rdfs:isDefinedBy <https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-stories> .

c4us:pixelWidth a owl:DatatypeProperty ;
    rdfs:label "width in pixels"@en ;
    skos:definition "The width of a view's picture in pixels."@en ;
    rdfs:domain c4us:ScreenView ;
    rdfs:range xsd:positiveInteger ;
    rdfs:comment "Plain xsd:integer literals in the data, as for c4:line."@en ;
    rdfs:isDefinedBy <https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-stories> .

c4us:pixelHeight a owl:DatatypeProperty ;
    rdfs:label "height in pixels"@en ;
    skos:definition "The height of a view's picture in pixels."@en ;
    rdfs:domain c4us:ScreenView ;
    rdfs:range xsd:positiveInteger ;
    rdfs:comment "Plain xsd:integer literals in the data, as for c4:line."@en ;
    rdfs:isDefinedBy <https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-stories> .

c4us:noteStatus a owl:DatatypeProperty ;
    rdfs:label "note status"@en ;
    skos:definition "Whether a note still asks for something: open or resolved."@en ;
    rdfs:domain c4us:Note ;
    rdfs:range xsd:string ;
    rdfs:isDefinedBy <https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-stories> .

c4us:comment a owl:DatatypeProperty ;
    rdfs:label "comment"@en ;
    skos:definition "The written comment of a note, for the whole note."@en ;
    rdfs:domain c4us:Note ;
    rdfs:range xsd:string ;
    rdfs:isDefinedBy <https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-stories> .

c4us:markCount a owl:DatatypeProperty ;
    rdfs:label "mark count"@en ;
    skos:definition "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."@en ;
    rdfs:domain c4us:Note ;
    rdfs:range xsd:nonNegativeInteger ;
    rdfs:isDefinedBy <https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-stories> .

c4us:x a owl:DatatypeProperty ;
    rdfs:label "x"@en ;
    skos:definition "Where a pin is across its view's picture: a fraction of the width from the left edge, from 0 to 1."@en ;
    rdfs:domain c4us:Pin ;
    rdfs:range xsd:decimal ;
    rdfs:isDefinedBy <https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-stories> .

c4us:y a owl:DatatypeProperty ;
    rdfs:label "y"@en ;
    skos:definition "Where a pin is down its view's picture: a fraction of the height from the top edge, from 0 to 1."@en ;
    rdfs:domain c4us:Pin ;
    rdfs:range xsd:decimal ;
    rdfs:isDefinedBy <https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-stories> .

c4us:pinText a owl:DatatypeProperty ;
    rdfs:label "pin text"@en ;
    skos:definition "The short note a pin carries."@en ;
    rdfs:domain c4us:Pin ;
    rdfs:range xsd:string ;
    rdfs:isDefinedBy <https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-stories> .

c4us:hasRecording a owl:DatatypeProperty ;
    rdfs:label "has recording"@en ;
    skos:definition "True when the note has a voice note. The audio is never in the graph. Written only when true."@en ;
    rdfs:domain c4us:Note ;
    rdfs:range xsd:boolean ;
    rdfs:isDefinedBy <https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-stories> .

c4us:recordingDuration a owl:DatatypeProperty ;
    rdfs:label "recording duration"@en ;
    skos:definition "The length of the note's voice note, in seconds."@en ;
    rdfs:domain c4us:Note ;
    rdfs:range xsd:decimal ;
    rdfs:isDefinedBy <https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-stories> .

c4us:recordingFile a owl:DatatypeProperty ;
    rdfs:label "recording file"@en ;
    skos:definition "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."@en ;
    rdfs:domain c4us:Note ;
    rdfs:range xsd:string ;
    rdfs:isDefinedBy <https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-stories> .

c4us:transcript a owl:DatatypeProperty ;
    rdfs:label "transcript"@en ;
    skos:definition "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."@en ;
    rdfs:domain c4us:Note ;
    rdfs:range xsd:string ;
    rdfs:isDefinedBy <https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-stories> .
