@prefix rs:      <https://robosystems.ai/vocab/> .
@prefix xbrli:   <http://www.xbrl.org/2003/instance#> .
@prefix xlink:   <http://www.w3.org/1999/xlink#> .
@prefix link:    <http://www.xbrl.org/2003/linkbase#> .
@prefix prov:    <http://www.w3.org/ns/prov#> .
@prefix rdf:     <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs:    <http://www.w3.org/2000/01/rdf-schema#> .
@prefix owl:     <http://www.w3.org/2002/07/owl#> .
@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/> .

#################################################################
# The RoboSystems vocabulary: every class and property under
# https://robosystems.ai/vocab/ that a framework package or a holon
# uses.
#
# This file declares the terms and says what each means. It does not
# say what a valid document looks like: that is SHACL, and it lives
# beside the code that runs it. Framework packages are held to
# shapes.ttl in this directory; a holon is held to the shapes in
# xbrlkit (xbrlkit/holon/shapes/), one file per named graph, and
# xbrlkit's holon README is the format document.
#
# One rule decides which namespace a term is in: RoboSystems
# topology, standard vocabulary. Where XBRL, XLink, SKOS, PROV-O or
# Dublin Core already has the word, the documents use it (listed at
# the end of this file); rs: holds only what those lack.
#
# Declarations are RDFS: a class, a property, a label, a comment, and
# a domain or range where a term has exactly one. A term used on
# several kinds of node says so in its comment instead. There are no
# OWL axioms here and nothing is meant to be reasoned over.
#
# Four parts, in the order a number travels:
#   1. Taxonomy   elements, structures, arcs: framework packages, and
#                 a holon's #projection and #boundary graphs
#   2. Packages   what only a framework package or chart template says
#   3. Report     the report and its facts: a holon's #scene graph
#   4. Ledger     the books behind the facts: a holon's #lineage graph
#
# tests/taxonomy/test_ontology_declares_the_vocabulary.py fails when a
# context, a shape, a package or a sample holon uses an rs: term this
# file does not declare, and when this file declares one nothing uses.
#################################################################

<https://robosystems.ai/vocab/v1>
  a owl:Ontology ;
  rdfs:label "RoboSystems vocabulary v1" ;
  rdfs:comment "The classes and properties framework packages and holons are written in." ;
  owl:versionInfo "1.0" ;
  dcterms:modified "2026-11-30"^^xsd:date .


#################################################################
# 1. Taxonomy: elements, structures and the arcs between them
#################################################################

rs:Element a rdfs:Class ;
  rdfs:label "Element" ;
  rdfs:comment "A taxonomy element, addressed by QName: a concept that facts report, or an abstract, axis, member or hypercube that arranges them. A chart-of-accounts line is an element too. Its balance and period type are xbrli:balance and xbrli:periodType." .

rs:Structure a rdfs:Class ;
  rdfs:label "Structure" ;
  rdfs:comment "One network of arcs under one extended link role: a statement, a note, a disclosure table. A report section is a structure." .

rs:RollUp a rdfs:Class ;
  rdfs:subClassOf rs:Structure ;
  rdfs:label "Roll Up" ;
  rdfs:comment "A structure with calculation arcs: its components sum to their totals." .

rs:RollForward a rdfs:Class ;
  rdfs:subClassOf rs:Structure ;
  rdfs:label "Roll Forward" ;
  rdfs:comment "A movement structure: an opening balance plus the period's changes equals the closing balance, as in the statement of changes in equity." .

rs:Hierarchy a rdfs:Class ;
  rdfs:subClassOf rs:Structure ;
  rdfs:label "Hierarchy" ;
  rdfs:comment "A structure with order and indentation and no calculation." .

rs:Association a rdfs:Class ;
  rdfs:label "Association" ;
  rdfs:comment "One arc between two elements, written as a node of its own so that it can carry a weight, an order and a preferred label. Its ends are xlink:from and xlink:to, its arc role xlink:arcrole, its weight link:weight and its order link:order." .

rs:RollUpRelationship a rdfs:Class ;
  rdfs:subClassOf rs:Association ;
  rdfs:label "Roll Up Relationship" ;
  rdfs:comment "A calculation arc: a component that rolls up into its total with a signed weight." .

rs:hasAssociation a rdf:Property ;
  rdfs:label "has association" ;
  rdfs:comment "An arc that belongs to this structure." ;
  rdfs:domain rs:Structure ; rdfs:range rs:Association .

rs:associationType a rdf:Property ;
  rdfs:label "association type" ;
  rdfs:comment "The kind of arc: presentation, calculation, general-special (a definition arc), derivation, or another the producer names. It selects the linkbase the arc belongs to." ;
  rdfs:domain rs:Association ; rdfs:range xsd:string .

rs:preferredLabel a rdf:Property ;
  rdfs:label "preferred label" ;
  rdfs:comment "The label text chosen for this row of a presentation network, already resolved." ;
  rdfs:domain rs:Association ; rdfs:range xsd:string .

rs:preferredLabelRole a rdf:Property ;
  rdfs:label "preferred label role" ;
  rdfs:comment "The XBRL label role URI the row asks for. A negated role also says the value is shown with its sign reversed." ;
  rdfs:domain rs:Association ; rdfs:range xsd:string .

rs:targetRole a rdf:Property ;
  rdfs:label "target role" ;
  rdfs:comment "On a dimensional arc, the extended link role in which the next hop of the hypercube's wiring is found (xbrldt:targetRole)." ;
  rdfs:domain rs:Association ; rdfs:range xsd:string .

rs:roleUri a rdf:Property ;
  rdfs:label "role URI" ;
  rdfs:comment "The extended link role URI that names the structure." ;
  rdfs:range xsd:string .

rs:structureName a rdf:Property ;
  rdfs:label "structure name" ;
  rdfs:comment "The structure's name as a reader sees it." ;
  rdfs:range xsd:string .

rs:structureOrder a rdf:Property ;
  rdfs:label "structure order" ;
  rdfs:comment "The structure's place in the report's sequence of sections. In an SEC filing it is the leading number of the role definition." ;
  rdfs:domain rs:Structure ; rdfs:range xsd:integer .

rs:blockType a rdf:Property ;
  rdfs:label "block type" ;
  rdfs:comment "What kind of section this is: balance_sheet, income_statement, cash_flow_statement, equity_statement, comprehensive_income, regulatory_disclosure, metric, validation_rules, custom. On a structure and on an information block." ;
  rdfs:range xsd:string .

rs:conceptArrangementPattern a rdf:Property ;
  rdfs:label "concept arrangement pattern" ;
  rdfs:comment "How the structure's concepts relate, in the Seattle Method's terms: set, roll_up, roll_forward, arithmetic, level1_textblock." ;
  rdfs:range xsd:string .

