SWAPI - Star Wars API · JSON-LD Context

Swapi Context

JSON-LD context defining the semantic vocabulary for Swapi from SWAPI - Star Wars API.

6 Classes 61 Properties 3 Namespaces
View Context View on GitHub

Namespaces

swapi: https://swapi.dev/schema#
schema: https://schema.org/
xsd: http://www.w3.org/2001/XMLSchema#

Classes

Film Person Planet Species Starship Vehicle

Properties

Property Type Container
url reference
name
title
description
created dateTime
edited dateTime
count integer
next reference
previous reference
results list
episode_id integer
opening_crawl
director
producer
release_date date
characters reference list
planets reference list
starships reference list
vehicles reference list
species reference list
height
mass
hair_color
skin_color
eye_color
birth_year
gender
homeworld reference
films reference list
rotation_period
orbital_period
diameter
climate
gravity
terrain
surface_water
population
residents reference list
classification
designation
average_height
skin_colors
hair_colors
eye_colors
average_lifespan
language
people reference list
model
manufacturer
cost_in_credits
length
max_atmosphering_speed
crew
passengers
cargo_capacity
consumables
hyperdrive_rating
MGLT
starship_class
vehicle_class
pilots reference list

JSON-LD Document

Raw ↑
{
  "@context": {
    "@version": 1.1,
    "@vocab": "https://schema.org/",
    "swapi": "https://swapi.dev/schema#",
    "schema": "https://schema.org/",
    "xsd": "http://www.w3.org/2001/XMLSchema#",

    "url":          {"@id": "schema:url",         "@type": "@id"},
    "name":         {"@id": "schema:name"},
    "title":        {"@id": "schema:name"},
    "description":  {"@id": "schema:description"},
    "created":      {"@id": "schema:dateCreated",  "@type": "xsd:dateTime"},
    "edited":       {"@id": "schema:dateModified", "@type": "xsd:dateTime"},

    "count":        {"@id": "swapi:count",         "@type": "xsd:integer"},
    "next":         {"@id": "swapi:next",          "@type": "@id"},
    "previous":     {"@id": "swapi:previous",      "@type": "@id"},
    "results":      {"@id": "swapi:results",       "@container": "@list"},

    "episode_id":   {"@id": "swapi:episodeId",     "@type": "xsd:integer"},
    "opening_crawl":{"@id": "swapi:openingCrawl"},
    "director":     {"@id": "schema:director"},
    "producer":     {"@id": "schema:producer"},
    "release_date": {"@id": "schema:datePublished", "@type": "xsd:date"},
    "characters":   {"@id": "schema:character",     "@container": "@list", "@type": "@id"},
    "planets":      {"@id": "swapi:planets",        "@container": "@list", "@type": "@id"},
    "starships":    {"@id": "swapi:starships",      "@container": "@list", "@type": "@id"},
    "vehicles":     {"@id": "swapi:vehicles",       "@container": "@list", "@type": "@id"},
    "species":      {"@id": "swapi:species",        "@container": "@list", "@type": "@id"},

    "height":       {"@id": "schema:height"},
    "mass":         {"@id": "schema:weight"},
    "hair_color":   {"@id": "swapi:hairColor"},
    "skin_color":   {"@id": "swapi:skinColor"},
    "eye_color":    {"@id": "swapi:eyeColor"},
    "birth_year":   {"@id": "swapi:birthYear"},
    "gender":       {"@id": "schema:gender"},
    "homeworld":    {"@id": "swapi:homeworld",      "@type": "@id"},
    "films":        {"@id": "swapi:films",          "@container": "@list", "@type": "@id"},

    "rotation_period":{"@id": "swapi:rotationPeriod"},
    "orbital_period": {"@id": "swapi:orbitalPeriod"},
    "diameter":     {"@id": "swapi:diameter"},
    "climate":      {"@id": "swapi:climate"},
    "gravity":      {"@id": "swapi:gravity"},
    "terrain":      {"@id": "swapi:terrain"},
    "surface_water":{"@id": "swapi:surfaceWater"},
    "population":   {"@id": "swapi:population"},
    "residents":    {"@id": "swapi:residents",      "@container": "@list", "@type": "@id"},

    "classification":   {"@id": "swapi:classification"},
    "designation":      {"@id": "swapi:designation"},
    "average_height":   {"@id": "swapi:averageHeight"},
    "skin_colors":      {"@id": "swapi:skinColors"},
    "hair_colors":      {"@id": "swapi:hairColors"},
    "eye_colors":       {"@id": "swapi:eyeColors"},
    "average_lifespan": {"@id": "swapi:averageLifespan"},
    "language":         {"@id": "schema:knowsLanguage"},
    "people":           {"@id": "swapi:people",     "@container": "@list", "@type": "@id"},

    "model":              {"@id": "schema:model"},
    "manufacturer":       {"@id": "schema:manufacturer"},
    "cost_in_credits":    {"@id": "swapi:costInCredits"},
    "length":             {"@id": "swapi:length"},
    "max_atmosphering_speed":{"@id": "swapi:maxAtmospheringSpeed"},
    "crew":               {"@id": "swapi:crew"},
    "passengers":         {"@id": "swapi:passengers"},
    "cargo_capacity":     {"@id": "swapi:cargoCapacity"},
    "consumables":        {"@id": "swapi:consumables"},
    "hyperdrive_rating":  {"@id": "swapi:hyperdriveRating"},
    "MGLT":               {"@id": "swapi:mglt"},
    "starship_class":     {"@id": "swapi:starshipClass"},
    "vehicle_class":      {"@id": "swapi:vehicleClass"},
    "pilots":             {"@id": "swapi:pilots",   "@container": "@list", "@type": "@id"},

    "Film":      "swapi:Film",
    "Person":    "swapi:Person",
    "Planet":    "swapi:Planet",
    "Species":   "swapi:Species",
    "Starship":  "swapi:Starship",
    "Vehicle":   "swapi:Vehicle"
  }
}