Lemmy · JSON-LD Context

Lemmy Context

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

34 Classes 34 Properties 4 Namespaces
View Context View on GitHub

Namespaces

lemmy: https://join-lemmy.org/ns#
as: https://www.w3.org/ns/activitystreams#
schema: https://schema.org/
xsd: http://www.w3.org/2001/XMLSchema#

Classes

Post Comment Community Person PrivateMessage Site Instance id type name content summary deleted removed locked nsfw local featured distinguished bot_account banned display_name bio description title domain software version listing_type sort_type path visibility posting_restricted_to_mods hidden

Properties

Property Type Container
url reference
published dateTime
updated dateTime
communityId integer
postId integer
commentId integer
personId integer
creator reference
community reference
post reference
parent reference
score integer
upvotes integer
downvotes integer
comments integer
actor_id reference
ap_id reference
avatar reference
banner reference
icon reference
subscribers integer
posts integer
active_day_count integer
active_week_count integer
active_month_count integer
active_half_year_count integer
instance_id integer
language
child_count integer
custom_thumbnail reference
federated_with reference set
linked reference set
allowed reference set
blocked reference set

JSON-LD Document

Raw ↑
{
  "@context": {
    "@version": 1.1,
    "lemmy": "https://join-lemmy.org/ns#",
    "as": "https://www.w3.org/ns/activitystreams#",
    "schema": "https://schema.org/",
    "xsd": "http://www.w3.org/2001/XMLSchema#",

    "Post": "lemmy:Post",
    "Comment": "lemmy:Comment",
    "Community": "lemmy:Community",
    "Person": "lemmy:Person",
    "PrivateMessage": "lemmy:PrivateMessage",
    "Site": "lemmy:Site",
    "Instance": "lemmy:Instance",

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

    "name": "as:name",
    "content": "as:content",
    "summary": "as:summary",
    "url": {
      "@id": "as:url",
      "@type": "@id"
    },
    "published": {
      "@id": "as:published",
      "@type": "xsd:dateTime"
    },
    "updated": {
      "@id": "as:updated",
      "@type": "xsd:dateTime"
    },
    "deleted": "lemmy:deleted",
    "removed": "lemmy:removed",
    "locked": "lemmy:locked",
    "nsfw": "lemmy:nsfw",
    "local": "lemmy:local",
    "featured": "lemmy:featured",
    "distinguished": "lemmy:distinguished",
    "bot_account": "lemmy:bot_account",
    "banned": "lemmy:banned",

    "communityId": {
      "@id": "lemmy:communityId",
      "@type": "xsd:integer"
    },
    "postId": {
      "@id": "lemmy:postId",
      "@type": "xsd:integer"
    },
    "commentId": {
      "@id": "lemmy:commentId",
      "@type": "xsd:integer"
    },
    "personId": {
      "@id": "lemmy:personId",
      "@type": "xsd:integer"
    },

    "creator": {
      "@id": "lemmy:creator",
      "@type": "@id"
    },
    "community": {
      "@id": "lemmy:community",
      "@type": "@id"
    },
    "post": {
      "@id": "lemmy:post",
      "@type": "@id"
    },
    "parent": {
      "@id": "lemmy:parent",
      "@type": "@id"
    },

    "score": {
      "@id": "lemmy:score",
      "@type": "xsd:integer"
    },
    "upvotes": {
      "@id": "lemmy:upvotes",
      "@type": "xsd:integer"
    },
    "downvotes": {
      "@id": "lemmy:downvotes",
      "@type": "xsd:integer"
    },
    "comments": {
      "@id": "lemmy:comments",
      "@type": "xsd:integer"
    },

    "actor_id": {
      "@id": "lemmy:actor_id",
      "@type": "@id"
    },
    "ap_id": {
      "@id": "lemmy:ap_id",
      "@type": "@id"
    },

    "avatar": {
      "@id": "schema:image",
      "@type": "@id"
    },
    "banner": {
      "@id": "schema:image",
      "@type": "@id"
    },
    "icon": {
      "@id": "schema:image",
      "@type": "@id"
    },

    "display_name": "schema:alternateName",
    "bio": "schema:description",
    "description": "schema:description",
    "title": "schema:headline",

    "subscribers": {
      "@id": "lemmy:subscribers",
      "@type": "xsd:integer"
    },
    "posts": {
      "@id": "lemmy:posts",
      "@type": "xsd:integer"
    },
    "active_day_count": {
      "@id": "lemmy:active_day_count",
      "@type": "xsd:integer"
    },
    "active_week_count": {
      "@id": "lemmy:active_week_count",
      "@type": "xsd:integer"
    },
    "active_month_count": {
      "@id": "lemmy:active_month_count",
      "@type": "xsd:integer"
    },
    "active_half_year_count": {
      "@id": "lemmy:active_half_year_count",
      "@type": "xsd:integer"
    },

    "instance_id": {
      "@id": "lemmy:instance_id",
      "@type": "xsd:integer"
    },
    "domain": "lemmy:domain",
    "software": "lemmy:software",
    "version": "lemmy:version",

    "listing_type": "lemmy:listing_type",
    "sort_type": "lemmy:sort_type",
    "language": {
      "@id": "schema:inLanguage"
    },

    "path": "lemmy:path",
    "child_count": {
      "@id": "lemmy:child_count",
      "@type": "xsd:integer"
    },

    "visibility": "lemmy:visibility",
    "posting_restricted_to_mods": "lemmy:posting_restricted_to_mods",
    "hidden": "lemmy:hidden",

    "custom_thumbnail": {
      "@id": "lemmy:custom_thumbnail",
      "@type": "@id"
    },

    "federated_with": {
      "@id": "lemmy:federated_with",
      "@type": "@id",
      "@container": "@set"
    },
    "linked": {
      "@id": "lemmy:linked",
      "@type": "@id",
      "@container": "@set"
    },
    "allowed": {
      "@id": "lemmy:allowed",
      "@type": "@id",
      "@container": "@set"
    },
    "blocked": {
      "@id": "lemmy:blocked",
      "@type": "@id",
      "@container": "@set"
    }
  }
}