rs:internalId a rdf:Property ;
  rdfs:label "internal id" ;
  rdfs:comment "The node's identifier in the system that produced it. For an element it is the QName; for a ledger row, the row's id. A holon carries it on every node a reader may need to cite." ;
  rdfs:range xsd:string .

rs:elementType a rdf:Property ;
  rdfs:label "element type" ;
  rdfs:comment "The element's structural role: concept, abstract, axis, member or hypercube." ;
  rdfs:range xsd:string .

rs:itemType a rdf:Property ;
  rdfs:label "item type" ;
  rdfs:comment "The kind of value the element's facts carry: monetary, shares, decimal, percent, ratio, multiple, days, date, boolean, string, textBlock. Independent of the element's structural role." ;
  rdfs:range xsd:string .

rs:dataType a rdf:Property ;
  rdfs:label "data type" ;
  rdfs:comment "The type the taxonomy declares for the element (monetaryItemType, textBlockItemType), beside the value domain rs:itemType buckets it into." ;
  rdfs:domain rs:Element ; rdfs:range xsd:string .

rs:baseType a rdf:Property ;
  rdfs:label "base type" ;
  rdfs:comment "The XML Schema type the element's declared type derives from." ;
  rdfs:domain rs:Element ; rdfs:range xsd:string .

rs:abstract a rdf:Property ;
  rdfs:label "abstract" ;
  rdfs:comment "True when the element groups others and is never reported with a value." ;
  rdfs:range xsd:boolean .

rs:monetary a rdf:Property ;
  rdfs:label "monetary" ;
  rdfs:comment "True when the element's facts are amounts of money." ;
  rdfs:range xsd:boolean .

rs:nillable a rdf:Property ;
  rdfs:label "nillable" ;
  rdfs:comment "True when the taxonomy lets the element be reported as nil." ;
  rdfs:domain rs:Element ; rdfs:range xsd:boolean .

rs:substitutionGroup a rdf:Property ;
  rdfs:label "substitution group" ;
  rdfs:comment "The XBRL substitution group the element is declared in (xbrli:item, xbrldt:dimensionItem, xbrldt:hypercubeItem)." .

rs:source a rdf:Property ;
  rdfs:label "source" ;
  rdfs:comment "Where the node came from. On an element, the framework or chart that owns it (rs-gaap, fac, native); on a transaction or an event, the system that recorded it." ;
  rdfs:range xsd:string .

# Labels. A label is a literal with a role, so it is one triple and not a
# node. skos:prefLabel is the label a reader is shown; the properties below
# are the XBRL label roles, one each, on an element.

rs:standardLabel a rdf:Property ;
  rdfs:label "standard label" ;
  rdfs:comment "The element's label in the XBRL standard role, in the language it was written in." ;
  rdfs:domain rs:Element ; rdfs:range rdf:langString .

