Project

General

Profile

« Previous | Next » 

Revision 47206

It seems that the policy never changes across providers

View differences:

modules/dnet-parthenos/trunk/src/main/resources/eu/dnetlib/bootstrap/profiles/TransformationRuleDSResources/TransformationRuleDSResourceType/ehri_policy.xml
1
<RESOURCE_PROFILE>
2
    <HEADER>
3
        <RESOURCE_IDENTIFIER value="4cf67326-1fc9-45dd-8a5a-dc5c72b61fb8_VHJhbnNmb3JtYXRpb25SdWxlRFNSZXNvdXJjZXMvVHJhbnNmb3JtYXRpb25SdWxlRFNSZXNvdXJjZVR5cGU="/>
4
        <RESOURCE_TYPE value="TransformationRuleDSResourceType"/>
5
        <RESOURCE_KIND value="TransformationRuleDSResources"/>
6
        <RESOURCE_URI value=""/>
7
        <DATE_OF_CREATION value="2017-03-10T12:14:22+01:00"/>
8
    </HEADER>
9
    <BODY>
10
        <CONFIGURATION>
11
            <IMPORTED/>
12
            <SCRIPT>
13
                <TITLE>EHRI Policy</TITLE>
14
                <CODE>
15
                    <![CDATA[
16
<generator_policy>
17

  
18
	<!-- The prefix is a namespace that must be declared in the X3ML definition.
19
	In PARTHENOS it was decided that it is constructed by the namespace of PARTHENOS followed by the provider
20
	and the database that is being mapped
21
	e.g. prefix="parthenos" and in the x3ml define <namespace prefix="parthenos" uri="http://parthenos-project.eu/FORTH/myDB/"/> -->
22
    <generator name="ServiceURI" prefix="parthenos">
23
        <pattern>Service/{term}</pattern>
24
    </generator>
25
	<generator name="DatasetURI" prefix="parthenos">
26
        <pattern>Dataset/{term}</pattern>
27
    </generator>
28
	<generator name="SoftwareURI" prefix="parthenos">
29
        <pattern>Software/{term}</pattern>
30
    </generator>
31
	<generator name="ActorURI" prefix="parthenos">
32
        <pattern>Actor/{term}</pattern>
33
    </generator>
34
	<generator name="ProjectURI" prefix="parthenos">
35
        <pattern>Project/{term}</pattern>
36
    </generator>
37

  
38
	<generator name="ServiceAppellationURI" prefix="parthenos">
39
        <pattern>Service/Appellation/{term}</pattern>
40
    </generator>
41
	<generator name="DatasetAppellationURI" prefix="parthenos">
42
        <pattern>Dataset/Appellation/{term}</pattern>
43
    </generator>
44
	<generator name="SoftwareAppellationURI" prefix="parthenos">
45
        <pattern>Software/Appellation/{term}</pattern>
46
    </generator>
47
	<generator name="ActorAppellationURI" prefix="parthenos">
48
        <pattern>Actor/Appellation/{term}</pattern>
49
    </generator>
50
	<generator name="ProjectAppellationURI" prefix="parthenos">
51
        <pattern>Project/Appellation/{term}</pattern>
52
    </generator>
53
	<generator name="ThingAppellationURI" prefix="parthenos">
54
        <pattern>Thing/Appellation/{term}</pattern>
55
    </generator>
56
	<generator name="EventAppellationURI" prefix="parthenos">
57
        <pattern>Event/Appellation/{term}</pattern>
58
    </generator>
59
	<generator name="PlaceAppellationURI" prefix="parthenos">
60
        <pattern>Place/Appellation/{term}</pattern>
61
    </generator>
62

  
63
	<generator name="ThingURI" prefix="parthenos">
64
        <pattern>Thing/{term}</pattern>
65
    </generator>
66
	<generator name="EventURI" prefix="parthenos">
67
        <pattern>Event/{term}</pattern>
68
    </generator>
69
	<generator name="Time-SpanURI" prefix="parthenos">
70
        <pattern>Time-Span/{term}</pattern>
71
    </generator>
72
	<generator name="PlaceURI" prefix="parthenos">
73
        <pattern>Place/{term}</pattern>
74
    </generator>
75
	<generator name="DimensionURI" prefix="parthenos">
76
        <pattern>Dimension/{term}</pattern>
77
    </generator>
78
	<generator name="ConceptURI" prefix="parthenos">
79
        <pattern>Concept/{term}</pattern>
80
    </generator>
81

  
82
	<generator name="OneLevelCustomURI" prefix="parthenos">
83
        <pattern>{level1}/{term}</pattern>
84
    </generator>
85
	<generator name="TwoLevelCustomURI" prefix="parthenos">
86
        <pattern>{level1}/{level2}/{term}</pattern>
87
    </generator>
88
	<generator name="OneLevelCustomURIwCount" prefix="parthenos">
89
        <pattern>{level1}/{count}/{term}</pattern>
90
    </generator>
91
	<generator name="TwoLevelCustomURIwCount" prefix="parthenos">
92
        <pattern>{level1}/{level2}/{count}/{term}</pattern>
93
    </generator>
94

  
95
	<generator name="SimpleLabel">
96
        <pattern>{label}</pattern>
97
    </generator>
98

  
99
	<generator name="CompositeLabel">
100
        <pattern>{label} {text}</pattern>
101
    </generator>
102

  
103
	<generator name="GermanDateTime">
104
        <custom generatorClass="gr.forth.GermanDate">
105
            <set-arg name="bound" type="constant"/>
106
            <set-arg name="text"/>
107
        </custom>
108
    </generator>
109

  
110
	<generator name="URIorUUID">
111
        <custom generatorClass="gr.forth.URIorUUID">
112
            <set-arg name="text"/>
113
        </custom>
114
    </generator>
115

  
116
</generator_policy>
117

  
118

  
119
]]>
120
                </CODE>
