kennraDocs

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.

WhatAddressExample
Core termhttps://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
Recordhttps://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. v1 changes 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 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:

MatchMeaning
exactThe two terms mean the same and can be swapped
closeYou can convert between them, with a caveat
broadThe external term is broader than Kennra's
narrowThe 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.

PrefixNamespace
ksmhttps://w3id.org/kennra/v1/
schemahttps://schema.org/
jscontactJSContact, RFC 9553
vcardhttp://www.w3.org/2006/vcard/ns#
orghttp://www.w3.org/ns/org#
foafhttp://xmlns.com/foaf/0.1/
provhttp://www.w3.org/ns/prov#
ashttps://www.w3.org/ns/activitystreams#
dpvhttps://w3id.org/dpv#
eu-gdprhttps://w3id.org/dpv/legal/eu/gdpr#

Every purpose in Kennra maps to the Data Privacy Vocabulary (DPV), and every legal basis maps to its point in GDPR Article 6(1).

PurposeDPV
service.supportdpv:CustomerCare (exact)
sales.b2bdpv:CustomerRelationshipManagement (close)
sales.clientelingdpv:CustomerRelationshipManagement (close)
service.personalizationdpv:ServicePersonalisation (exact)
marketing.1to1dpv:DirectMarketing (close)
marketing.prdpv:PublicRelations (exact)
marketing.eventsdpv:DirectMarketing (broad)
security.frauddpv:FraudPreventionAndDetection (exact)
legal.compliancedpv:LegalCompliance (exact)
Legal basisGDPRDPV
consentArt. 6(1)(a)dpv:Consent
contractArt. 6(1)(b)dpv:Contract
legal_obligationArt. 6(1)(c)dpv:LegalObligation
vital_interestArt. 6(1)(d)dpv:VitalInterest
public_taskArt. 6(1)(e)dpv:PublicInterest, dpv:OfficialAuthorityOfController
legitimate_interestArt. 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.