Skip to content

Commit

Permalink
Building blocks postprocessing
Browse files Browse the repository at this point in the history
  • Loading branch information
avillar committed Jan 22, 2024
1 parent 7e65508 commit 0171db3
Show file tree
Hide file tree
Showing 235 changed files with 33,309 additions and 6,657 deletions.
640 changes: 638 additions & 2 deletions annotated-schemas/geo/features/feature/schema-oas3.0.json

Large diffs are not rendered by default.

458 changes: 456 additions & 2 deletions annotated-schemas/geo/features/feature/schema-oas3.0.yaml

Large diffs are not rendered by default.

1,203 changes: 1,200 additions & 3 deletions annotated-schemas/geo/features/featureCollection/schema-oas3.0.json

Large diffs are not rendered by default.

832 changes: 829 additions & 3 deletions annotated-schemas/geo/features/featureCollection/schema-oas3.0.yaml

Large diffs are not rendered by default.

1,380 changes: 1,366 additions & 14 deletions annotated-schemas/geo/json-fg/feature-lenient/schema-oas3.0.json

Large diffs are not rendered by default.

928 changes: 916 additions & 12 deletions annotated-schemas/geo/json-fg/feature-lenient/schema-oas3.0.yaml

Large diffs are not rendered by default.

1,380 changes: 1,366 additions & 14 deletions annotated-schemas/geo/json-fg/feature/schema-oas3.0.json

Large diffs are not rendered by default.

928 changes: 916 additions & 12 deletions annotated-schemas/geo/json-fg/feature/schema-oas3.0.yaml

Large diffs are not rendered by default.

2,041 changes: 2,032 additions & 9 deletions annotated-schemas/geo/json-fg/featureCollection-lenient/schema-oas3.0.json

Large diffs are not rendered by default.

1,363 changes: 1,355 additions & 8 deletions annotated-schemas/geo/json-fg/featureCollection-lenient/schema-oas3.0.yaml

Large diffs are not rendered by default.

2,046 changes: 2,037 additions & 9 deletions annotated-schemas/geo/json-fg/featureCollection/schema-oas3.0.json

Large diffs are not rendered by default.

1,368 changes: 1,360 additions & 8 deletions annotated-schemas/geo/json-fg/featureCollection/schema-oas3.0.yaml

Large diffs are not rendered by default.

