Project

General

Profile

« Previous | Next » 

Revision 6625

dict2redmine: url_term(): Also match any namespace that's part of the term

View differences:

bin/dict2redmine
17 17
def simplify_url(url): return re.sub(r'\(.*?\)', r'', url)
18 18

  
19 19
def url_term(url):
20
    match = re.search(r'[\w-]+$', url)
20
    match = re.search(r'[\w:-]+$', url)
21 21
    assert match
22 22
    return match.group(0)
23 23

  
mappings/VegCore.redmine
1 1
|*Term*|*Sources*|
2
|"dcterms:type":http://rs.tdwg.org/dwc/terms/#dcterms:type|"type":http://rs.tdwg.org/dwc/terms/#dcterms:type|
3
|"dcterms:modified":http://rs.tdwg.org/dwc/terms/#dcterms:modified|"modified":http://rs.tdwg.org/dwc/terms/#dcterms:modified|
4
|"dcterms:language":http://rs.tdwg.org/dwc/terms/#dcterms:language|"language":http://rs.tdwg.org/dwc/terms/#dcterms:language|
5
|"dcterms:rights":http://rs.tdwg.org/dwc/terms/#dcterms:rights|"rights":http://rs.tdwg.org/dwc/terms/#dcterms:rights|
6
|"dcterms:rightsHolder":http://rs.tdwg.org/dwc/terms/#dcterms:rightsHolder|"rightsHolder":http://rs.tdwg.org/dwc/terms/#dcterms:rightsHolder|
7
|"dcterms:accessRights":http://rs.tdwg.org/dwc/terms/#dcterms:accessRights|"accessRights":http://rs.tdwg.org/dwc/terms/#dcterms:accessRights|
8
|"dcterms:bibliographicCitation":http://rs.tdwg.org/dwc/terms/#dcterms:bibliographicCitation|"bibliographicCitation":http://rs.tdwg.org/dwc/terms/#dcterms:bibliographicCitation|
9
|"dcterms:references":http://rs.tdwg.org/dwc/terms/#dcterms:references|"references":http://rs.tdwg.org/dwc/terms/#dcterms:references|
2
|"dcterms:type":http://rs.tdwg.org/dwc/terms/#dcterms:type|"dcterms:type":http://rs.tdwg.org/dwc/terms/#dcterms:type|
3
|"dcterms:modified":http://rs.tdwg.org/dwc/terms/#dcterms:modified|"dcterms:modified":http://rs.tdwg.org/dwc/terms/#dcterms:modified|
4
|"dcterms:language":http://rs.tdwg.org/dwc/terms/#dcterms:language|"dcterms:language":http://rs.tdwg.org/dwc/terms/#dcterms:language|
5
|"dcterms:rights":http://rs.tdwg.org/dwc/terms/#dcterms:rights|"dcterms:rights":http://rs.tdwg.org/dwc/terms/#dcterms:rights|
6
|"dcterms:rightsHolder":http://rs.tdwg.org/dwc/terms/#dcterms:rightsHolder|"dcterms:rightsHolder":http://rs.tdwg.org/dwc/terms/#dcterms:rightsHolder|
7
|"dcterms:accessRights":http://rs.tdwg.org/dwc/terms/#dcterms:accessRights|"dcterms:accessRights":http://rs.tdwg.org/dwc/terms/#dcterms:accessRights|
8
|"dcterms:bibliographicCitation":http://rs.tdwg.org/dwc/terms/#dcterms:bibliographicCitation|"dcterms:bibliographicCitation":http://rs.tdwg.org/dwc/terms/#dcterms:bibliographicCitation|
9
|"dcterms:references":http://rs.tdwg.org/dwc/terms/#dcterms:references|"dcterms:references":http://rs.tdwg.org/dwc/terms/#dcterms:references|
10 10
|"institutionID":http://rs.tdwg.org/dwc/terms/#institutionID|"institutionID":http://rs.tdwg.org/dwc/terms/#institutionID|
11 11
|"collectionID":http://rs.tdwg.org/dwc/terms/#collectionID|"collectionID":http://rs.tdwg.org/dwc/terms/#collectionID|
12 12
|"datasetID":http://rs.tdwg.org/dwc/terms/#datasetID|"datasetID":http://rs.tdwg.org/dwc/terms/#datasetID|

Also available in: Unified diff