Skip to content

Commit

Permalink
Use consistent "camel case" for field names
Browse files Browse the repository at this point in the history
This changes several metadata field names to follow a consistent
"camel case" format used in Dublin Core and elsewhere in CG Core:

 - cg.peer-reviewed → cg.peerReviewed
 - cg.howpublished → cg.howPublished
 - cg.booktitle → cg.bookTitle
 - cg.HasMetadata → cg.hasMetadata
  • Loading branch information
alanorth committed Jan 19, 2021
1 parent 7c739fb commit e936dec
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 28 deletions.
28 changes: 14 additions & 14 deletions cgcore.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ <h1>CG Core Metadata Reference Guide</h1>
</ul>
<p>This document provides guidelines on how to use the CG Core metadata schema and provides examples on how to use it. An RDF version of the application profile will be available soon.</p>
<h2 id="metadata-properties">Metadata Properties</h2>
<p><a class="btn btn-sm btn-outline-secondary m-1" href="#dcterms:identifier">identifier</a> <a class="btn btn-sm btn-outline-secondary m-1" href="#dcterms:title">title</a> <a class="btn btn-sm btn-outline-secondary m-1" href="#dcterms:description">description</a> <a class="btn btn-sm btn-outline-secondary m-1" href="#dcterms:type">type</a> <a class="btn btn-sm btn-outline-secondary m-1" href="#dcterms:language">language</a> <a class="btn btn-sm btn-outline-secondary m-1" href="#dcterms:license">license</a> <a class="btn btn-sm btn-outline-secondary m-1" href="#dcterms:rightsHolder">rightsHolder</a> <a class="btn btn-sm btn-outline-secondary m-1" href="#dcterms:accessRights">accessRights</a> <a class="btn btn-sm btn-outline-secondary m-1" href="#dcterms:subject">subject</a> <a class="btn btn-sm btn-outline-secondary m-1" href="#dcterms:issued">issued</a> <a class="btn btn-sm btn-outline-secondary m-1" href="#cg:embargoDate">embargoDate</a> <a class="btn btn-sm btn-outline-secondary m-1" href="#dcterms:creator">creator</a> <a class="btn btn-sm btn-outline-secondary m-1" href="#dcterms:contributor">contributor</a> <a class="btn btn-sm btn-outline-secondary m-1" href="#dcterms:coverage">coverage</a> <a class="btn btn-sm btn-outline-secondary m-1" href="#dcterms:relation">relation</a> <a class="btn btn-sm btn-outline-secondary m-1" href="#cg:HasMetadata">hasMetadata</a></p>
<p class="invisible"><a id="dcterms:identifier"></a></p>
<p><a class="btn btn-sm btn-outline-secondary m-1" href="#dcterms:identifier">identifier</a> <a class="btn btn-sm btn-outline-secondary m-1" href="#dcterms:title">title</a> <a class="btn btn-sm btn-outline-secondary m-1" href="#dcterms:description">description</a> <a class="btn btn-sm btn-outline-secondary m-1" href="#dcterms:type">type</a> <a class="btn btn-sm btn-outline-secondary m-1" href="#dcterms:language">language</a> <a class="btn btn-sm btn-outline-secondary m-1" href="#dcterms:license">license</a> <a class="btn btn-sm btn-outline-secondary m-1" href="#dcterms:rightsHolder">rightsHolder</a> <a class="btn btn-sm btn-outline-secondary m-1" href="#dcterms:accessRights">accessRights</a> <a class="btn btn-sm btn-outline-secondary m-1" href="#dcterms:subject">subject</a> <a class="btn btn-sm btn-outline-secondary m-1" href="#dcterms:issued">issued</a> <a class="btn btn-sm btn-outline-secondary m-1" href="#cg:embargoDate">embargoDate</a> <a class="btn btn-sm btn-outline-secondary m-1" href="#dcterms:creator">creator</a> <a class="btn btn-sm btn-outline-secondary m-1" href="#dcterms:contributor">contributor</a> <a class="btn btn-sm btn-outline-secondary m-1" href="#dcterms:coverage">coverage</a> <a class="btn btn-sm btn-outline-secondary m-1" href="#dcterms:relation">relation</a> <a class="btn btn-sm btn-outline-secondary m-1" href="#cg:hasMetadata">hasMetadata</a></p>
<p class="invisible"><a id="dcterms:identifier"></a><a id="identifier"></a></p>
<table class="table table-sm table-bordered">
<thead>
<tr class="table-secondary">
Expand Down Expand Up @@ -514,7 +514,7 @@ <h2 id="metadata-properties">Metadata Properties</h2>
</tr>
</tbody>
</table>
<p class="invisible"><a id="cg:HasMetadata"></a></p>
<p class="invisible"><a id="cg:hasMetadata"></a></p>
<table class="table table-sm table-bordered">
<tbody>
<tr class="table-secondary">
Expand Down Expand Up @@ -1204,7 +1204,7 @@ <h3 id="creator-class">Creator</h3>
</table>
<h3 id="scientificPublication-class">Scientific Publication</h3>
<div class="my-4">
<a class="btn btn-sm btn-outline-secondary m-1" href="#dct:abstract">abstract</a> <a class="btn btn-sm btn-outline-secondary m-1" href="#dct:bibliographicCitation">bibliographicCitation</a> <a class="btn btn-sm btn-outline-secondary m-1" href="#dct:publisher">publisher</a> <a class="btn btn-sm btn-outline-secondary m-1" href="#cg:issn">issn</a> <a class="btn btn-sm btn-outline-secondary m-1" href="#cg:isbn">isbn</a> <a class="btn btn-sm btn-outline-secondary m-1" href="#cg:peer-reviewed">peer-reviewed</a> <a class="btn btn-sm btn-outline-secondary m-1" href="#dct:alternative">alternative title</a> <a class="btn btn-sm btn-outline-secondary m-1" href="#cg:howpublished">howpublished</a> <a class="btn btn-sm btn-outline-secondary m-1" href="#cg:journal">journal</a> <a class="btn btn-sm btn-outline-secondary m-1" href="#cg:booktitle">booktitle</a> <a class="btn btn-sm btn-outline-secondary m-1" href="#cg:chapter">chapter</a> <a class="btn btn-sm btn-outline-secondary m-1" href="#cg:pages">pages</a> <a class="btn btn-sm btn-outline-secondary m-1" href="#cg:volume">volume</a> <a class="btn btn-sm btn-outline-secondary m-1" href="#cg:number">number</a> <a class="btn btn-sm btn-outline-secondary m-1" href="#dct:extent">extent</a> <a class="btn btn-sm btn-outline-secondary m-1" href="#cg:series">series</a> <a class="btn btn-sm btn-outline-secondary m-1" href="#cg:edition">edition</a> <a class="btn btn-sm btn-outline-secondary m-1" href="#cg:notes">notes</a> <a class="btn btn-sm btn-outline-secondary m-1" href="#dct:audience">audience</a> <a class="btn btn-sm btn-outline-secondary m-1" href="#dct:isPartOf">isPartOf</a>
<a class="btn btn-sm btn-outline-secondary m-1" href="#dct:abstract">abstract</a> <a class="btn btn-sm btn-outline-secondary m-1" href="#dct:bibliographicCitation">bibliographicCitation</a> <a class="btn btn-sm btn-outline-secondary m-1" href="#dct:publisher">publisher</a> <a class="btn btn-sm btn-outline-secondary m-1" href="#cg:issn">issn</a> <a class="btn btn-sm btn-outline-secondary m-1" href="#cg:isbn">isbn</a> <a class="btn btn-sm btn-outline-secondary m-1" href="#cg:peerReviewed">peerReviewed</a> <a class="btn btn-sm btn-outline-secondary m-1" href="#dct:alternative">alternative title</a> <a class="btn btn-sm btn-outline-secondary m-1" href="#cg:howPublished">howPublished</a> <a class="btn btn-sm btn-outline-secondary m-1" href="#cg:journal">journal</a> <a class="btn btn-sm btn-outline-secondary m-1" href="#cg:bookTitle">bookTitle</a> <a class="btn btn-sm btn-outline-secondary m-1" href="#cg:chapter">chapter</a> <a class="btn btn-sm btn-outline-secondary m-1" href="#cg:pages">pages</a> <a class="btn btn-sm btn-outline-secondary m-1" href="#cg:volume">volume</a> <a class="btn btn-sm btn-outline-secondary m-1" href="#cg:number">number</a> <a class="btn btn-sm btn-outline-secondary m-1" href="#dct:extent">extent</a> <a class="btn btn-sm btn-outline-secondary m-1" href="#cg:series">series</a> <a class="btn btn-sm btn-outline-secondary m-1" href="#cg:edition">edition</a> <a class="btn btn-sm btn-outline-secondary m-1" href="#cg:notes">notes</a> <a class="btn btn-sm btn-outline-secondary m-1" href="#dct:audience">audience</a> <a class="btn btn-sm btn-outline-secondary m-1" href="#dct:isPartOf">isPartOf</a>
</div>
<table class="table table-sm table-bordered">
<tbody>
Expand Down Expand Up @@ -1399,12 +1399,12 @@ <h3 id="scientificPublication-class">Scientific Publication</h3>
</tr>
</tbody>
</table>
<p class="invisible"><a id="cg:peer-reviewed"></a></p>
<p class="invisible"><a id="cg:peerReviewed"></a></p>
<table class="table table-sm table-bordered">
<tbody>
<tr class="table-secondary">
<th colspan="2">
peer-reviewed
peerReviewed
<div class="badge-property">
<span class="badge badge-secondary">Property</span>
</div>
Expand All @@ -1413,7 +1413,7 @@ <h3 id="scientificPublication-class">Scientific Publication</h3>
<tr>
<td class="col-2 field-name">Identifier</td>
<td>
<a href="http://purl.org/cg/terms/peer-reviewed">http://purl.org/cg/terms/peer-reviewed</a>
<a href="http://purl.org/cg/terms/peerReviewed">http://purl.org/cg/terms/peerReviewed</a>
</td>
</tr>
<tr>
Expand All @@ -1426,7 +1426,7 @@ <h3 id="scientificPublication-class">Scientific Publication</h3>
</tr>
<tr>
<td class="col-2 field-name">Examples</td>
<td>true is peer-reviewed, not used if not</td>
<td>true is peerReviewed, not used if not</td>
</tr>
</tbody>
</table>
Expand Down Expand Up @@ -1463,12 +1463,12 @@ <h3 id="scientificPublication-class">Scientific Publication</h3>
</tr>
</tbody>
</table>
<p class="invisible"><a id="cg:howpublished"></a></p>
<p class="invisible"><a id="cg:howPublished"></a></p>
<table class="table table-sm table-bordered">
<tbody>
<tr class="table-secondary">
<th colspan="2">
howpublished
howPublished
<div class="badge-property">
<span class="badge badge-secondary">Property</span>
</div>
Expand All @@ -1477,7 +1477,7 @@ <h3 id="scientificPublication-class">Scientific Publication</h3>
<tr>
<td class="col-2 field-name">Identifier</td>
<td>
<a href="http://purl.org/cg/terms/howpublished">http://purl.org/cg/terms/howpublished</a>
<a href="http://purl.org/cg/terms/howPublished">http://purl.org/cg/terms/howPublished</a>
</td>
</tr>
<tr>
Expand Down Expand Up @@ -1525,12 +1525,12 @@ <h3 id="scientificPublication-class">Scientific Publication</h3>
</tr>
</tbody>
</table>
<p class="invisible"><a id="cg:booktitle"></a></p>
<p class="invisible"><a id="cg:bookTitle"></a></p>
<table class="table table-sm table-bordered">
<tbody>
<tr class="table-secondary">
<th colspan="2">
booktitle
bookTitle
<div class="badge-property">
<span class="badge badge-secondary">Property</span>
</div>
Expand All @@ -1539,7 +1539,7 @@ <h3 id="scientificPublication-class">Scientific Publication</h3>
<tr>
<td class="col-2 field-name">Identifier</td>
<td>
<a href="http://purl.org/cg/terms/booktitle">http://purl.org/cg/terms/booktitle</a>
<a href="http://purl.org/cg/terms/bookTitle">http://purl.org/cg/terms/bookTitle</a>
</td>
</tr>
<tr>
Expand Down
24 changes: 12 additions & 12 deletions cgcore.rdf
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ cg:InformationProduct a rdfs:Class ;
owl:onProperty dct:coverage ],
[ a owl:Restriction ;
owl:minCardinality 0 ;
owl:onProperty cg:HasMetadata ],
owl:onProperty cg:hasMetadata ],
[ a owl:Restriction ;
owl:minCardinality 0 ;
owl:onProperty dct:description ],
Expand Down Expand Up @@ -127,7 +127,7 @@ cg:ScientificPublication a rdfs:Class ;
owl:onProperty cg:ScientificPublication ],
[ a owl:Restriction ;
owl:minCardinality 0 ;
owl:onProperty cg:peer-reviewed ],
owl:onProperty cg:peerReviewed ],
[ a owl:Restriction ;
owl:minCardinality 0 ;
owl:onProperty cg:volume ],
Expand All @@ -136,13 +136,13 @@ cg:ScientificPublication a rdfs:Class ;
owl:onProperty cg:number ],
[ a owl:Restriction ;
owl:minCardinality 0 ;
owl:onProperty cg:booktitle ],
owl:onProperty cg:bookTitle ],
[ a owl:Restriction ;
owl:minCardinality 0 ;
owl:onProperty cg:pages ],
[ a owl:Restriction ;
owl:minCardinality 0 ;
owl:onProperty cg:howpublished ],
owl:onProperty cg:howPublished ],
[ a owl:Restriction ;
owl:minCardinality 0 ;
owl:onProperty dct:abstract ],
Expand Down Expand Up @@ -188,16 +188,16 @@ cg: a dct:Standard ;
dct:publisher cg:cgiar ;
dct:title "CGIAR Core Metadata Schema" .

