I'm trying to create a graph database for describing power systems and this is my first time using JSON-LD.
Steps so far:
- Created a schema according to the following guide
- Saved the schema to this url
- Attempted to use JSON-LD playground to create and validate and instance of a power-station object described in the schema
The issue I'm facing is that my schema seems to be accepted (changing it creates an error) but no output is shown and no explanation is provided. Any help to work out what I'm missing would be much appreciated.
Schema
{
"$id": "https://osuked.github.io/Power-Station-Dictionary/power-station",
"type": "object",
"properties": {
"capacity": { "type": "float" },
"fuel-type": { "type": "string" }
},
"required": ["capacity", "fuel-type"]
}
Example object instance
{
"@context": "https://osuked.github.io/Power-Station-Dictionary/power-station.json",
"@id": "http://osuked.github.io/Drax",
"capacity": 12,
"fuel-type": "wind"
}
