Record Class KonceptDefinition
java.lang.Object
java.lang.Record
network.ike.docs.koncept.KonceptDefinition
- Record Components:
identifier- CamelCase identifier used in markup (e.g., "HeartFailure")label- Human-readable label (e.g., "Heart Failure")definition- Natural language definition textaxiom- Description logic axiom string using Unicode DL symbolssctid- Optional SNOMED CT concept identifieriri- Optional OWL IRI for the conceptuuids- Optional explicit Tinkar PublicId UUIDs, in datastore order, used to compute the Komet identicon; when absent the identicon is derived fromsctidkind- Optional component kind (concept,description,semantic,pattern,stamp,unknown);nullor absent meansconcept(the bare default)broader- Optional identifiers of this koncept's supertypes (is-a parents); the glossary renders them as parent chips and inverts them across the source to render each koncept's childrenstatus- Optional logical-definition status from the stated EL++ expression (defined,primitive,root);nullor absent means no stated definition — the badge stays bare (ike-issues#742 design amendment, #940). Multi-parent is not a status: it is derived frombroader's sizestate- Optional lifecycle state of the koncept's latest version;inactiverenders the retired treatment — struck-through label in the retired colour (#742 retired parity, #864). Absent means activesection- Optional stable grouping key computed against the live knowledge base (a taxonomy-subtree root's own identifier, or a positionalResidualN/Unclassifiedbucket); the grouped glossary mode sections the document by this fieldsince- Optional earliest stamp time of this koncept's own version chain, formatted as recorded by the knowledge basecomments- Optional text of every currently active free-text comment attached to this konceptretiredComments- Optional prior text and retirement time of a comment that has since been superseded by an inactive version — "maybe in some cases," per the source data; absent far more often than presentseeAlso- Optional identifiers of related koncepts (a javadoc-@seeanalog); no Tinkar association/replacement pattern is wired anywhere today, so this is reserved plumbing, not yet populated by any known sourcenarrative- Optional curated, long-form AsciiDoc prose for this koncept (as opposed to the shortdefinitiongloss) — real AsciiDoc source, including embeddedk:chip references, meant to be spliced into a document and re-parsed (see thekoncept-narrativeblock macro), not rendered as flat textreferencedComponentMeaning- Optional identifier of akind: patternkoncept's own referenced-component meaning concept — what a semantic of this pattern's referenced component means (Tinkar's wire schema calls this pairReferencedComponentMeaning/Purpose; the Java entity API calls itsemanticMeaning/Purpose— both names describe the same field);nullfor a conceptreferencedComponentPurpose- Optional identifier of akind: patternkoncept's own referenced-component purpose concept;nullfor a conceptreferencedComponentExample- Optional referenced component of a real, deterministically chosen semantic of this pattern already in the knowledge base — a koncept identifier when it resolves to one, otherwise its plain display text;nullfor a concept, or for a pattern with no semantics yetfields- Optional field definitions of akind: patternkoncept, in declared order — each field's own meaning, purpose, and data-type koncept identifiers; empty for a concept
public record KonceptDefinition(String identifier, String label, String definition, String axiom, String sctid, String iri, List<String> uuids, String kind, List<String> broader, String status, String state, String section, String since, List<String> comments, List<KonceptDefinition.RetiredComment> retiredComments, List<String> seeAlso, String narrative, String referencedComponentMeaning, String referencedComponentPurpose, String referencedComponentExample, List<KonceptDefinition.PatternField> fields)
extends Record
Immutable definition of a Koncept, including natural language definition,
description logic axiom, and optional terminology identifiers.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for constructing KonceptDefinition instances from parsed YAML or programmatic sources.static final recordOne Model Feature of akind: patternkoncept in presentation form: the referenced component first, then each declared field, labeled 1-indexed (Field 1is the first declared field).static final recordOne field of akind: patternkoncept: its own meaning, purpose, and data-type koncept identifiers, in the pattern's own declared field order.static final recordA comment's text immediately before it was retired, and the time of that retirement. -
Constructor Summary
ConstructorsConstructorDescriptionKonceptDefinition(String identifier, String label, String definition, String axiom, String sctid, String iri, List<String> uuids, String kind, List<String> broader, String status, String state, String section, String since, List<String> comments, List<KonceptDefinition.RetiredComment> retiredComments, List<String> seeAlso, String narrative, String referencedComponentMeaning, String referencedComponentPurpose, String referencedComponentExample, List<KonceptDefinition.PatternField> fields) Creates an instance of aKonceptDefinitionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionaxiom()Returns the value of theaxiomrecord component.broader()Returns the value of thebroaderrecord component.static KonceptDefinition.Builderbuilder()Creates a new builder for constructingKonceptDefinitioninstances.comments()Returns the value of thecommentsrecord component.Returns the value of thedefinitionrecord component.final booleanIndicates whether some other object is "equal to" this one.fields()Returns the value of thefieldsrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theidentifierrecord component.iri()Returns the value of theirirecord component.booleanWhether this koncept's latest version is inactive (retired) — the badge renders the retired treatment (#742 retired parity).booleanWhether this koncept has more than one stated is-a parent — the structural property the badge renders as the appended "\u22ce" fork.kind()Returns the value of thekindrecord component.The logical-definition status as the typed vocabulary —KonceptStatus.NONEwhenstatus()is absent or unrecognised.label()Returns the value of thelabelrecord component.This pattern's Model Features in presentation order — the single source of truth behind every shape rendering (thekoncept-pattern-tableblock macro and the glossary's pattern-shape table): the referenced component, then each declared field in order.Returns the value of thenarrativerecord component.Returns the value of thereferencedComponentExamplerecord component.Returns the value of thereferencedComponentMeaningrecord component.Returns the value of thereferencedComponentPurposerecord component.Returns the value of theretiredCommentsrecord component.sctid()Returns the value of thesctidrecord component.section()Returns the value of thesectionrecord component.seeAlso()Returns the value of theseeAlsorecord component.since()Returns the value of thesincerecord component.state()Returns the value of thestaterecord component.status()Returns the value of thestatusrecord component.final StringtoString()Returns a string representation of this record class.uuids()Returns the value of theuuidsrecord component.
-
Constructor Details
-
KonceptDefinition
public KonceptDefinition(String identifier, String label, String definition, String axiom, String sctid, String iri, List<String> uuids, String kind, List<String> broader, String status, String state, String section, String since, List<String> comments, List<KonceptDefinition.RetiredComment> retiredComments, List<String> seeAlso, String narrative, String referencedComponentMeaning, String referencedComponentPurpose, String referencedComponentExample, List<KonceptDefinition.PatternField> fields) Creates an instance of aKonceptDefinitionrecord class.- Parameters:
identifier- the value for theidentifierrecord componentlabel- the value for thelabelrecord componentdefinition- the value for thedefinitionrecord componentaxiom- the value for theaxiomrecord componentsctid- the value for thesctidrecord componentiri- the value for theirirecord componentuuids- the value for theuuidsrecord componentkind- the value for thekindrecord componentbroader- the value for thebroaderrecord componentstatus- the value for thestatusrecord componentstate- the value for thestaterecord componentsection- the value for thesectionrecord componentsince- the value for thesincerecord componentcomments- the value for thecommentsrecord componentretiredComments- the value for theretiredCommentsrecord componentseeAlso- the value for theseeAlsorecord componentnarrative- the value for thenarrativerecord componentreferencedComponentMeaning- the value for thereferencedComponentMeaningrecord componentreferencedComponentPurpose- the value for thereferencedComponentPurposerecord componentreferencedComponentExample- the value for thereferencedComponentExamplerecord componentfields- the value for thefieldsrecord component
-
-
Method Details
-
konceptStatus
The logical-definition status as the typed vocabulary —KonceptStatus.NONEwhenstatus()is absent or unrecognised.- Returns:
- the resolved status, never
null
-
isMultiParent
-
isInactive
public boolean isInactive()Whether this koncept's latest version is inactive (retired) — the badge renders the retired treatment (#742 retired parity).- Returns:
truewhenstate()isinactive
-
modelFeatures
This pattern's Model Features in presentation order — the single source of truth behind every shape rendering (thekoncept-pattern-tableblock macro and the glossary's pattern-shape table): the referenced component, then each declared field in order.- Returns:
- the Model Features, or an empty list for a koncept with no shape at all
-
builder
Creates a new builder for constructingKonceptDefinitioninstances.- Returns:
- a new builder
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
identifier
Returns the value of theidentifierrecord component.- Returns:
- the value of the
identifierrecord component
-
label
-
definition
Returns the value of thedefinitionrecord component.- Returns:
- the value of the
definitionrecord component
-
axiom
-
sctid
-
iri
-
uuids
-
kind
-
broader
-
status
-
state
-
section
-
since
-
comments
-
retiredComments
Returns the value of theretiredCommentsrecord component.- Returns:
- the value of the
retiredCommentsrecord component
-
seeAlso
-
narrative
-
referencedComponentMeaning
Returns the value of thereferencedComponentMeaningrecord component.- Returns:
- the value of the
referencedComponentMeaningrecord component
-
referencedComponentPurpose
Returns the value of thereferencedComponentPurposerecord component.- Returns:
- the value of the
referencedComponentPurposerecord component
-
referencedComponentExample
Returns the value of thereferencedComponentExamplerecord component.- Returns:
- the value of the
referencedComponentExamplerecord component
-
fields
-