70 changes: 57 additions & 13 deletions annotated-schemas/geo/json-fg/link-role/schema-oas3.0.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,28 +4,20 @@
"description": "annotated link with role and conformance",
"$defs": {
"coderef": {
"$ref": "../../../ogc-utils/iri-or-curie/schema.json"
"$ref": "https://opengeospatial.github.io/bblocks/annotated-schemas/geo/json-fg/link-role/schema-oas3.0.json#/x-defs/ogc.ogc-utils.iri-or-curie"
},
"coderefs": {
"$ref": "../../../ogc-utils/iri-or-curie/schema.json"
"$ref": "https://opengeospatial.github.io/bblocks/annotated-schemas/geo/json-fg/link-role/schema-oas3.0.json#/x-defs/ogc.ogc-utils.iri-or-curie"
}
},
"allOf": [
{
"$ref": "../../../ogc-utils/json-link/schema.json"
"$ref": "https://opengeospatial.github.io/bblocks/annotated-schemas/geo/json-fg/link-role/schema-oas3.0.json#/x-defs/ogc.ogc-utils.json-link"
},
{
"properties": {
"role": {
"$ref": "#/$defs/coderef",
"x-jsonld-id": "http://www.w3.org/ns/dx/prof/hasRole",
"x-jsonld-type": "@id"
},
"conformsTo": {
"$ref": "#/$defs/coderefs",
"x-jsonld-id": "http://purl.org/dc/terms/conformsTo",
"x-jsonld-type": "@id"
}
"role": {},
"conformsTo": {}
},
"required": [
"role"
Expand All @@ -37,6 +29,58 @@
"dct": "http://purl.org/dc/terms/"
},
"x-schema-source": "https://opengeospatial.github.io/bblocks/annotated-schemas/geo/json-fg/link-role/schema-oas3.0.json"
},
"ogc.ogc-utils.iri-or-curie": {
"x-schema-version": "https://json-schema.org/draft/2020-12/schema",
"x-schema-source": "https://opengeospatial.github.io/bblocks/ogc-utils/iri-or-curie/schema.json"
},
"ogc.ogc-utils.json-link": {
"description": "JSON Link",
"type": "object",
"required": [
"href",
"rel"
],
"properties": {
"href": {
"type": "string",
"format": "uri-reference",
"x-jsonld-type": "@id",
"x-jsonld-id": "http://www.w3.org/ns/oa#hasTarget"
},
"rel": {
"type": "string",
"x-jsonld-id": "http://www.iana.org/assignments/relation",
"x-jsonld-type": "@id",
"x-jsonld-base": "http://www.iana.org/assignments/relation/"
},
"anchor": {
"type": "string"
},
"type": {
"type": "string",
"x-jsonld-id": "http://purl.org/dc/terms/type"
},
"hreflang": {
"type": "string",
"x-jsonld-id": "http://purl.org/dc/terms/language"
},
"title": {
"type": "string",
"x-jsonld-id": "http://www.w3.org/2000/01/rdf-schema#label"
},
"length": {
"type": "integer",
"x-jsonld-id": "http://purl.org/dc/terms/extent"
}
},
"x-jsonld-prefixes": {
"oa": "http://www.w3.org/ns/oa#",
"rdfs": "http://www.w3.org/2000/01/rdf-schema#",
"dct": "http://purl.org/dc/terms/"
},
"x-schema-version": "https://json-schema.org/draft/2020-12/schema",
"x-schema-source": "https://opengeospatial.github.io/bblocks/ogc-utils/json-link/schema.json"
}
},
"allOf": [
Expand Down
56 changes: 45 additions & 11 deletions annotated-schemas/geo/json-fg/link-role/schema-oas3.0.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,59 @@ x-defs:
description: annotated link with role and conformance
$defs:
coderef:
$ref: ../../../ogc-utils/iri-or-curie/schema.yaml
$ref: https://opengeospatial.github.io/bblocks/annotated-schemas/geo/json-fg/link-role/schema-oas3.0.yaml#/x-defs/ogc.ogc-utils.iri-or-curie
coderefs:
$ref: ../../../ogc-utils/iri-or-curie/schema.yaml
$ref: https://opengeospatial.github.io/bblocks/annotated-schemas/geo/json-fg/link-role/schema-oas3.0.yaml#/x-defs/ogc.ogc-utils.iri-or-curie
allOf:
- $ref: ../../../ogc-utils/json-link/schema.yaml
- $ref: https://opengeospatial.github.io/bblocks/annotated-schemas/geo/json-fg/link-role/schema-oas3.0.yaml#/x-defs/ogc.ogc-utils.json-link
- properties:
role:
$ref: '#/$defs/coderef'
x-jsonld-id: http://www.w3.org/ns/dx/prof/hasRole
x-jsonld-type: '@id'
conformsTo:
$ref: '#/$defs/coderefs'
x-jsonld-id: http://purl.org/dc/terms/conformsTo
x-jsonld-type: '@id'
role: {}
conformsTo: {}
required:
- role
x-jsonld-prefixes:
prof: http://www.w3.org/ns/dx/prof/
dct: http://purl.org/dc/terms/
x-schema-source: https://opengeospatial.github.io/bblocks/annotated-schemas/geo/json-fg/link-role/schema-oas3.0.yaml
ogc.ogc-utils.iri-or-curie:
x-schema-version: https://json-schema.org/draft/2020-12/schema
x-schema-source: https://opengeospatial.github.io/bblocks/ogc-utils/iri-or-curie/schema.yaml
ogc.ogc-utils.json-link:
description: JSON Link
type: object
required:
- href
- rel
properties:
href:
type: string
format: uri-reference
x-jsonld-type: '@id'
x-jsonld-id: http://www.w3.org/ns/oa#hasTarget
rel:
type: string
x-jsonld-id: http://www.iana.org/assignments/relation
x-jsonld-type: '@id'
x-jsonld-base: http://www.iana.org/assignments/relation/
anchor:
type: string
type:
type: string
x-jsonld-id: http://purl.org/dc/terms/type
hreflang:
type: string
x-jsonld-id: http://purl.org/dc/terms/language
title:
type: string
x-jsonld-id: http://www.w3.org/2000/01/rdf-schema#label
length:
type: integer
x-jsonld-id: http://purl.org/dc/terms/extent
x-jsonld-prefixes:
oa: http://www.w3.org/ns/oa#
rdfs: http://www.w3.org/2000/01/rdf-schema#
dct: http://purl.org/dc/terms/
x-schema-version: https://json-schema.org/draft/2020-12/schema
x-schema-source: https://opengeospatial.github.io/bblocks/ogc-utils/json-link/schema.yaml
allOf:
- $ref: https://opengeospatial.github.io/bblocks/annotated-schemas/geo/json-fg/link-role/schema-oas3.0.yaml#/x-defs/ogc.geo.json-fg.link-role
60 changes: 0 additions & 60 deletions annotated-schemas/ogc-utils/iri-or-curie/schema-oas3.0.json
Original file line number Diff line number Diff line change
@@ -1,66 +1,6 @@
{
"x-defs": {
"ogc.ogc-utils.iri-or-curie": {
"description": "IRI or CURIE",
"$defs": {
"IRI": {
"type": "string",
"pattern": "^\\w+:/*([^:<>{}|\\\\^`\"\\s/]+[^<>{}|\\\\^`\"\\s]*(:[^:<>{}|\\\\^`\"\\s]+)?)?$"
},
"CURIE": {
"type": "string",
"pattern": "^[A-Za-z_][^\\s:/]*:[^:<>{}|\\\\^`\"\\s]*(\\?[^<>{}|\\\\^`\" ]*)?(#[^<>{}|\\\\^`\"\\s]*)?$"
},
"LocalPart": {
"type": "string",
"pattern": "^[^:<>{}|\\\\^`\"\\s]*(\\?[^<>{}|\\\\^`\"\\s]*)?(#[^<>{}|\\\\^`\"\\s]*)?$"
},
"Single": {
"anyOf": [
{
"$ref": "#/$defs/IRI"
},
{
"$ref": "#/$defs/CURIE"
},
{
"$ref": "#/$defs/LocalPart"
}
]
},
"Multiple": {
"oneOf": [
{
"$ref": "#/$defs/Single"
},
{
"type": "array",
"items": {
"$ref": "#/$defs/Single"
}
}
]
},
"MultipleOrObject": {
"oneOf": [
{
"$ref": "#/$defs/Multiple"
},
{
"type": "object"
}
]
},
"MultipleOrObjectOrNull": {
"oneOf": [
{
"$ref": "#/$defs/MultipleOrObject"
}
],
"nullable": true
}
},
"$ref": "#/$defs/Single",
"x-schema-version": "https://json-schema.org/draft/2020-12/schema",
"x-schema-source": "https://opengeospatial.github.io/bblocks/annotated-schemas/ogc-utils/iri-or-curie/schema-oas3.0.json"
}
Expand Down
31 changes: 0 additions & 31 deletions annotated-schemas/ogc-utils/iri-or-curie/schema-oas3.0.yaml
Original file line number Diff line number Diff line change
@@ -1,36 +1,5 @@
x-defs:
ogc.ogc-utils.iri-or-curie:
description: IRI or CURIE
$defs:
IRI:
type: string
pattern: ^\w+:/*([^:<>{}|\\^`"\s/]+[^<>{}|\\^`"\s]*(:[^:<>{}|\\^`"\s]+)?)?$
CURIE:
type: string
pattern: ^[A-Za-z_][^\s:/]*:[^:<>{}|\\^`"\s]*(\?[^<>{}|\\^`" ]*)?(#[^<>{}|\\^`"\s]*)?$
LocalPart:
type: string
pattern: ^[^:<>{}|\\^`"\s]*(\?[^<>{}|\\^`"\s]*)?(#[^<>{}|\\^`"\s]*)?$
Single:
anyOf:
- $ref: '#/$defs/IRI'
- $ref: '#/$defs/CURIE'
- $ref: '#/$defs/LocalPart'
Multiple:
oneOf:
- $ref: '#/$defs/Single'
- type: array
items:
$ref: '#/$defs/Single'
MultipleOrObject:
oneOf:
- $ref: '#/$defs/Multiple'
- type: object
MultipleOrObjectOrNull:
oneOf:
- $ref: '#/$defs/MultipleOrObject'
nullable: true
$ref: '#/$defs/Single'
x-schema-version: https://json-schema.org/draft/2020-12/schema
x-schema-source: https://opengeospatial.github.io/bblocks/annotated-schemas/ogc-utils/iri-or-curie/schema-oas3.0.yaml
allOf:
Expand Down
11 changes: 6 additions & 5 deletions annotated-schemas/ogc-utils/topology/schema-oas3.0.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,11 @@
"ogc.ogc-utils.topology": {
"description": "feature with geometry by reference",
"properties": {
"type": {
"$ref": "../iri-or-curie/schema.json",
"x-jsonld-id": "@type"
},
"type": {},
"references": {
"type": "array",
"items": {
"$ref": "../iri-or-curie/schema.json"
"$ref": "https://opengeospatial.github.io/bblocks/annotated-schemas/ogc-utils/topology/schema-oas3.0.json#/x-defs/ogc.ogc-utils.iri-or-curie"
},
"x-jsonld-id": "https://purl.org/geojson/vocab#relatedFeatures",
"x-jsonld-type": "@id",
Expand All @@ -31,6 +28,10 @@
},
"x-schema-version": "https://json-schema.org/draft/2020-12/schema",
"x-schema-source": "https://opengeospatial.github.io/bblocks/annotated-schemas/ogc-utils/topology/schema-oas3.0.json"
},
"ogc.ogc-utils.iri-or-curie": {
"x-schema-version": "https://json-schema.org/draft/2020-12/schema",
"x-schema-source": "https://opengeospatial.github.io/bblocks/annotated-schemas/iri-or-curie/schema.json"
}
},
"allOf": [
Expand Down
9 changes: 5 additions & 4 deletions annotated-schemas/ogc-utils/topology/schema-oas3.0.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,11 @@ x-defs:
ogc.ogc-utils.topology:
description: feature with geometry by reference
properties:
type:
$ref: ../iri-or-curie/schema.yaml
x-jsonld-id: '@type'
type: {}
references:
type: array
items:
$ref: ../iri-or-curie/schema.yaml
$ref: https://opengeospatial.github.io/bblocks/annotated-schemas/ogc-utils/topology/schema-oas3.0.yaml#/x-defs/ogc.ogc-utils.iri-or-curie
x-jsonld-id: https://purl.org/geojson/vocab#relatedFeatures
x-jsonld-type: '@id'
x-jsonld-container: '@list'
Expand All @@ -23,5 +21,8 @@ x-defs:
dct: http://purl.org/dc/terms/
x-schema-version: https://json-schema.org/draft/2020-12/schema
x-schema-source: https://opengeospatial.github.io/bblocks/annotated-schemas/ogc-utils/topology/schema-oas3.0.yaml
ogc.ogc-utils.iri-or-curie:
x-schema-version: https://json-schema.org/draft/2020-12/schema
x-schema-source: https://opengeospatial.github.io/bblocks/annotated-schemas/iri-or-curie/schema.yaml
allOf:
- $ref: https://opengeospatial.github.io/bblocks/annotated-schemas/ogc-utils/topology/schema-oas3.0.yaml#/x-defs/ogc.ogc-utils.topology
Loading

0 comments on commit 0171db3

Please sign in to comment.