Skip to content

Commit

Permalink
Merge pull request #253 from dini-ag-kim/235-mainEntityOfPageType
Browse files Browse the repository at this point in the history
Require type `WebContent` for `mainEntityOfPage`
  • Loading branch information
kulla authored Sep 7, 2023
2 parents 75f307a + 5734f8f commit 1839bb7
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 29 deletions.
19 changes: 19 additions & 0 deletions draft/examples/invalid/mainEntityOfPageInvalidType.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"@context": [
"https://w3id.org/kim/amb/context.jsonld",
{
"@language": "de"
}
],
"name": "Beispielressource",
"id": "https://example.org/oer",
"mainEntityOfPage": [
{
"id": "https://example.org/oer-description.html",
"type": "Text"
}
],
"type": [
"LearningResource"
]
}
12 changes: 0 additions & 12 deletions draft/examples/valid/dateTime.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,6 @@
],
"name": "Beispielressource",
"id": "https://example.org/oer",
"mainEntityOfPage": [
{
"id": "https://example.org/oer-description.html",
"type": "Text",
"provider": {
"id": "https://oerworldmap.org/resource/urn:uuid:4062c64d-b0ac-4941-95c2-8116f137326d",
"name": "ZOERR"
},
"dateCreated": "2020-01-01T11:11:11",
"dateModified": "2020-02-02T12:12:12"
}
],
"image": "https://example.org/oer/image.png",
"type": ["LearningResource"],
"creator": [
Expand Down
12 changes: 0 additions & 12 deletions draft/examples/valid/isBasedOn.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,6 @@
],
"name": "Beispielressource",
"id": "https://example.org/oer",
"mainEntityOfPage": [
{
"id": "https://example.org/oer-description.html",
"type": "Text",
"provider": {
"id": "https://oerworldmap.org/resource/urn:uuid:4062c64d-b0ac-4941-95c2-8116f137326d",
"name": "ZOERR"
},
"dateCreated": "2020-01-01",
"dateModified": "2020-02-02"
}
],
"image": "https://example.org/oer/image.png",
"type": ["LearningResource"],
"creator": [
Expand Down
2 changes: 1 addition & 1 deletion draft/examples/valid/mainEntityOf.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"mainEntityOfPage": [
{
"id": "https://example.org/oer-description.html",
"type": "Text",
"type": "WebContent",
"provider": {
"id": "https://oerworldmap.org/resource/urn:uuid:4062c64d-b0ac-4941-95c2-8116f137326d",
"name": "ZOERR"
Expand Down
3 changes: 2 additions & 1 deletion draft/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -912,7 +912,8 @@

In diesem Feld können die Struktur-Metadaten ausgeführt werden, welche den eingebetten Strukturkontext der bereitgestellten Metadaten erfassen:

- `id` zur Angabe der Landing-Page der Metadaten
- `id` zur Angabe der Landing-Page der Metadaten beziehungsweise die URL zum Abruf dieser Metadaten
- `type` mit dem Wert `WebContent`
- `provider` zur Angabe des Metadaten-Providers mit einem dazugehörigen Objekt, das `id`,`type` und `name` des Providers angibt
- `dateCreated` zur Angabe des Erstellungsdatums der Metadaten (mit einem String der Form `CCYY-MM-DD` oder `CCYY-MM-DDThh:mm:ss[Z|(+|-)hh:mm]` als Wert)
- `dateModified` zur Angabe des Änderungsdatums der Metadaten (mit einem String der Form `CCYY-MM-DD` oder `CCYY-MM-DDThh:mm:ss[Z|(+|-)hh:mm]` als Wert)
Expand Down
12 changes: 9 additions & 3 deletions draft/schemas/mainEntityOfPage.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@
"$ref": "https://w3id.org/kim/amb/draft/schemas/id.json"
},
"type": {
"type": "string"
"title": "Type",
"type": "string",
"enum": [
"WebContent"
]
},
"provider": {
"$ref": "https://w3id.org/kim/amb/draft/schemas/provider.json"
Expand All @@ -23,6 +27,8 @@
"$ref": "https://w3id.org/kim/amb/draft/schemas/dateModified.json"
}
},
"required": ["id"]
"required": [
"id"
]
}
}
}

0 comments on commit 1839bb7

Please sign in to comment.