rs:terseLabel a rdf:Property ; rdfs:label "terse label" ; rdfs:comment "The element's label in the XBRL terseLabel role." ; rdfs:domain rs:Element ; rdfs:range rdf:langString .
rs:verboseLabel a rdf:Property ; rdfs:label "verbose label" ; rdfs:comment "The element's label in the XBRL verboseLabel role." ; rdfs:domain rs:Element ; rdfs:range rdf:langString .
rs:totalLabel a rdf:Property ; rdfs:label "total label" ; rdfs:comment "The element's label in the XBRL totalLabel role, used where it stands as a total." ; rdfs:domain rs:Element ; rdfs:range rdf:langString .
rs:netLabel a rdf:Property ; rdfs:label "net label" ; rdfs:comment "The element's label in the XBRL netLabel role." ; rdfs:domain rs:Element ; rdfs:range rdf:langString .
rs:periodStartLabel a rdf:Property ; rdfs:label "period start label" ; rdfs:comment "The element's label in the XBRL periodStartLabel role: the opening balance of a roll forward." ; rdfs:domain rs:Element ; rdfs:range rdf:langString .
rs:periodEndLabel a rdf:Property ; rdfs:label "period end label" ; rdfs:comment "The element's label in the XBRL periodEndLabel role: the closing balance of a roll forward." ; rdfs:domain rs:Element ; rdfs:range rdf:langString .
rs:restatedLabel a rdf:Property ; rdfs:label "restated label" ; rdfs:comment "The element's label in the XBRL restatedLabel role." ; rdfs:domain rs:Element ; rdfs:range rdf:langString .
rs:deprecatedLabel a rdf:Property ; rdfs:label "deprecated label" ; rdfs:comment "The element's label in the deprecatedLabel role." ; rdfs:domain rs:Element ; rdfs:range rdf:langString .
rs:deprecatedDateLabel a rdf:Property ; rdfs:label "deprecated date label" ; rdfs:comment "The element's label in the deprecatedDateLabel role: the date the taxonomy deprecated it." ; rdfs:domain rs:Element ; rdfs:range rdf:langString .
rs:positiveLabel a rdf:Property ; rdfs:label "positive label" ; rdfs:comment "The element's label in the XBRL positiveLabel role." ; rdfs:domain rs:Element ; rdfs:range rdf:langString .
rs:positiveTerseLabel a rdf:Property ; rdfs:label "positive terse label" ; rdfs:comment "The element's label in the XBRL positiveTerseLabel role." ; rdfs:domain rs:Element ; rdfs:range rdf:langString .
rs:positiveVerboseLabel a rdf:Property ; rdfs:label "positive verbose label" ; rdfs:comment "The element's label in the XBRL positiveVerboseLabel role." ; rdfs:domain rs:Element ; rdfs:range rdf:langString .
rs:positivePeriodStartLabel a rdf:Property ; rdfs:label "positive period start label" ; rdfs:comment "The element's label in the positivePeriodStartLabel role." ; rdfs:domain rs:Element ; rdfs:range rdf:langString .
rs:positivePeriodStartTotalLabel a rdf:Property ; rdfs:label "positive period start total label" ; rdfs:comment "The element's label in the positivePeriodStartTotalLabel role." ; rdfs:domain rs:Element ; rdfs:range rdf:langString .
rs:positivePeriodEndLabel a rdf:Property ; rdfs:label "positive period end label" ; rdfs:comment "The element's label in the positivePeriodEndLabel role." ; rdfs:domain rs:Element ; rdfs:range rdf:langString .
rs:positivePeriodEndTotalLabel a rdf:Property ; rdfs:label "positive period end total label" ; rdfs:comment "The element's label in the positivePeriodEndTotalLabel role." ; rdfs:domain rs:Element ; rdfs:range rdf:langString .
rs:negativeLabel a rdf:Property ; rdfs:label "negative label" ; rdfs:comment "The element's label in the XBRL negativeLabel role." ; rdfs:domain rs:Element ; rdfs:range rdf:langString .
rs:negativeTerseLabel a rdf:Property ; rdfs:label "negative terse label" ; rdfs:comment "The element's label in the XBRL negativeTerseLabel role." ; rdfs:domain rs:Element ; rdfs:range rdf:langString .
rs:negativeVerboseLabel a rdf:Property ; rdfs:label "negative verbose label" ; rdfs:comment "The element's label in the XBRL negativeVerboseLabel role." ; rdfs:domain rs:Element ; rdfs:range rdf:langString .
rs:negativePeriodStartLabel a rdf:Property ; rdfs:label "negative period start label" ; rdfs:comment "The element's label in the negativePeriodStartLabel role." ; rdfs:domain rs:Element ; rdfs:range rdf:langString .
rs:negativePeriodStartTotalLabel a rdf:Property ; rdfs:label "negative period start total label" ; rdfs:comment "The element's label in the negativePeriodStartTotalLabel role." ; rdfs:domain rs:Element ; rdfs:range rdf:langString .
rs:negativePeriodEndLabel a rdf:Property ; rdfs:label "negative period end label" ; rdfs:comment "The element's label in the negativePeriodEndLabel role." ; rdfs:domain rs:Element ; rdfs:range rdf:langString .
rs:negativePeriodEndTotalLabel a rdf:Property ; rdfs:label "negative period end total label" ; rdfs:comment "The element's label in the negativePeriodEndTotalLabel role." ; rdfs:domain rs:Element ; rdfs:range rdf:langString .
rs:zeroLabel a rdf:Property ; rdfs:label "zero label" ; rdfs:comment "The element's label in the XBRL zeroLabel role." ; rdfs:domain rs:Element ; rdfs:range rdf:langString .
rs:zeroTerseLabel a rdf:Property ; rdfs:label "zero terse label" ; rdfs:comment "The element's label in the XBRL zeroTerseLabel role." ; rdfs:domain rs:Element ; rdfs:range rdf:langString .
rs:zeroVerboseLabel a rdf:Property ; rdfs:label "zero verbose label" ; rdfs:comment "The element's label in the XBRL zeroVerboseLabel role." ; rdfs:domain rs:Element ; rdfs:range rdf:langString .
rs:negatedLabel a rdf:Property ; rdfs:label "negated label" ; rdfs:comment "The element's label in the negatedLabel role: the wording used where the value is shown with its sign reversed." ; rdfs:domain rs:Element ; rdfs:range rdf:langString .
rs:negatedTerseLabel a rdf:Property ; rdfs:label "negated terse label" ; rdfs:comment "The element's label in the negatedTerseLabel role." ; rdfs:domain rs:Element ; rdfs:range rdf:langString .
rs:negatedTotalLabel a rdf:Property ; rdfs:label "negated total label" ; rdfs:comment "The element's label in the negatedTotalLabel role." ; rdfs:domain rs:Element ; rdfs:range rdf:langString .
rs:negatedNetLabel a rdf:Property ; rdfs:label "negated net label" ; rdfs:comment "The element's label in the negatedNetLabel role." ; rdfs:domain rs:Element ; rdfs:range rdf:langString .
rs:negatedPeriodStartLabel a rdf:Property ; rdfs:label "negated period start label" ; rdfs:comment "The element's label in the negatedPeriodStartLabel role." ; rdfs:domain rs:Element ; rdfs:range rdf:langString .
rs:negatedPeriodEndLabel a rdf:Property ; rdfs:label "negated period end label" ; rdfs:comment "The element's label in the negatedPeriodEndLabel role." ; rdfs:domain rs:Element ; rdfs:range rdf:langString .
rs:negated a rdf:Property ; rdfs:label "negated" ; rdfs:comment "The element's label in the older US role named negated, which later taxonomies call negatedLabel." ; rdfs:domain rs:Element ; rdfs:range rdf:langString .
rs:negatedTotal a rdf:Property ; rdfs:label "negated total" ; rdfs:comment "The element's label in the older US role named negatedTotal." ; rdfs:domain rs:Element ; rdfs:range rdf:langString .
rs:negatedPeriodStart a rdf:Property ; rdfs:label "negated period start" ; rdfs:comment "The element's label in the older US role named negatedPeriodStart." ; rdfs:domain rs:Element ; rdfs:range rdf:langString .
rs:negatedPeriodEnd a rdf:Property ; rdfs:label "negated period end" ; rdfs:comment "The element's label in the older US role named negatedPeriodEnd." ; rdfs:domain rs:Element ; rdfs:range rdf:langString .


#################################################################
# 2. Packages: what only a framework package or chart template says
#
# A package types and identifies its elements and structures as a
# holon does (rs:Element, rs:Structure, rs:internalId), and is held
# to the holon's shapes for those nodes. The terms below are the ones
# a holon does not carry.
#################################################################

rs:statementContext a rdf:Property ;
  rdfs:label "statement context" ;
  rdfs:comment "The statement an element belongs to by nature: balance_sheet, income_statement, cash_flow, equity_changes, disclosure, analysis, metadata." ;
  rdfs:range xsd:string .

rs:derivationRole a rdf:Property ;
  rdfs:label "derivation role" ;
  rdfs:comment "The part an element plays in derivation: primitive (reported), aggregate (summed), ratio (computed), structural, identifier." ;
  rdfs:range xsd:string .

rs:deprecated a rdf:Property ;
  rdfs:label "deprecated" ;
  rdfs:comment "True when the element is kept for existing data and should not be used for new facts." ;
  rdfs:range xsd:boolean .

rs:replacedBy a rdf:Property ;
  rdfs:label "replaced by" ;
  rdfs:comment "The element to use in place of a deprecated one." .

rs:secType a rdf:Property ;
  rdfs:label "SEC type" ;
  rdfs:comment "What a named disclosure is in an SEC filing: statement, statement_component, disclosure or document." ;
  rdfs:range xsd:string .

# Labels and references, as a package stores them: a node per label or
# reference, hanging off the element. (A holon flattens labels to the
# one-triple properties in part 1.)

rs:labelRole a rdf:Property ;
  rdfs:label "label role" ;
  rdfs:comment "Links an element to one of its additional labels: a node carrying rdfs:label, rs:role and rs:labelLanguage." .

rs:role a rdf:Property ;
  rdfs:label "role" ;
  rdfs:comment "On a package's label node, the short name of the label's role: total, periodStart, periodEnd, commentaryGuidance. Not xlink:role, which names an arc's extended link role." ;
  rdfs:range xsd:string .

