Skip to content

Commit

Permalink
started extension of schemas for classical commentary documents (as p…
Browse files Browse the repository at this point in the history
…er issue #24)
  • Loading branch information
Matteo Romanello committed Oct 7, 2021
1 parent 7570caf commit c43b79b
Show file tree
Hide file tree
Showing 55 changed files with 1,535 additions and 751 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ documentation:
# make sure to install the correct jsonschema2md tool:
# npm install -g @adobe/jsonschema2md
jsonschema2md -d json/newspaper/ --header false -n -v 06 -o docs -x - -s propTable
jsonschema2md -d json/commentary/ --header false -n -v 06 -o docs -x - -s propTable
jsonschema2md -d json/topic_model/ --header false -n -v 06 -o docs -x - -s propTable
jsonschema2md -d json/language_identification/ --header false -n -v 06 -o docs -x - -s propTable
#jsonschema2md -d json/linguistic_annotation/ -n -v 06 -o docs
Expand Down
3 changes: 3 additions & 0 deletions docs/commentary-properties-cc.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## cc Type

`boolean`
3 changes: 3 additions & 0 deletions docs/commentary-properties-cdt.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## cdt Type

`string`
3 changes: 3 additions & 0 deletions docs/commentary-properties-id.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## id Type

`string`
3 changes: 3 additions & 0 deletions docs/commentary-properties-iiif.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## iiif Type

`string`
3 changes: 3 additions & 0 deletions docs/commentary-properties-r-items-properties-c-items.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## items Type

`integer`
7 changes: 7 additions & 0 deletions docs/commentary-properties-r-items-properties-c.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
## c Type

`integer[]`

## c Constraints

**minimum number of items**: the minimum number of items for this array is: `4`
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## items Type

`integer`
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
## c Type

`integer[]`

## c Constraints

**minimum number of items**: the minimum number of items for this array is: `4`
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## items Type

`integer`
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
## c Type

`integer[]`

## c Constraints

**minimum number of items**: the minimum number of items for this array is: `4`
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## gn Type

`boolean`
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## hy Type

`boolean`
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## nf Type

`string`
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## s Type

`integer`
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## tx Type

`string`
Original file line number Diff line number Diff line change
@@ -0,0 +1,126 @@
## items Type

`object` ([Details](commentary-properties-r-items-properties-p-items-properties-l-items-properties-t-items.md))

# items Properties

| Property | Type | Required | Nullable | Defined by |
| :-------- | :-------- | :------- | :------------- | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [c](#c) | `array` | Required | cannot be null | [Commmentary Page](commentary-properties-r-items-properties-p-items-properties-l-items-properties-t-items-properties-c.md "https://impresso.github.io/impresso-schemas/json/commentary/page.schema.json#/properties/r/items/properties/p/items/properties/l/items/properties/t/items/properties/c") |
| [tx](#tx) | `string` | Required | cannot be null | [Commmentary Page](commentary-properties-r-items-properties-p-items-properties-l-items-properties-t-items-properties-tx.md "https://impresso.github.io/impresso-schemas/json/commentary/page.schema.json#/properties/r/items/properties/p/items/properties/l/items/properties/t/items/properties/tx") |
| [s](#s) | `integer` | Optional | cannot be null | [Commmentary Page](commentary-properties-r-items-properties-p-items-properties-l-items-properties-t-items-properties-s.md "https://impresso.github.io/impresso-schemas/json/commentary/page.schema.json#/properties/r/items/properties/p/items/properties/l/items/properties/t/items/properties/s") |
| [gn](#gn) | `boolean` | Optional | cannot be null | [Commmentary Page](commentary-properties-r-items-properties-p-items-properties-l-items-properties-t-items-properties-gn.md "https://impresso.github.io/impresso-schemas/json/commentary/page.schema.json#/properties/r/items/properties/p/items/properties/l/items/properties/t/items/properties/gn") |
| [hy](#hy) | `boolean` | Optional | cannot be null | [Commmentary Page](commentary-properties-r-items-properties-p-items-properties-l-items-properties-t-items-properties-hy.md "https://impresso.github.io/impresso-schemas/json/commentary/page.schema.json#/properties/r/items/properties/p/items/properties/l/items/properties/t/items/properties/hy") |
| [nf](#nf) | `string` | Optional | cannot be null | [Commmentary Page](commentary-properties-r-items-properties-p-items-properties-l-items-properties-t-items-properties-nf.md "https://impresso.github.io/impresso-schemas/json/commentary/page.schema.json#/properties/r/items/properties/p/items/properties/l/items/properties/t/items/properties/nf") |

## c

Coordinates of image-region.

`c`

* is required

* Type: `integer[]`

* cannot be null

* defined in: [Commmentary Page](commentary-properties-r-items-properties-p-items-properties-l-items-properties-t-items-properties-c.md "https://impresso.github.io/impresso-schemas/json/commentary/page.schema.json#/properties/r/items/properties/p/items/properties/l/items/properties/t/items/properties/c")

### c Type

`integer[]`

### c Constraints

**minimum number of items**: the minimum number of items for this array is: `4`

## tx

Token surface form.

`tx`

* is required

* Type: `string`

* cannot be null

* defined in: [Commmentary Page](commentary-properties-r-items-properties-p-items-properties-l-items-properties-t-items-properties-tx.md "https://impresso.github.io/impresso-schemas/json/commentary/page.schema.json#/properties/r/items/properties/p/items/properties/l/items/properties/t/items/properties/tx")

### tx Type

`string`

## s

A style ID as defined in issue.schema.json/s

`s`

* is optional

* Type: `integer`

* cannot be null

* defined in: [Commmentary Page](commentary-properties-r-items-properties-p-items-properties-l-items-properties-t-items-properties-s.md "https://impresso.github.io/impresso-schemas/json/commentary/page.schema.json#/properties/r/items/properties/p/items/properties/l/items/properties/t/items/properties/s")

### s Type

`integer`

## gn

Indicates whether the token is/should be followed by a whitespace. `gn==true` means no white space is required (`gn` stands for 'glue next'). When not specified it is assumed to be `false`.

`gn`

* is optional

* Type: `boolean`

* cannot be null

* defined in: [Commmentary Page](commentary-properties-r-items-properties-p-items-properties-l-items-properties-t-items-properties-gn.md "https://impresso.github.io/impresso-schemas/json/commentary/page.schema.json#/properties/r/items/properties/p/items/properties/l/items/properties/t/items/properties/gn")

### gn Type

`boolean`

## hy

Indicates whether the token constitutes the former part of a hyphenated word (including hyphen). When not specified it is assumed to be `false`.

`hy`

* is optional

* Type: `boolean`

* cannot be null

* defined in: [Commmentary Page](commentary-properties-r-items-properties-p-items-properties-l-items-properties-t-items-properties-hy.md "https://impresso.github.io/impresso-schemas/json/commentary/page.schema.json#/properties/r/items/properties/p/items/properties/l/items/properties/t/items/properties/hy")

### hy Type

`boolean`

## nf

It is specified on the latter part(s) of a hyphenated word, and contains its normalized (dehyphenated) form.

`nf`

* is optional

* Type: `string`

* cannot be null

* defined in: [Commmentary Page](commentary-properties-r-items-properties-p-items-properties-l-items-properties-t-items-properties-nf.md "https://impresso.github.io/impresso-schemas/json/commentary/page.schema.json#/properties/r/items/properties/p/items/properties/l/items/properties/t/items/properties/nf")

### nf Type

`string`
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## t Type

`object[]` ([Details](commentary-properties-r-items-properties-p-items-properties-l-items-properties-t-items.md))
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
## items Type

`object` ([Details](commentary-properties-r-items-properties-p-items-properties-l-items.md))

# items Properties

| Property | Type | Required | Nullable | Defined by |
| :------- | :------ | :------- | :------------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| [c](#c) | `array` | Required | cannot be null | [Commmentary Page](commentary-properties-r-items-properties-p-items-properties-l-items-properties-c.md "https://impresso.github.io/impresso-schemas/json/commentary/page.schema.json#/properties/r/items/properties/p/items/properties/l/items/properties/c") |
| [t](#t) | `array` | Required | cannot be null | [Commmentary Page](commentary-properties-r-items-properties-p-items-properties-l-items-properties-t.md "https://impresso.github.io/impresso-schemas/json/commentary/page.schema.json#/properties/r/items/properties/p/items/properties/l/items/properties/t") |

## c

Coordinates of image-region.

`c`

* is required

* Type: `integer[]`

* cannot be null

* defined in: [Commmentary Page](commentary-properties-r-items-properties-p-items-properties-l-items-properties-c.md "https://impresso.github.io/impresso-schemas/json/commentary/page.schema.json#/properties/r/items/properties/p/items/properties/l/items/properties/c")

### c Type

`integer[]`

### c Constraints

**minimum number of items**: the minimum number of items for this array is: `4`

## t

Tokens (as detected by the OCR engine).

`t`

* is required

* Type: `object[]` ([Details](commentary-properties-r-items-properties-p-items-properties-l-items-properties-t-items.md))

* cannot be null

* defined in: [Commmentary Page](commentary-properties-r-items-properties-p-items-properties-l-items-properties-t.md "https://impresso.github.io/impresso-schemas/json/commentary/page.schema.json#/properties/r/items/properties/p/items/properties/l/items/properties/t")

### t Type

`object[]` ([Details](commentary-properties-r-items-properties-p-items-properties-l-items-properties-t-items.md))
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## l Type

`object[]` ([Details](commentary-properties-r-items-properties-p-items-properties-l-items.md))
27 changes: 27 additions & 0 deletions docs/commentary-properties-r-items-properties-p-items.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
## items Type

`object` ([Details](commentary-properties-r-items-properties-p-items.md))

# items Properties

| Property | Type | Required | Nullable | Defined by |
| :------- | :------ | :------- | :------------- | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [l](#l) | `array` | Required | cannot be null | [Commmentary Page](commentary-properties-r-items-properties-p-items-properties-l.md "https://impresso.github.io/impresso-schemas/json/commentary/page.schema.json#/properties/r/items/properties/p/items/properties/l") |

## l

Lines of text (belonging to a given paragraph)

`l`

* is required

* Type: `object[]` ([Details](commentary-properties-r-items-properties-p-items-properties-l-items.md))

* cannot be null

* defined in: [Commmentary Page](commentary-properties-r-items-properties-p-items-properties-l.md "https://impresso.github.io/impresso-schemas/json/commentary/page.schema.json#/properties/r/items/properties/p/items/properties/l")

### l Type

`object[]` ([Details](commentary-properties-r-items-properties-p-items-properties-l-items.md))
3 changes: 3 additions & 0 deletions docs/commentary-properties-r-items-properties-p.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## p Type

`object[]` ([Details](commentary-properties-r-items-properties-p-items.md))
3 changes: 3 additions & 0 deletions docs/commentary-properties-r-items-properties-pof.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## pOf Type

`string`
69 changes: 69 additions & 0 deletions docs/commentary-properties-r-items.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
## items Type

`object` ([Details](commentary-properties-r-items.md))

# items Properties

| Property | Type | Required | Nullable | Defined by |
| :---------- | :------- | :------- | :------------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| [c](#c) | `array` | Required | cannot be null | [Commmentary Page](commentary-properties-r-items-properties-c.md "https://impresso.github.io/impresso-schemas/json/commentary/page.schema.json#/properties/r/items/properties/c") |
| [p](#p) | `array` | Required | cannot be null | [Commmentary Page](commentary-properties-r-items-properties-p.md "https://impresso.github.io/impresso-schemas/json/commentary/page.schema.json#/properties/r/items/properties/p") |
| [pOf](#pof) | `string` | Optional | cannot be null | [Commmentary Page](commentary-properties-r-items-properties-pof.md "https://impresso.github.io/impresso-schemas/json/commentary/page.schema.json#/properties/r/items/properties/pOf") |

## c

Coordinates of image-region, following IIIF regions schema (x, y, width, height).

`c`

* is required

* Type: `integer[]`

* cannot be null

* defined in: [Commmentary Page](commentary-properties-r-items-properties-c.md "https://impresso.github.io/impresso-schemas/json/commentary/page.schema.json#/properties/r/items/properties/c")

### c Type

`integer[]`

### c Constraints

**minimum number of items**: the minimum number of items for this array is: `4`

## p

Text paragraphs.

`p`

* is required

* Type: `object[]` ([Details](commentary-properties-r-items-properties-p-items.md))

* cannot be null

* defined in: [Commmentary Page](commentary-properties-r-items-properties-p.md "https://impresso.github.io/impresso-schemas/json/commentary/page.schema.json#/properties/r/items/properties/p")

### p Type

`object[]` ([Details](commentary-properties-r-items-properties-p-items.md))

## pOf

The canonical ID of the content item to which the page region belongs.

`pOf`

* is optional

* Type: `string`

* cannot be null

* defined in: [Commmentary Page](commentary-properties-r-items-properties-pof.md "https://impresso.github.io/impresso-schemas/json/commentary/page.schema.json#/properties/r/items/properties/pOf")

### pOf Type

`string`
3 changes: 3 additions & 0 deletions docs/commentary-properties-r.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## r Type

`object[]` ([Details](commentary-properties-r-items.md))
Loading

0 comments on commit c43b79b

Please sign in to comment.