@prefix rdf:      <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd:      <http://www.w3.org/2001/XMLSchema#> .
@prefix skos:     <http://www.w3.org/2004/02/skos/core#> .
@prefix dcterms:  <http://purl.org/dc/terms/> .
@prefix arch:     <https://meta.linked.archi/core#> .
@prefix arch-vis: <https://meta.linked.archi/core-vis#> .
@prefix am:       <https://meta.linked.archi/archimate3/onto#> .
@prefix ampc:     <https://meta.linked.archi/archimate3/presentation-contexts#> .
@prefix :         <https://meta.linked.archi/examples/styles/> .

#################################################################
# Shared styles and a concept's own look (core-vis 0.11)
#
# A model's set of standard styles — one of them looking otherwise to
# executives — two diagram elements based on them, and a system that
# keeps a look of its own, for every presentation context and for
# executives. Each diagram element says what it is drawn with — for no
# presentation context, and for executives — value by value, in the
# order arch-vis:style gives:
#   1. its style for the context shown; then the style that one is based
#      on, its look for the context shown, then for every context;
#   2. its style for every context; then the style that one is based on,
#      the same way;
#   3. its concept's notation.
# A named style, or a concept's look, is not drawn by itself: a diagram
# element takes it by basing its own style on it.
#
# Used as data by the core-vis validation profile in .scripts/validate.sh.
#################################################################

:StylesExampleModel
    a                             arch:Model ;
    skos:prefLabel                "Core-vis Styles Example"@en ;
    arch:modelConformsToMetamodel <https://meta.linked.archi/archimate3/metamodel#ArchiMate3.2> ;
    arch-vis:usesStyleSet         :AcmeStyles ;
    dcterms:created               "2026-12-04"^^xsd:date ;
.

# ── The model's standard styles ──────────────────────────────────────────
:AcmeStyles
    a              arch-vis:StyleSet ;
    skos:prefLabel "Acme standard styles"@en ;
.

:ToRetire
    a                   arch-vis:Style ;
    arch-vis:inStyleSet :AcmeStyles ;
    skos:prefLabel      "To retire"@en ;
    skos:definition     "What is planned to go: a pale red fill, a red outline."@en ;
    arch-vis:fillColor  "#fce8e6" ;
    arch-vis:lineColor  "#d93025" ;
.

# Its look for executives: a stronger red, its outline as for everyone.
:ToRetireForExecutives
    a                          arch-vis:Style ;
    arch-vis:inStyleSet        :AcmeStyles ;
    arch:inPresentationContext ampc:ExecutiveContext ;
    arch-vis:basedOn           :ToRetire ;
    arch-vis:fillColor         "#f28b82" ;
.

:Strategic
    a                   arch-vis:Style ;
    arch-vis:inStyleSet :AcmeStyles ;
    skos:prefLabel      "Strategic"@en ;
    arch-vis:fillColor  "#e6f4ea" ;
    arch-vis:lineWidth  2 ;
.

# ── A system's own look ──────────────────────────────────────────────────
# For its diagram elements to take: a colour for every context, and its look
# for executives, drawn where they are shown to them.
:BookingSystem
    a                     am:ApplicationComponent ;
    skos:prefLabel        "Booking system"@en ;
    arch-vis:conceptStyle :BookingSystemLook, :BookingSystemLookForExecutives ;
.

:BookingSystemLook
    a                  arch-vis:Style ;
    arch-vis:fillColor "#c8e6c9" ;
.

:BookingSystemLookForExecutives
    a                          arch-vis:Style ;
    arch:inPresentationContext ampc:ExecutiveContext ;
    arch-vis:fillColor         "#2e7d32" ;
    arch-vis:fontColor         "#ffffff" ;
.

:Billing
    a              am:ApplicationComponent ;
    skos:prefLabel "Billing"@en ;
.

:Payments
    a              am:ApplicationComponent ;
    skos:prefLabel "Payments"@en ;
.

# ── A diagram ────────────────────────────────────────────────────────────
:LandscapeView
    a                            arch:View ;
    skos:prefLabel               "Landscape"@en ;
    arch:viewConformsToViewpoint <https://meta.linked.archi/archimate3/viewpoints#ApplicationCooperationViewpoint> ;
.

# Billing, to retire, its outline heavier than the style's.
#   No context: fill #fce8e6, line #d93025, width 3.
#   Executives: fill #f28b82 (To retire's look for them), line #d93025, width 3.
:BillingNode
    a                    arch-vis:ArchNode ;
    arch-vis:view        :LandscapeView ;
    arch-vis:archElement :Billing ;
    arch-vis:style       :BillingNodeStyle ;
.
:BillingNodeStyle
    a                  arch-vis:Style ;
    arch-vis:basedOn   :ToRetire ;
    arch-vis:lineWidth 3 ;
.

# The booking system, given its own look here; strategic for executives.
#   No context: fill #c8e6c9 (its look).
#   Executives: fill #e6f4ea, width 2 (its style for them, based on Strategic); font #ffffff (its look for them,
#   which its style for every context is based on).
:BookingSystemNode
    a                    arch-vis:ArchNode ;
    arch-vis:view        :LandscapeView ;
    arch-vis:archElement :BookingSystem ;
    arch-vis:style       :BookingSystemNodeStyle, :BookingSystemNodeStyleForExecutives ;
.
:BookingSystemNodeStyle
    a                arch-vis:Style ;
    arch-vis:basedOn :BookingSystemLook ;
.
:BookingSystemNodeStyleForExecutives
    a                          arch-vis:Style ;
    arch:inPresentationContext ampc:ExecutiveContext ;
    arch-vis:basedOn           :Strategic ;
.

# The booking system again, given nothing: its notation's look, for every context — its own look is not drawn by
# itself.
:BookingSystemNodeAgain
    a                    arch-vis:ArchNode ;
    arch-vis:view        :LandscapeView ;
    arch-vis:archElement :BookingSystem ;
.

# Payments, as its notation draws it, for every context.
:PaymentsNode
    a                    arch-vis:ArchNode ;
    arch-vis:view        :LandscapeView ;
    arch-vis:archElement :Payments ;
.
