tainacan/docs/mapping-standards.md

80 lines
1.9 KiB
Markdown
Raw Normal View History

2018-03-15 21:35:09 +00:00
# Mapping Standards
Mapping Standards are declarations of standards of metadata. Once they are available and activated in your repository, you can map the metadata of your collections to them.
2018-03-15 21:35:09 +00:00
## Structure
A Mapping Standard has the following attributes.
### Name
The name of the Mapping Standard.
### Metadata
2018-03-15 21:35:09 +00:00
A list of metadata, terms or attributes that this mapping have. These are the element you will be able to map your Collection's Metadata.
2018-03-15 21:35:09 +00:00
Each metadatum has the following attributes:
2018-03-15 21:35:09 +00:00
* Name - The metadatum name, that refers to the name of the attribute in the origin vocabulary or ontology (e.g. title)
2018-03-15 21:35:09 +00:00
* Label - The human readable name
* URI - The URI of this term/attribute in the origin Ontoloy/Vocabulary
### Allow additional custom metadata
2018-03-15 21:35:09 +00:00
Boolen indicating wether this mapping allows additional custom metadata to be added.
2018-03-15 21:35:09 +00:00
### Context URL / Vocab URL
The URL of the Ontology or vocabulary. For example `http://schema.org` or `http://dublincore.org/documents/dcmi-terms/`
### Type
The Class of the ontology that this mapping refers to. For example `CreativeWork`, which is a class of Schema.org.
## Examples
```
{
'name': 'Dublin Core',
'metadata': {
2018-03-15 21:35:09 +00:00
{
'name': 'title',
'label': 'Title',
'URI': 'http://purl.org/dc/terms/title'
},
{
'name': 'publisher',
'label': 'Publisher',
2018-03-20 14:38:42 +00:00
'URI': 'http://purl.org/dc/terms/publisher'
2018-03-15 21:35:09 +00:00
},
... And so on...
},
'allow_extra_fields': true,
2018-03-20 14:38:42 +00:00
'context_url': 'http://dublincore.org/documents/dcmi-terms/'
2018-03-15 21:35:09 +00:00
}
```
```
{
'name': 'Schema.org Creative Works',
'metadata': {
2018-03-15 21:35:09 +00:00
{
'name': 'name',
'label': 'Name',
'URI': 'http://schema.org/name'
},
{
'name': 'alternativeHeadline',
'label': 'Alternative Headline',
'URI': 'http://schema.org/alternativeHeadline'
},
... And so on...
},
'allow_extra_fields': false,
'context_url': 'http://schema.org',
'type': 'CreativeWork'
}
```