Semantic compatibility playground

Compare two schemas, combine structural checks with semantic reasoning, and explore how x-concept changes the result.

JSON schema
input
Semantic library
canonicalize, simplify, combine
Structured result
schema, checker, or boolean answer

Each example shows one compatibility case for two JSON schemas.

What it means

The first schema is the one you want to validate or publish.

{ "$schema":"http://json-schema.org/draft-04/schema#", "additionalProperties":false, "description":"Producer output schema.", "properties":{ "X":{ "$schema":"http://json-schema.org/draft-04/schema#", "items":{ "items":[ { "description":"sepal length (cm)", "type":"number" }, { "description":"sepal width (cm)", "type":"number" }, { "description":"petal length (cm)", "type":"number" }, { "description":"petal width (cm)", "type":"number" } ], "maxItems":4, "minItems":4, "type":"array" }, "maxItems":120, "minItems":120, "type":"array" }, "y":{ "description":"Labels produced for each row.", "items":{ "type":"number" }, "type":"array" } }, "required":[ "X", "y" ], "type":"object" }
What it means

The second schema is the one you want to consume or compare against.

{ "$schema":"http://json-schema.org/draft-04/schema#", "additionalProperties":false, "description":"Input data schema.", "properties":{ "X":{ "description":"Features; the outer array is over samples.", "items":{ "items":{ "type":"number" }, "type":"array" }, "type":"array" }, "y":{ "description":"Target class labels; the array is over samples.", "items":{ "type":"number", "x-concept":"https://ci.mines-stetienne.fr/semantic-jsonsubschema/example#FluidTemperature" }, "type":"array" } }, "required":[ "X", "y" ], "type":"object", "x-concept":"https://example.org/Object" }
How it works

Choose how the library should behave when one or both schemas are missing x-concept.

{ "x_not_defined_y_defined": true, "x_defined_y_not_defined": true, "x_not_defined_y_not_defined": true }
What it means

Use an ontology IRI or paste Turtle directly when you want semantic comparison across concepts.

{"ontology": "https://ci.mines-stetienne.fr/semantic-jsonsubschema/example"}