Project

General

Profile

Download (5.34 KB) Statistics
| Branch: | Tag: | Revision:
1
<?php
2
/**
3
 * @file
4
 * CDM Server URI definitions.
5
 */
6

    
7
define('CDM_WS_REFERENCE', 'reference');
8
define('CDM_WS_REFERENCE_AUTHORTEAM', 'reference/$0/authorTeam');
9
define('CDM_WS_NOMENCLATURAL_REFERENCE_CITATION', 'reference/$0/nomenclaturalCitation');
10

    
11
define('CDM_WS_NAME', 'name');
12
define('CDM_WS_NAME_NAMECAHE', 'name/$0/nameCache');
13
define('CDM_WS_NAME_TYPEDESIGNATIONS', 'name/$0/typeDesignations');
14

    
15
define('CDM_WS_PORTAL_NAME_FINDBYNAME', 'name/findByName/');
16
define('CDM_WS_PORTAL_NAME_DESCRIPTIONS', 'portal/name/$0/taxonNameDescriptions');
17
define('CDM_WS_PORTAL_NAME_TYPEDESIGNATIONS', 'portal/name/$0/typeDesignations');
18

    
19
define('CDM_WS_TAXON', 'taxon');
20
define('CDM_WS_TAXON_CLASSIFICATIONS', 'taxon/$0/classifications');
21
define('CDM_WS_TAXON_FINDBY_DESCRIPTIONELEMENT_FULLTEXT', 'taxon/findByDescriptionElementFullText');
22

    
23
define('CDM_WS_PORTAL_TAXON', 'portal/taxon');
24
define('CDM_WS_PORTAL_TAXON_SYNONYMY', 'portal/taxon/$0/synonymy');
25
define('CDM_WS_PORTAL_TAXON_RELATIONS', 'portal/taxon/$0/taxonRelationships');
26
define('CDM_WS_PORTAL_TAXON_NAMERELATIONS', 'portal/taxon/$0/nameRelationships');
27
define('CDM_WS_PORTAL_TAXON_NAMETYPEDESIGNATIONS', 'portal/taxon/$0/nameTypeDesignations');
28
define('CDM_WS_PORTAL_TAXON_DESCRIPTIONS', 'portal/taxon/$0/descriptions');
29

    
30
/**
31
 * Parameter $0: taxon UUID.
32
 * Parameter $1: simple name of the class extending DescriptionElementBase.
33
 */
34
define('CDM_WS_PORTAL_TAXON_DESCRIPTIONS_ELEMENTSBYTYPE', 'portal/taxon/$0/descriptions/elementsByType/$1');
35
define('CDM_WS_PORTAL_TAXON_USEDESCRIPTIONS', 'portal/taxon/$0/useDescriptions');
36
define('CDM_WS_PORTAL_TAXON_FINDBESTMATCHINGTAXON', 'bestMatchingTaxon/$0');
37
define('CDM_WS_PORTAL_TAXON_TO_NAMERELATIONS', 'portal/taxon/$0/toNameRelationships');
38
define('CDM_WS_PORTAL_TAXON_FROM_NAMERELATIONS', 'portal/taxon/$0/fromNameRelationships');
39
define('CDM_WS_PORTAL_TAXON_MEDIA', 'portal/taxon/$0/media');
40
define('CDM_WS_PORTAL_TAXON_SUBTREE_MEDIA', 'portal/taxon/$0/subtree/media');
41

    
42
/**
43
 * Parameter $0 : the taxon uuid.
44
 *
45
 * Returns the taxon which is the accepted synonym for the taxon given as
46
 * parameter taxonUuid. If the taxon specified by taxonUuid is itself the
47
 * accepted taxon, this one will be returned.
48
 */
49
define('CDM_WS_PORTAL_TAXON_ACCEPTED', 'portal/taxon/$0/accepted/$1');
50
define('CDM_WS_PORTAL_TAXON_TAXONNODES', 'portal/taxon/$0/taxonNodes');
51
define('CDM_WS_PORTAL_TAXON_FIND', 'portal/taxon/find');
52
define('CDM_WS_PORTAL_TAXON_FINDBY_DESCRIPTIONELEMENT_FULLTEXT', 'portal/taxon/findByDescriptionElementFullText');
53

    
54
/**
55
 * /description/{uuid}/naturalLanguageDescription/{featuretree_uuid}
56
 */
