Skip to content
This repository was archived by the owner on Oct 1, 2024. It is now read-only.
Open
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
25 changes: 25 additions & 0 deletions schema/Concept.slot_jsonschema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"@context": [
"https://oo-ld.github.io/glossary-api/schema/Entity.slot_jsonschema.json"
],
"allOf": [
{
"$ref": "https://oo-ld.github.io/glossary-api/schema/Entity.slot_jsonschema.json"
}
],
"$comment": "A Concept is an Entity, so we import the context (per @context) and schema (per allOf.$ref) of Entity",
"title": "Concept",
"type": "object",
"required": [
"type"
],
"properties": {
"type": {
"$comment": "Already defined in sentier:Entity -> we override just the default",
"default": "sentier:Concept"
},
"iri": {
"default": "sentier:Concept"
}
}
}
37 changes: 37 additions & 0 deletions schema/ConceptSchema.slot_jsonschema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"@context": [
"https://oo-ld.github.io/glossary-api/schema/Entity.slot_jsonschema.json",
{
"members": "dcterms:hasPart"
}
],
"allOf": [
{
"$ref": "https://oo-ld.github.io/glossary-api/schema/Entity.slot_jsonschema.json"
}
],
"$comment": "A ConceptSchema is an Entity, so we import the context (per @context) and schema (per allOf.$ref) of Entity",
"title": "ConceptSchema",
"type": "object",
"required": [
"type"
],
"properties": {
"type": {
"$comment": "Already defined in sentier:Entity -> we override just the default",
"default": "sentier:ConceptSchema"
},
"iri": {
"default": "sentier:MyConceptSchema"
},
"members": {
"type": "array",
"title": "Members",
"propertyOrder": 2000,
"items": {
"type": "string",
"title": "Concept"
}
}
}
}
122 changes: 122 additions & 0 deletions schema/Entity.slot_jsonschema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,122 @@
{
"@context": {
"rdf": "http://www.w3.org/1999/02/22-rdf-syntax-ns#",
"rdfs": "http://www.w3.org/2000/01/rdf-schema#",
"owl": "http://www.w3.org/2002/07/owl#",
"skos": "https://www.w3.org/TR/skos-reference/",
"dcterms": "http://purl.org/dc/terms/",
"schema": "https://schema.org/",
"sentier": "https://oo-ld.github.io/glossary-api/",
"type": "@type",
"iri": "@id",
"labels": {
"@id": "skos:prefLabel",
"@context": {
"text": "@value",
"lang": "@language"
}
},
"version": "owl:versionInfo",
"previous_version": "owl:priorVersion",
"documentation": "rdfs:seeAlso",
"source": "rdfs:isDefinedBy",
"licence": "dcterms:license",
"authors": {
"@id": "dcterms:creator",
"@context": {
"name": "schema:name"
}
}
},
"title": "Entity",
"type": "object",
"required": [
"labels"
],
"properties": {
"type": {
"type": "string",
"default": "sentier:Entity"
},
"iri": {
"type": "string",
"title": "IRI"
},
"labels": {
"type": "array",
"format": "table",
"title": "Label(s)",
"description": "Label(s) of the entity",
"items": {
"type": "object",
"title": "Label",
"properties": {
"text": {
"type": "string",
"minlength": 1
},
"lang": {
"type": "string",
"enum": [
"en",
"de",
"fr"
],
"options": {
"input_width": "100px"
}
}
}
},
"default": [
{
"text": "Unnamed",
"lang": "en"
}
],
"minItems": 1
},
"version": {
"type": "string",
"title": "version",
"default": "1.0.0"
},
"previous_version": {
"type": "string",
"title": "Previous Version IRI"
},
"documentation": {
"type": "string",
"title": "Documentation"
},
"source": {
"type": "string",
"title": "Source / external definition"
},
"licence": {
"type": "string",
"enum": [
"https://creativecommons.org/public-domain/cc0/",
"https://creativecommons.org/licenses/by/4.0/"
],
"options": {
"enum_titles": [
"CC0",
"CC-BY"
]
}
},
"authors": {
"type": "array",
"format": "table",
"title": "Authors",
"items": {
"properties": {
"name": {
"type": "string"
}
}
}
}
}
}
66 changes: 66 additions & 0 deletions schema/Process.slot_jsonschema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
{
"@context": [
"https://oo-ld.github.io/glossary-api/schema/Entity.slot_jsonschema.json",
{
"bonsai": "http://rdf.bonsai.uno/activitytype/exiobase3_3_17/",
"inputs": {
"@reverse": "bonsai:inputOf",
"@type": "@id"
},
"outputs": {
"@reverse": "bonsai:outputOf",
"@type": "@id"
}
}
],
"allOf": [
{
"$ref": "https://oo-ld.github.io/glossary-api/schema/Entity.slot_jsonschema.json"
}
],
"$comment": "A Process is an Entity, so we import the context (per @context) and schema (per allOf.$ref) of Entity",
"title": "Process",
"type": "object",
"required": [
"type"
],
"properties": {
"type": {
"$comment": "Already defined in sentier:Entity -> we override just the default",
"default": "sentier:Process"
},
"iri": {
"default": "sentier:MyProcess"
},
"inputs": {
"type": "array",
"format": "table",
"description": "One or multiple products",
"propertyOrder": 2000,
"items": {
"type": "string",
"title": "Products",
"$comment": "Enum just for testing",
"enum": [
"sentier:Steel",
"sentier:Concrete"
]
}
},
"outputs": {
"type": "array",
"format": "table",
"description": "One or multiple products",
"propertyOrder": 2001,
"items": {
"type": "string",
"title": "Products",
"$comment": "Enum just for testing",
"enum": [
"sentier:WindGenerator",
"sentier:Waste"
]
}
}
}
}
36 changes: 36 additions & 0 deletions schema/Product.slot_jsonschema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"@context": [
"https://oo-ld.github.io/glossary-api/schema/Entity.slot_jsonschema.json",
{
"bonsai": "http://rdf.bonsai.uno/activitytype/exiobase3_3_17/",
"inputs": {
"@reverse": "bonsai:inputOf",
"@type": "@id"
},
"outputs": {
"@reverse": "bonsai:outputOf",
"@type": "@id"
}
}
],
"allOf": [
{
"$ref": "https://oo-ld.github.io/glossary-api/schema/Entity.slot_jsonschema.json"
}
],
"$comment": "A Product is an Entity, so we import the context (per @context) and schema (per allOf.$ref) of Entity",
"title": "Product",
"type": "object",
"required": [
"type"
],
"properties": {
"type": {
"$comment": "Already defined in sentier:Entity -> we override just the default",
"default": "sentier:Product"
},
"iri": {
"default": "sentier:MyProduct"
}
}
}