rs:labelLanguage a rdf:Property ;
  rdfs:label "label language" ;
  rdfs:comment "On a package's label node, the language the label is written in." ;
  rdfs:range xsd:string .

rs:refType a rdf:Property ;
  rdfs:label "reference type" ;
  rdfs:comment "On a reference node (reached through dcterms:references), the body of literature cited, such as ASC." ;
  rdfs:range xsd:string .

rs:citation a rdf:Property ;
  rdfs:label "citation" ;
  rdfs:comment "On a reference node, the citation itself: publisher, topic, section, paragraph and link." ;
  rdfs:range xsd:string .

# Traits: the Seattle Method's classes of concept, as a controlled list.

rs:Trait a rdfs:Class ;
  rdfs:label "Trait" ;
  rdfs:comment "One value in a trait category, such as asset under elementsOfFinancialStatements or current under liquidity. Elements are classified by pointing at traits." .

rs:hasTrait a rdf:Property ;
  rdfs:label "has trait" ;
  rdfs:comment "A trait the element, or a chart template's account, has." ;
  rdfs:range rs:Trait .

rs:category a rdf:Property ;
  rdfs:label "category" ;
  rdfs:comment "On a trait, the category it is a value of. On a ledger transaction, the bookkeeping category the source gave it." ;
  rdfs:range xsd:string .

rs:identifier a rdf:Property ;
  rdfs:label "identifier" ;
  rdfs:comment "A trait's name within its category." ;
  rdfs:domain rs:Trait ; rdfs:range xsd:string .

# Disclosure rules: direct relations between named disclosures, reports,
# styles and the concepts they call for. Each is a plain triple; none has
# a weight or an order to carry.

rs:financialReportRequiresDisclosure a rdf:Property ;
  rdfs:label "financial report requires disclosure" ;
  rdfs:comment "A disclosure a financial report of this kind must contain." .

rs:financialReportPossibleDisclosure a rdf:Property ;
  rdfs:label "financial report possible disclosure" ;
  rdfs:comment "A disclosure a financial report of this kind may contain." .

rs:reportedDisclosureRequiresDisclosure a rdf:Property ;
  rdfs:label "reported disclosure requires disclosure" ;
  rdfs:comment "A disclosure that must be present whenever this one is reported." .

rs:reportingStyleComposesDisclosure a rdf:Property ;
  rdfs:label "reporting style composes disclosure" ;
  rdfs:comment "A disclosure a reporting style is made of." .

rs:conceptArrangementPatternRequiresConcept a rdf:Property ;
  rdfs:label "concept arrangement pattern requires concept" ;
  rdfs:comment "A concept a disclosure's arrangement pattern must contain, such as the total of a roll up." .

# Reporting styles: which networks make up the statements for one kind
# of reporter.

rs:reportingStyleCode a rdf:Property ;
  rdfs:label "reporting style code" ;
  rdfs:comment "The style's code, composed from its choice for each statement (for example BSC-CORP-IS02-CF1)." ;
  rdfs:range xsd:string .

rs:reportingStyleNetworks a rdf:Property ;
  rdfs:label "reporting style networks" ;
  rdfs:comment "One of the style's statements: a node pairing rs:statementType with rs:networkRoleUri." .

rs:statementType a rdf:Property ;
  rdfs:label "statement type" ;
  rdfs:comment "Which primary statement a style's network is: balance_sheet, income_statement, cash_flow_statement, equity_statement." ;
  rdfs:range xsd:string .

rs:networkRoleUri a rdf:Property ;
  rdfs:label "network role URI" ;
  rdfs:comment "The role URI of the presentation network a style uses for that statement." ;
  rdfs:range xsd:string .

rs:retainedEarningsConcept a rdf:Property ;
  rdfs:label "retained earnings concept" ;
  rdfs:comment "The QName of the concept a style closes net income into." ;
  rdfs:range xsd:string .

# Rules: a check or a derivation over named concepts.

rs:ruleCategory a rdf:Property ;
  rdfs:label "rule category" ;
  rdfs:comment "The family the rule belongs to, such as FundamentalAccountingConceptRelation." ;
  rdfs:range xsd:string .

rs:rulePattern a rdf:Property ;
  rdfs:label "rule pattern" ;
  rdfs:comment "The rule's form: EqualTo, RollUp or Derive." ;
  rdfs:range xsd:string .

rs:ruleExpression a rdf:Property ;
  rdfs:label "rule expression" ;
  rdfs:comment "The rule itself, written over its variables, for example $Assets = $LiabilitiesAndEquity." ;
  rdfs:range xsd:string .

rs:ruleMessage a rdf:Property ;
  rdfs:label "rule message" ;
  rdfs:comment "What a reader is told when the rule does not hold." ;
  rdfs:range xsd:string .

rs:ruleSeverity a rdf:Property ;
  rdfs:label "rule severity" ;
  rdfs:comment "How a failure is treated: error or info." ;
  rdfs:range xsd:string .

rs:ruleOrigin a rdf:Property ;
  rdfs:label "rule origin" ;
  rdfs:comment "Whether the rule was written here (native) or taken from an upstream framework (forked)." ;
  rdfs:range xsd:string .

rs:ruleTarget a rdf:Property ;
  rdfs:label "rule target" ;
  rdfs:comment "What the rule is about: a node carrying rs:targetKind and rs:targetRef." .

rs:targetKind a rdf:Property ;
  rdfs:label "target kind" ;
  rdfs:comment "The kind of thing a rule targets, such as element." ;
  rdfs:range xsd:string .

rs:targetRef a rdf:Property ;
  rdfs:label "target reference" ;
  rdfs:comment "The QName or identifier of what a rule targets." ;
  rdfs:range xsd:string .

rs:ruleVariables a rdf:Property ;
  rdfs:label "rule variables" ;
  rdfs:comment "The rule's variables, in order: each a node carrying rs:variableName and rs:variableQname." .

rs:variableName a rdf:Property ;
  rdfs:label "variable name" ;
  rdfs:comment "The name a rule's expression uses for a variable." ;
  rdfs:range xsd:string .

rs:variableQname a rdf:Property ;
  rdfs:label "variable QName" ;
  rdfs:comment "The concept a rule variable stands for." ;
  rdfs:range xsd:string .

# Chart templates: a stencil chart of accounts and its mapping onto a
# reporting framework. Not framework packages; they use the same vocabulary.

rs:ChartTemplate a rdfs:Class ;
  rdfs:label "Chart Template" ;
  rdfs:comment "A shipped chart of accounts a company keeping its own books starts from." .

rs:ChartMapping a rdfs:Class ;
  rdfs:label "Chart Mapping" ;
  rdfs:comment "A chart template's mapping onto a reporting framework: which account reports under which concept." .

rs:account a rdf:Property ;
  rdfs:label "account" ;
  rdfs:comment "An account. On a chart template, one of its accounts, in order. In a holon's #lineage, the rs:Account a ledger line posts to or a contribution is drawn from." .

rs:code a rdf:Property ;
  rdfs:label "code" ;
  rdfs:comment "An account's code in its chart, such as 1000." ;
  rdfs:range xsd:string .

rs:subClassification a rdf:Property ;
  rdfs:label "sub-classification" ;
  rdfs:comment "On a chart template's account, the finer class within its trait: cash_and_equivalents, accounts_receivable, operating_expense." ;
  rdfs:range xsd:string .

rs:mapping a rdf:Property ;
  rdfs:label "mapping" ;
  rdfs:comment "One line of a chart mapping, in order: a node pairing rs:fromCode with rs:toConcept." ;
  rdfs:domain rs:ChartMapping .

rs:fromCode a rdf:Property ;
  rdfs:label "from code" ;
  rdfs:comment "The account code a mapping line starts from." ;
  rdfs:range xsd:string .

rs:toConcept a rdf:Property ;
  rdfs:label "to concept" ;
  rdfs:comment "The reporting concept a mapping line ends at." .

rs:variant a rdf:Property ;
  rdfs:label "variant" ;
  rdfs:comment "The mapping lines that differ by legal form (corporation, partnership, LLC), such as where equity accounts report." ;
  rdfs:domain rs:ChartMapping .


#################################################################
# 3. Report: the report and its facts (a holon's #scene graph)
#################################################################

rs:Report a rdfs:Class ;
  rdfs:label "Report" ;
  rdfs:comment "One report: a filing, or a set of statements a company produced from its books. Its IRI names the holon's graphs." .

rs:LiveSnapshot a rdfs:Class ;
  rdfs:label "Live Snapshot" ;
  rdfs:comment "The root of a document that is a view of data still open, where a report is fixed. Written in place of rs:Report when the mode is not report." .

rs:Entity a rdfs:Class ;
  rdfs:label "Entity" ;
  rdfs:comment "The reporting entity: who the report is about." .

rs:Fact a rdfs:Class ;
  rdfs:label "Fact" ;
  rdfs:comment "One reported value. It points at its element, period, entity, unit and dimensions directly; there is no XBRL context node." .

rs:Period a rdfs:Class ;
  rdfs:label "Period" ;
  rdfs:comment "The instant or the span of time a fact is about. Its dates are xbrli:instant, or xbrli:startDate and xbrli:endDate." .

rs:Unit a rdfs:Class ;
  rdfs:label "Unit" ;
  rdfs:comment "What a numeric fact is measured in. Its measure is xbrli:measure." .

rs:Dimension a rdfs:Class ;
  rdfs:label "Dimension" ;
  rdfs:comment "One axis and member, or one axis and typed value, that qualifies a fact." .

rs:FactSet a rdfs:Class ;
  rdfs:label "Fact Set" ;
  rdfs:comment "The facts of one section. It is named by an IRI that facts and an information block share, and has no node of its own in a holon." .

rs:InformationBlock a rdfs:Class ;
  rdfs:label "Information Block" ;
  rdfs:comment "One section of a report as a unit: a structure together with the fact set that fills it." .

rs:entity a rdf:Property ;
  rdfs:label "entity" ;
  rdfs:comment "Who the node is about. On a report or a fact, the rs:Entity. In #lineage, on a contribution, line, entry, transaction or event, the rs:LedgerEntity whose books it is in." .

rs:element a rdf:Property ;
  rdfs:label "element" ;
  rdfs:comment "The concept a fact reports." ;
  rdfs:domain rs:Fact ; rdfs:range rs:Element .

rs:period a rdf:Property ;
  rdfs:label "period" ;
  rdfs:comment "The period a fact is about." ;
  rdfs:domain rs:Fact ; rdfs:range rs:Period .

rs:unit a rdf:Property ;
  rdfs:label "unit" ;
  rdfs:comment "The unit a numeric fact is measured in." ;
  rdfs:domain rs:Fact ; rdfs:range rs:Unit .

rs:dimension a rdf:Property ;
  rdfs:label "dimension" ;
  rdfs:comment "A dimension that qualifies a fact. A fact with none is the consolidated figure." ;
  rdfs:domain rs:Fact ; rdfs:range rs:Dimension .

rs:factSet a rdf:Property ;
  rdfs:label "fact set" ;
  rdfs:comment "A fact set the node belongs to. A fact and the information block for its section share one, and a fact may sit in several." ;
  rdfs:range rs:FactSet .

rs:structure a rdf:Property ;
  rdfs:label "structure" ;
  rdfs:comment "The structure a fact is pinned to, or the structure an information block fills." ;
  rdfs:range rs:Structure .

rs:factType a rdf:Property ;
  rdfs:label "fact type" ;
  rdfs:comment "Whether the fact's value is a number: numeric or nonnumeric." ;
  rdfs:domain rs:Fact ; rdfs:range xsd:string .

rs:numericValue a rdf:Property ;
  rdfs:label "numeric value" ;
  rdfs:comment "A numeric fact's value." ;
  rdfs:domain rs:Fact ; rdfs:range xsd:decimal .

rs:stringValue a rdf:Property ;
  rdfs:label "string value" ;
  rdfs:comment "A nonnumeric fact's value: text, or the markup of a text block." ;
  rdfs:domain rs:Fact ; rdfs:range xsd:string .

rs:contentType a rdf:Property ;
  rdfs:label "content type" ;
  rdfs:comment "The media type of a text-block fact's value. Bound in the platform's context; a holon states the kind of value on the element, as rs:itemType." ;
  rdfs:range xsd:string .

rs:decimals a rdf:Property ;
  rdfs:label "decimals" ;
  rdfs:comment "The precision a numeric fact was reported to, as XBRL's decimals attribute states it." ;
  rdfs:domain rs:Fact .

rs:isNil a rdf:Property ;
  rdfs:label "is nil" ;
  rdfs:comment "True when the fact was reported as nil: stated as not disclosed, which is not the same as an empty value." ;
  rdfs:domain rs:Fact ; rdfs:range xsd:boolean .

rs:language a rdf:Property ;
  rdfs:label "language" ;
  rdfs:comment "The language a text fact is written in." ;
  rdfs:domain rs:Fact ; rdfs:range xsd:string .

# A fact's provenance uses PROV-O where PROV-O has the word
# (prov:hadPrimarySource, prov:wasAttributedTo, prov:wasDerivedFrom).
# These two are the vocabulary's own.

