Skip to main content

pub.layers.resource

Linguistic resource records: lexical entries, collections, stimulus templates, slot definitions, and fillings. Provides an abstract, composable framework for representing any structured linguistic resource — lexicons, frame inventories, stimulus generation pipelines, and experimental item construction.

Types

entry

Type: Record

A linguistic resource entry: a lexical item, frame element filler, morphological paradigm cell, or any atomic unit in a structured linguistic collection.

FieldTypeDescription
lemmastringCanonical/citation form.
formstringSurface form or string representation.
languagestringBCP-47 language tag.
ontologyTypeRefat-uriReference to a pub.layers.ontology#typeDef classifying this entry.
knowledgeRefsarrayKnowledge graph groundings (WordNet synset, FrameNet lexical unit, Wikidata, etc.). Array of ref: pub.layers.defs#knowledgeRef
featuresrefOpen-ended features: pos, morphological features, frequency, register, etc. Ref: pub.layers.defs#featureMap
componentsarrayFor multi-word expressions: the component words. Array of ref: #mweComponent
mweKindUriat-uriAT-URI of the MWE kind definition node. Community-expandable via knowledge graph.
mweKindstringMWE kind slug (fallback). Known values: compound, phrasal-verb, idiom, light-verb, inherently-reflexive, verb-particle, collocation, custom
sourceRefat-uriAT-URI of the source record this entry was derived from.
metadatarefProvenance: who created this entry, with what tool. Ref: pub.layers.defs#annotationMetadata
createdAtdatetimeRecord creation timestamp.

collection

Type: Record

A named collection of linguistic resource entries. Abstract enough to represent lexicons, frame inventories, paradigm tables, gazetteers, stop-word lists, etc.

FieldTypeDescription
namestringHuman-readable name for this collection.
descriptionstringDetailed description.
kindUriat-uriAT-URI of the collection kind definition node. Community-expandable via knowledge graph.
kindstringCollection kind slug (fallback). Known values: lexicon, frame-inventory, gazetteer, paradigm, stop-list, stimulus-pool, custom
languagestringBCP-47 language tag.
versionstringVersion string (e.g., 'FrameNet 1.7', 'PropBank 3.4').
ontologyRefat-uriReference to a pub.layers.ontology defining the type system for entries.
knowledgeRefsarrayKnowledge graph references. Array of ref: pub.layers.defs#knowledgeRef
metadatarefProvenance: who curated this collection. Ref: pub.layers.defs#annotationMetadata
featuresrefRef: pub.layers.defs#featureMap
createdAtdatetimeRecord creation timestamp.

collectionMembership

Type: Record

Links an entry to a collection. Separate record enables many-to-many relationships and decentralized curation.

FieldTypeDescription
collectionRefat-uriAT-URI of the collection.
entryRefat-uriAT-URI of the entry.
ordinalintegerOptional ordering position within the collection.
metadatarefProvenance: who added this entry to this collection. Ref: pub.layers.defs#annotationMetadata
featuresrefRef: pub.layers.defs#featureMap
createdAtdatetimeRecord creation timestamp.

slot

Type: Object

A named variable slot in a template. Generalizes template variable positions with constraints and defaults.

FieldTypeDescription
namestringSlot name (used as placeholder key in template text, e.g., 'subject', 'verb').
descriptionstringDescription of the slot.
requiredbooleanWhether this slot must be filled.
defaultValuestringDefault filler value if not explicitly filled.
collectionRefat-uriAT-URI of a resource collection constraining allowed fillers.
ontologyTypeRefat-uriAT-URI of a pub.layers.ontology#typeDef constraining the filler type.
fillerTypeRefsarrayMultiple allowed filler type references (disjunctive constraint). Array of at-uri
constraintsarraySlot-level constraints. Array of ref: pub.layers.defs#constraint
knowledgeRefsarrayKnowledge graph references. Array of ref: pub.layers.defs#knowledgeRef
featuresrefRef: pub.layers.defs#featureMap