121
            </SCRIPT>
122
        </CONFIGURATION>
123
        <STATUS/>
124
        <SECURITY_PARAMETERS/>
125
    </BODY>
126
</RESOURCE_PROFILE>
modules/dnet-parthenos/trunk/src/main/resources/eu/dnetlib/bootstrap/profiles/TransformationRuleDSResources/TransformationRuleDSResourceType/parthenos_policy.xml
1
<RESOURCE_PROFILE>
2
    <HEADER>
3
        <RESOURCE_IDENTIFIER value="4cf67326-1fc9-45dd-8a5a-dc5c72b61fb8_VHJhbnNmb3JtYXRpb25SdWxlRFNSZXNvdXJjZXMvVHJhbnNmb3JtYXRpb25SdWxlRFNSZXNvdXJjZVR5cGU="/>
4
        <RESOURCE_TYPE value="TransformationRuleDSResourceType"/>
5
        <RESOURCE_KIND value="TransformationRuleDSResources"/>
6
        <RESOURCE_URI value=""/>
7
        <DATE_OF_CREATION value="2017-03-10T12:14:22+01:00"/>
8
    </HEADER>
9
    <BODY>
10
        <CONFIGURATION>
11
            <IMPORTED/>
12
            <SCRIPT>
13
                <TITLE>PARTHENOS Policy</TITLE>
14
                <CODE>