rs:sourceKind a rdf:Property ;
  rdfs:label "source kind" ;
  rdfs:comment "How the fact's value came to be: pivot (summed from ledger lines), rollup (summed from other facts), derived (computed by a rule)." ;
  rdfs:domain rs:Fact ; rdfs:range xsd:string .

rs:contentHash a rdf:Property ;
  rdfs:label "content hash" ;
  rdfs:comment "A digest of what the fact was computed from. It travels with the fact whether or not the ledger does, so a holder of the ledger can show the figure reproduces." ;
  rdfs:domain rs:Fact ; rdfs:range xsd:string .

rs:calendarPeriodKey a rdf:Property ;
  rdfs:label "calendar period key" ;
  rdfs:comment "The period placed on a common calendar, as one key, so that periods from different fiscal years line up." ;
  rdfs:domain rs:Period ; rdfs:range xsd:string .

rs:calendarYear a rdf:Property ;
  rdfs:label "calendar year" ;
  rdfs:comment "The calendar year the period falls in." ;
  rdfs:domain rs:Period ; rdfs:range xsd:integer .

rs:calendarQuarter a rdf:Property ;
  rdfs:label "calendar quarter" ;
  rdfs:comment "The calendar quarter the period falls in." ;
  rdfs:domain rs:Period ; rdfs:range xsd:string .

rs:durationType a rdf:Property ;
  rdfs:label "duration type" ;
  rdfs:comment "The length of a duration, bucketed: quarterly, semi_annual, nine_months, annual, other." ;
  rdfs:domain rs:Period ; rdfs:range xsd:string .

rs:axis a rdf:Property ;
  rdfs:label "axis" ;
  rdfs:comment "The axis element of a dimension." ;
  rdfs:domain rs:Dimension ; rdfs:range rs:Element .

rs:member a rdf:Property ;
  rdfs:label "member" ;
  rdfs:comment "The member element of an explicit dimension." ;
  rdfs:domain rs:Dimension ; rdfs:range rs:Element .

rs:typedValue a rdf:Property ;
  rdfs:label "typed value" ;
  rdfs:comment "The value of a typed dimension, which has no member." ;
  rdfs:domain rs:Dimension .

rs:isExplicit a rdf:Property ;
  rdfs:label "is explicit" ;
  rdfs:comment "True when the dimension names a member." ;
  rdfs:domain rs:Dimension ; rdfs:range xsd:boolean .

rs:isTyped a rdf:Property ;
  rdfs:label "is typed" ;
  rdfs:comment "True when the dimension carries a typed value." ;
  rdfs:domain rs:Dimension ; rdfs:range xsd:boolean .

rs:axisType a rdf:Property ;
  rdfs:label "axis type" ;
  rdfs:comment "Where the filing stated the dimension: segment or scenario." ;
  rdfs:domain rs:Dimension ; rdfs:range xsd:string .

rs:scheme a rdf:Property ;
  rdfs:label "scheme" ;
  rdfs:comment "The scheme the entity's identifier belongs to, as XBRL's entity scheme." .

rs:legalName a rdf:Property ;
  rdfs:label "legal name" ;
  rdfs:comment "The entity's registered name." ;
  rdfs:range xsd:string .

rs:ein a rdf:Property ;
  rdfs:label "EIN" ;
  rdfs:comment "The entity's US employer identification number." ;
  rdfs:domain rs:Entity ; rdfs:range xsd:string .

rs:country a rdf:Property ;
  rdfs:label "country" ;
  rdfs:comment "The entity's country." ;
  rdfs:domain rs:Entity ; rdfs:range xsd:string .

rs:serializationVersion a rdf:Property ;
  rdfs:label "serialization version" ;
  rdfs:comment "The version of the holon format the document is written in." ;
  rdfs:range xsd:string .

rs:mode a rdf:Property ;
  rdfs:label "mode" ;
  rdfs:comment "Whether the document is a fixed report or a view of data still open." ;
  rdfs:range xsd:string .

rs:reportingStyle a rdf:Property ;
  rdfs:label "reporting style" ;
  rdfs:comment "The reporting style the report was produced in. A filing has none of its own and states sec-as-filed." ;
  rdfs:domain rs:Report ; rdfs:range xsd:string .

rs:accessionNumber a rdf:Property ;
  rdfs:label "accession number" ;
  rdfs:comment "The report's identifier: for an SEC filing, its accession number." ;
  rdfs:domain rs:Report ; rdfs:range xsd:string .

rs:form a rdf:Property ;
  rdfs:label "form" ;
  rdfs:comment "The form the report was filed on, such as 10-K." ;
  rdfs:domain rs:Report ; rdfs:range xsd:string .

rs:filingDate a rdf:Property ;
  rdfs:label "filing date" ;
  rdfs:comment "The date the report was filed or published." ;
  rdfs:domain rs:Report ; rdfs:range xsd:date .

rs:periodEndDate a rdf:Property ;
  rdfs:label "period end date" ;
  rdfs:comment "The last day of the period the report covers." ;
  rdfs:domain rs:Report ; rdfs:range xsd:date .

rs:fiscalYearFocus a rdf:Property ;
  rdfs:label "fiscal year focus" ;
  rdfs:comment "The fiscal year the report is about." ;
  rdfs:domain rs:Report .

rs:fiscalPeriodFocus a rdf:Property ;
  rdfs:label "fiscal period focus" ;
  rdfs:comment "The fiscal period the report is about: FY, Q1, Q2, Q3." ;
  rdfs:domain rs:Report .

rs:fiscalYearEndMonth a rdf:Property ;
  rdfs:label "fiscal year end month" ;
  rdfs:comment "The month the entity's fiscal year ends in." ;
  rdfs:domain rs:Report .


#################################################################
# 4. Ledger: the books behind the facts (a holon's #lineage graph)
#
# Optional, and written only by a producer that holds the books. The
# chain, with PROV-O carrying the links PROV-O names:
#
#   rs:Fact -prov:wasDerivedFrom-> rs:Contribution
#   rs:Contribution -prov:hadMember-> rs:LineItem
#   rs:LineItem -rs:entry-> rs:Entry -rs:transaction-> rs:Transaction
#   line, entry, transaction -prov:wasGeneratedBy-> rs:Event
#   rs:Event -prov:wasAssociatedWith-> rs:Agent
#
# The ledger's entities and accounts have classes of their own, so
# that a reader never takes one for the report's entity or elements.
#################################################################

rs:Contribution a rdfs:Class ;
  rdfs:subClassOf prov:Collection ;
  rdfs:label "Contribution" ;
  rdfs:comment "What one account of one entity contributed to a fact: the ledger lines that were summed, as a collection. A fact summed from several accounts is derived from one contribution per account." .

