Skip to content

Commit

Permalink
Improve examples-schema.yaml docs
Browse files Browse the repository at this point in the history
  • Loading branch information
avillar committed Jul 25, 2023
1 parent 1bc7ceb commit 1e5b2f8
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions ogc/bblocks/examples-schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,27 +13,48 @@ items:
minItems: 1
properties:
title:
description: A title for this example
type: string
content:
description: Markdown contents to describe the example.
type: string
base-uri:
description: Base URI that will be used for semantic uplift (JSON -> JSON-LD -> Turtle).
type: string
snippets:
description: |
Collection of snippets to illustrate this example. Preferably, only one snippet per language
should be added here, as additional snippets in the same language can be created as different
examples.
type: array
items:
type: object
required:
- language
properties:
language:
description: |
The language for this snippet. Can be a file format (such as 'jsonld' or 'turtle'),
a MIME type (e.g., 'text/html'), a programming language ('python'). 'plaintext' by default.
type: string
code:
description: Code block for the snippet. Either this property or 'ref' have to be provided.
type: string
ref:
description: |
A reference to a filename (relative to the examples.yaml file) with the contents of
this snippet, as an alternative to inlining them in the 'code' property.
type: string
base-uri:
description: |
Base URI that will be used when semantically uplifting this snippet. Overrides
that of the example, if any.
type: string
doc-uplift-formats:
description: |
Uplifted snippet format, or array thereof, that will be added to the output documentation.
If omitted, both 'jsonld' and 'ttl' will be used; if empty array or null, no uplifted snippets
will be included in the documentation.
oneOf:
- type: string
enum: [jsonld, ttl]
Expand Down

0 comments on commit 1e5b2f8

Please sign in to comment.