Skip to content

Commit

Permalink
minor changes to schemas
Browse files Browse the repository at this point in the history
  • Loading branch information
mahdanoura committed Sep 16, 2024
1 parent 21dff7f commit 669652f
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 18 deletions.
1 change: 0 additions & 1 deletion resources/schemas/hctl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ classes:
The hreflang attribute specifies the language of a linked document. The value of this must be a valid
language tag [[BCP47]].
slot_uri: hctl:hasHreflang

slots:
- href
Form:
Expand Down
28 changes: 14 additions & 14 deletions resources/schemas/jsonschema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -153,19 +153,19 @@ classes:
TODO: Check, maybe the range is not a Datatype property rather pointing to classes
slot_uri: rdf:type
exactly_one_of:
- range: arraySchema
- range: nullSchema
- range: objectSchema
- range: booleanSchema
- range: stringSchema
- range: numberSchema
- range: integerSchema
- range: ArraySchema
- range: NullSchema
- range: ObjectSchema
- range: BooleanSchema
- range: StringSchema
- range: NumberSchema
- range: IntegerSchema
slots:
- description
- title
- titles
- descriptions
arraySchema:
ArraySchema:
is_a: DataSchema
class_uri: jsonschema:ArraySchema
aliases:
Expand All @@ -187,15 +187,15 @@ classes:
Defines the maximum number of items that have to be in the array.
slot_uri: jsonschema:maxItems
range: integer
booleanSchema:
BooleanSchema:
is_a: DataSchema
class_uri: jsonschema:BooleanSchema
aliases:
- boolean
description: >-
Metadata describing data of type boolean. This Subclass is indicated by the value boolean assigned to type
in DataSchema instances.
numberSchema:
NumberSchema:
is_a: DataSchema
class_uri: jsonschema:NumberSchema
aliases:
Expand All @@ -209,7 +209,7 @@ classes:
- exclusiveMinimum
- exclusiveMaximum
- multipleOf
integerSchema:
IntegerSchema:
is_a: DataSchema
class_uri: jsonschema:IntegerSchema
aliases:
Expand All @@ -223,7 +223,7 @@ classes:
- exclusiveMinimum
- exclusiveMaximum
- multipleOf
objectSchema:
ObjectSchema:
is_a: DataSchema
class_uri: jsonschema:ObjectSchema
aliases:
Expand All @@ -249,7 +249,7 @@ classes:
is to be sent (e.g. input of invokeaction, writeproperty) and what members will be definitely delivered in
the payload that is being received (e.g. output of invokeaction, readproperty).
multivalued: true
stringSchema:
StringSchema:
# the name has to be changed because apparantly there is an issue with LinkML
is_a: DataSchema
class_uri: jsonschema:StringSchema
Expand Down Expand Up @@ -286,7 +286,7 @@ classes:
- value: base16
- value: base32
- value: base64
nullSchema:
NullSchema:
is_a: DataSchema
class_uri: jsonschema:NullSchema
aliases:
Expand Down
6 changes: 3 additions & 3 deletions resources/schemas/thing_description.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ prefixes:
tm:
prefix_prefix: tm
prefix_reference: https://www.w3.org/2019/wot/tm#
default_prefix: td
#default_prefix: td
default_range: string

imports:
Expand Down Expand Up @@ -150,7 +150,7 @@ classes:

# start of main classes, required for RDF generation

VersionInfo:
versionInfo:
description: >-
Provides version information.
class_uri: td:versionInfo
Expand Down Expand Up @@ -301,7 +301,7 @@ classes:
description: >-
Provides version information.
slot_uri: td:versionInfo
range: VersionInfo
range: versionInfo
created:
slot_uri: dct:created
description: >-
Expand Down

0 comments on commit 669652f

Please sign in to comment.