Skip to content

Instantly share code, notes, and snippets.

Background

Abbreviations (mostly for journal titles, but other fields need to be considered as well) are required by a number of citation styles and the rules or vocabularies for these abbreviations can vary from style to style. Thus, in order to provide correct citations, citation style language should include a way to indicate which abbreviation format should be used per style.

Styles requiring abbreviations

<rdf:RDF
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:z="http://www.zotero.org/namespaces/export#"
xmlns:bib="http://purl.org/net/biblio#"
xmlns:foaf="http://xmlns.com/foaf/0.1/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:vcard="http://nwalsh.com/rdf/vCard#"
xmlns:dcterms="http://purl.org/dc/terms/"
xmlns:prism="http://prismstandard.org/namespaces/1.2/basic/"
xmlns:link="http://purl.org/rss/1.0/modules/link/">
@aurimasv
aurimasv / uct-data.rdf
Created June 18, 2014 02:53
Sample data for University of Cape Town Harvard citation style. From http://www.lib.uct.ac.za/wp-content/uploads/2014/02/harvard-uct-2014.pdf
<rdf:RDF
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:z="http://www.zotero.org/namespaces/export#"
xmlns:dcterms="http://purl.org/dc/terms/"
xmlns:bib="http://purl.org/net/biblio#"
xmlns:foaf="http://xmlns.com/foaf/0.1/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:vcard="http://nwalsh.com/rdf/vCard#"
xmlns:prism="http://prismstandard.org/namespaces/1.2/basic/">
<bib:Document rdf:about="http://www.africa-union.org/root/au/recs/sadc.htm">
<rdf:RDF
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:z="http://www.zotero.org/namespaces/export#"
xmlns:dcterms="http://purl.org/dc/terms/"
xmlns:bib="http://purl.org/net/biblio#"
xmlns:foaf="http://xmlns.com/foaf/0.1/"
xmlns:dc="http://purl.org/dc/elements/1.1/">
<bib:Article rdf:about="#item_90">
<z:itemType>journalArticle</z:itemType>
<dcterms:isPartOf>
@aurimasv
aurimasv / CSE-citation-name.csl
Created July 10, 2014 02:37
CSE citation-name
<?xml version="1.0" encoding="utf-8"?>
<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0" demote-non-dropping-particle="sort-only" default-locale="en-US">
<!-- This style was edited with the Visual CSL Editor (http://steveridout.com/csl/visualEditor/) -->
<info>
<title>Council of Science Editors (citation-name)</title>
<title-short>CSE</title-short>
<id>http://www.zotero.org/styles/council-of-science-editors-citation-name</id>
<link href="http://www.zotero.org/styles/council-of-science-editors-citation-name" rel="self"/>
<link href="http://bcs.bedfordstmartins.com/resdoc5e/RES5e_ch11_o.html" rel="documentation"/>
<author>
@aurimasv
aurimasv / sort-test-min.csl
Created July 10, 2014 04:29
Sort testing (minimal style)
<?xml version="1.0" encoding="utf-8"?>
<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0" default-locale="en-US">
<info>
<title>Sort test</title>
<id>http://www.zotero.org/styles/sort-test</id>
<link href="http://www.zotero.org/styles/sort-test" rel="self"/>
<author>
<name>John Doe</name>
</author>
<category citation-format="numeric"/>
@aurimasv
aurimasv / csl-overlay
Created July 13, 2014 20:09
CSL overlay proposal
<?xml version="1.0" encoding="utf-8"?>
<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0">
<info>
<title>Some child style</title>
<id>http://www.zotero.org/styles/child-style</id>
<link href="http://www.zotero.org/styles/child-style" rel="self"/>
<link href="http://www.zotero.org/styles/parent-style" rel="template"/>
<updated>2014-07-09T21:58:08+00:00</updated>
</info>
<overlay> <!-- if this is present, the "template" style is loaded, the /style/info node is replaced with above, and the included modifications are performed -->
(3)(+0000000): '0' => [object Object] {
'primary' => [object Object] {}
'fields' => [object Object] {
'abstractNote' => "Summary
IDH1 and IDH2 mutations occur frequently in gliomas and acute myeloid leukemia, leading to simultaneous loss and gain of activities in the production of α-ketoglutarate (α-KG) and 2-hydroxyglutarate (2-HG), respectively. Here we demonstrate that 2-HG is a competitive inhibitor of multiple α-KG-dependent dioxygenases, including histone demethylases and the TET family of 5-methlycytosine (5mC) hydroxylases. 2-HG occupies the same space as α-KG does in the active site of histone demethylases. Ectopic expression of tumor-derived IDH1 and IDH2 mutants inhibits histone demethylation and 5mC hydroxylation. In glioma, IDH1 mutations are associated with increased histone methylation and decreased 5-hydroxylmethylcytosine (5hmC). Hence, tumor-derived IDH1 and IDH2 mutations reduce α-KG and accumulate an α-KG antagonist, 2-HG, leading to genome-wide histone and
@aurimasv
aurimasv / harpweek
Created October 6, 2014 17:51
app.harpweek.com
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<link href="/common/lcw.css" rel="stylesheet" type="text/css">
<title>HarpWeek - Electronic Access to Harper's Weekly</title>
</head>
@aurimasv
aurimasv / search.results.html
Created October 6, 2014 17:54
HarpWeek search results
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<link href="/Common/lcw.css" rel="stylesheet" type="text/css">
<title>HarpWeek - Electronic Access to Harper's Weekly</title>
</head>