rs:LineItem a rdfs:Class ;
  rdfs:label "Line Item" ;
  rdfs:comment "One line of a journal entry: a debit or a credit to one account." .

rs:Entry a rdfs:Class ;
  rdfs:label "Entry" ;
  rdfs:comment "A journal entry: a balanced set of lines posted on one date." .

rs:Transaction a rdfs:Class ;
  rdfs:label "Transaction" ;
  rdfs:comment "The business transaction one or more entries record: an invoice, a bill, a payment." .

rs:Event a rdfs:Class ;
  rdfs:subClassOf prov:Activity ;
  rdfs:label "Event" ;
  rdfs:comment "The economic event the ledger records: something that happened between the entity and an agent, from which transactions and entries follow." .

rs:Agent a rdfs:Class ;
  rdfs:subClassOf prov:Agent ;
  rdfs:label "Agent" ;
  rdfs:comment "The other party to an event: a customer, a vendor, an owner, a government, or the entity itself." .

rs:Discharge a rdfs:Class ;
  rdfs:label "Discharge" ;
  rdfs:comment "The application of a payment event to an obligation event, with the amount applied. One payment may discharge several obligations, in part." .

rs:Account a rdfs:Class ;
  rdfs:label "Account" ;
  rdfs:comment "An account in the chart of accounts the books are kept in. Its balance and period type are xbrli:balance and xbrli:periodType." .

rs:LedgerEntity a rdfs:Class ;
  rdfs:label "Ledger Entity" ;
  rdfs:comment "An entity whose books a line, entry or event is in. A consolidated report's lineage reaches several." .

rs:substantiates a rdf:Property ;
  rdfs:label "substantiates" ;
  rdfs:comment "The fact a contribution stands behind. The reverse of the fact's prov:wasDerivedFrom." ;
  rdfs:domain rs:Contribution ; rdfs:range rs:Fact .

rs:amount a rdf:Property ;
  rdfs:label "amount" ;
  rdfs:comment "An amount of money. On a contribution, what the account contributed to the fact; on a transaction or an event, its total; on a discharge, the amount applied." ;
  rdfs:range xsd:decimal .

rs:windowStart a rdf:Property ;
  rdfs:label "window start" ;
  rdfs:comment "The first day of the span whose lines the contribution sums." ;
  rdfs:domain rs:Contribution ; rdfs:range xsd:date .

rs:windowEnd a rdf:Property ;
  rdfs:label "window end" ;
  rdfs:comment "The last day of the span whose lines the contribution sums." ;
  rdfs:domain rs:Contribution ; rdfs:range xsd:date .

rs:frozenAt a rdf:Property ;
  rdfs:label "frozen at" ;
  rdfs:comment "When the fact the contribution stands behind was fixed." ;
  rdfs:domain rs:Contribution ; rdfs:range xsd:dateTime .

rs:lineCount a rdf:Property ;
  rdfs:label "line count" ;
  rdfs:comment "How many ledger lines the contribution stands for, whether or not the document lists them." ;
  rdfs:domain rs:Contribution ; rdfs:range xsd:integer .

rs:describedLineCount a rdf:Property ;
  rdfs:label "described line count" ;
  rdfs:comment "How many of the contribution's lines the document describes in full. The rest are members by IRI only." ;
  rdfs:domain rs:Contribution ; rdfs:range xsd:integer .

rs:describedFrom a rdf:Property ;
  rdfs:label "described from" ;
  rdfs:comment "The date from which the contribution's lines are described in full. Earlier lines are summed into rs:priorBalance." ;
  rdfs:domain rs:Contribution ; rdfs:range xsd:date .

rs:priorLineCount a rdf:Property ;
  rdfs:label "prior line count" ;
  rdfs:comment "How many of the contribution's lines fall before rs:describedFrom." ;
  rdfs:domain rs:Contribution ; rdfs:range xsd:integer .

rs:priorBalance a rdf:Property ;
  rdfs:label "prior balance" ;
  rdfs:comment "The net of the contribution's lines before rs:describedFrom, signed to the account's normal balance." ;
  rdfs:domain rs:Contribution ; rdfs:range xsd:decimal .

rs:entry a rdf:Property ;
  rdfs:label "entry" ;
  rdfs:comment "The journal entry a line belongs to." ;
  rdfs:domain rs:LineItem ; rdfs:range rs:Entry .

rs:debit a rdf:Property ;
  rdfs:label "debit" ;
  rdfs:comment "The amount a line debits." ;
  rdfs:domain rs:LineItem ; rdfs:range xsd:decimal .

rs:credit a rdf:Property ;
  rdfs:label "credit" ;
  rdfs:comment "The amount a line credits." ;
  rdfs:domain rs:LineItem ; rdfs:range xsd:decimal .

rs:lineOrder a rdf:Property ;
  rdfs:label "line order" ;
  rdfs:comment "The line's position within its entry." ;
  rdfs:domain rs:LineItem ; rdfs:range xsd:integer .

rs:lineDescription a rdf:Property ;
  rdfs:label "line description" ;
  rdfs:comment "The line's own description, where it has one." ;
  rdfs:domain rs:LineItem ; rdfs:range xsd:string .

rs:flowConcept a rdf:Property ;
  rdfs:label "flow concept" ;
  rdfs:comment "The QName of the movement concept the line was tagged with, which places it in the cash flow statement or a roll forward." ;
  rdfs:domain rs:LineItem ; rdfs:range xsd:string .

rs:dimensionMember a rdf:Property ;
  rdfs:label "dimension member" ;
  rdfs:comment "A dimension member the line was tagged with." ;
  rdfs:domain rs:LineItem .

rs:transaction a rdf:Property ;
  rdfs:label "transaction" ;
  rdfs:comment "The transaction an entry records." ;
  rdfs:domain rs:Entry ; rdfs:range rs:Transaction .

rs:entryNumber a rdf:Property ;
  rdfs:label "entry number" ;
  rdfs:comment "The entry's number in the journal." ;
  rdfs:domain rs:Entry .

rs:postingDate a rdf:Property ;
  rdfs:label "posting date" ;
  rdfs:comment "The accounting date the entry is posted on, which decides the period it falls in." ;
  rdfs:domain rs:Entry ; rdfs:range xsd:date .

rs:postedAt a rdf:Property ;
  rdfs:label "posted at" ;
  rdfs:comment "When the entry was posted." ;
  rdfs:domain rs:Entry ; rdfs:range xsd:dateTime .

rs:entryType a rdf:Property ;
  rdfs:label "entry type" ;
  rdfs:comment "The kind of entry, such as standard or opening." ;
  rdfs:domain rs:Entry ; rdfs:range xsd:string .

