source: cats/ISOcat/trunk/mod-ISOcat-access-data/access/group_recommendation.acc @ 5650

Last change on this file since 5650 was 5650, checked in by Menzo Windhouwer, 10 years ago

M mod-ISOcat-access-data/access/dc_status.acc

  • added parmeter for the successor when the status of a DC is set to superseded
  • set the next field when the DC is superseded

M mod-ISOcat-access-data/access/group_recommendation.acc
M mod-ISOcat-access-data/access/recommenders.acc

  • manage the golden thread for recommenders

M mod-ISOcat-access-system/config/set.acc
A + mod-ISOcat-access-system/config/site-throttle.acc
M mod-ISOcat-access-system/etc/ISOcatConfig.xml
M mod-ISOcat-access-system/module.xml

  • added a throttle to limit the number of concurrent accesses to the site

NOTE: attempt to limit the burden of spam requests which only lead to 404 or 500
NOTE: better recognize the spam requests on the apache level, so they ever reach NK

M mod-ISOcat-interface-rest/etc/XRLLinks.xml
M mod-ISOcat-interface-rest/module.xml

  • handle the representation for PID URLs explicitly

M mod-ISOcat-interface-rest/representations/dcs2/handle.acc
M mod-ISOcat-interface-rest/representations/dcs2/representations.xml
A + mod-ISOcat-interface-rest/representations/dcs2/openskos.xsl

  • added OpenSKOS export format

M mod-ISOcat-manage-access/manage/dc.acc

  • debug info

M mod-ISOcat-manage-system/module.xml
M mod-ISOcat-manage-system/manage/links.xml
A mod-ISOcat-manage-system/manage/dump.acc
M mod-ISOcat-manage-system/manage/dc-status.acc
M mod-ISOcat-manage-system/entrypoints.xml
M mod-ISOcat-manage-system/plugin/dc-status.xhtml
M mod-ISOcat-manage-system/plugin/configure.xsl
M mod-ISOcat-manage-system/plugin/plugin.xml

  • added dump action
  • dc-status can now also handle the superseded status

A mod-ISOcat-site/site/2013-SR/meeting/documents
AM mod-ISOcat-site/site/2013-SR/meeting/documents/ISOcat-and-users-v1.doc
AM mod-ISOcat-site/site/2013-SR/meeting/documents/CLARIN-SemanticRegistry?-Requirements.pdf
AM mod-ISOcat-site/site/2013-SR/meeting/documents/DCR Data Items to Retain or remove in a revised DCR_12-04-2013.docx
A mod-ISOcat-site/site/2013-SR/meeting/presentations
AM mod-ISOcat-site/site/2013-SR/meeting/presentations/CLARIN-SemanticRegistries?-Requirements.pptx
AM mod-ISOcat-site/site/2013-SR/meeting/presentations/ISOcat_TC37Suggestions.pptx
AM mod-ISOcat-site/site/2013-SR/meeting/presentations/TLA-ISOcatRequirements.pptx

  • added documents and presentation for the ISOcat meeting
File size: 2.5 KB
Line 
1<accessor debug="false">
2        <name>ISOcat.access.data.group.recommendation</name>
3        <descr>This group recommends a DC</descr>
4        <param mandatory="true">
5                <name>id</name>
6                <descr>the group id</descr>
7                <type canonical="true">string</type>
8        </param>
9        <param mandatory="true">
10                <name>dc</name>
11                <descr>the DC id</descr>
12                <type canonical="true">string</type>
13        </param>
14        <idoc>
15                <instr>
16                        <type>sloot.xquery</type>
17                        <operator>
18                                <sql>
19                                        SELECT
20                                                *
21                                        FROM
22                                                core_recommendation
23                                        WHERE
24                                                "group" = {string($group)}
25                                        AND
26                                                "dc" = {string($dc)}
27                                        ;
28                                </sql>
29                        </operator>
30                        <group>var:id</group>
31                        <dc>var:dc</dc>
32                        <target>var:sql</target>
33                </instr>
34                <accessor-debug>
35                        <instr>
36                                <type>log</type>
37                                <operand>var:sql</operand>
38                        </instr>
39                </accessor-debug>
40                <if>
41                        <cond>
42                                <instr>
43                                        <type>isocat.sqlBooleanQuery</type>
44                                        <operand>var:sql</operand>
45                                        <target>this:cond</target>
46                                </instr>
47                        </cond>
48                        <then>
49                                <!-- the recommendation already exists: noop -->
50                                <instr>
51                                        <type>copy</type>
52                                        <operand>
53                                                <null/>
54                                        </operand>
55                                        <target>var:void</target>
56                                </instr>
57                        </then>
58                        <else>
59                                <!-- add the recommendation -->
60                                <instr>
61                                        <type>sloot.xquery</type>
62                                        <operator>
63                                                <sql>
64                                                        INSERT INTO
65                                                                core_recommendation
66                                                                ("group","dc")
67                                                        VALUES
68                                                                ({string($group)},{string($dc)})
69                                                        ;
70                                                </sql>
71                                        </operator>
72                                        <group>var:id</group>
73                                        <dc>var:dc</dc>
74                                        <target>var:sql</target>
75                                </instr>
76                                <accessor-debug>
77                                        <instr>
78                                                <type>log</type>
79                                                <operand>var:sql</operand>
80                                        </instr>
81                                </accessor-debug>
82                                <instr>
83                                        <type>isocat.sqlUpdate</type>
84                                        <operand>var:sql</operand>
85                                        <target>var:res</target>
86                                </instr>
87                                <!-- touch the updated DC -->
88                                <instr>
89                                        <type>ISOcat.access.data.dc.touch</type>
90                                        <dc>var:dc</dc>
91                                        <check>
92                                                <b>f</b>
93                                        </check>
94                                        <target>var:void</target>
95                                </instr>
96                            <!-- invalidate the recommenders list -->
97                            <instr>
98                                <type>sloot.cutGoldenThread</type>
99                                <param>
100                                    <string>goldenthread:/recommenders/</string>
101                                </param>
102                            </instr>
103                        </else>
104                </if>
105                <instr>
106                        <type>copy</type>
107                        <operand>
108                                <null/>
109                        </operand>
110                        <target>this:response</target>
111                </instr>
112        </idoc>
113        <exception>
114                <debug/>
115                <trace>ffcpl:/trace/group_recommendation.exception.xml</trace>
116                <throw/>
117        </exception>
118        <response>
119                <debug>ffcpl:/trace/group_recommendation.response.xml</debug>
120                <mime>application/xml</mime>
121        </response>
122</accessor>
Note: See TracBrowser for help on using the repository browser.