PoetryDB · JSON-LD Context

context Context

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

5 Classes 1 Properties 1 Namespaces
View Context View on GitHub

Namespaces

poetrydb: https://poetrydb.org/vocab#

Classes

title lines linecount Poem Person

Properties

Property Type Container
author reference

JSON-LD Document

Raw ↑
{
  "@context": {
    "@vocab": "https://schema.org/",
    "poetrydb": "https://poetrydb.org/vocab#",
    "title": "name",
    "author": {
      "@id": "author",
      "@type": "@id"
    },
    "lines": "text",
    "linecount": "poetrydb:linecount",
    "Poem": "CreativeWork",
    "Person": "Person"
  },
  "@type": "APIReference",
  "name": "PoetryDB API",
  "description": "Public REST API for searching English-language poems by author, title, lines, and line count.",
  "url": "https://poetrydb.org",
  "provider": {
    "@type": "Organization",
    "name": "thundercomb",
    "url": "https://github.com/thundercomb"
  },
  "license": "https://www.gnu.org/licenses/old-licenses/gpl-2.0.html",
  "encodingFormat": "application/json",
  "potentialAction": [
    {
      "@type": "SearchAction",
      "name": "Search by author",
      "target": "https://poetrydb.org/author/{author}",
      "query-input": "required name=author"
    },
    {
      "@type": "SearchAction",
      "name": "Search by title",
      "target": "https://poetrydb.org/title/{title}",
      "query-input": "required name=title"
    },
    {
      "@type": "SearchAction",
      "name": "Search by line content",
      "target": "https://poetrydb.org/lines/{lines}",
      "query-input": "required name=lines"
    },
    {
      "@type": "SearchAction",
      "name": "Search by line count",
      "target": "https://poetrydb.org/linecount/{linecount}",
      "query-input": "required name=linecount"
    }
  ]
}