-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTypes.inc.php
1351 lines (1169 loc) · 38 KB
/
Types.inc.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<?php
/*=======================================================================================
* *
* Types.inc.php *
* *
*======================================================================================*/
/**
* Type definitions.
*
* This file contains the default type and kind definitions.
*
* Each entry is a term object native identifier.
*
* @author Milko A. Škofič <[email protected]>
* @version 1.00 25/11/2012
*/
/*=======================================================================================
* PRIMITIVE DATA TYPES *
*======================================================================================*/
/**
* Mixed.
*
* A <i>mixed</i> data type indicates that the referred property may take any data type.
*/
define( "kTYPE_MIXED", ':type:mixed' );
/**
* String.
*
* A <i>string</i> data type indicates that the referred property may hold <i>UNICODE</i>
* characters, this type <i>does not include binary data</i>
*/
define( "kTYPE_STRING", ':type:string' );
/**
* Integer.
*
* An <i>integer</i> data type indicates that the referred property may hold a <i>32 or 64
* bit integral numeric value</i>
*/
define( "kTYPE_INT", ':type:int' );
/**
* Float.
*
* A <i>float</i> data type indicates that the referred property may hold a <i>floating
* point number</i>, also known as <i>double</i> or <i>real</i>. The precision of such value
* is not inferred, in general it will be a <i>32 or 64 bit real</i>
*/
define( "kTYPE_FLOAT", ':type:float' );
/**
* Boolean.
*
* A <i>boolean</i> data type is a binary value which can take one of two states: on/true or
* off/false.
*/
define( "kTYPE_BOOLEAN", ':type:boolean' );
/*=======================================================================================
* STRUCTURED DATA TYPES *
*======================================================================================*/
/**
* Struct.
*
* This data type defines a <em>structure</em>, this means that the value will be an
* <em>object</em> or an array of objects if the data kind is a list.
*/
define( "kTYPE_STRUCT", ':type:struct' );
/**
* Array.
*
* This data type defines a <em>list of key/value pairs</em>, the key will be in general a
* string, while the value type is not inferred. This data type usually applies to arrays in
* which the key part is the discriminant and determines the type of the value, while
* traditional arrays are better defined by a fixed data type and a list data kind.
*/
define( "kTYPE_ARRAY", ':type:array' );
/**
* String list by language.
*
* This data type defines a <em>list of strings expressed in different languages</em>. The
* list elements are composed by <em>two key/value pairs</em>. The first pair has the
* {@link kTAG_LANGUAGE} tag as its key and the value represents the language code. The
* second pair has the {@link kTAG_TEXT} as its key and the value represents the text
* expressed in the language defined by the first pair. No two elements may share the same
* language and only one element may omit the language.
*/
define( "kTYPE_LANGUAGE_STRING", ':type:language-string' );
/**
* Strings list by language.
*
* This data type defines a <em>list of strings expressed in different languages</em>. The
* list elements are composed by <em>two key/value pairs</em>. The first pair has the
* {@link kTAG_LANGUAGE} tag as its key and the value represents the language code. The
* second pair has the {@link kTAG_TEXT} as its key and the value represents the list of
* strings expressed in the language defined by the first pair. No two elements may share
* the same language and only one element may omit the language.
*/
define( "kTYPE_LANGUAGE_STRINGS", ':type:language-strings' );
/**
* Typed list.
*
* This data type defines a <em>list of elements categorised by type</em>. The list elements
* are composed by <em>two key/value pairs</em>. The first pair has the {@link kTAG_TYPE}
* tag as its key and the value represents the type of the element. The second pair has
* an unspecified tag as the key and the value represents the element's value qualified by
* the previous pair. No two elements may share the same type and only one element may omit
* the type.
*/
define( "kTYPE_TYPED_LIST", ':type:typed-list' );
/**
* Shape.
*
* This data type defines a <em>shape structure</em>, this type of object represents a
* geometric shape and it is expressed as a GeoJSON construct.
*
* It is an array composed by two key/value pairs:
*
* <ul>
* <li><tt>{@link kTAG_TYPE}</tt>: The element indexed by this string contains the
* code indicating the type of the shape, these are the supported values:
* <ul>
* <li><tt>Point</tt>: A point.
* <li><tt>LineString</tt>: A list of non closed points.
* <li><tt>Polygon</tt>: A polygon, including its rings.
* </ul>
* <li><tt>{@link kTAG_GEOMETRY}</tt>: The element indexed by this string contains
* the <em>geometry of the shape</em>, which has a structure depending on the shape
+ type:
* <ul>
* <li><tt>Point</tt>: The point is an array of two floating point numbers,
* respectively the <em>longitude</em> and <em>latitude</em>.
* <li><tt>LineString</tt>: A line string is an array of points expressed as the
* <tt>Point</tt> geometry.
* <li><tt>Polygon</tt>: A polygon is a list of rings whose geometry is like the
* <tt>LineString</em> geometry, except that the first and last point must match.
* The first ring represents the outer boundary of the polygon, the other rings are
* optional and represent holes in the polygon.
* </ul>
* </ul>
*/
define( "kTYPE_SHAPE", ':type:shape' );
/*=======================================================================================
* STANDARDS DATA TYPES *
*======================================================================================*/
/**
* Text.
*
* This type is derived from the string type, it indicates a text which is not intended for
* searching. In general, this type will be used to qualify properties which contain large
* text which cannot be indexed.
*/
define( "kTYPE_TEXT", ':type:text' );
/**
* Link.
*
* A <i>link</i> data type indicates that the referred property is a <em>string</em>
* representing an <em>URL</em> which is an internet link or network address.
*/
define( "kTYPE_URL", ':type:url' );
/**
* Year.
*
* This type defines a year as an integer.
*/
define( "kTYPE_YEAR", ':type:year' );
/**
* Date.
*
* This type defines a date in which the day and month can be omitted, it is a string
* providing the date in <tt>YYYYMMDD</tt> format in which the day, or the day and month
* may not be provided. This type can be used for ranges and sorted.
*/
define( "kTYPE_DATE", ':type:date' );
/*=======================================================================================
* ENUMERATED DATA TYPES *
*======================================================================================*/
/**
* Enumeration.
*
* An <i>enumerated</i> data type indicates that the referred property may only hold <i>a
* term reference</i>, that is, the <i>global identifier of a term object</i>. Enumerated
* values are by default strings and must reference a term object.
*/
define( "kTYPE_ENUM", ':type:enum' );
/**
* Enumerated set.
*
* An <i>enumerated set</i> data type indicates that the referred property may only hold
* <i>a list of term reference</i>, that is, an array of <i>term native identifiers</i>. All
* the elements of this list must be unique.
*/
define( "kTYPE_SET", ':type:enum-set' );
/*=======================================================================================
* REFERENCE DATA TYPES *
*======================================================================================*/
/**
* Tag reference.
*
* A <i>tag reference</i> is a <em>string</em> that must correspond to the native identifier
* of a {@link Tag} object.
*/
define( "kTYPE_REF_TAG", ':type:ref:tag' );
/**
* Term reference.
*
* A <i>term reference</i> is a <em>string</em> that must correspond to the identifier of a
* {@link Term} object.
*/
define( "kTYPE_REF_TERM", ':type:ref:term' );
/**
* Node reference.
*
* A <i>node reference</i> is an <em>integer</em> that must correspond to the native
* identifier of a {@link Node} object.
*/
define( "kTYPE_REF_NODE", ':type:ref:node' );
/**
* Edge reference.
*
* An <i>edge reference</i> is a <em>string</em> that must correspond to the native
* identifier of an {@link Edge} object.
*/
define( "kTYPE_REF_EDGE", ':type:ref:edge' );
/**
* Unit reference.
*
* A <i>unit reference</i> is a <em>string</em> that must correspond to the native
* identifier of a {@link Unit} object.
*/
define( "kTYPE_REF_UNIT", ':type:ref:unit' );
/**
* User reference.
*
* An <i>user reference</i> is a <em>string</em> that must correspond to the native
* identifier of an {@link User} object.
*/
define( "kTYPE_REF_USER", ':type:ref:user' );
/**
* Session reference.
*
* An <i>session reference</i> is a <em>string</em> that must correspond to the native
* identifier of a {@link Session} object.
*/
define( "kTYPE_REF_SESSION", ':type:ref:session' );
/**
* Transaction reference.
*
* An <i>transaction reference</i> is a <em>string</em> that must correspond to the native
* identifier of a {@link Transaction} object.
*/
define( "kTYPE_REF_TRANSACTION", ':type:ref:transaction' );
/**
* File reference.
*
* An <i>file reference</i> is a <em>string</em> that must correspond to the native
* identifier of a {@link FileObject} object.
*/
define( "kTYPE_REF_FILE", ':type:ref:file' );
/**
* Self reference.
*
* This type defines an <em>reference</em> to an <em>object of the same class</em>.
*/
define( "kTYPE_REF_SELF", ':type:ref:self' );
/*=======================================================================================
* CUSTOM DATA TYPES *
*======================================================================================*/
/**
* Object identifier.
*
* A n<i>object identifier</i> is a <em>database native type</em> expressing an object
* unique identifier, <em>its structure is dependent on the specific database driver</em>.
*/
define( "kTYPE_OBJECT_ID", ':type:object-id' );
/**
* Time-stamp.
*
* A <i>time-stamp</i> is a <em>database native type</em> expressing a date and time,
* <em>its structure is dependent on the specific database driver</em>.
*/
define( "kTYPE_TIME_STAMP", ':type:time-stamp' );
/*=======================================================================================
* DEFAULT TERM TYPES *
*======================================================================================*/
/**
* Instance.
*
* A metadata instance.
*
* An instance is a term which represents the actual object that it defines, the term
* represents the metadata and instance at the same time. This happens generally with
* elements of an enumerated set: an enumerated value instance term will hold data in
* addition to metadata regarding the object that it defines.
*/
define( "kTYPE_TERM_INSTANCE", ':type:term:instance' );
/*=======================================================================================
* DEFAULT NODE KINDS *
*======================================================================================*/
/**
* Root.
*
* An entry point of an ontology.
*
* This kind represents a door or entry point of a tree or graph. It can be either the node
* from which the whole structure originates from, or a node that represents a specific
* thematic entry point. In general, such objects will have other attributes that will
* qualify the kind of the structure.
*/
define( "kTYPE_NODE_ROOT", ':kind:root-node' );
/**
* Property.
*
* The full data property definition.
*
* This kind of node references a {@link Tag} object which contains all the necessary
* information to define and describe a data property.
*/
define( "kTYPE_NODE_PROPERTY", ':kind:property-node' );
/**
* Enumerated.
*
* A controlled vocabulary.
*
* This kind of node describes a controlled vocabulary, it has implicitly the
* {@link kTYPE_NODE_TYPE} type holding an enumerated set of values. This kind of node can
* be used to define a specific controlled vocabulary, its elements are related to this node
* by the {@link kPREDICATE_ENUM_OF} predicate and this node can define a tag referring to
* the latter using the kPREDICATE_TYPE_OF} predicate.
*/
define( "kTYPE_NODE_ENUMERATED", ':kind:enumerated-node' );
/*=======================================================================================
* DEFAULT NODE TYPES *
*======================================================================================*/
/**
* Ontology.
*
* An ontology.
*
* This is a graph structure that represents an ontology, the element that bares this
* attribute is expected to be a root node, structures of this kind usually represent the
* full set of elements comprising an ontology which will be used by views to create
* thematic selections.
*/
define( "kTYPE_NODE_ONTOLOGY", ':type:node:ontology' );
/**
* Type.
*
* A type or controlled vocabulary.
*
* This is a structure that represents a type or controlled vocabulary, the element that
* bares this attribute is expected to be a root node and its structure must be a tree (at
* most one parent node). The main use of such a kind is to group all elements representing
* a type or controlled vocabulary that comprises the full set of attributes, views that
* reference such structures can be used to represent thematic subsets of such types or
* controlled vocabularies.
*/
define( "kTYPE_NODE_TYPE", ':type:node:type' );
/**
* View.
*
* A view.
*
* This represents a view into an existing structure or structures, the element that bares
* this attribute is expected to be a root node and the structure is expected to be either
* a selection or an aggregation of elements from different existing structures. The main
* goal is to create specific thematic views.
*/
define( "kTYPE_NODE_VIEW", ':type:node:view' );
/**
* Template.
*
* A data template.
*
* This is a view that represents a template, the element that bares this attribute is
* expected to be a root node and its structure must be a tree (at most one parent node).
* Templates are generally used to import and export data recorded using elements from the
* ontologies.
*/
define( "kTYPE_NODE_TEMPLATE", ':type:node:template' );
/**
* Form.
*
* A search form.
*
* This is a view that represents a search form, the element that bares this attribute is
* expected to be a root node and its structure must be a tree (at most one parent node).
* Structures of this kind can be used as search form templates where the branches represent
* categories and the leaf nodes the attributes to be searched.
*/
define( "kTYPE_NODE_FORM", ':type:node:form' );
/**
* Structure.
*
* A data structure.
*
* This is a view that represents a data structure, the element that bares this attribute is
* expected to be a root node and its structure must be a tree (at most one parent node).
* Structures of this kind can be used as templates to define the physical structure of an
* object.
*/
define( "kTYPE_NODE_STRUCT", ':type:node:struct' );
/**
* Schema.
*
* A data schema.
*
* This is a view that represents a data schema, the element that bares this attribute is
* expected to be a root node and its structure must be a tree (at most one parent node).
* Structures of this kind can be used as templates to define common sub-structures which
* will be used by structures to define the physical structure of an object.
*/
define( "kTYPE_NODE_SCHEMA", ':type:node:schema' );
/**
* Feature.
*
* A feature or attribute of an object that can be described or measured.
*
* This kind of node defines a feature, property or attribute of an object that can be
* described or measured. This kind of node will generally be found as a leaf of the
* structure describing an object. Plant height is a plant characteristic that belongs to
* the category of morphological traits: the latter is not a feature, while plant height is.
*/
define( "kTYPE_NODE_FEATURE", ':type:node:feature' );
/**
* Method.
*
* A method or variation of an object's feature measurement.
*
* This kind of node is required whenever an object's feature can be measured in different
* ways or with different workflows without becoming a different feature. Plant height is an
* attribute of a plant which can be measured after a month or at flowering time; the
* attribute is the same, but the method is different.
*/
define( "kTYPE_NODE_METHOD", ':type:node:method' );
/**
* Scale.
*
* The scale or unit in which a measurement is expressed in.
*
* This kind of node describes in what unit or scale a measurement is expressed in. Plant
* height may be measured in centimeters or inches, as well as in intervals or finite
* categories.
*/
define( "kTYPE_NODE_SCALE", ':type:node:scale' );
/**
* Enumeration.
*
* An element of a controlled vocabulary.
*
* This kind of node describes a controlled vocabulary element. These nodes derive from
* scale nodes and represent the valid choices of enumeration and enumerated set scale
* nodes. An ISO 3166 country code could be considered an enumeration node.
*/
define( "kTYPE_NODE_ENUMERATION", ':type:node:enumeration' );
/**
* Term.
*
* A term.
*
* This kind of node describes a reference to a term with no specific qualification, this
* type is only used to qualify a node that has no type.
*/
define( "kTYPE_NODE_TERM", ':type:node:term' );
/*=======================================================================================
* DEFAULT SESSION TYPES *
*======================================================================================*/
/**
* Upload.
*
* This type of session covers template uploads.
*/
define( "kTYPE_SESSION_UPLOAD", ':type:session:100' );
/**
* Update.
*
* This type of session covers data updates.
*/
define( "kTYPE_SESSION_UPDATE", ':type:session:200' );
/*=======================================================================================
* DEFAULT UPLOAD TRANSACTION TYPES *
*======================================================================================*/
/**
* Prepare upload session.
*
* Delete all previous upload sessions.
*/
define( "kTYPE_TRANS_TMPL_PREPARE", ':type:transaction:100' );
/**
* Store template file.
*
* The template file is stored in the database.
*/
define( "kTYPE_TRANS_TMPL_STORE", ':type:transaction:110' );
/**
* Load template file.
*
* Parse, identify and load template data dictionary and template file elements.
*/
define( "kTYPE_TRANS_TMPL_LOAD", ':type:transaction:120' );
/**
* Validate template structure.
*
* Check if all required worksheets and worksheet columns are present.
*/
define( "kTYPE_TRANS_TMPL_STRUCT", ':type:transaction:130' );
/**
* Allocate resources.
*
* Create template validation data repository and working resources.
*/
define( "kTYPE_TRANS_TMPL_SETUP", ':type:transaction:140' );
/**
* Validate worksheet data.
*
* Validate the worksheet data.
*
* <em>One per worksheet</em>
*/
define( "kTYPE_TRANS_TMPL_WORKSHEET", ':type:transaction:150' );
/**
* Validate worksheet relationships.
*
* Validate the relationships of the worksheet.
*
* <em>One per worksheet</em>
*/
define( "kTYPE_TRANS_TMPL_RELATIONSHIPS", ':type:transaction:160' );
/**
* Compile objects.
*
* Compile objects from worksheet data.
*/
define( "kTYPE_TRANS_TMPL_OBJECTS", ':type:transaction:170' );
/**
* Cleanup resources.
*
* Remove all upload temporary working resources.
*/
define( "kTYPE_TRANS_TMPL_CLEAN", ':type:transaction:180' );
/**
* Close session.
*
* Close template upload session.
*/
define( "kTYPE_TRANS_TMPL_CLOSE", ':type:transaction:190' );
/**
* Load worksheet data.
*
* Copy worksheet data in the working database.
*/
define( "kTYPE_TRANS_TMPL_LOAD_DATA", ':type:transaction:1A0' );
/*=======================================================================================
* TEMPLATE LOAD TRANSACTIONS *
*======================================================================================*/
/**
* Check file type.
*
* Identify and assert file type.
*/
define( "kTYPE_TRANS_TMPL_LOAD_FILE", ':type:transaction:121' );
/**
* Check template type.
*
* Identify and assert template type.
*/
define( "kTYPE_TRANS_TMPL_LOAD_TYPE", ':type:transaction:122' );
/**
* Load template data dictionary.
*
* Load and allocate template data dictionary.
*/
define( "kTYPE_TRANS_TMPL_LOAD_DDICT", ':type:transaction:123' );
/**
* Load template elements.
*
* Load and allocate template elements.
*/
define( "kTYPE_TRANS_TMPL_LOAD_ITEMS", ':type:transaction:124' );
/*=======================================================================================
* TEMPLATE STRUCTURE VALIDATION TRANSACTIONS *
*======================================================================================*/
/**
* Check template worksheets.
*
* Identify relevant worksheets and assert required.
*/
define( "kTYPE_TRANS_TMPL_STRUCT_WORKSHEETS", ':type:transaction:131' );
/**
* Check template columns.
*
* Identify relevant columns and assert required.
*/
define( "kTYPE_TRANS_TMPL_STRUCT_COLUMNS", ':type:transaction:132' );
/*=======================================================================================
* TEMPLATE WORKSHEET DATA VALIDATION TRANSACTIONS *
*======================================================================================*/
/**
* Validate worksheet row data.
*
* Validate and load worksheet row data.
*/
define( "kTYPE_TRANS_TMPL_WORKSHEET_ROW", ':type:transaction:151' );
/*=======================================================================================
* TEMPLATE WORKSHEET RELATIONSHIPS VALIDATION TRANSACTIONS *
*======================================================================================*/
/**
* Validate worksheet row relationships.
*
* Validate and load worksheet row relationships.
*/
define( "kTYPE_TRANS_TMPL_RELATIONSHIPS_ROW", ':type:transaction:161' );
/*=======================================================================================
* TEMPLATE WORKSHEET DUPLICATE RECORD TRANSACTIONS *
*======================================================================================*/
/**
* Replace record.
*
* The record will be replaced in the database.
*/
define( "kTYPE_TRANS_TMPL_DUPLICATES_ROW", ':type:transaction:171' );
/**
* Object error.
*
* The object could not be compiled.
*/
define( "kTYPE_TRANS_TMPL_BAD_OBJECT_ROW", ':type:transaction:172' );
/*=======================================================================================
* TEMPLATE WORKSHEET RECORD LOAD TRANSACTIONS *
*======================================================================================*/
/**
* Copy worksheet data row.
*
* Copy worksheet data row in the working database.
*/
define( "kTYPE_TRANS_TMPL_LOAD_DATA_ROW", ':type:transaction:1A1' );
/*=======================================================================================
* DEFAULT UPDATE TRANSACTION TYPES *
*======================================================================================*/
/**
* Prepare update session.
*
* Load upload session information.
*/
define( "kTYPE_TRANS_UPDT_PREPARE", ':type:transaction:210' );
/**
* Identify existing objects.
*
* Identify which records exist already in the database since the upload.
*/
define( "kTYPE_TRANS_UPDT_DUPLICATES", ':type:transaction:270' );
/**
* Update database.
*
* Load template data in the database.
*/
define( "kTYPE_TRANS_UPDT_DATA", ':type:transaction:250' );
/**
* Cleanup resources.
*
* Remove all update temporary working resources.
*/
define( "kTYPE_TRANS_UPDT_CLEAN", ':type:transaction:280' );
/**
* Close session.
*
* Close template update session.
*/
define( "kTYPE_TRANS_UPDT_CLOSE", ':type:transaction:290' );
/*=======================================================================================
* TEMPLATE WORKSHEET DATA LOAD TRANSACTIONS *
*======================================================================================*/
/**
* Validate worksheet row data.
*
* Validate and load worksheet row data.
*/
define( "kTYPE_TRANS_UPDT_DATA_OBJECT", ':type:transaction:251' );
/*=======================================================================================
* TEMPLATE WORKSHEET DUPLICATE RECORD TRANSACTIONS *
*======================================================================================*/
/**
* Duplicate record.
*
* A duplicate record was found in the database.
*/
define( "kTYPE_TRANS_UPDT_DUPLICATES_ROW", ':type:transaction:271' );
/*=======================================================================================
* CARDINALITY TYPES *
*======================================================================================*/
/**
* List.
*
* A <i>list</i> cardinality type indicates that the referred property will hold a <i>list
* of values</i> whose elements will have the data type defined by the <i>data type</i>
* property.
*/
define( "kTYPE_LIST", ':type:list' );
/**
* Full-text (weight 10).
*
* A <em>full-text</em> property is one which will be added to the <em>full-text
* search index</em>, this specific type holds a weight of 10.
*/
define( "kTYPE_FULL_TEXT_10", ':type:full-text-10' );
/**
* Full-text (weight 6).
*
* A <em>full-text</em> property is one which will be added to the <em>full-text
* search index</em>, this specific type holds a weight of 6.
*/
define( "kTYPE_FULL_TEXT_06", ':type:full-text-06' );
/**
* Full-text (weight 3).
*
* A <em>full-text</em> property is one which will be added to the <em>full-text
* search index</em>, this specific type holds a weight of 3.
*/
define( "kTYPE_FULL_TEXT_03", ':type:full-text-03' );
/**
* Summary.
*
* A <em>summary</em> property is one which can be used to group results in a summary.
*/
define( "kTYPE_SUMMARY", ':type:summary' );
/**
* Lookup.
*
* A <em>lookup</em> property is a textual field that can be searched with auto-complete,
* this implies that the property must be indexed.
*/
define( "kTYPE_LOOKUP", ':type:lookup' );
/**
* Categorical.
*
* A <i>categorical</i> property is one which can take on one of a limited, and usually
* fixed, number of possible values. In general, properties which take their values from an
* enumerated set of choices are of this kind.
*/
define( "kTYPE_CATEGORICAL", ':type:categorical' );
/**
* Quantitative.
*
* A <i>quantitative</i> property is one whose type of information based in quantities or
* else quantifiable data. In general numerical values which can be aggregated in ranges
* fall under this category.
*/
define( "kTYPE_QUANTITATIVE", ':type:quantitative' );
/**
* Discrete.
*
* A <i>discrete</i> property is one which may <em>take an indefinite number of values</em>,
* which <em>differentiates it from a categorical</em> property, and whose values are
* <em>not continuous</em>, which <em>differentiates it from a quantitative property</em>.
*/
define( "kTYPE_DISCRETE", ':type:discrete' );
/**
* Recommended.
*
* A <i>recommended</i> property is not mandatory, but its inclusion is highly encouraged.
*/
define( "kTYPE_RECOMMENDED", ':type:recommended' );
/**
* Required.
*
* A <i>mandatory</i> property is required, its omission will cause an error.
*/
define( "kTYPE_MANDATORY", ':type:mandatory' );
/**
* Private search.
*
* This kind indicates that the referred property should not be available to clients for
* searching.
*/
define( "kTAG_PRIVATE_SEARCH", ':type:private-search' );
/**
* Private modify.
*
* This kind indicates that the referred property is handled internally and it must not be
* modified by clients.
*/
define( "kTAG_PRIVATE_MODIFY", ':type:private-modify' );
/**
* Private display.
*
* This kind indicates that the referred property should not be displayed to clients.
*/
define( "kTYPE_PRIVATE_DISPLAY", ':type:private-display' );
/*=======================================================================================
* RELATIONSHIP TYPES *
*======================================================================================*/
/**
* Incoming.
*
* An <i>incoming relationship</i> indicates that the relationship is originating from an
* external vertex directed to the current vertex.
*/
define( "kTYPE_RELATIONSHIP_IN", ':relationship:in' );
/**
* Outgoing.
*
* An <i>outgoing relationship</i> indicates that the relationship is originating from the
* current vertex directed to an external vertex.
*/
define( "kTYPE_RELATIONSHIP_OUT", ':relationship:out' );
/**
* Cross referenced.
*
* An <i>cross referenced relationship</i> indicates that the relationship is going in both
* directions: from the current vertex to an external vertex and from the external vertex to
* the current vertex.
*/
define( "kTYPE_RELATIONSHIP_ALL", ':relationship:all' );
/*=======================================================================================
* ROLE TYPES *
*======================================================================================*/
/**
* Login.
*
* This role allows users to login.
*/
define( "kTYPE_ROLE_LOGIN", ':roles:user-login' );
/**
* User invite.
*
* This role allows users to send user invitations.
*/
define( "kTYPE_ROLE_INVITE", ':roles:user-invite' );
/**
* Upload data.
*
* This role allows users to upload data templates.
*/
define( "kTYPE_ROLE_UPLOAD", ':roles:user-upload' );
/**
* Edit pages.
*
* This role allows users to edit portal pages.
*/
define( "kTYPE_ROLE_EDIT", ':roles:page-edit' );
/**
* Manage all users.
*
* This role allows users to manage all users.
*/
define( "kTYPE_ROLE_USERS", ':roles:manage-users' );
/*=======================================================================================
* TYPED LISTs TYPES *
*======================================================================================*/
/**
* Default.
*
* This is the type used for default typed list elements.
*/
define( "kTYPE_LIST_DEFAULT", 'Default' );
/**
* Referrer.
*
* This is the type used in the {@link kTAG_ENTITY_AFFILIATION} property to indicate the
* user who is the authority.
*/
define( "kTYPE_LIST_REFERRER", 'Referrer' );
/**
* Institute.
*
* This is the type used in the {@link kTAG_ENTITY_AFFILIATION} property to indicate the
* main institute to which the user belongs.
*/
define( "kTYPE_LIST_INSTITUTE", 'Institute' );
/*=======================================================================================
* OPERATION STATUS TYPES *
*======================================================================================*/
/**
* Executing.
*