Semantic model
The Kennra Semantic Model (KSM) gives the data in Kennra stable public names, and says how it maps to open standards. It sits on top of Kinds and traits. It doesn't replace them.
You use it when you export data, connect an agent, or map Kennra to another system. The API and the MCP server publish the same names and mappings, so a person, an app and an agent read the same meaning.
This is Kennra's own data model, published openly. It is version 1, and it grows by addition only.
Term addresses
Every core term has an address under https://w3id.org/kennra/v1/. The address names the term, and it links to this page.
| What | Address | Example |
|---|---|---|
| Core term | https://w3id.org/kennra/v1/{Term} | https://w3id.org/kennra/v1/Relationship |
| Workspace term (custom traits and Kinds) | https://w3id.org/kennra/v1/{workspace}/custom/{name} | https://w3id.org/kennra/v1/fjellsport-demo/custom/platform_account |
| Record | https://id.kennra.com/{workspace}/{kind}/{id} | https://id.kennra.com/fjellsport-demo/person/01jd3k9q7xw2m8c4v6t5hpa1rz |
- A record address holds only the workspace identifier, the Kind and the record's ULID. It never holds an email address, a name or any other personal data.
- A record address does not open without a token. You read records through the API, and every read is bound to a purpose.
- Changes are additive: new terms, and deprecated terms with a replacement.
v1changes only if the meaning of a term must change.
Core concepts
Party
A person or an organization. The Person and Organization Kinds.
Maps to schema:Person and schema:Organization (exact), org:Organization, foaf:Person (exact), and a JSContact Card (close).
Identifier
An identifier from a system that knows the party: an issuer, a scheme and a value. Maps to schema:identifier (close).
ContactPoint
A way to reach a person, such as an email address or a phone number, with a status and the contexts it is used in. Maps to schema:ContactPoint (close), and to JSContact email addresses and phones (narrow).
Relationship
A role between parties for a period of time, for example "CTO at Nordlys since 1 March 2022". A relationship has validFrom and validTo, so you can ask who held a role on a given date.
Maps to org:Membership and schema:OrganizationRole (close). validFrom and validTo map to schema:startDate and schema:endDate (exact).
Claim
One statement about a party, with its source, the actor who made it, a confidence, when it was true, when Kennra recorded it, the purposes allowed to read it and the legal basis. Every value in Kennra is a claim.
Maps to prov:Entity (broad), with PROV-O for source and actor.
Activity
Something that happened between you and a party: a meeting, a call, an email, a visit or a note. Maps to as:Activity (broad) and schema:CommunicateAction (close).
Commitment
Something promised or worked towards: a deal, a task, an agreement or a program enrollment. Maps to schema:Action (broad). A deal has no standard term.
Consent and Purpose
Consent per purpose and channel, with its history, and the purpose that every read and write is bound to. Maps to dpv:Consent and dpv:Purpose (exact).
Mappings
Kinds, traits and fields carry a mapsTo list. Each entry names a term in an open standard and how close the match is:
| Match | Meaning |
|---|---|
exact | The two terms mean the same and can be swapped |
close | You can convert between them, with a caveat |
broad | The external term is broader than Kennra's |
narrow | The external term is narrower than Kennra's |
"title": {
"primitive": "text",
"description": "Title or role in the organization (B2B).",
"mapsTo": [
{ "term": "schema:jobTitle", "match": "close" },
{ "term": "jscontact:Title/title", "match": "close" }
]
}title maps as close, not exact, because the field holds both a job title and a role.
You read mappings in GraphQL on TraitDefinition, TraitFieldDefinition and KindInfo (mapsTo { term iri match }), and agents read them in the MCP resource kennra://schema. You can set mapsTo on your own traits.
| Prefix | Namespace |
|---|---|
ksm | https://w3id.org/kennra/v1/ |
schema | https://schema.org/ |
jscontact | JSContact, RFC 9553 |
vcard | http://www.w3.org/2006/vcard/ns# |
org | http://www.w3.org/ns/org# |
foaf | http://xmlns.com/foaf/0.1/ |
prov | http://www.w3.org/ns/prov# |
as | https://www.w3.org/ns/activitystreams# |
dpv | https://w3id.org/dpv# |
eu-gdpr | https://w3id.org/dpv/legal/eu/gdpr# |
Purposes and legal bases
Every purpose in Kennra maps to the Data Privacy Vocabulary (DPV), and every legal basis maps to its point in GDPR Article 6(1).
| Purpose | DPV |
|---|---|
service.support | dpv:CustomerCare (exact) |
sales.b2b | dpv:CustomerRelationshipManagement (close) |
sales.clienteling | dpv:CustomerRelationshipManagement (close) |
service.personalization | dpv:ServicePersonalisation (exact) |
marketing.1to1 | dpv:DirectMarketing (close) |
marketing.pr | dpv:PublicRelations (exact) |
marketing.events | dpv:DirectMarketing (broad) |
security.fraud | dpv:FraudPreventionAndDetection (exact) |
legal.compliance | dpv:LegalCompliance (exact) |
| Legal basis | GDPR | DPV |
|---|---|---|
consent | Art. 6(1)(a) | dpv:Consent |
contract | Art. 6(1)(b) | dpv:Contract |
legal_obligation | Art. 6(1)(c) | dpv:LegalObligation |
vital_interest | Art. 6(1)(d) | dpv:VitalInterest |
public_task | Art. 6(1)(e) | dpv:PublicInterest, dpv:OfficialAuthorityOfController |
legitimate_interest | Art. 6(1)(f) | dpv:LegitimateInterest |
The tables show a selection. The full catalog is exported from the domain package, and a GraphQL field for it is planned.
Planned
- Exports as JSContact and vCard, schema.org JSON-LD, ISO/IEC TS 27560 consent records and Activity Streams.
- One relationship model for every pair of parties, including company to company (customer of, partner of).
- A view of every claim behind a value, not only the current one.