rs:entryStatus a rdf:Property ;
  rdfs:label "entry status" ;
  rdfs:comment "The entry's status. Only landed entries are in a lineage." ;
  rdfs:domain rs:Entry ; rdfs:range xsd:string .

rs:recordedBy a rdf:Property ;
  rdfs:label "recorded by" ;
  rdfs:comment "How the entry came to be recorded, such as manual_entry or a sync from another system." ;
  rdfs:domain rs:Entry ; rdfs:range xsd:string .

rs:memo a rdf:Property ;
  rdfs:label "memo" ;
  rdfs:comment "The entry's memo." ;
  rdfs:domain rs:Entry ; rdfs:range xsd:string .

rs:reversalOf a rdf:Property ;
  rdfs:label "reversal of" ;
  rdfs:comment "The entry this one reverses." ;
  rdfs:domain rs:Entry ; rdfs:range rs:Entry .

rs:reversedBy a rdf:Property ;
  rdfs:label "reversed by" ;
  rdfs:comment "The entry that reverses this one." ;
  rdfs:domain rs:Entry ; rdfs:range rs:Entry .

rs:adjustmentKind a rdf:Property ;
  rdfs:label "adjustment kind" ;
  rdfs:comment "On an adjusting entry, what kind of adjustment it is, such as an elimination on consolidation." ;
  rdfs:domain rs:Entry ; rdfs:range xsd:string .

rs:adjustsEntity a rdf:Property ;
  rdfs:label "adjusts entity" ;
  rdfs:comment "The entity an adjusting entry adjusts, where that is not the entity whose books it is in." ;
  rdfs:domain rs:Entry ; rdfs:range rs:LedgerEntity .

rs:transactionType a rdf:Property ;
  rdfs:label "transaction type" ;
  rdfs:comment "The kind of transaction: invoice_issued, bill_received, payment_received, bill_paid, journal_entry_recorded." ;
  rdfs:domain rs:Transaction ; rdfs:range xsd:string .

rs:transactionDate a rdf:Property ;
  rdfs:label "transaction date" ;
  rdfs:comment "The date of the transaction." ;
  rdfs:domain rs:Transaction ; rdfs:range xsd:date .

rs:dueDate a rdf:Property ;
  rdfs:label "due date" ;
  rdfs:comment "The date a transaction or an obligation event falls due." ;
  rdfs:range xsd:date .

rs:currency a rdf:Property ;
  rdfs:label "currency" ;
  rdfs:comment "The currency a transaction's or an event's amount is in." ;
  rdfs:range xsd:string .

rs:merchantName a rdf:Property ;
  rdfs:label "merchant name" ;
  rdfs:comment "The merchant a bank or card transaction names." ;
  rdfs:domain rs:Transaction ; rdfs:range xsd:string .

rs:referenceNumber a rdf:Property ;
  rdfs:label "reference number" ;
  rdfs:comment "The transaction's reference in the system it came from: an invoice or a cheque number." ;
  rdfs:domain rs:Transaction ; rdfs:range xsd:string .

rs:eventType a rdf:Property ;
  rdfs:label "event type" ;
  rdfs:comment "What happened: invoice_issued, bill_received, payment_received, bill_paid, journal_entry_recorded." ;
  rdfs:domain rs:Event ; rdfs:range xsd:string .

rs:eventCategory a rdf:Property ;
  rdfs:label "event category" ;
  rdfs:comment "The business cycle the event belongs to: sales, purchase, adjustment." ;
  rdfs:domain rs:Event ; rdfs:range xsd:string .

rs:eventClass a rdf:Property ;
  rdfs:label "event class" ;
  rdfs:comment "The event's class in the REA sense, such as economic." ;
  rdfs:domain rs:Event ; rdfs:range xsd:string .

rs:eventAction a rdf:Property ;
  rdfs:label "event action" ;
  rdfs:comment "The action the event records, where the producer states one." ;
  rdfs:domain rs:Event ; rdfs:range xsd:string .

rs:eventStatus a rdf:Property ;
  rdfs:label "event status" ;
  rdfs:comment "Where the event stands, such as fulfilled." ;
  rdfs:domain rs:Event ; rdfs:range xsd:string .

rs:occurredAt a rdf:Property ;
  rdfs:label "occurred at" ;
  rdfs:comment "When the event happened." ;
  rdfs:domain rs:Event ; rdfs:range xsd:dateTime .

rs:obligatedBy a rdf:Property ;
  rdfs:label "obligated by" ;
  rdfs:comment "The earlier event that created the obligation this event answers." ;
  rdfs:domain rs:Event ; rdfs:range rs:Event .

rs:discharges a rdf:Property ;
  rdfs:label "discharges" ;
  rdfs:comment "The obligation event that a payment event, or one rs:Discharge of it, settles." ;
  rdfs:range rs:Event .

rs:replaces a rdf:Property ;
  rdfs:label "replaces" ;
  rdfs:comment "The earlier event this one supersedes." ;
  rdfs:domain rs:Event ; rdfs:range rs:Event .

rs:agentType a rdf:Property ;
  rdfs:label "agent type" ;
  rdfs:comment "What the agent is to the entity: customer, vendor, owner, government, self." ;
  rdfs:domain rs:Agent ; rdfs:range xsd:string .

rs:entityRole a rdf:Property ;
  rdfs:label "entity role" ;
  rdfs:comment "The part a ledger entity plays in its group, such as operating." ;
  rdfs:range xsd:string .

rs:parentEntity a rdf:Property ;
  rdfs:label "parent entity" ;
  rdfs:comment "The entity that owns this one in the group." ;
  rdfs:domain rs:LedgerEntity ; rdfs:range rs:LedgerEntity .


#################################################################
# Terms from other vocabularies the documents use in place of an rs:
# term. Not declared here; each is defined by its own standard.
#
#   xbrli:balance, xbrli:periodType     an element's or account's balance and period type
#   xbrli:instant, xbrli:startDate,
#   xbrli:endDate                       a period's dates
#   xbrli:measure                       a unit's measure
#   xlink:from, xlink:to                the two ends of an association
#   xlink:arcrole, xlink:role           its arc role and extended link role
#   link:weight, link:order             its calculation weight and its order
#   owl:equivalentClass                 two concepts in different frameworks that mean the same
#   skos:prefLabel, skos:altLabel       the label a reader is shown, and alternates
#   rdfs:label, rdfs:comment            a label and its documentation
#   dcterms:references                  an element's authoritative references
#   prov:wasDerivedFrom, prov:hadMember,
#   prov:wasGeneratedBy,
#   prov:wasAssociatedWith              the links of the #lineage chain
#   prov:hadPrimarySource,
#   prov:wasAttributedTo                where a fact came from and who stated it
#################################################################
