The Cat API · JSON-LD Context

The Cat Api Context

JSON-LD context defining the semantic vocabulary for The Cat Api from The Cat API.

3 Classes 21 Properties 4 Namespaces
View Context View on GitHub

Namespaces

schema: https://schema.org/
catapi: https://api.thecatapi.com/v1/
dcterms: http://purl.org/dc/terms/
xsd: http://www.w3.org/2001/XMLSchema#

Classes

id name description

Properties

Property Type Container
Image
url reference
width integer
height integer
Breed
origin
temperament
life_span
wikipedia_url reference
intelligence integer
affection_level integer
energy_level integer
Favourite
image_id
sub_id
created_at dateTime
Vote
value integer
Category
breeds set
categories set

JSON-LD Document

Raw ↑
{
  "@context": {
    "@version": 1.1,
    "schema": "https://schema.org/",
    "catapi": "https://api.thecatapi.com/v1/",
    "dcterms": "http://purl.org/dc/terms/",
    "xsd": "http://www.w3.org/2001/XMLSchema#",

    "Image": {
      "@id": "schema:ImageObject"
    },
    "id": "@id",
    "url": {
      "@id": "schema:url",
      "@type": "@id"
    },
    "width": {
      "@id": "schema:width",
      "@type": "xsd:integer"
    },
    "height": {
      "@id": "schema:height",
      "@type": "xsd:integer"
    },

    "Breed": {
      "@id": "catapi:Breed"
    },
    "name": "schema:name",
    "description": "schema:description",
    "origin": {
      "@id": "schema:countryOfOrigin"
    },
    "temperament": {
      "@id": "catapi:temperament"
    },
    "life_span": {
      "@id": "catapi:lifeSpan"
    },
    "wikipedia_url": {
      "@id": "schema:sameAs",
      "@type": "@id"
    },
    "intelligence": {
      "@id": "catapi:intelligence",
      "@type": "xsd:integer"
    },
    "affection_level": {
      "@id": "catapi:affectionLevel",
      "@type": "xsd:integer"
    },
    "energy_level": {
      "@id": "catapi:energyLevel",
      "@type": "xsd:integer"
    },

    "Favourite": {
      "@id": "catapi:Favourite"
    },
    "image_id": {
      "@id": "catapi:imageId"
    },
    "sub_id": {
      "@id": "catapi:subId"
    },
    "created_at": {
      "@id": "dcterms:created",
      "@type": "xsd:dateTime"
    },

    "Vote": {
      "@id": "catapi:Vote"
    },
    "value": {
      "@id": "schema:ratingValue",
      "@type": "xsd:integer"
    },

    "Category": {
      "@id": "schema:DefinedTerm"
    },
    "breeds": {
      "@id": "catapi:breeds",
      "@container": "@set"
    },
    "categories": {
      "@id": "schema:keywords",
      "@container": "@set"
    }
  }
}