-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #449 from hbz/440-project-schema
First draft for project-Schema and new subSchemas (#440)
- Loading branch information
Showing
10 changed files
with
128 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 3 additions & 1 deletion
4
examples/projects/valid/lrmi-profile.json → examples/project/valid/lrmi-profile.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"@context": "https://schema.org/", | ||
"id": "https://github.com/metafacture/metafacture-fix", | ||
"type": [ | ||
"Project" | ||
], | ||
"name": { | ||
"de": "Metafacture-Fix", | ||
"en": "Metafacture-Fix" | ||
}, | ||
"description": { | ||
"en": "Implementation of the Fix language for Metafacture as an alternative to configuring data transformations with Metamorph", | ||
"de": "Das Projekt entwickelt und implementiert FIX als Metafacture Sprache. Diese soll als Alternative zu Metamorph für Datentransformation eingesetzt werden." | ||
}, | ||
"url": "https://github.com/metafacture/metafacture-fix", | ||
"enhances": [ | ||
{ | ||
"id": "https://metafacture.org" | ||
} | ||
] | ||
} |
14 changes: 11 additions & 3 deletions
14
...rojects/valid/metafacture-playground.json → ...project/valid/metafacture-playground.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,21 @@ | ||
{ | ||
"@context": "https://schema.org/", | ||
"id": "https://github.com/metafacture/metafacture-playground", | ||
"type": "Project", | ||
"type": [ | ||
"Project" | ||
], | ||
"name": { | ||
"de": "Metafacture Playground", | ||
"en": "Metafacture Playground" | ||
}, | ||
"description": { | ||
"en": "This projects aims to provide a web application to play around with Metafactures languages Fix and Flux." | ||
"en": "This projects aims to provide a web application to play around with Metafactures languages Fix and Flux.", | ||
"de": "Dieses Projekt entwickelt eine Web-Applikation, mit der man interaktiv die Metafacture-Sprachen Fix und Flux austesten kann." | ||
}, | ||
"url": "https://github.com/metafacture/metafacture-playground" | ||
"url": "https://github.com/metafacture/metafacture-playground", | ||
"enhances": [ | ||
{ | ||
"id": "https://metafacture.org" | ||
} | ||
] | ||
} |
16 changes: 10 additions & 6 deletions
16
examples/projects/valid/oersi.json → examples/project/valid/oersi.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,22 @@ | ||
{ | ||
"@context": "https://schema.org/", | ||
"id": "https://oersi.de", | ||
"type": "Project", | ||
"type": [ | ||
"Project" | ||
], | ||
"name": { | ||
"de": "OER Search Index", | ||
"en": "OER Search Index" | ||
}, | ||
"alternateName": { | ||
"de": "OERSI", | ||
"en": "OERSI" | ||
}, | ||
"alternateName": [ | ||
"OERSI" | ||
], | ||
"description": { | ||
"de": "Ein gemeinsames Projekt der TIB Hannover und des hbz zum Aufbau eines offenen Suchindex für Bildungsressourcen", | ||
"en": "Common project by TIB Hannover and hbz to create an open search index for educational resources" | ||
}, | ||
"url": "https://oersi.de" | ||
"url": "https://oersi.de", | ||
"isBasedOn": { | ||
"id": "https://metafacture.org" | ||
} | ||
} |
4 changes: 3 additions & 1 deletion
4
examples/projects/valid/rpb.json → examples/project/valid/rpb.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"$id": "resource:/enhances.json", | ||
"title": "product", | ||
"description": "Schema to describe a product at lobid.", | ||
"type": "array", | ||
"items": { | ||
"type": "object", | ||
"properties": { | ||
"id": { | ||
"$ref": "resource:/id.json" | ||
}, | ||
"name": { | ||
"$ref": "resource:/name.json" | ||
} | ||
}, | ||
"required": [ | ||
"id" | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"$id": "resource:/project.json", | ||
"title": "Project", | ||
"description": "Schema to describe a project at lobid.", | ||
"type": "object", | ||
"properties": { | ||
"id": { | ||
"$ref": "resource:/id.json" | ||
}, | ||
"type": { | ||
"type": "array", | ||
"items": { | ||
"type": "string", | ||
"const": "Project" | ||
} | ||
}, | ||
"alternateName": { | ||
"$ref": "resource:/alternateName.json" | ||
}, | ||
"description": { | ||
"$ref": "resource:/description.json" | ||
}, | ||
"name": { | ||
"$ref": "resource:/name.json" | ||
}, | ||
"image": { | ||
"$ref": "resource:/image.json" | ||
}, | ||
"startDate": { | ||
"$ref": "resource:/startDate.json" | ||
}, | ||
"endDate": { | ||
"$ref": "resource:/endDate.json" | ||
}, | ||
"enhances": { | ||
"$ref": "resource:/enhances.json" | ||
}, | ||
"membership": { | ||
"$ref": "resource:/membership.json" | ||
} | ||
}, | ||
"required": [ | ||
"id", | ||
"name", | ||
"type", | ||
"description" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters