GET /schema-org
Returns Schema.org / JSON-LD documents with vocabulary and context violations. Default points @context at a non-existent IRI. Use ?mode= to isolate other violations: unknown @type, missing required properties, or a context array that shadows a schema.org term.
mode
context-lie (default; @context points at https://schema.example.invalid; JSON-LD processors that dereference get a 404, those that match by IRI treat properties as unknown terms), type-unknown (@type is "ChaosEntity", not in the vocabulary; rich-result renderers reject), missing-required (Recipe without name or recipeIngredient; search crawlers silently drop the rich result), context-array-conflict (second @context entry remaps "name" to a custom IRI, shadowing schema.org's definition; strict JSON-LD applies the last definition).
control Compare against the well-formed counterpart: not.catastrophic.io/schema-org side-by-side
build a request:
expect: A JSON-LD document served as application/ld+json with one Schema.org spec violation. The `note` field in the body explains what is wrong.
curl -si 'https://chaos.catastrophic.io/schema-org?mode=context-lie' | grep -E '^(HTTP|content-type|x-chaos)'
import urllib.request, json
resp = urllib.request.urlopen("https://chaos.catastrophic.io/schema-org?mode=context-lie")
print("Content-Type:", resp.headers.get("Content-Type"))
print("X-Chaos-Schema-Org-Mode:", resp.headers.get("X-Chaos-Schema-Org-Mode"))
body = json.loads(resp.read())
ctx = body.get("@context")
print("@context:", ctx)
print("@type:", body.get("@type"))
print("note:", body.get("note"))
const res = await fetch("https://chaos.catastrophic.io/schema-org?mode=context-lie");
const body = await res.json();
console.log("Content-Type:", res.headers.get("content-type"));
console.log("X-Chaos-Schema-Org-Mode:", res.headers.get("x-chaos-schema-org-mode"));
console.log("@context:", body["@context"]);
console.log("@type:", body["@type"]);
console.log("note:", body.note);
package main
import (
"encoding/json"
"fmt"
"io"
"net/http"
)
func main() {
resp, _ := http.Get("https://chaos.catastrophic.io/schema-org?mode=context-lie")
defer resp.Body.Close()
raw, _ := io.ReadAll(resp.Body)
var body map[string]any
json.Unmarshal(raw, &body)
fmt.Println("Content-Type:", resp.Header.Get("Content-Type"))
fmt.Println("X-Chaos-Schema-Org-Mode:", resp.Header.Get("X-Chaos-Schema-Org-Mode"))
fmt.Printf("@context: %v\n", body["@context"])
fmt.Printf("@type: %v\n", body["@type"])
}
// Cargo.toml: reqwest = { version = "0.12", features = ["blocking", "json"] }
fn main() -> Result<(), Box> {
let resp = reqwest::blocking::get("https://chaos.catastrophic.io/schema-org?mode=context-lie")?;
println!("Content-Type: {:?}", resp.headers().get("content-type"));
println!("X-Chaos-Schema-Org-Mode: {:?}", resp.headers().get("x-chaos-schema-org-mode"));
let body: serde_json::Value = resp.json()?;
println!("@context: {:?}", body.get("@context"));
println!("@type: {:?}", body.get("@type"));
Ok(())
}
import java.net.URI;
import java.net.http.*;
public class SchemaOrgChaos {
public static void main(String[] args) throws Exception {
var client = HttpClient.newHttpClient();
var req = HttpRequest.newBuilder(URI.create("https://chaos.catastrophic.io/schema-org?mode=context-lie")).build();
var resp = client.send(req, HttpResponse.BodyHandlers.ofString());
System.out.println("Content-Type: " +
resp.headers().firstValue("Content-Type").orElse(""));
System.out.println("X-Chaos-Schema-Org-Mode: " +
resp.headers().firstValue("X-Chaos-Schema-Org-Mode").orElse(""));
System.out.println("Body: " + resp.body());
}
}
using var client = new HttpClient();
var resp = await client.GetAsync("https://chaos.catastrophic.io/schema-org?mode=context-lie");
Console.WriteLine($"Content-Type: {resp.Content.Headers.ContentType}");
Console.WriteLine($"X-Chaos-Schema-Org-Mode: " +
$"{resp.Headers.GetValues("X-Chaos-Schema-Org-Mode").FirstOrDefault()}");
var body = await resp.Content.ReadAsStringAsync();
Console.WriteLine($"Body: {body}");
require "net/http"
require "json"
uri = URI("https://chaos.catastrophic.io/schema-org?mode=context-lie")
Net::HTTP.start(uri.host, uri.port, use_ssl: true) do |http|
res = http.get(uri.request_uri)
puts "Content-Type: #{res['Content-Type']}"
puts "X-Chaos-Schema-Org-Mode: #{res['X-Chaos-Schema-Org-Mode']}"
body = JSON.parse(res.body)
puts "@context: #{body['@context']}"
puts "@type: #{body['@type']}"
end
$r = Invoke-RestMethod -Uri 'https://chaos.catastrophic.io/schema-org?mode=context-lie' -ResponseHeadersVariable h
"Content-Type: $($h['Content-Type'])"
"X-Chaos-Schema-Org-Mode: $($h['X-Chaos-Schema-Org-Mode'])"
"@context: $($r.'@context')"
"@type: $($r.'@type')"
headers
body