Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Require type WebContent for mainEntityOfPage #253

Merged
merged 1 commit into from
Sep 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"
]
}
}
}