Data terms (c4d:)¶
The data an architecture keeps and moves: schemas (a relational schema, a JSON Schema, an ontology, a JSON-LD context,
an object-store key layout, queue messages, an API's payloads), their entities and fields, the identifiers that
connect fields across entities and stores, and the relations between entities. A schema lives in an element of the map,
an entity is defined by code elements, a field's values can be the states of a lifecycle, and steps and relationships
say which entities and fields they read and write. The module imports the core terms; how the explorer draws
the data (order, positions, colours) is in the view terms. This page is the target of the namespace
https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-data#, generated from c4-data.ttl when
the site is built. Graphs are checked with the data module section of c4-shapes.ttl.
Schemas and data shows the module at work in the explorer's Data view.
Overview¶
Namespace c4d: = https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-data# · ontology https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-data · version 0.1.0 · download c4-data.ttl
| Classes | |
|---|---|
c4d:DataItem |
An entity or one of its fields: what a field's reference, a relation, and a step's reads and writes point at. Abstract: every data item is also a c4d:Entity or a c4d:Field. |
c4d:Entity |
One kind of record a schema defines: a table or a view, an ontology class, a JSON object type, an enumeration, a document collection, a bucket and its key layout, a queue message, or another type. Its fields are c4d:Field resources in order. |
c4d:Enumeration |
An entity that is a closed list of values (a SQL enum type, a JSON Schema enum, an OWL class given by owl:oneOf): it has c4d:allowedValue values instead of fields. |
c4d:Field |
One named part of an entity: a column of a table, a property of an object or a class, an attribute, a segment of an object key, an argument of a message. Its place among the fields of its entity is schema:position. |
c4d:Index |
An index of an entity over some of its fields, in order, possibly unique: what a database keeps to find rows by those fields. |
c4d:Relation |
A link between two data items that is not a field's own reference: a reference declared apart (a composite or many-to-many key), a containment (a document embedding another), an extension (a subclass, allOf), a mapping (the same thing in another schema: a table and the ontology class it stores), or a named association (an ontology object property). |
c4d:Schema |
A data model that lives somewhere in the architecture: the definition of the entities one store, container or component keeps, sends or receives. A relational schema, a JSON Schema, an ontology, a JSON-LD context, the key layout of an object store, the messages of a queue, the payloads of an API. |
c4d:Table |
An entity that is a table of a relational database (or a view of one): rows of the same columns, with a primary key, foreign keys and indexes. |
c4d:View |
A table defined by a query over other tables rather than stored: it can be read, and usually not written. |
| Object properties | |
|---|---|
c4d:definedBy |
A code element (or component) that defines or maps the entity: the ORM class of a table, the Pydantic model of a payload, the SQL file, the job that writes a file. |
c4d:from |
The data item a relation starts from: the referencing, containing, extending or mapped one. |
c4d:hasEntity |
An entity the schema defines. |
c4d:hasField |
A field of the entity. The order of the fields is their schema:position. |
c4d:hasIndex |
An index of the entity. |
c4d:holdsStateOf |
The element whose lifecycle the field's values are: the element that owns the c4:State elements those values name (tasks.status holds the state of the task lifecycle). |
c4d:indexFields |
The fields an index covers, as an rdf:List in their order (the order of a composite index matters to the database). |
c4d:inEntity |
The entity the field belongs to. |
c4d:inSchema |
The schema that defines the entity. |
c4d:livesIn |
The element of the architecture a schema lives in: usually a data store (PostgreSQL, an object store, a queue), or a container or component for an API's payloads or an in-process format. |
c4d:reads |
An entity (its rows, objects or messages) or a field that a scenario step, or a relationship in general, reads. |
c4d:references |
What the field's values identify: an entity (the field holds its identifier, the value of its primary key) or a field (the field holds that field's value). A foreign key, an object key stored in a table, an id copied into a JSON file, a job argument. |
c4d:to |
The data item a relation goes to: the referenced, contained, extended or mapped one. |
c4d:writes |
An entity or a field that a scenario step, or a relationship in general, writes: inserts, updates or deletes. |
| Datatype properties | |
|---|---|
c4d:allowedValue |
One of the values a field may take (CHECK … IN, a JSON enum, sh:in), or one value of an enumeration. One triple per value; their order, for the page, is c4v:valueList. |
c4d:declaredType |
The type of a field as its source writes it: INTEGER, TEXT, TIMESTAMPTZ, string, number[], xsd:dateTime, iat:Label. |
c4d:defaultValue |
The value a field gets when none is given, as its source writes it: now(), 'pending', 0. |
c4d:entityKind |
What sort of entity it is, when the model says so: table, view, class, object, enum, collection, document, bucket, message or type. Without it, the default of its schema's kind applies. |
c4d:format |
The language the schema's source is written in: sql, json-schema, openapi, owl, rdfs, shacl, jsonld-context, prisma, graphql, protobuf, avro, orm, or another. |
c4d:fromCardinality |
How many of the relation's from side take part, for one of the other side: 1, 0..1, 0..* (also written ) or 1... |
c4d:isMultiValued |
True for a field that holds a list: a JSON array, a property with sh:maxCount above 1, a to-many property. Written only when true. |
c4d:isPrimaryKey |
True for a field that is (part of) the identifier of its entity: a table's primary key, an @id, an object key. Written only when true. |
c4d:isRequired |
True for a field that always has a value: NOT NULL, listed in a JSON Schema's required, sh:minCount 1. A primary key is required without saying so. Written only when true. |
c4d:isSoft |
Whether the store leaves a reference unenforced: true for a key into another store, an id copied into a file, a job argument; false for a reference the database checks (a foreign key). Written as the model gives it, false included. |
c4d:isUnique |
True for a field whose values are unique among the records of its entity (UNIQUE), or for an index that enforces uniqueness. Written only when true. |
c4d:namespace |
For an ontology or a JSON-LD context: the namespace IRI its classes and properties live in, as an xsd:anyURI literal (a namespace is not a resource of its own). |
c4d:onDelete |
What the store does to the referencing record when the referenced one is deleted: cascade, set null, restrict, no action or set default. |
c4d:referenceLabel |
What the line of a field's reference says in the Data view: uploaded by, object key. |
c4d:relationKind |
What a relation means, when the model says so: ref (holds or uses the identifier of: the default), contains (composition, nesting, a document embedding another), extends (a subclass, allOf, inheritance), maps (the same thing in another schema; no direction) or assoc (a named association, an ontology object property). |
c4d:schemaKind |
What sort of data model a schema is: relational, document, json-schema, ontology, object-store, queue, api or other. It decides the default kind of its entities and how the explorer names them (table, class, object). |
c4d:toCardinality |
How many of the relation's to side take part, for one of the other side: 1, 0..1, 0..* (also written ) or 1... |
| Annotation properties | |
|---|---|
c4d:represents |
The term an entity or a field is when it comes from an ontology or a JSON-LD context (an OWL class, an RDF property, a JSON-LD term's IRI), or the $id of a JSON Schema: an IRI, or an xsd:anyURI literal for a relative reference such as #/definitions/image. |
Terms¶
DataItem¶
c4d:DataItem · class · Data item
An entity or one of its fields: what a field's reference, a relation, and a step's reads and writes point at. Abstract: every data item is also a c4d:Entity or a c4d:Field.
- Subclasses:
c4d:Entity,c4d:Field - Note: Exists so that one constraint covers both (a reference may name a whole entity, its identifier, or one field), without logical constraints that some SHACL engines skip.
- IRI:
https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-data#DataItem
Entity¶
c4d:Entity · class · Entity
One kind of record a schema defines: a table or a view, an ontology class, a JSON object type, an enumeration, a document collection, a bucket and its key layout, a queue message, or another type. Its fields are c4d:Field resources in order.
- Subclass of:
c4d:DataItem - Subclasses:
c4d:Enumeration,c4d:Table - Note: Its kind is c4d:entityKind when the model gives one; otherwise the default of its schema's kind (relational: table, ontology: class, json-schema, api and document: object, object-store: bucket, queue: message, other: type). An entity of kind enum lists c4d:allowedValue instead of fields.
- Source: https://caviri.github.io/c4-model-agentic-plugin/reference/explorer-data-model/
- IRI:
https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-data#Entity
Enumeration¶
c4d:Enumeration · class · Enumeration
An entity that is a closed list of values (a SQL enum type, a JSON Schema enum, an OWL class given by owl:oneOf): it has c4d:allowedValue values instead of fields.
- Subclass of:
c4d:Entity - IRI:
https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-data#Enumeration
Field¶
c4d:Field · class · Field
One named part of an entity: a column of a table, a property of an object or a class, an attribute, a segment of an object key, an argument of a message. Its place among the fields of its entity is schema:position.
- Subclass of:
c4d:DataItem - Note: Its name (rdfs:label) is unique inside its entity and may contain a dot (a JSON path such as bbox.0). A field can reference an entity or another field (c4d:references): this field holds that entity's identifier, or that field's value.
- Source: https://www.w3.org/TR/tabular-metadata/#columns
- IRI:
https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-data#Field
Index¶
c4d:Index · class · Index
An index of an entity over some of its fields, in order, possibly unique: what a database keeps to find rows by those fields.
- Source: https://www.postgresql.org/docs/current/sql-createindex.html
- IRI:
https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-data#Index
Relation¶
c4d:Relation · class · Relation
A link between two data items that is not a field's own reference: a reference declared apart (a composite or many-to-many key), a containment (a document embedding another), an extension (a subclass, allOf), a mapping (the same thing in another schema: a table and the ontology class it stores), or a named association (an ontology object property).
- Note: One c4d:from and one c4d:to (an entity or a field), c4d:relationKind (ref when absent: ref, contains, extends, maps, assoc), an optional label, multiplicities at both ends, and c4d:isSoft. A maps relation has no direction.
- Source: https://caviri.github.io/c4-model-agentic-plugin/reference/explorer-data-model/
- IRI:
https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-data#Relation
Schema¶
c4d:Schema · class · Schema
A data model that lives somewhere in the architecture: the definition of the entities one store, container or component keeps, sends or receives. A relational schema, a JSON Schema, an ontology, a JSON-LD context, the key layout of an object store, the messages of a queue, the payloads of an API.
- Note: Exported schemas carry dcterms:identifier (the model id), rdfs:label (the name), c4d:schemaKind, usually c4d:livesIn (the element it lives in), and dcterms:isPartOf the c4:Model. Its entities point at it with c4d:inSchema.
- Source: https://caviri.github.io/c4-model-agentic-plugin/reference/explorer-data-model/
- IRI:
https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-data#Schema
Table¶
c4d:Table · class · Table
An entity that is a table of a relational database (or a view of one): rows of the same columns, with a primary key, foreign keys and indexes.
- Subclass of:
c4d:Entity - Subclasses:
c4d:View - Note: Written for an entity whose kind in effect is table or view, so
?e a c4d:Tablefinds the tables of a relational schema whether or not each names its kind. - Source: https://www.w3.org/TR/tabular-metadata/#schemas
- IRI:
https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-data#Table
View¶
c4d:View · class · View
A table defined by a query over other tables rather than stored: it can be read, and usually not written.
- Subclass of:
c4d:Table - Source: https://www.postgresql.org/docs/current/sql-createview.html
- IRI:
https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-data#View
definedBy¶
c4d:definedBy · object property · defined by
A code element (or component) that defines or maps the entity: the ORM class of a table, the Pydantic model of a payload, the SQL file, the job that writes a file.
- Domain:
c4d:Entity - Range:
c4:Element - Note: Not rdfs:isDefinedBy, which names the vocabulary a term belongs to.
- IRI:
https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-data#definedBy
from¶
c4d:from · object property · from
The data item a relation starts from: the referencing, containing, extending or mapped one.
- Domain:
c4d:Relation - Range:
c4d:DataItem - IRI:
https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-data#from
hasEntity¶
c4d:hasEntity · object property · has entity
An entity the schema defines.
- Inverse of:
c4d:inSchema - Domain:
c4d:Schema - Range:
c4d:Entity - IRI:
https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-data#hasEntity
hasField¶
c4d:hasField · object property · has field
A field of the entity. The order of the fields is their schema:position.
- Inverse of:
c4d:inEntity - Domain:
c4d:Entity - Range:
c4d:Field - IRI:
https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-data#hasField
hasIndex¶
c4d:hasIndex · object property · has index
An index of the entity.
- Domain:
c4d:Entity - Range:
c4d:Index - IRI:
https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-data#hasIndex
holdsStateOf¶
c4d:holdsStateOf · object property · holds state of
The element whose lifecycle the field's values are: the element that owns the c4:State elements those values name (tasks.status holds the state of the task lifecycle).
- Domain:
c4d:Field - Range:
c4:Element - IRI:
https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-data#holdsStateOf
indexFields¶
c4d:indexFields · object property · index fields
The fields an index covers, as an rdf:List in their order (the order of a composite index matters to the database).
- Domain:
c4d:Index - Range:
rdf:List - IRI:
https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-data#indexFields
inEntity¶
c4d:inEntity · object property · in entity
The entity the field belongs to.
- Domain:
c4d:Field - Range:
c4d:Entity - IRI:
https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-data#inEntity
inSchema¶
c4d:inSchema · object property · in schema
The schema that defines the entity.
- Domain:
c4d:Entity - Range:
c4d:Schema - IRI:
https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-data#inSchema
livesIn¶
c4d:livesIn · object property · lives in
The element of the architecture a schema lives in: usually a data store (PostgreSQL, an object store, a queue), or a container or component for an API's payloads or an in-process format.
- Domain:
c4d:Schema - Range:
c4:Element - IRI:
https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-data#livesIn
reads¶
c4d:reads · object property · reads
An entity (its rows, objects or messages) or a field that a scenario step, or a relationship in general, reads.
- Range:
c4d:DataItem - Note: On c4:Step and on c4:Relationship. Their order, for the page, is c4v:readList.
- IRI:
https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-data#reads
references¶
c4d:references · object property · references
What the field's values identify: an entity (the field holds its identifier, the value of its primary key) or a field (the field holds that field's value). A foreign key, an object key stored in a table, an id copied into a JSON file, a job argument.
- Domain:
c4d:Field - Range:
c4d:DataItem - Note: The store may not enforce it: see c4d:isSoft. Multiplicities follow: from the field's side 0..1 when it is unique, else 0..*; at the target 1 when the field is required or a primary key, else 0..1.
- IRI:
https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-data#references
to¶
c4d:to · object property · to
The data item a relation goes to: the referenced, contained, extended or mapped one.
- Domain:
c4d:Relation - Range:
c4d:DataItem - IRI:
https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-data#to
writes¶
c4d:writes · object property · writes
An entity or a field that a scenario step, or a relationship in general, writes: inserts, updates or deletes.
- Range:
c4d:DataItem - Note: On c4:Step and on c4:Relationship. Their order, for the page, is c4v:writeList.
- IRI:
https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-data#writes
allowedValue¶
c4d:allowedValue · datatype property · allowed value
One of the values a field may take (CHECK … IN, a JSON enum, sh:in), or one value of an enumeration. One triple per value; their order, for the page, is c4v:valueList.
- Range:
rdfs:Literal - IRI:
https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-data#allowedValue
declaredType¶
c4d:declaredType · datatype property · declared type
The type of a field as its source writes it: INTEGER, TEXT, TIMESTAMPTZ, string, number[], xsd:dateTime, iat:Label.
- Domain:
c4d:Field - Range:
xsd:string - Note: A string, never interpreted: types of different languages do not map one to one.
- IRI:
https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-data#declaredType
defaultValue¶
c4d:defaultValue · datatype property · default value
The value a field gets when none is given, as its source writes it: now(), 'pending', 0.
- Domain:
c4d:Field - Range:
rdfs:Literal - Note: A string as written, or a number or boolean when the model gives one.
- IRI:
https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-data#defaultValue
entityKind¶
c4d:entityKind · datatype property · entity kind
What sort of entity it is, when the model says so: table, view, class, object, enum, collection, document, bucket, message or type. Without it, the default of its schema's kind applies.
- Domain:
c4d:Entity - Range:
xsd:string - IRI:
https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-data#entityKind
format¶
c4d:format · datatype property · format
The language the schema's source is written in: sql, json-schema, openapi, owl, rdfs, shacl, jsonld-context, prisma, graphql, protobuf, avro, orm, or another.
- Domain:
c4d:Schema - Range:
xsd:string - Note: A free string; the values listed are the known ones. Not dcterms:format, which is a media type or extent.
- IRI:
https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-data#format
fromCardinality¶
c4d:fromCardinality · datatype property · from cardinality
How many of the relation's from side take part, for one of the other side: 1, 0..1, 0..* (also written ) or 1...
- Domain:
c4d:Relation - Range:
xsd:string - IRI:
https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-data#fromCardinality
isMultiValued¶
c4d:isMultiValued · datatype property · is multi-valued
True for a field that holds a list: a JSON array, a property with sh:maxCount above 1, a to-many property. Written only when true.
- Domain:
c4d:Field - Range:
xsd:boolean - IRI:
https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-data#isMultiValued
isPrimaryKey¶
c4d:isPrimaryKey · datatype property · is primary key
True for a field that is (part of) the identifier of its entity: a table's primary key, an @id, an object key. Written only when true.
- Domain:
c4d:Field - Range:
xsd:boolean - IRI:
https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-data#isPrimaryKey
isRequired¶
c4d:isRequired · datatype property · is required
True for a field that always has a value: NOT NULL, listed in a JSON Schema's required, sh:minCount 1. A primary key is required without saying so. Written only when true.
- Domain:
c4d:Field - Range:
xsd:boolean - IRI:
https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-data#isRequired
isSoft¶
c4d:isSoft · datatype property · is soft
Whether the store leaves a reference unenforced: true for a key into another store, an id copied into a file, a job argument; false for a reference the database checks (a foreign key). Written as the model gives it, false included.
- Range:
xsd:boolean - Note: Without it, a reference within one schema is enforced and a reference across two schemas is soft: a reference that crosses schemas and is enforced all the same says false.
- IRI:
https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-data#isSoft
isUnique¶
c4d:isUnique · datatype property · is unique
True for a field whose values are unique among the records of its entity (UNIQUE), or for an index that enforces uniqueness. Written only when true.
- Range:
xsd:boolean - IRI:
https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-data#isUnique
namespace¶
c4d:namespace · datatype property · namespace
For an ontology or a JSON-LD context: the namespace IRI its classes and properties live in, as an xsd:anyURI literal (a namespace is not a resource of its own).
- Domain:
c4d:Schema - Range:
xsd:anyURI - Example:
https://example.org/iat# - IRI:
https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-data#namespace
onDelete¶
c4d:onDelete · datatype property · on delete
What the store does to the referencing record when the referenced one is deleted: cascade, set null, restrict, no action or set default.
- Domain:
c4d:Field - Range:
xsd:string - Source: https://www.postgresql.org/docs/current/ddl-constraints.html#DDL-CONSTRAINTS-FK
- IRI:
https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-data#onDelete
referenceLabel¶
c4d:referenceLabel · datatype property · reference label
What the line of a field's reference says in the Data view: uploaded by, object key.
- Domain:
c4d:Field - Range:
xsd:string - IRI:
https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-data#referenceLabel
relationKind¶
c4d:relationKind · datatype property · relation kind
What a relation means, when the model says so: ref (holds or uses the identifier of: the default), contains (composition, nesting, a document embedding another), extends (a subclass, allOf, inheritance), maps (the same thing in another schema; no direction) or assoc (a named association, an ontology object property).
- Domain:
c4d:Relation - Range:
xsd:string - IRI:
https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-data#relationKind
schemaKind¶
c4d:schemaKind · datatype property · schema kind
What sort of data model a schema is: relational, document, json-schema, ontology, object-store, queue, api or other. It decides the default kind of its entities and how the explorer names them (table, class, object).
- Domain:
c4d:Schema - Range:
xsd:string - IRI:
https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-data#schemaKind
toCardinality¶
c4d:toCardinality · datatype property · to cardinality
How many of the relation's to side take part, for one of the other side: 1, 0..1, 0..* (also written ) or 1...
- Domain:
c4d:Relation - Range:
xsd:string - IRI:
https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-data#toCardinality
represents¶
c4d:represents · annotation property · represents
The term an entity or a field is when it comes from an ontology or a JSON-LD context (an OWL class, an RDF property, a JSON-LD term's IRI), or the $id of a JSON Schema: an IRI, or an xsd:anyURI literal for a relative reference such as #/definitions/image.
- Note: An annotation property, because its value is an IRI or a literal, and because it must not make the entity the term: never owl:sameAs or owl:equivalentClass. A table that stores annotations represents iat:Annotation; it is not an instance or a subclass of it.
- IRI:
https://caviri.github.io/c4-model-agentic-plugin/ontology/c4-data#represents