REST · JSON-LD Context

Rest Context

JSON-LD context defining the semantic vocabulary for Rest from REST.

9 Classes 5 Properties 5 Namespaces
View Context View on GitHub

Namespaces

rest: https://restfulapi.net/ns/
http: http://www.w3.org/2011/http#
iana: https://www.iana.org/assignments/
dcterms: http://purl.org/dc/terms/
xsd: http://www.w3.org/2001/XMLSchema#

Classes

Resource Representation Endpoint API Operation mediaType description name version

Properties

Property Type Container
method string
path string
statusCode integer
url reference
documentation reference

JSON-LD Document

rest-context.jsonld Raw ↑
{
  "@context": {
    "@vocab": "https://schema.org/",
    "rest": "https://restfulapi.net/ns/",
    "http": "http://www.w3.org/2011/http#",
    "iana": "https://www.iana.org/assignments/",
    "dcterms": "http://purl.org/dc/terms/",
    "xsd": "http://www.w3.org/2001/XMLSchema#",

    "Resource": "rest:Resource",
    "Representation": "rest:Representation",
    "Endpoint": "schema:EntryPoint",
    "API": "schema:WebAPI",
    "Operation": "schema:Action",

    "method": {
      "@id": "http:method",
      "@type": "xsd:string"
    },
    "path": {
      "@id": "rest:path",
      "@type": "xsd:string"
    },
    "statusCode": {
      "@id": "http:statusCode",
      "@type": "xsd:integer"
    },
    "mediaType": "schema:encodingFormat",
    "description": "schema:description",
    "name": "schema:name",
    "version": "schema:version",
    "url": {
      "@id": "schema:url",
      "@type": "@id"
    },
    "documentation": {
      "@id": "schema:documentation",
      "@type": "@id"
    }
  }
}