cg:HasMetadata a rdf:Property ;
rdfs:label "HasMetadata" ;
cg:hasMetadata a rdf:Property ;
rdfs:label "hasMetadata" ;
rdfs:comment "A related resource that is the metadata record for the measured variables of the described dataset" .

cg:affiliation a rdf:Property ;
rdfs:label "affiliation" ;
rdfs:comment "the affiliation of the creator" .

cg:booktitle a rdf:Property ;
rdfs:label "booktitle" ;
cg:bookTitle a rdf:Property ;
rdfs:label "bookTitle" ;
rdfs:comment "The title of the book, if only part of it is being cited" .

cg:chapter a rdf:Property ;
Expand All @@ -216,8 +216,8 @@ cg:embargoDate a rdf:Property ;
rdfs:label "embargoDate" ;
rdfs:comment "In cases when the information product has an embargo this date indicates when it would be available." .

cg:howpublished a rdf:Property ;
rdfs:label "howpublished" ;
cg:howPublished a rdf:Property ;
rdfs:label "howPublished" ;
rdfs:comment "How it was published, if the publishing method is nonstandard" .

cg:journal a rdf:Property ;
Expand All @@ -236,8 +236,8 @@ cg:pages a rdf:Property ;
rdfs:label "pages" ;
rdfs:comment "Page numbers" .

cg:peer-reviewed a rdf:Property ;
rdfs:label "peer-reviewed" ;
cg:peerReviewed a rdf:Property ;
rdfs:label "peerReviewed" ;
rdfs:comment "If the resource has been peer reviewed" .

cg:series a rdf:Property ;
Expand Down
2 changes: 1 addition & 1 deletion examples/scientificPublication.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<dct:accessRights>Open</dct:accessRights>
<dct:issued>20/02/2018</dct:issued>
<dct:relation>DOI_XXXX</dct:relation> <!-- linked dataset -->
<cg:peer-reviewed>true</cg:peer-reviewed>
<cg:peerReviewed>true</cg:peerReviewed>
<cg:bookTitle>xxxxx</cg:bookTitle>
<cg:journalTitle></cg:journalTitle> <!-- controled list -->
<cg:pages>12-15</cg:pages>
Expand Down
2 changes: 1 addition & 1 deletion examples/scientificPublication_simple.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"accessRights": "Open",
"issued": "20/02/2018",
"relation": "DOI_XXXX",
"peer-reviewed": true,
"peerReviewed": true,
"bookTitle": "xxxxx",
"journalTitle": null,
"pages": "12-15",
Expand Down

0 comments on commit e936dec

Please sign in to comment.