15
                    <![CDATA[
16
<generator_policy>
17

  
18
	<!-- The prefix is a namespace that must be declared in the X3ML definition.
19
	In PARTHENOS it was decided that it is constructed by the namespace of PARTHENOS followed by the provider
20
	and the database that is being mapped
21
	e.g. prefix="parthenos" and in the x3ml define <namespace prefix="parthenos" uri="http://parthenos-project.eu/FORTH/myDB/"/> -->
22
    <generator name="ServiceURI" prefix="parthenos">
23
        <pattern>Service/{term}</pattern>
24
    </generator>
25
	<generator name="DatasetURI" prefix="parthenos">
26
        <pattern>Dataset/{term}</pattern>
27
    </generator>
28
	<generator name="SoftwareURI" prefix="parthenos">
29
        <pattern>Software/{term}</pattern>
30
    </generator>
31
	<generator name="ActorURI" prefix="parthenos">
32
        <pattern>Actor/{term}</pattern>
33
    </generator>
34
	<generator name="ProjectURI" prefix="parthenos">
35
        <pattern>Project/{term}</pattern>
36
    </generator>
37

  
38
	<generator name="ServiceAppellationURI" prefix="parthenos">
39
        <pattern>Service/Appellation/{term}</pattern>
40
    </generator>
41
	<generator name="DatasetAppellationURI" prefix="parthenos">
42
        <pattern>Dataset/Appellation/{term}</pattern>
43
    </generator>
44
	<generator name="SoftwareAppellationURI" prefix="parthenos">
45
        <pattern>Software/Appellation/{term}</pattern>
46
    </generator>
47
	<generator name="ActorAppellationURI" prefix="parthenos">
48
        <pattern>Actor/Appellation/{term}</pattern>
49
    </generator>
50
	<generator name="ProjectAppellationURI" prefix="parthenos">
51
        <pattern>Project/Appellation/{term}</pattern>
52
    </generator>
53
	<generator name="ThingAppellationURI" prefix="parthenos">
54
        <pattern>Thing/Appellation/{term}</pattern>
55
    </generator>
56
	<generator name="EventAppellationURI" prefix="parthenos">
57
        <pattern>Event/Appellation/{term}</pattern>
58
    </generator>
59
	<generator name="PlaceAppellationURI" prefix="parthenos">
60
        <pattern>Place/Appellation/{term}</pattern>
61
    </generator>
62

  
63
	<generator name="ThingURI" prefix="parthenos">
64
        <pattern>Thing/{term}</pattern>
65
    </generator>
66
	<generator name="EventURI" prefix="parthenos">
67
        <pattern>Event/{term}</pattern>
68
    </generator>
69
	<generator name="Time-SpanURI" prefix="parthenos">
70
        <pattern>Time-Span/{term}</pattern>
71
    </generator>
72
	<generator name="PlaceURI" prefix="parthenos">
73
        <pattern>Place/{term}</pattern>
74
    </generator>
75
	<generator name="DimensionURI" prefix="parthenos">
76
        <pattern>Dimension/{term}</pattern>
77
    </generator>
78
	<generator name="ConceptURI" prefix="parthenos">
79
        <pattern>Concept/{term}</pattern>
80
    </generator>
81

  
82
	<generator name="OneLevelCustomURI" prefix="parthenos">
83
        <pattern>{level1}/{term}</pattern>
84
    </generator>
85
	<generator name="TwoLevelCustomURI" prefix="parthenos">
86
        <pattern>{level1}/{level2}/{term}</pattern>
87
    </generator>
88
	<generator name="OneLevelCustomURIwCount" prefix="parthenos">
89
        <pattern>{level1}/{count}/{term}</pattern>
90
    </generator>
91
	<generator name="TwoLevelCustomURIwCount" prefix="parthenos">
92
        <pattern>{level1}/{level2}/{count}/{term}</pattern>
93
    </generator>
94

  
95
	<generator name="SimpleLabel">
96
        <pattern>{label}</pattern>
97
    </generator>
98

  
99
	<generator name="CompositeLabel">
100
        <pattern>{label} {text}</pattern>
101
    </generator>
102

  
103
	<generator name="GermanDateTime">
104
        <custom generatorClass="gr.forth.GermanDate">
105
            <set-arg name="bound" type="constant"/>
106
            <set-arg name="text"/>
107
        </custom>
108
    </generator>
109

  
110
	<generator name="URIorUUID">
111
        <custom generatorClass="gr.forth.URIorUUID">
112
            <set-arg name="text"/>
113
        </custom>
114
    </generator>
115

  
116
</generator_policy>
117

  
118

  
119
]]>
120
                </CODE>
121
            </SCRIPT>
122
        </CONFIGURATION>
123
        <STATUS/>
124
        <SECURITY_PARAMETERS/>
125
    </BODY>
126
</RESOURCE_PROFILE>

Also available in: Unified diff