Affinity · JSON-LD Context

Affinity Context

JSON-LD context defining the semantic vocabulary for Affinity from Affinity.

50 Classes 14 Properties 3 Namespaces
View Context View on GitHub

Namespaces

xsd: http://www.w3.org/2001/XMLSchema#
schema: https://schema.org/
affinity: https://developer.affinity.co/vocabulary#

Classes

Person Company Opportunity List ListEntry Field FieldValue Note Interaction Meeting Attendee Reminder Webhook RelationshipStrength Tenant WhoAmI Grant CompanyMerge PersonMerge Pagination id type name description email url firstName lastName primaryEmail emails phones linkedInUrl domain domains globalIntro content mentions persons companies opportunities listEntries fields attendees nextPageToken prevPageToken subscriptions secret grantType scopes message

Properties

Property Type Container
createdAt dateTime
updatedAt dateTime
personId integer
companyId integer
opportunityId integer
listId integer
listEntryId integer
fieldId integer
noteId integer
tenantId integer
userId integer
strength decimal
webhookUrl anyURI
statusCode integer

JSON-LD Document

Raw ↑
{
  "@context": {
    "@version": 1.1,
    "xsd": "http://www.w3.org/2001/XMLSchema#",
    "schema": "https://schema.org/",
    "affinity": "https://developer.affinity.co/vocabulary#",

    "Person": "schema:Person",
    "Company": "schema:Organization",
    "Opportunity": "affinity:Opportunity",
    "List": "affinity:List",
    "ListEntry": "affinity:ListEntry",
    "Field": "affinity:Field",
    "FieldValue": "affinity:FieldValue",
    "Note": "affinity:Note",
    "Interaction": "affinity:Interaction",
    "Meeting": "schema:Event",
    "Attendee": "schema:attendee",
    "Reminder": "affinity:Reminder",
    "Webhook": "affinity:Webhook",
    "RelationshipStrength": "affinity:RelationshipStrength",
    "Tenant": "affinity:Tenant",
    "WhoAmI": "affinity:WhoAmI",
    "Grant": "affinity:Grant",
    "CompanyMerge": "affinity:CompanyMerge",
    "PersonMerge": "affinity:PersonMerge",
    "Pagination": "affinity:Pagination",

    "id": "@id",
    "type": "@type",

    "name": "schema:name",
    "description": "schema:description",
    "email": "schema:email",
    "url": "schema:url",
    "createdAt": {
      "@id": "schema:dateCreated",
      "@type": "xsd:dateTime"
    },
    "updatedAt": {
      "@id": "schema:dateModified",
      "@type": "xsd:dateTime"
    },

    "personId": {
      "@id": "affinity:personId",
      "@type": "xsd:integer"
    },
    "companyId": {
      "@id": "affinity:companyId",
      "@type": "xsd:integer"
    },
    "opportunityId": {
      "@id": "affinity:opportunityId",
      "@type": "xsd:integer"
    },
    "listId": {
      "@id": "affinity:listId",
      "@type": "xsd:integer"
    },
    "listEntryId": {
      "@id": "affinity:listEntryId",
      "@type": "xsd:integer"
    },
    "fieldId": {
      "@id": "affinity:fieldId",
      "@type": "xsd:integer"
    },
    "noteId": {
      "@id": "affinity:noteId",
      "@type": "xsd:integer"
    },
    "tenantId": {
      "@id": "affinity:tenantId",
      "@type": "xsd:integer"
    },
    "userId": {
      "@id": "affinity:userId",
      "@type": "xsd:integer"
    },

    "firstName": "schema:givenName",
    "lastName": "schema:familyName",
    "primaryEmail": "schema:email",
    "emails": "schema:email",
    "phones": "schema:telephone",
    "linkedInUrl": "schema:sameAs",

    "domain": "schema:url",
    "domains": "affinity:domains",
    "globalIntro": "schema:description",

    "content": "schema:text",
    "mentions": "affinity:mentions",

    "persons": "affinity:persons",
    "companies": "affinity:companies",
    "opportunities": "affinity:opportunities",
    "listEntries": "affinity:listEntries",
    "fields": "affinity:fields",
    "attendees": "schema:attendee",

    "nextPageToken": "affinity:nextPageToken",
    "prevPageToken": "affinity:prevPageToken",

    "strength": {
      "@id": "affinity:strength",
      "@type": "xsd:decimal"
    },

    "webhookUrl": {
      "@id": "affinity:webhookUrl",
      "@type": "xsd:anyURI"
    },
    "subscriptions": "affinity:subscriptions",
    "secret": "affinity:secret",

    "grantType": "affinity:grantType",
    "scopes": "affinity:scopes",

    "statusCode": {
      "@id": "affinity:statusCode",
      "@type": "xsd:integer"
    },
    "message": "schema:description"
  }
}