Revision 53701
Added by Alessia Bardi almost 6 years ago
modules/dnet-parthenos/trunk/src/main/resources/eu/dnetlib/bootstrap/profiles/TransformationRuleDSResources/TransformationRuleDSResourceType/parthenos_policy1.4.xml | ||
---|---|---|
1 |
<RESOURCE_PROFILE> |
|
2 |
<HEADER> |
|
3 |
<RESOURCE_IDENTIFIER value="_VHJhbnNmb3JtYXRpb25SdWxlRFNSZXNvdXJjZXMvVHJhbnNmb3JtYXRpb25SdWxlRFNSZXNvdXJjZVR5cGU="/> |
|
4 |
<RESOURCE_TYPE value="TransformationRuleDSResourceType"/> |
|
5 |
<RESOURCE_KIND value="TransformationRuleDSResources"/> |
|
6 |
<RESOURCE_URI value=""/> |
|
7 |
<DATE_OF_CREATION value="2018-10-12T12:14:22+01:00"/> |
|
8 |
</HEADER> |
|
9 |
<BODY> |
|
10 |
<CONFIGURATION> |
|
11 |
<IMPORTED/> |
|
12 |
<SCRIPT> |
|
13 |
<TITLE>PARTHENOS Policy v1.4 2018-05-07</TITLE> |
|
14 |
<CODE> |
|
15 |
<![CDATA[<generator_policy> |
|
16 |
<!-- The prefix is a namespace that must be declared in the X3ML definition. |
|
17 |
In PARTHENOS it was decided that it is constructed by the namespace of PARTHENOS followed by the provider |
|
18 |
and the database that is being mapped |
|
19 |
e.g. prefix="parthenos" and in the x3ml define <namespace prefix="parthenos" uri="http://parthenos-project.eu/FORTH/myDB/"/> --> |
|
20 |
<generator name="ProjectURI" prefix="parthenos" shorten="yes"> |
|
21 |
<pattern>Project/{term}</pattern> |
|
22 |
</generator> |
|
23 |
<generator name="ServiceURI" prefix="parthenos" shorten="yes"> |
|
24 |
<pattern>Service/{term}</pattern> |
|
25 |
</generator> |
|
26 |
<generator name="DatasetURI" prefix="parthenos" shorten="yes"> |
|
27 |
<pattern>Dataset/{term}</pattern> |
|
28 |
</generator> |
|
29 |
<generator name="DatasetVerMergeURI" prefix="parthenos" shorten="yes"> |
|
30 |
<pattern>Dataset/{term}_{term1}</pattern> |
|
31 |
</generator> |
|
32 |
<generator name="SoftwareURI" prefix="parthenos" shorten="yes"> |
|
33 |
<pattern>Software/{term}</pattern> |
|
34 |
</generator> |
|
35 |
<generator name="ActorURI" prefix="parthenos" shorten="yes"> |
|
36 |
<pattern>Actor/{term}</pattern> |
|
37 |
</generator> |
|
38 |
<generator name="ActorTwoNameMergeURI" prefix="parthenos" shorten="yes"> |
|
39 |
<pattern>Actor/{firstName}_{LastName}</pattern> |
|
40 |
</generator> |
|
41 |
<generator name="ConceptURI" prefix="reg" shorten="yes"> |
|
42 |
<pattern>Concept/{term}</pattern> |
|
43 |
</generator> |
|
44 |
<generator name="ConceptURI_2step" prefix="reg" shorten="yes"> |
|
45 |
<pattern>Concept/{term}/{term1}</pattern> |
|
46 |
</generator> |
|
47 |
<generator name="ConceptURI_3step" prefix="reg" shorten="yes"> |
|
48 |
<pattern>Concept/{term}/{term1}/{term2}</pattern> |
|
49 |
</generator> |
|
50 |
<generator name="PlaceURI" prefix="parthenos" shorten="yes"> |
|
51 |
<pattern>Place/{term}</pattern> |
|
52 |
</generator> |
|
53 |
<generator name="ProjectAppellationURI" prefix="parthenos" shorten="yes"> |
|
54 |
<pattern>Project/Appellation/{term}</pattern> |
|
55 |
</generator> |
|
56 |
<generator name="ServiceAppellationURI" prefix="parthenos" shorten="yes"> |
|
57 |
<pattern>Service/Appellation/{term}</pattern> |
|
58 |
</generator> |
|
59 |
<generator name="DatasetAppellationURI" prefix="parthenos" shorten="yes"> |
|
60 |
<pattern>Dataset/Appellation/{term}</pattern> |
|
61 |
</generator> |
|
62 |
<generator name="DatasetAppvermergeURI" prefix="parthenos" shorten="yes"> |
|
63 |
<pattern>Dataset/Appellation/{term}_{term1}</pattern> |
|
64 |
</generator> |
|
65 |
<generator name="SoftwareAppellationURI" prefix="parthenos" shorten="yes"> |
|
66 |
<pattern>Software/Appellation/{term}</pattern> |
|
67 |
</generator> |
|
68 |
<generator name="ActorAppellationURI" prefix="parthenos" shorten="yes"> |
|
69 |
<pattern>Actor/Appellation/{term}</pattern> |
|
70 |
</generator> |
|
71 |
<generator name="ConceptAppellationURI" prefix="parthenos" shorten="yes"> |
|
72 |
<pattern>Concept/Appellation/{term}</pattern> |
|
73 |
</generator> |
|
74 |
<generator name="ThingAppellationURI" prefix="parthenos" shorten="yes"> |
|
75 |
<pattern>Thing/Appellation/{term}</pattern> |
|
76 |
</generator> |
|
77 |
<generator name="EventAppellationURI" prefix="parthenos" shorten="yes"> |
|
78 |
<pattern>Event/Appellation/{term}</pattern> |
|
79 |
</generator> |
|
80 |
<generator name="PlaceAppellationURI" prefix="parthenos" shorten="yes"> |
|
81 |
<pattern>Place/Appellation/{term}</pattern> |
|
82 |
</generator> |
|
83 |
<generator name="PlaceAppellationAddressURI" prefix="parthenos" shorten="yes"> |
|
84 |
<pattern>Place/Appellation/{mainaddress}-{postcode}-{country}</pattern> |
|
85 |
</generator> |
|
86 |
<generator name="PlaceAppLatLong" prefix="parthenos" shorten="yes"> |
|
87 |
<pattern>Place/Appellation/{lat}-{long}</pattern> |
|
88 |
</generator> |
|
89 |
<generator name="ThingURI" prefix="parthenos" shorten="yes"> |
|
90 |
<pattern>Thing/{term}</pattern> |
|
91 |
</generator> |
|
92 |
<generator name="DimensionURI" prefix="parthenos" shorten="yes"> |
|
93 |
<pattern>Dimension/{term}</pattern> |
|
94 |
</generator> |
|
95 |
<generator name="RemoveTerm" prefix="parthenos"> |
|
96 |
<custom generatorClass="gr.forth.RemoveTerm"> |
|
97 |
<set-arg name="termToRemove" type="constant"></set-arg> |
|
98 |
<set-arg name="text"></set-arg> |
|
99 |
</custom> |
|
100 |
</generator> |
|
101 |
<generator name="OneLevelCustomURI" prefix="parthenos" shorten="yes"> |
|
102 |
<pattern>{level1}/{term}</pattern> |
|
103 |
</generator> |
|
104 |
<generator name="TwoLevelCustomURI" prefix="parthenos" shorten="yes"> |
|
105 |
<pattern>{level1}/{level2}/{term}</pattern> |
|
106 |
</generator> |
|
107 |
<generator name="OneLevelCustomURIwCount" prefix="parthenos" shorten="yes"> |
|
108 |
<pattern>{level1}/{count}/{term}</pattern> |
|
109 |
</generator> |
|
110 |
<generator name="TwoLevelCustomURIwCount" prefix="parthenos" shorten="yes"> |
|
111 |
<pattern>{level1}/{level2}/{count}/{term}</pattern> |
|
112 |
</generator> |
|
113 |
<generator name="SimpleLabel"> |
|
114 |
<pattern>{label}</pattern> |
|
115 |
</generator> |
|
116 |
<generator name="CompositeLabel"> |
|
117 |
<pattern>{label} {text}</pattern> |
|
118 |
</generator> |
|
119 |
<generator name="CompositeVerLabel"> |
|
120 |
<pattern>{label} Ver {text}</pattern> |
|
121 |
</generator> |
|
122 |
<generator name="LatLong"> |
|
123 |
<pattern>({lat} {long})</pattern> |
|
124 |
</generator> |
|
125 |
<generator name="AddressLabel"> |
|
126 |
<pattern>{term},{term2},{term3},{term4}</pattern> |
|
127 |
</generator> |
|
128 |
<generator name="GermanDateTime"> |
|
129 |
<custom generatorClass="gr.forth.GermanDate"> |
|
130 |
<set-arg name="bound" type="constant"></set-arg> |
|
131 |
<set-arg name="text"></set-arg> |
|
132 |
</custom> |
|
133 |
</generator> |
|
134 |
<generator name="URIorUUID"> |
|
135 |
<custom generatorClass="gr.forth.URIorUUID"> |
|
136 |
<set-arg name="text"></set-arg> |
|
137 |
</custom> |
|
138 |
</generator> |
|
139 |
</generator_policy> |
|
140 |
]]> |
|
141 |
</CODE> |
|
142 |
</SCRIPT> |
|
143 |
</CONFIGURATION> |
|
144 |
<STATUS/> |
|
145 |
<SECURITY_PARAMETERS/> |
|
146 |
</BODY> |
|
147 |
</RESOURCE_PROFILE> |
Also available in: Unified diff
do not need policy version 1.4