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

updated virtualcollections schema, align with LatimerCore #81

Merged
merged 9 commits into from
Mar 15, 2024
139 changes: 138 additions & 1 deletion data-model/virtualcollections/v.0.1.0/schemas/virtualcollections.json
samleeflang marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -1 +1,138 @@

{
"$id": "https://schemas.dissco.tech/schemas/digitalobjects/0.1.0/virtualcollections/virtualcollections.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$comment": "DigitalObject Version 0.1.0",
"type": "object",
"properties": {
"ods:id": {
"type": "string",
"description": "PID of the object.",
"pattern": "^https:\/\/hdl\\.handle\\.net\/20\\.5000\\.1025\/.{3}-.{3}-.{3}$",
"examples": [
"https://hdl.handle.net/20.5000.1025/XXX-XXX-XXX"
]
},
"rdf:type": {
"type": "string",
"description": "The type is always VirtualCollections. https://www.w3.org/TR/rdf12-schema/#ch_type",
"const": "VirtualCollections"
},
"ods:version": {
"type": "integer",
"description": "The version of the object.",
"examples": [
1
]
},
"dcterms:creator": {
"type": "object",
sharifX marked this conversation as resolved.
Show resolved Hide resolved
"description": "The creator of the collection.",
"properties": {
"ods:type": {
"type": "string",
"description": "The type of creator of the collection.",
"examples": [
"foaf:Person"
],
"enum": [
"foaf:Person",
"foaf:Organisation",
"oa:SoftwareAgent"
]
},
"foaf:name": {
"type": "string",
"description": "The name of the creator. https://xmlns.com/foaf/0.1/#term_name.",
"examples": [
"My Name"
]
}
}
},
"ltc:ObjectGroup": {
"type": "object",
"description": "https://tdwg.github.io/ltc/quick-reference/#ObjectGroup An intentionally grouped set of objects with one or more common characteristics.",
"properties": {
"ltc:conditionsOfAccess": {
"type": "string",
"description": " https://tdwg.github.io/ltc/terms/index.html#ObjectGroup_conditionsOfAccess Information about who can access the collection being described or an indication of its security status.",
"examples": [
"Open to the public"
]
},
"ltc:collectionName": {
"type": "string",
"description": "https://tdwg.github.io/ltc/terms/index.html#ObjectGroup_collectionName A short title that summarizes the collection objects contained within the ObjectGroup.",
"examples": [
"Arctiacaja1991Netherlands"
]
},
"ltc:description": {
"type": "string",
"description": "https://tdwg.github.io/ltc/terms/index.html#ObjectGroup_description A free text description or narrative about the collection.",
"examples": [
"A virtual collection representing all butterfly specimens in South Holland"
]
}
}
},
"ltc:MeasurementOrFact": {
"type": "object",
sharifX marked this conversation as resolved.
Show resolved Hide resolved
"description": "https://tdwg.github.io/ltc/terms/index.html#MeasurementOrFact_MeasurementOrFact A measurement of or fact about a class within the standard, or a relationship between the ObjectGroup and an associated class.",
"properties": {
"dwc:measurementType": {
"type": "string",
"description": "https://tdwg.github.io/ltc/terms/index.html#MeasurementOrFact_measurementType The nature of the measurement, fact, characteristic, or assertion.",
"examples": [
"Object Count"
]
},
"dwc:measurementValue": {
"type": "number",
"description": "https://tdwg.github.io/ltc/terms/index.html#MeasurementOrFact_measurementValue The numerical value of the measurement.",
"examples": [
100
]
},
"dwc:measurementUnit": {
"type": "string",
"description": "https://tdwg.github.io/ltc/terms/#MeasurementOrFact_measurementUnit The units associated with the measurementValue.",
"examples": [
"mm, C, km, count, percentage, category"
]
}
}
},
"ods:searchFilters": {
"type": "array",
"description": "Search filters selected for the virtual collection.",
"items": {
"type": "object",
"properties": {
"filterValue": {
"type": "array",
"examples": [
"topicDiscipline=Zoology&midsLevel=1&country=Indonesia&hasMedia=1"
],
sharifX marked this conversation as resolved.
Show resolved Hide resolved
"description": "Value or configuration of the filter."
}
}
}
},
"ltc:basisOfScheme": {
"type": "string",
"description": "A summary of the basis or purpose for the LatimerCoreScheme. This property is intended to summarize the reason for grouping a number of ObjectGroups within the LatimerCoreScheme, and the purpose for which the data is intended to be used."
},
"examples": [
"dataset for workshop"
]
},
"required": [
"rdf:type",
sharifX marked this conversation as resolved.
Show resolved Hide resolved
sharifX marked this conversation as resolved.
Show resolved Hide resolved
"ods:id",
"ods:version",
"ltc:ObjectGroup",
"ltc:collectionName"
samleeflang marked this conversation as resolved.
Show resolved Hide resolved
],
sharifX marked this conversation as resolved.
Show resolved Hide resolved
"additionalProperties": false
}
Loading