mirror of https://github.com/tdwg/dwc.git
Remove dcterms: prefix from term page build script
This commit is contained in:
parent
033726e6bc
commit
85ab2a5f3b
|
@ -69,7 +69,7 @@
|
|||
<nav class="col-sm-2 terms-sidebar">
|
||||
<ul class="nav nav-stacked">
|
||||
#for $group in $groups
|
||||
<li><a href="#$group.name_simple">$group.name</a></li>
|
||||
<li><a href="#$group.name">$group.name</a></li>
|
||||
#end for
|
||||
</ul>
|
||||
</nav>
|
||||
|
@ -82,7 +82,7 @@
|
|||
#def showTerm($t, $isProperty)
|
||||
#if $t.uri is not None
|
||||
#if $isProperty
|
||||
<div id="$t.name_simple" class="term-definition">
|
||||
<div id="$t.name" class="term-definition">
|
||||
<table class="table table-bordered table-condensed">
|
||||
#else
|
||||
<div class="class-definition">
|
||||
|
@ -109,12 +109,12 @@
|
|||
#end if
|
||||
#end def
|
||||
#for $group in $groups
|
||||
<section id="$group.name_simple" class="class-group">
|
||||
<section id="$group.name" class="class-group">
|
||||
<header class="well">
|
||||
<h2>$group.name</h2>
|
||||
<ul class="list-inline">
|
||||
#for $term in $group.terms
|
||||
<li><a href="#$term.name_simple">$term.name</a></li>
|
||||
<li><a href="#$term.name">$term.name</a></li>
|
||||
#end for
|
||||
</ul>
|
||||
</header>
|
||||
|
|
|
@ -37,12 +37,12 @@ def buildDownloads(groups):
|
|||
with codecs.open('../resources/simple_dwc_terms_list.csv', 'w', 'utf-8') as f:
|
||||
for g in groups:
|
||||
for t in g["terms"]:
|
||||
f.write(t["name_simple"] + "\n")
|
||||
f.write(t["name"] + "\n")
|
||||
print """building simple_dwc.properties"""
|
||||
with codecs.open('../resources/simple_dwc.properties', 'w', 'utf-8') as f:
|
||||
for g in groups:
|
||||
for t in g["terms"]:
|
||||
term=t["name_simple"]
|
||||
term=t["name"]
|
||||
f.write("%s.name=%s\n" % (term,term))
|
||||
f.write("%s.uri=%s\n" % (term,t["uri"]))
|
||||
f.write("%s.label=%s\n" % (term, n2e(t["label"])))
|
||||
|
@ -55,7 +55,7 @@ def buildDownloads(groups):
|
|||
for t in g["terms"]:
|
||||
if started:
|
||||
f.write(",")
|
||||
f.write('"'+t["name_simple"]+'"')
|
||||
f.write('"'+t["name"]+'"')
|
||||
started=True
|
||||
f.write("\n")
|
||||
print """building simple_dwc_pgsql.sql"""
|
||||
|
@ -68,8 +68,8 @@ def buildDownloads(groups):
|
|||
for t in g["terms"]:
|
||||
if started:
|
||||
f.write(",\n")
|
||||
f.write(' "%s" ' % t["name_simple"])
|
||||
f.write(types.get(t["name_simple"], "text"))
|
||||
f.write(' "%s" ' % t["name"])
|
||||
f.write(types.get(t["name"], "text"))
|
||||
started=True
|
||||
f.write("\n);\n")
|
||||
|
||||
|
@ -92,14 +92,11 @@ def getTermDef(name, g):
|
|||
t={}
|
||||
if name.startswith("DC_"):
|
||||
name=name[3:]
|
||||
t["name"]="dcterms:"+name
|
||||
t["name_simple"]=name
|
||||
t["name_prefixed"]=t["name"]
|
||||
t["fullname"]=t["name"]
|
||||
t["name"]=name
|
||||
t["name_prefixed"]="dcterms:"+name
|
||||
uri=DC.term(name)
|
||||
else:
|
||||
t["name"]=name
|
||||
t["name_simple"]=name
|
||||
t["name_prefixed"]="dwc:"+name
|
||||
uri=DWC.term(name)
|
||||
if uri==REC_LEVEL:
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
"TermName","URI","Label_en","Group","Definition","Comments"
|
||||
"dcterms:type","http://purl.org/dc/terms/type","","","The nature or genre of the resource. For Darwin Core, recommended best practice is to use the name of the class that defines the root of the record.","Examples: ""StillImage"", ""MovingImage"", ""Sound"", ""PhysicalObject"", ""Event"", ""Text"". For discussion see <a href='http://terms.tdwg.org/wiki/dwc:type'>http://terms.tdwg.org/wiki/dwc:type</a>"
|
||||
"dcterms:modified","http://purl.org/dc/terms/modified","","","The most recent date-time on which the resource was changed. For Darwin Core, recommended best practice is to use an encoding scheme, such as ISO 8601:2004(E).","Examples: ""1963-03-08T14:07-0600"" is 8 Mar 1963 2:07pm in the time zone six hours earlier than UTC, ""2009-02-20T08:40Z"" is 20 Feb 2009 8:40am UTC, ""1809-02-12"" is 12 Feb 1809, ""1906-06"" is Jun 1906, ""1971"" is just that year, ""2007-03-01T13:00:00Z/2008-05-11T15:30:00Z"" is the interval between 1 Mar 2007 1pm UTC and 11 May 2008 3:30pm UTC, ""2007-11-13/15"" is the interval between 13 Nov 2007 and 15 Nov 2007. For discussion see <a href='http://terms.tdwg.org/wiki/dwc:modified'>http://terms.tdwg.org/wiki/dwc:modified</a>"
|
||||
"dcterms:language","http://purl.org/dc/terms/language","","","A language of the resource. Recommended best practice is to use a controlled vocabulary such as RFC 4646 [RFC4646].","Examples: ""en"" for English, ""es"" for Spanish. For discussion see <a href='http://terms.tdwg.org/wiki/dwc:language'>http://terms.tdwg.org/wiki/dwc:language</a>"
|
||||
"dcterms:license","http://purl.org/dc/terms/license","","","A legal document giving official permission to do something with the resource.","Examples: ""<a href='http://creativecommons.org/publicdomain/zero/1.0/legalcode"",'>http://creativecommons.org/publicdomain/zero/1.0/legalcode"",</a> ""<a href='http://creativecommons.org/licenses/by/4.0/legalcode"".'>http://creativecommons.org/licenses/by/4.0/legalcode"".</a> For discussion see <a href='http://terms.tdwg.org/wiki/dwc:license'>http://terms.tdwg.org/wiki/dwc:license</a>"
|
||||
"dcterms:rightsHolder","http://purl.org/dc/terms/rightsHolder","","","A person or organization owning or managing rights over the resource.","Example: ""The Regents of the University of California."". For discussion see <a href='http://terms.tdwg.org/wiki/dwc:rightsHolder'>http://terms.tdwg.org/wiki/dwc:rightsHolder</a>"
|
||||
"dcterms:accessRights","http://purl.org/dc/terms/accessRights","","","Information about who can access the resource or an indication of its security status. Access Rights may include information regarding access or restrictions based on privacy, security, or other policies.","Example: ""not-for-profit use only"". For discussion see <a href='http://terms.tdwg.org/wiki/dwc:accessRights'>http://terms.tdwg.org/wiki/dwc:accessRights</a>"
|
||||
"dcterms:bibliographicCitation","http://purl.org/dc/terms/bibliographicCitation","","","A bibliographic reference for the resource as a statement indicating how this record should be cited (attributed) when used. Recommended practice is to include sufficient bibliographic detail to identify the resource as unambiguously as possible.","Examples: ""Ctenomys sociabilis (MVZ 165861)"" for a specimen, ""Oliver P. Pearson. 1985. Los tuco-tucos (genera Ctenomys) de los Parques Nacionales Lanin y Nahuel Huapi, Argentina Historia Natural, 5(37):337-343."" for a Taxon. For discussion see <a href='http://terms.tdwg.org/wiki/dwc:bibliographicCitation'>http://terms.tdwg.org/wiki/dwc:bibliographicCitation</a>"
|
||||
"dcterms:references","http://purl.org/dc/terms/references","","","A related resource that is referenced, cited, or otherwise pointed to by the described resource.","Examples: ""<a href='http://mvzarctos.berkeley.edu/guid/MVZ:Mamm:165861"";'>http://mvzarctos.berkeley.edu/guid/MVZ:Mamm:165861"";</a> ""<a href='http://www.catalogueoflife.org/annual-checklist/show_species_details.php?record_id=6197868"".'>http://www.catalogueoflife.org/annual-checklist/show_species_details.php?record_id=6197868"".</a> For discussion see <a href='http://terms.tdwg.org/wiki/dwc:references'>http://terms.tdwg.org/wiki/dwc:references</a>"
|
||||
"type","http://purl.org/dc/terms/type","","","The nature or genre of the resource. For Darwin Core, recommended best practice is to use the name of the class that defines the root of the record.","Examples: ""StillImage"", ""MovingImage"", ""Sound"", ""PhysicalObject"", ""Event"", ""Text"". For discussion see <a href='http://terms.tdwg.org/wiki/dwc:type'>http://terms.tdwg.org/wiki/dwc:type</a>"
|
||||
"modified","http://purl.org/dc/terms/modified","","","The most recent date-time on which the resource was changed. For Darwin Core, recommended best practice is to use an encoding scheme, such as ISO 8601:2004(E).","Examples: ""1963-03-08T14:07-0600"" is 8 Mar 1963 2:07pm in the time zone six hours earlier than UTC, ""2009-02-20T08:40Z"" is 20 Feb 2009 8:40am UTC, ""1809-02-12"" is 12 Feb 1809, ""1906-06"" is Jun 1906, ""1971"" is just that year, ""2007-03-01T13:00:00Z/2008-05-11T15:30:00Z"" is the interval between 1 Mar 2007 1pm UTC and 11 May 2008 3:30pm UTC, ""2007-11-13/15"" is the interval between 13 Nov 2007 and 15 Nov 2007. For discussion see <a href='http://terms.tdwg.org/wiki/dwc:modified'>http://terms.tdwg.org/wiki/dwc:modified</a>"
|
||||
"language","http://purl.org/dc/terms/language","","","A language of the resource. Recommended best practice is to use a controlled vocabulary such as RFC 4646 [RFC4646].","Examples: ""en"" for English, ""es"" for Spanish. For discussion see <a href='http://terms.tdwg.org/wiki/dwc:language'>http://terms.tdwg.org/wiki/dwc:language</a>"
|
||||
"license","http://purl.org/dc/terms/license","","","A legal document giving official permission to do something with the resource.","Examples: ""<a href='http://creativecommons.org/publicdomain/zero/1.0/legalcode"",'>http://creativecommons.org/publicdomain/zero/1.0/legalcode"",</a> ""<a href='http://creativecommons.org/licenses/by/4.0/legalcode"".'>http://creativecommons.org/licenses/by/4.0/legalcode"".</a> For discussion see <a href='http://terms.tdwg.org/wiki/dwc:license'>http://terms.tdwg.org/wiki/dwc:license</a>"
|
||||
"rightsHolder","http://purl.org/dc/terms/rightsHolder","","","A person or organization owning or managing rights over the resource.","Example: ""The Regents of the University of California."". For discussion see <a href='http://terms.tdwg.org/wiki/dwc:rightsHolder'>http://terms.tdwg.org/wiki/dwc:rightsHolder</a>"
|
||||
"accessRights","http://purl.org/dc/terms/accessRights","","","Information about who can access the resource or an indication of its security status. Access Rights may include information regarding access or restrictions based on privacy, security, or other policies.","Example: ""not-for-profit use only"". For discussion see <a href='http://terms.tdwg.org/wiki/dwc:accessRights'>http://terms.tdwg.org/wiki/dwc:accessRights</a>"
|
||||
"bibliographicCitation","http://purl.org/dc/terms/bibliographicCitation","","","A bibliographic reference for the resource as a statement indicating how this record should be cited (attributed) when used. Recommended practice is to include sufficient bibliographic detail to identify the resource as unambiguously as possible.","Examples: ""Ctenomys sociabilis (MVZ 165861)"" for a specimen, ""Oliver P. Pearson. 1985. Los tuco-tucos (genera Ctenomys) de los Parques Nacionales Lanin y Nahuel Huapi, Argentina Historia Natural, 5(37):337-343."" for a Taxon. For discussion see <a href='http://terms.tdwg.org/wiki/dwc:bibliographicCitation'>http://terms.tdwg.org/wiki/dwc:bibliographicCitation</a>"
|
||||
"references","http://purl.org/dc/terms/references","","","A related resource that is referenced, cited, or otherwise pointed to by the described resource.","Examples: ""<a href='http://mvzarctos.berkeley.edu/guid/MVZ:Mamm:165861"";'>http://mvzarctos.berkeley.edu/guid/MVZ:Mamm:165861"";</a> ""<a href='http://www.catalogueoflife.org/annual-checklist/show_species_details.php?record_id=6197868"".'>http://www.catalogueoflife.org/annual-checklist/show_species_details.php?record_id=6197868"".</a> For discussion see <a href='http://terms.tdwg.org/wiki/dwc:references'>http://terms.tdwg.org/wiki/dwc:references</a>"
|
||||
"institutionID","http://rs.tdwg.org/dwc/terms/institutionID","Institution ID","","An identifier for the institution having custody of the object(s) or information referred to in the record.","For physical specimens, the recommended best practice is to use an identifier from a collections registry such as the Global Registry of Biodiversity Repositories (<a href='http://grbio.org/).'>http://grbio.org/).</a> Examples: ""<a href='http://biocol.org/urn:lsid:biocol.org:col:34777"",'>http://biocol.org/urn:lsid:biocol.org:col:34777"",</a> ""<a href='http://grbio.org/cool/km06-gtbn"".'>http://grbio.org/cool/km06-gtbn"".</a>"
|
||||
"collectionID","http://rs.tdwg.org/dwc/terms/collectionID","Collection ID","","An identifier for the collection or dataset from which the record was derived.","For physical specimens, the recommended best practice is to use an identifier from a collections registry such as the Global Registry of Biodiversity Repositories (<a href='http://grbio.org/).'>http://grbio.org/).</a> Examples: ""<a href='http://biocol.org/urn:lsid:biocol.org:col:1001"",'>http://biocol.org/urn:lsid:biocol.org:col:1001"",</a> ""<a href='http://grbio.org/cool/p5fp-c036"".'>http://grbio.org/cool/p5fp-c036"".</a>"
|
||||
"datasetID","http://rs.tdwg.org/dwc/terms/datasetID","Dataset ID","","An identifier for the set of data. May be a global unique identifier or an identifier specific to a collection or institution.",""
|
||||
|
|
|
|
@ -78,7 +78,7 @@
|
|||
<li><a href="#Event">Event</a></li>
|
||||
<li><a href="#HumanObservation">HumanObservation</a></li>
|
||||
<li><a href="#MachineObservation">MachineObservation</a></li>
|
||||
<li><a href="#Location">dcterms:Location</a></li>
|
||||
<li><a href="#Location">Location</a></li>
|
||||
<li><a href="#GeologicalContext">GeologicalContext</a></li>
|
||||
<li><a href="#Identification">Identification</a></li>
|
||||
<li><a href="#Taxon">Taxon</a></li>
|
||||
|
@ -96,14 +96,14 @@
|
|||
<header class="well">
|
||||
<h2>Record-level</h2>
|
||||
<ul class="list-inline">
|
||||
<li><a href="#type">dcterms:type</a></li>
|
||||
<li><a href="#modified">dcterms:modified</a></li>
|
||||
<li><a href="#language">dcterms:language</a></li>
|
||||
<li><a href="#license">dcterms:license</a></li>
|
||||
<li><a href="#rightsHolder">dcterms:rightsHolder</a></li>
|
||||
<li><a href="#accessRights">dcterms:accessRights</a></li>
|
||||
<li><a href="#bibliographicCitation">dcterms:bibliographicCitation</a></li>
|
||||
<li><a href="#references">dcterms:references</a></li>
|
||||
<li><a href="#type">type</a></li>
|
||||
<li><a href="#modified">modified</a></li>
|
||||
<li><a href="#language">language</a></li>
|
||||
<li><a href="#license">license</a></li>
|
||||
<li><a href="#rightsHolder">rightsHolder</a></li>
|
||||
<li><a href="#accessRights">accessRights</a></li>
|
||||
<li><a href="#bibliographicCitation">bibliographicCitation</a></li>
|
||||
<li><a href="#references">references</a></li>
|
||||
<li><a href="#institutionID">institutionID</a></li>
|
||||
<li><a href="#collectionID">collectionID</a></li>
|
||||
<li><a href="#datasetID">datasetID</a></li>
|
||||
|
@ -127,7 +127,7 @@
|
|||
<col />
|
||||
</colgroup>
|
||||
<tbody>
|
||||
<tr><td colspan="2">dcterms:type</td></tr>
|
||||
<tr><td colspan="2">type</td></tr>
|
||||
<tr><td>Label</td><td></td></tr>
|
||||
<tr><td>Identifier</td><td><a href="http://purl.org/dc/terms/type">http://purl.org/dc/terms/type</a></td></tr>
|
||||
<tr><td>Class</td><td></td></tr>
|
||||
|
@ -146,7 +146,7 @@
|
|||
<col />
|
||||
</colgroup>
|
||||
<tbody>
|
||||
<tr><td colspan="2">dcterms:modified</td></tr>
|
||||
<tr><td colspan="2">modified</td></tr>
|
||||
<tr><td>Label</td><td></td></tr>
|
||||
<tr><td>Identifier</td><td><a href="http://purl.org/dc/terms/modified">http://purl.org/dc/terms/modified</a></td></tr>
|
||||
<tr><td>Class</td><td></td></tr>
|
||||
|
@ -165,7 +165,7 @@
|
|||
<col />
|
||||
</colgroup>
|
||||
<tbody>
|
||||
<tr><td colspan="2">dcterms:language</td></tr>
|
||||
<tr><td colspan="2">language</td></tr>
|
||||
<tr><td>Label</td><td></td></tr>
|
||||
<tr><td>Identifier</td><td><a href="http://purl.org/dc/terms/language">http://purl.org/dc/terms/language</a></td></tr>
|
||||
<tr><td>Class</td><td></td></tr>
|
||||
|
@ -184,7 +184,7 @@
|
|||
<col />
|
||||
</colgroup>
|
||||
<tbody>
|
||||
<tr><td colspan="2">dcterms:license</td></tr>
|
||||
<tr><td colspan="2">license</td></tr>
|
||||
<tr><td>Label</td><td></td></tr>
|
||||
<tr><td>Identifier</td><td><a href="http://purl.org/dc/terms/license">http://purl.org/dc/terms/license</a></td></tr>
|
||||
<tr><td>Class</td><td></td></tr>
|
||||
|
@ -203,7 +203,7 @@
|
|||
<col />
|
||||
</colgroup>
|
||||
<tbody>
|
||||
<tr><td colspan="2">dcterms:rightsHolder</td></tr>
|
||||
<tr><td colspan="2">rightsHolder</td></tr>
|
||||
<tr><td>Label</td><td></td></tr>
|
||||
<tr><td>Identifier</td><td><a href="http://purl.org/dc/terms/rightsHolder">http://purl.org/dc/terms/rightsHolder</a></td></tr>
|
||||
<tr><td>Class</td><td></td></tr>
|
||||
|
@ -222,7 +222,7 @@
|
|||
<col />
|
||||
</colgroup>
|
||||
<tbody>
|
||||
<tr><td colspan="2">dcterms:accessRights</td></tr>
|
||||
<tr><td colspan="2">accessRights</td></tr>
|
||||
<tr><td>Label</td><td></td></tr>
|
||||
<tr><td>Identifier</td><td><a href="http://purl.org/dc/terms/accessRights">http://purl.org/dc/terms/accessRights</a></td></tr>
|
||||
<tr><td>Class</td><td></td></tr>
|
||||
|
@ -241,7 +241,7 @@
|
|||
<col />
|
||||
</colgroup>
|
||||
<tbody>
|
||||
<tr><td colspan="2">dcterms:bibliographicCitation</td></tr>
|
||||
<tr><td colspan="2">bibliographicCitation</td></tr>
|
||||
<tr><td>Label</td><td></td></tr>
|
||||
<tr><td>Identifier</td><td><a href="http://purl.org/dc/terms/bibliographicCitation">http://purl.org/dc/terms/bibliographicCitation</a></td></tr>
|
||||
<tr><td>Class</td><td></td></tr>
|
||||
|
@ -260,7 +260,7 @@
|
|||
<col />
|
||||
</colgroup>
|
||||
<tbody>
|
||||
<tr><td colspan="2">dcterms:references</td></tr>
|
||||
<tr><td colspan="2">references</td></tr>
|
||||
<tr><td>Label</td><td></td></tr>
|
||||
<tr><td>Identifier</td><td><a href="http://purl.org/dc/terms/references">http://purl.org/dc/terms/references</a></td></tr>
|
||||
<tr><td>Class</td><td></td></tr>
|
||||
|
@ -1567,7 +1567,7 @@
|
|||
</section>
|
||||
<section id="Location" class="class-group">
|
||||
<header class="well">
|
||||
<h2>dcterms:Location</h2>
|
||||
<h2>Location</h2>
|
||||
<ul class="list-inline">
|
||||
<li><a href="#locationID">locationID</a></li>
|
||||
<li><a href="#higherGeographyID">higherGeographyID</a></li>
|
||||
|
@ -1623,7 +1623,7 @@
|
|||
<col />
|
||||
</colgroup>
|
||||
<tbody>
|
||||
<tr><td colspan="2">dcterms:Location</td></tr>
|
||||
<tr><td colspan="2">Location</td></tr>
|
||||
<tr><td>Label</td><td></td></tr>
|
||||
<tr><td>Identifier</td><td><a href="http://purl.org/dc/terms/Location">http://purl.org/dc/terms/Location</a></td></tr>
|
||||
<tr><td>Definition</td><td>A spatial region or named place.</td></tr>
|
||||
|
|
Loading…
Reference in New Issue