template

Type: Record

A parameterized text template with named variable slots. Generalizes stimulus generation pipelines and controlled natural language patterns.

FieldTypeDescription
namestringHuman-readable template name.
textstringTemplate text with {slotName} placeholders.
languagestringBCP-47 language tag.
slotsarrayThe named slots in this template. Array of ref: #slot
constraintsarrayCross-slot constraints. Array of ref: pub.layers.defs#constraint
ontologyRefat-uriReference to the ontology defining the type system.
experimentRefat-uriReference to the experiment this template was designed for.
knowledgeRefsarrayKnowledge graph references. Array of ref: pub.layers.defs#knowledgeRef
metadatarefProvenance: who designed this template. Ref: pub.layers.defs#annotationMetadata
featuresrefOpen-ended features: judgmentType, taskType, category, domain, etc. Ref: pub.layers.defs#featureMap
createdAtdatetimeRecord creation timestamp.

slotFilling

Type: Object

A single slot→filler mapping in a filled template. The filler can be an entry reference, a literal value, or both.

FieldTypeDescription
slotNamestringName of the slot being filled.
entryRefat-uriAT-URI of the resource entry filling this slot.
literalValuestringLiteral string value for this slot (used when no entry reference is needed).
renderedFormstringThe surface form as rendered in the filled text.
featuresrefRef: pub.layers.defs#featureMap

filling

Type: Record

A filled template: a template with all slots mapped to specific fillers, producing a rendered text. The rendered text can optionally be materialized as a pub.layers.expression for annotation.

FieldTypeDescription
templateRefat-uriAT-URI of the template being filled.
slotFillingsarrayThe slot→filler mappings. Array of ref: #slotFilling
renderedTextstringThe fully rendered text after substitution.
expressionRefat-uriAT-URI of the pub.layers.expression materializing this filling.
strategyUriat-uriAT-URI of the filling strategy definition node. Community-expandable via knowledge graph.
strategystringFilling strategy slug (fallback). Known values: exhaustive, random, stratified, mlm, csp, mixed, manual, custom
metadatarefProvenance: what tool/process generated this filling. Ref: pub.layers.defs#annotationMetadata
knowledgeRefsarrayKnowledge graph references. Array of ref: pub.layers.defs#knowledgeRef
featuresrefOpen-ended features. Ref: pub.layers.defs#featureMap
createdAtdatetimeRecord creation timestamp.

templateComposition

Type: Record

A composition of templates into sequences or trees. Enables building complex stimuli from simpler template units (e.g., context paragraph + target sentence + comprehension question).

FieldTypeDescription
namestringHuman-readable name for this composition.
descriptionstringDescription of the composition.
compositionTypeUriat-uriAT-URI of the composition type definition node. Community-expandable via knowledge graph.
compositionTypestringComposition type slug (fallback). Known values: sequence, tree, custom
membersarrayThe template members in order. Array of ref: #templateMember
constraintsarrayCross-member constraints. Array of ref: pub.layers.defs#constraint
metadatarefRef: pub.layers.defs#annotationMetadata
featuresrefRef: pub.layers.defs#featureMap
createdAtdatetimeRecord creation timestamp.

templateMember

Type: Object

A single member in a template composition, referencing a template or another composition.

FieldTypeDescription
templateRefat-uriAT-URI of the template.
compositionRefat-uriAT-URI of a nested templateComposition (for tree structures).
labelstringLabel for this member's role in the composition (e.g., 'context', 'target', 'question').
ordinalintegerPosition in the sequence.
requiredbooleanWhether this member must be present.
featuresrefRef: pub.layers.defs#featureMap

mweComponent

Type: Object

A single component word in a multi-word expression.

FieldTypeDescription
formstringSurface form of the component.
lemmastringLemma/citation form of the component.
positioninteger0-based position within the MWE.
isHeadbooleanWhether this component is the head of the MWE.
featuresrefRef: pub.layers.defs#featureMap