RESTful Services · JSON-LD Context

Restful Services Context

JSON-LD context defining the semantic vocabulary for Restful Services from RESTful Services.

13 Classes 9 Properties 5 Namespaces
View Context View on GitHub

Namespaces

schema: https://schema.org/
hydra: http://www.w3.org/ns/hydra/core#
dcterms: http://purl.org/dc/terms/
xsd: http://www.w3.org/2001/XMLSchema#
rest: https://api-evangelist.github.io/restful-services/vocab/

Classes

Resource Collection Operation Link Error id type title description detail method name version

Properties

Property Type Container
href reference
createdAt dateTime
updatedAt dateTime
status integer
expects reference
returns reference
member list
totalItems integer
url reference

JSON-LD Document

restful-services-context.jsonld Raw ↑
{
  "@context": {
    "@version": 1.1,
    "schema": "https://schema.org/",
    "hydra": "http://www.w3.org/ns/hydra/core#",
    "dcterms": "http://purl.org/dc/terms/",
    "xsd": "http://www.w3.org/2001/XMLSchema#",
    "rest": "https://api-evangelist.github.io/restful-services/vocab/",

    "Resource": "hydra:Resource",
    "Collection": "hydra:Collection",
    "Operation": "hydra:Operation",
    "Link": "hydra:Link",
    "Error": "schema:Error",

    "id": "@id",
    "type": "@type",
    "href": {
      "@id": "hydra:apiDocumentation",
      "@type": "@id"
    },
    "createdAt": {
      "@id": "dcterms:created",
      "@type": "xsd:dateTime"
    },
    "updatedAt": {
      "@id": "dcterms:modified",
      "@type": "xsd:dateTime"
    },
    "title": "dcterms:title",
    "description": "dcterms:description",
    "status": {
      "@id": "schema:status",
      "@type": "xsd:integer"
    },
    "detail": "schema:description",
    "method": "hydra:method",
    "expects": {
      "@id": "hydra:expects",
      "@type": "@id"
    },
    "returns": {
      "@id": "hydra:returns",
      "@type": "@id"
    },
    "member": {
      "@id": "hydra:member",
      "@container": "@list"
    },
    "totalItems": {
      "@id": "hydra:totalItems",
      "@type": "xsd:integer"
    },
    "name": "schema:name",
    "url": {
      "@id": "schema:url",
      "@type": "@id"
    },
    "version": "schema:version"
  }
}