|
il y a 8 ans | |
---|---|---|
.. | ||
.hgtags | il y a 8 ans | |
README.md | il y a 8 ans | |
csl-categories.rnc | il y a 8 ans | |
csl-citation.json | il y a 8 ans | |
csl-data-custom.json | il y a 8 ans | |
csl-data.json | il y a 8 ans | |
csl-data.rnc | il y a 8 ans | |
csl-relaxed.rnc | il y a 8 ans | |
csl-repository.rnc | il y a 8 ans | |
csl-terms.rnc | il y a 8 ans | |
csl-types.rnc | il y a 8 ans | |
csl-variables.rnc | il y a 8 ans | |
csl.rnc | il y a 8 ans | |
csl.sch | il y a 8 ans |
This is the official repository for schemas describing the Citation Style Language (CSL). Current schemas include:
For more information about CSL, visit CitationStyles.org.
The CSL schema is written in the compact syntax of RELAX NG, and currently consists of the following files:
CSL style and locale files should be validated against "csl.rnc", which incorporates the content of the other files.
The CSL schema contains several Schematron rules to make sure all macros called in a CSL style are actually defined. Since the popular Jing XML validator currently ignores embedded Schematron rules, we also provide the "csl.sch" Schematron schema, which contains the Schematron rules extracted from the CSL schema. Jing users can use "csl.sch" to perform a secondary validation of CSL styles.
The CSL-JSON schema is written in JSON Schema, and currently consists of the following files:
To render citations and bibliographies, CSL processors not only require CSL style and locale files, but also bibliographic metadata. The citeproc-js CSL processor introduced a JSON format to store such metadata, and this format has since been adopted by various other software products. The format, also known as "citeproc-JSON", has been codified in the CSL-JSON Schema.
At this point the CSL-JSON schema is not yet fully normative, and care must be taken to ensure compatibility with other tools built around CSL-JSON.
Whereas "csl-data.json" describes how the metadata of bibliographic items can be stored, "csl-citation.json" incorporates "csl-data.json" and adds an additional layer of information to also describe the context in which bibliographic items are cited. This includes information such as the order in which items are cited, which items are cited together in a single citation, etc.
Mendeley provided the following documentation on their use of CSL-JSON:
Support for the CSL Embedded Citation Object format is available in Mendeley Desktop 1.0 and later.
The CSL citation data object consists of:
a "citationItems" element of type "array", containing "objects" with the data of the individual cites. The individual cite object are structured as:
a "properties" element of type "object" containing:
(Mendeley-specific) a "mendeley" element of type "object" containing:
The method to embed metadata for citations and bibliographies typically varies between word processors. Currently Mendeley uses:
An example of an embedded citation object from Mendeley:
{
"schema": "https://github.com/citation-style-language/schema/raw/master/csl-citation.json",
"citationID": "12rsus7rlj",
"citationItems": [
{
"id": "ITEM-1",
"itemData": {
"id": "ITEM-1",
"issued": {
"date-parts": [
[
"2007"
]
]
},
"title": "My paper",
"type": "journal-article"
},
"locator": "21",
"label": "page",
"uris": [
"http://www.mendeley.com/documents/?uuid=970e7ce0-8a21-482e-b7d6-e77794a2d37d",
"http://www.zotero.org/uniqueDocumentId"
]
}
],
"mendeley": {
"previouslyFormattedCitation": "(2007)",
"manualFormatting": "2007b"
},
"properties": {
"noteIndex": 1
}
}