Perforce · JSON-LD Context

Perforce Context

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

0 Classes 9 Properties 4 Namespaces
View Context View on GitHub

Namespaces

swarm: https://help.perforce.com/helix-core/helix-swarm/ns/
schema: https://schema.org/
xsd: http://www.w3.org/2001/XMLSchema#
dcterms: http://purl.org/dc/terms/

Properties

Property Type Container
Review
Comment
Activity
Project
Change
Participant
ReviewerGroup
ReviewVersion
CommentContext

JSON-LD Document

Raw ↑
{
  "@context": {
    "@version": 1.1,
    "swarm": "https://help.perforce.com/helix-core/helix-swarm/ns/",
    "schema": "https://schema.org/",
    "xsd": "http://www.w3.org/2001/XMLSchema#",
    "dcterms": "http://purl.org/dc/terms/",

    "Review": {
      "@id": "swarm:Review",
      "@context": {
        "id": "schema:identifier",
        "author": {
          "@id": "schema:author",
          "@type": "@id"
        },
        "description": "schema:description",
        "state": "swarm:state",
        "stateLabel": "swarm:stateLabel",
        "type": "swarm:reviewType",
        "changes": {
          "@id": "swarm:changes",
          "@container": "@set"
        },
        "commits": {
          "@id": "swarm:commits",
          "@container": "@set"
        },
        "participants": {
          "@id": "swarm:participants",
          "@type": "@id"
        },
        "groups": {
          "@id": "swarm:reviewerGroups",
          "@container": "@set"
        },
        "projects": {
          "@id": "swarm:associatedProjects",
          "@type": "@id"
        },
        "pending": "swarm:isPending",
        "testStatus": "swarm:testStatus",
        "deployStatus": "swarm:deployStatus",
        "versions": {
          "@id": "swarm:versions",
          "@container": "@list"
        },
        "created": {
          "@id": "dcterms:created",
          "@type": "xsd:integer"
        },
        "updated": {
          "@id": "dcterms:modified",
          "@type": "xsd:integer"
        },
        "updateDate": {
          "@id": "dcterms:modified",
          "@type": "xsd:dateTime"
        }
      }
    },

    "Comment": {
      "@id": "swarm:Comment",
      "@context": {
        "id": "schema:identifier",
        "body": "schema:text",
        "user": {
          "@id": "schema:author",
          "@type": "@id"
        },
        "topic": "swarm:topic",
        "taskState": "swarm:taskState",
        "context": "swarm:inlineContext",
        "flags": {
          "@id": "swarm:flags",
          "@container": "@set"
        },
        "likes": {
          "@id": "swarm:likes",
          "@container": "@set"
        },
        "attachments": {
          "@id": "swarm:attachments",
          "@container": "@set"
        },
        "time": {
          "@id": "dcterms:created",
          "@type": "xsd:integer"
        },
        "updated": {
          "@id": "dcterms:modified",
          "@type": "xsd:integer"
        },
        "edited": {
          "@id": "swarm:editedAt",
          "@type": "xsd:integer"
        }
      }
    },

    "Activity": {
      "@id": "swarm:Activity",
      "@context": {
        "id": "schema:identifier",
        "action": "swarm:action",
        "user": {
          "@id": "schema:agent",
          "@type": "@id"
        },
        "target": "swarm:target",
        "type": "swarm:activityType",
        "description": "schema:description",
        "topic": "swarm:topic",
        "change": "swarm:changelistId",
        "link": {
          "@id": "schema:url",
          "@type": "@id"
        },
        "streams": {
          "@id": "swarm:streams",
          "@container": "@set"
        },
        "date": {
          "@id": "dcterms:date",
          "@type": "xsd:dateTime"
        }
      }
    },

    "Project": {
      "@id": "swarm:Project",
      "@context": {
        "id": "schema:identifier",
        "name": "schema:name",
        "description": "schema:description",
        "members": {
          "@id": "schema:member",
          "@container": "@set"
        },
        "owners": {
          "@id": "swarm:owners",
          "@container": "@set"
        },
        "subgroups": {
          "@id": "swarm:subgroups",
          "@container": "@set"
        },
        "branches": {
          "@id": "swarm:branches",
          "@container": "@set"
        },
        "private": "swarm:isPrivate",
        "deleted": "swarm:isDeleted",
        "workflow": "swarm:workflow",
        "jobview": "swarm:jobview",
        "minimumUpVotes": "swarm:minimumUpVotes",
        "retainDefaultReviewers": "swarm:retainDefaultReviewers",
        "readme": "swarm:readme"
      }
    },

    "Change": {
      "@id": "swarm:Change",
      "@context": {
        "id": "schema:identifier",
        "projects": {
          "@id": "swarm:affectedProjects",
          "@type": "@id"
        },
        "defaultReviewers": {
          "@id": "swarm:defaultReviewers",
          "@type": "@id"
        }
      }
    },

    "Participant": {
      "@id": "swarm:Participant",
      "@context": {
        "vote": "swarm:vote",
        "required": "swarm:isRequired"
      }
    },

    "ReviewerGroup": {
      "@id": "swarm:ReviewerGroup",
      "@context": {
        "name": "schema:name",
        "required": "swarm:isRequired",
        "quorum": "swarm:quorum"
      }
    },

    "ReviewVersion": {
      "@id": "swarm:ReviewVersion",
      "@context": {
        "change": "swarm:changelistId",
        "user": {
          "@id": "schema:author",
          "@type": "@id"
        },
        "time": {
          "@id": "dcterms:created",
          "@type": "xsd:integer"
        },
        "pending": "swarm:isPending",
        "stream": "swarm:stream",
        "difference": "swarm:difference",
        "archiveChange": "swarm:archiveChangelistId"
      }
    },

    "CommentContext": {
      "@id": "swarm:CommentContext",
      "@context": {
        "file": "swarm:depotFile",
        "leftLine": "swarm:leftLineNumber",
        "rightLine": "swarm:rightLineNumber",
        "content": "swarm:contextContent",
        "version": "swarm:reviewVersion"
      }
    }
  }
}