Skip to content

Commit

Permalink
Update draft
Browse files Browse the repository at this point in the history
  • Loading branch information
nichtich committed Jan 15, 2025
1 parent 562f4e5 commit 4562bf6
Show file tree
Hide file tree
Showing 13 changed files with 185 additions and 185 deletions.
2 changes: 1 addition & 1 deletion 0.6.0/annotation.schema.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$id": "https://gbv.github.io/jskos/annotation.schema.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"$schema": "https://json-schema.org/draft/2019-09/schema",
"title": "Annotation",
"description": "Annotation adjusted from Web Annotation Data Model",
"type": "object",
Expand Down
2 changes: 1 addition & 1 deletion 0.6.0/bundle.schema.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$id": "https://gbv.github.io/jskos/bundle.schema.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"$schema": "https://json-schema.org/draft/2019-09/schema",
"title": "JSKOS Concept Bundle",
"description": "A concept bundle is a group of concepts. Concept bundles can be used for mappings, composed concepts, and occurrences.",
"type": "object",
Expand Down
2 changes: 1 addition & 1 deletion 0.6.0/concept.schema.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$id": "https://gbv.github.io/jskos/concept.schema.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"$schema": "https://json-schema.org/draft/2019-09/schema",
"title": "JSKOS Concept",
"description": "entities from a knowledge organization system",
"type": "object",
Expand Down
2 changes: 1 addition & 1 deletion 0.6.0/concordance.schema.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$id": "https://gbv.github.io/jskos/concordance.schema.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"$schema": "https://json-schema.org/draft/2019-09/schema",
"title": "JSKOS Concordance",
"description": "curated collections of mappings",
"type": "object",
Expand Down
2 changes: 1 addition & 1 deletion 0.6.0/distribution.schema.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$id": "https://gbv.github.io/jskos/distribution.schema.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"$schema": "https://json-schema.org/draft/2019-09/schema",
"title": "JSKOS Distribution",
"description": "available forms to access the content of an item",
"type": "object",
Expand Down
156 changes: 57 additions & 99 deletions 0.6.0/index.html

Large diffs are not rendered by default.