57
define('CDM_WS_DESCRIPTION_NATURALLANGUAGE_DESCRIPTION', 'description/$0/naturalLanguageDescription/$1');
58
define('CDM_WS_DESCRIPTION_HAS_STRUCTRURED_DATA', 'description/$0/hasStructuredData');
59

    
60
define('CDM_WS_PORTAL_DESCRIPTION', 'portal/description/$0');
61
define('CDM_WS_PORTAL_DESCRIPTION_AREAS_TREE', 'portal/description/$0/namedAreaTree');
62
define('CDM_WS_PORTAL_DESCRIPTION_DISTRIBUTION_TREE', 'portal/description/$0/DistributionTree');
63

    
64
define('CDM_WS_DESCRIPTIONELEMENT', 'descriptionElement/$0');
65

    
66
define('CDM_WS_PORTAL_DESCRIPTIONELEMENT', 'portal/descriptionElement/$0');
67

    
68
/**
69
 * Gets the root nodes of the taxonomic concept tree for the concept
70
 * reference specified by the secUuid parameter.
71
 *
72
 * stub: treenode_root
73
 */
74
define('CDM_WS_PORTAL_TAXONOMY', 'portal/classification');
75
define('CDM_WS_PORTAL_TAXONOMY_CHILDNODES', 'portal/classification/$0/childNodes');
76
define('CDM_WS_PORTAL_TAXONOMY_CHILDNODES_AT_RANK', 'portal/classification/$0/childNodesAt/$1');
77
define('CDM_WS_PORTAL_TAXONOMY_CHILDNODES_OF_TAXON', 'portal/classification/$0/childNodesOf/$1');
78
define('CDM_WS_PORTAL_TAXONOMY_PATH_FROM', 'portal/classification/$0/pathFrom/$1');
79
define('CDM_WS_PORTAL_TAXONOMY_PATH_FROM_TO_RANK', 'portal/classification/$0/pathFrom/$1/toRank/$2');
80
define('CDM_WS_PORTAL_TAXONOMY_MEDIA', 'portal/classification/$0/$1');
81

    
82
define('CDM_WS_TERMVOCABULARY', 'termVocabulary/$0');
83

    
84
define('CDM_WS_TERM_COMPARE', 'term/$0/compareTo/$1');
85

    
86
define('CDM_WS_TDWG_LEVEL', 'term/tdwg/$0');
87

    
88
/**
89
 * Returns FeatureTrees that are stored in this community store.
90
 */
91
define('CDM_WS_FEATURETREE', 'portal/featureTree/$0');
92
define('CDM_WS_FEATURETREES', 'portal/featureTree');
93
// define('CDM_WS_FEATURETREE_CHILDREN', 'featureTree/$0/children');
94
define('CDM_WS_GEOSERVICE_DISTRIBUTIONMAP', 'ext/edit/mapServiceParameters/taxonDistributionFor/$0');
95
define('CDM_WS_GEOSERVICE_OCCURRENCEMAP', 'ext/edit/mapServiceParameters/taxonOccurrencesFor/$0');
96

    
97
define('CDM_WS_OCCURRENCE', 'occurrence');
98
/**
99
 * url query paramaters:
100
 *
101
 * @param taxonUuid
102
 * @param relationshipUuids e.g. CongruentTo;  "60974c98-64ab-4574-bb5c-c110f6db634d"
103
 * @param relationshipInversUuids
104
 * @param maxDepth null for unlimited
105
 * @param pageNumber
106
 * @param pageSize
107
 * @var unknown_type
108
 */
109
define('CDM_WS_OCCURRENCE_BY_ASSOCIATEDTAXON', 'occurrence/byAssociatedTaxon');
110

    
111
define('CDM_WS_DERIVEDUNIT_FACADE', 'derivedUnitFacade/$0');
112

    
113
define('CDM_WS_IDENTIFICATIONKEY', 'identificationKey');
114
define('CDM_WS_MEDIAKEY', 'mediaKey');
115
define('CDM_WS_MULTIACCESSKEY', 'multiAccessKey');
116
define('CDM_WS_POLYTOMOUSKEY', 'polytomousKey');
117
define('CDM_WS_POLYTOMOUSKEY_NODE', 'polytomousKeyNode');
118

    
119
define('CDM_WS_PORTAL_MEDIA', 'portal/media');
120

    
121
define('CDM_WS_MEDIA_METADATA', 'media/$0/metadata');
122

    
123
define('CDM_WS_MANAGE_REINDEX', 'manage/reindex');
124
define('CDM_WS_MANAGE_PURGE', 'manage/purge');
(8-8/9)