34 changes: 9 additions & 25 deletions 0.6.0/item.schema.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$id": "https://gbv.github.io/jskos/item.schema.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"$schema": "https://json-schema.org/draft/2019-09/schema",
"title": "JSKOS Item",
"description": "named entities",
"type": "object",
Expand All @@ -18,6 +18,10 @@
]
}
},
"language-tag": {
"type": "string",
"pattern": "^([a-z]{1,8}(-[a-z0-9]{1,8})*-?|-)$"
},
"language-map": {
"type": "object",
"patternProperties": {
Expand Down Expand Up @@ -90,26 +94,6 @@
"type",
"items"
]
},
"edtf": {
"$comment": "EDTF Level 1",
"anyOf": [
{
"type": "string",
"pattern": "^Y?-?[0-9X]{4,}[?~%]?(-[012X][0-9X][?~%]?(-[0-3X][0-9X][?~%]?)?)?$",
"$comment": "EDTF Year, Year-Month, Year-Month-Day"
},
{
"type": "string",
"pattern": "^Y?-?[0-9X?~%-]{4,}T[0-9?~%:.]+(Z|[+-][0-9?~%:]+)?$",
"$comment": "EDTF Date and Time"
},
{
"type": "string",
"pattern": "^(|\\.\\.|[0-9TXYZ%~?.+-]+)/(|\\.\\.|[0-9TXYZ%~?.+-]+)$",
"$comment": "EDTF Interval (very lax)"
}
]
}
},
"allOf": [
Expand Down Expand Up @@ -168,21 +152,21 @@
},
"startDate": {
"description": "date of birth, creation, or estabishment of the item",
"$ref": "#/definitions/edtf"
"$ref": "resource.schema.json#/definitions/edtf"
},
"endDate": {
"description": "date death or resolution of the item",
"$ref": "#/definitions/edtf"
"$ref": "resource.schema.json#/definitions/edtf"
},
"relatedDate": {
"description": "other date somehow related to the item (deprecated, use relatedDates instead)",
"$ref": "#/definitions/edtf"
"$ref": "resource.schema.json#/definitions/edtf"
},
"relatedDates": {
"description": "other date somehow related to the item (deprecated, use relatedDates instead)",
"type": "array",
"items": {
"$ref": "#/definitions/edtf"
"$ref": "resource.schema.json#/definitions/edtf"
}
},
"location": {
Expand Down
2 changes: 1 addition & 1 deletion 0.6.0/mapping.schema.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$id": "https://gbv.github.io/jskos/mapping.schema.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"$schema": "https://json-schema.org/draft/2019-09/schema",
"title": "JSKOS Concept Mapping",
"description": "A mapping represents a mapping between concepts of two concept schemes. It consists two concept bundles with additional metadata not fully defined yet.",
"type": "object",
Expand Down
2 changes: 1 addition & 1 deletion 0.6.0/occurrence.schema.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$id": "https://gbv.github.io/jskos/occurrence.schema.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"$schema": "https://json-schema.org/draft/2019-09/schema",
"title": "JSKOS Concept Occurrence",
"description": "An occurrence gives the number of a times a concept (“occurrence”) or combination of concepts (“co-occurrence”) is used in a specific relation to entities from a particular database. For instance the occurrence could give the number of documents indexed with some term in a catalog. The field url typically includes a deep link into the database.",
"type": "object",
Expand Down
2 changes: 1 addition & 1 deletion 0.6.0/registry.schema.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$id": "https://gbv.github.io/jskos/registry.schema.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"$schema": "https://json-schema.org/draft/2019-09/schema",
"title": "JSKOS Registry",
"description": "collections of items (concepts, concept schemes, ...)",
"type": "object",
Expand Down
157 changes: 109 additions & 48 deletions 0.6.0/resource.schema.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$id": "https://gbv.github.io/jskos/resource.schema.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"$schema": "https://json-schema.org/draft/2019-09/schema",
"title": "JSKOS Resource",
"description": "all kinds of entities",
"type": "object",
Expand All @@ -24,6 +24,13 @@
}
]
},
"type": {
"description": "URIs of types",
"type": "array",
"items": {
"$ref": "#/definitions/uri"
}
},
"non-negative-integer": {
"type": "integer",
"minimum": 0
Expand Down Expand Up @@ -66,10 +73,50 @@
]
}
},
"edtf": {
"$comment": "EDTF Level 1",
"anyOf": [
{
"type": "string",
"pattern": "^Y?-?[0-9X]{4,}[?~%]?(-[012X][0-9X][?~%]?(-[0-3X][0-9X][?~%]?)?)?$",
"$comment": "EDTF Year, Year-Month, Year-Month-Day"
},
{
"type": "string",
"pattern": "^Y?-?[0-9X?~%-]{4,}T[0-9?~%:.]+(Z|[+-][0-9?~%:]+)?$",
"$comment": "EDTF Date and Time"
},
{
"type": "string",
"pattern": "^(|\\.\\.|[0-9TXYZ%~?.+-]+)/(|\\.\\.|[0-9TXYZ%~?.+-]+)$",
"$comment": "EDTF Interval (very lax)"
}
]
},
"rank": {
"type": "string",
"enum": ["normal","preferred","deprecated"],
"default": "normal"
},
"qualifiedValue": {
"type": "object",
"properties": {
"startDate": {
"description": "date when the statement started to be valid",
"$ref": "#/definitions/edtf"
},
"endDate": {
"description": "date when the statement ended to be valid",
"$ref": "#/definitions/edtf"
},
"source": {
"description": "sources as evidence for the statement",
"$ref": "concept.schema.json#/definitions/conceptSet"
},
"rank": {
"$ref": "#/definitions/rank"
}
}
}
},
"properties": {
Expand Down Expand Up @@ -98,11 +145,7 @@
"$ref": "#/definitions/list"
},
"type": {
"description": "URIs of types",
"type": "array",
"items": {
"$ref": "#/definitions/uri"
}
"$ref": "#/definitions/type"
},
"created": {
"description": "date of creation",
Expand Down Expand Up @@ -143,56 +186,74 @@
},
"qualifiedRelations": {
"type": "object",
"propertyNames": {
"$ref": "#/definitions/uri"
},
"propertyNames": { "$ref": "#/definitions/uri" },
"patternProperties": {
".*": {
"type": "array",
"items": {
"type": "object",
"allOf": [ { "$ref": "#/definitions/qualifiedValue" } ],
"properties": {
"resource": {
"description": "object of the relation",
"$ref": "#"
}
},
"patternProperties": { "^_|^[A-Z0-9]+$": {} },
"unevaluatedProperties": false
}
}
}
},
"qualifiedDates": {
"type": "object",
"propertyNames": { "$ref": "#/definitions/uri" },
"patternProperties": {
".*": {
"type": "object",
"properties": {
"prefLabel": {
"description": "labels of the property type, indexed by language",
"$ref": "item.schema.json#/definitions/language-map"
"type": "array",
"items": {
"type": "object",
"allOf": [ { "$ref": "#/definitions/qualifiedValue" } ],
"properties": {
"date": {
"$ref": "#/definitions/edtf"
}
},
"values": {
"description": "qualified values",
"type": "array",
"items": {
"patternProperties": { "^_|^[A-Z0-9]+$": {} },
"unevaluatedProperties": false
}
}
}
},
"qualifiedLiterals": {
"type": "object",
"propertyNames": { "$ref": "#/definitions/uri" },
"patternProperties": {
".*": {
"type": "array",
"items": {
"type": "object",
"allOf": [
{ "$ref": "#/definitions/qualifiedValue" }
],
"properties": {
"type": { "$ref": "#/definitions/type" },
"literal": {
"type": "object",
"properties": {
"resource": {
"description": "object of the relation",
"$ref": "#"
},
"startDate": {
"description": "date when the relation started to be valid",
"$ref": "item.schema.json#/definitions/edtf"
},
"endDate": {
"description": "date when the relation ended to be valid",
"$ref": "item.schema.json#/definitions/edtf"
},
"source": {
"description": "sources as evidence for the relation",
"$ref": "concept.schema.json#/definitions/conceptSet"
},
"rank": {
"$ref": "#/definitions/rank"
}
"@value": { "type": "string" },
"@language": { "$ref": "item.schema.json#/definitions/language-tag" }
},
"required": [ "@value" ],
"additionalProperties": false
},
"additionalProperties": false
}
},
"required": ["values"],
"additionalProperties": false
}
},
"patternProperties": { "^_|^[A-Z0-9]+$": {} },
"unevaluatedProperties": false
}
}
},
"additionalProperties": false
}
}
},
"patternProperties": {
"^_|^[A-Z0-9]+$": {}
}
"patternProperties": { "^_|^[A-Z0-9]+$": {} }
}
2 changes: 1 addition & 1 deletion 0.6.0/scheme.schema.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$id": "https://gbv.github.io/jskos/scheme.schema.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"$schema": "https://json-schema.org/draft/2019-09/schema",
"title": "JSKOS Concept Scheme",
"description": "compiled collections of concepts (knowledge organization systems)",
"type": "object",
Expand Down
5 changes: 1 addition & 4 deletions 0.6.0/site_libs/quarto-html/quarto.js
Original file line number Diff line number Diff line change
Expand Up @@ -225,10 +225,7 @@ window.document.addEventListener("DOMContentLoaded", function (_event) {
}

async function findAndActivateCategories() {
// Categories search with listing only use path without query
const currentPagePath = offsetAbsoluteUrl(
window.location.origin + window.location.pathname
);
const currentPagePath = offsetAbsoluteUrl(window.location.href);
const response = await fetch(offsetRelativeUrl("listings.json"));
if (response.status == 200) {
return response.json().then(function (listingPaths) {
Expand Down

0 comments on commit 4562bf6

Please sign in to comment.