| 1 |
<resource schema="__system"> |
| 2 |
|
| 3 |
|
| 4 |
<!-- ================================ Obscore ===================== --> |
| 5 |
|
| 6 |
<STREAM id="obscore-extraevents"> |
| 7 |
<doc><![CDATA[ |
| 8 |
Write extra events to mix into obscore-published tables. This |
| 9 |
will almost always be just additions to the obscore clause of |
| 10 |
looking roughly like:: |
| 11 |
|
| 12 |
<property name="obscoreClause" cumulate="True"> |
| 13 |
, |
| 14 |
CAST(\\\\plutoLong AS real) AS pluto_long, |
| 15 |
CAST(\\\\plutoLat AS real) AS pluto_lat |
| 16 |
</property> |
| 17 |
|
| 18 |
See also `Extending Obscore`_ in the reference manual. |
| 19 |
]]></doc> |
| 20 |
</STREAM> |
| 21 |
|
| 22 |
<STREAM id="obscore-extrapars"> |
| 23 |
<doc><![CDATA[ |
| 24 |
For each macro you reference in obscore-extraevents, add a |
| 25 |
mixinPar here, like: |
| 26 |
|
| 27 |
<mixinPar key="plutoLong">NULL</mixinPar> |
| 28 |
|
| 29 |
Note that all mixinPars here must have default (i.e., there must |
| 30 |
be some content in the element suitable as an SQL expression |
| 31 |
of the appropriate type). If you fail to give one, the creation |
| 32 |
of the empty prototype obscore table will fail with fairly obscure |
| 33 |
error messages. |
| 34 |
]]></doc> |
| 35 |
</STREAM> |
| 36 |
|
| 37 |
<STREAM id="obscore-extracolumns"> |
| 38 |
<doc> |
| 39 |
Add column definitions for obscore here. See `Extending Obscore`_ for |
| 40 |
details. |
| 41 |
</doc> |
| 42 |
</STREAM> |
| 43 |
|
| 44 |
<rowmaker id="_test-rmk"> |
| 45 |
<!-- test instrumentation --> |
| 46 |
<map key="foo">@bar</map> |
| 47 |
</rowmaker> |
| 48 |
|
| 49 |
<STREAM id="obscore-registration"> |
| 50 |
<doc> |
| 51 |
Registry-relevant material for the ivoa.obscore table. |
| 52 |
|
| 53 |
You might consider adding a set="local,ivo_vor" here to |
| 54 |
have obscore on your front page (but it's probably |
| 55 |
preferable to have a form service; cf. the tutorial). |
| 56 |
|
| 57 |
You can override obscore metadata (title, description...) |
| 58 |
here, too. Remember you will usually have to prefix meta |
| 59 |
names with a bang to clear previous content. |
| 60 |
</doc> |
| 61 |
<register/> |
| 62 |
</STREAM> |
| 63 |
|
| 64 |
<STREAM id="obs-radio-registration"> |
| 65 |
<doc> |
| 66 |
Registry-relevant material for the ivoa.obs_radio table. |
| 67 |
</doc> |
| 68 |
<register/> |
| 69 |
</STREAM> |
| 70 |
|
| 71 |
<STREAM id="obscore-materialised-indexes"> |
| 72 |
<doc> |
| 73 |
Indexes being created if you materialise your obscore table. |
| 74 |
</doc> |
| 75 |
<index columns="t_min"/> |
| 76 |
<index columns="t_max"/> |
| 77 |
<index columns="em_min"/> |
| 78 |
<index columns="em_max"/> |
| 79 |
<index columns="obs_publisher_did"/> |
| 80 |
<index columns="obs_collection"/> |
| 81 |
<index columns="calib_level"/> |
| 82 |
<index columns="obs_id"/> |
| 83 |
<index columns="dataproduct_type"/> |
| 84 |
<index columns="s_region" method="GIST"/> |
| 85 |
<FEED source="//scs#spoint-index-def" ra="s_ra" dec="s_dec" |
| 86 |
cluster="False"/> |
| 87 |
<FEED source="//scs#splitPosIndex" long="s_ra" lat="s_dec" cluster="False"/> |
| 88 |
</STREAM> |
| 89 |
|
| 90 |
<STREAM id="obscore-overrides"> |
| 91 |
<doc> |
| 92 |
Material taken over into the root level of the obscore resource. |
| 93 |
As shipped, this is empty. |
| 94 |
</doc> |
| 95 |
</STREAM> |
| 96 |
|
| 97 |
<!-- ================================ Registry Interface ============ --> |
| 98 |
|
| 99 |
<STREAM id="registry-interfacerecords"> |
| 100 |
<doc> |
| 101 |
These are services and registry records for the registry interface |
| 102 |
of this service. |
| 103 |
|
| 104 |
Even if together with defaultmeta, this will just work, keep |
| 105 |
these elements in your etc/userconfig.rd. |
| 106 |
|
| 107 |
The metaString macros in here generally point into defaultmeta. |
| 108 |
Replace them with whatever actual text applies to your site; we |
| 109 |
will work to do away with defaultmeta.txt. |
| 110 |
</doc> |
| 111 |
|
| 112 |
<resRec id="authority"> |
| 113 |
<meta> |
| 114 |
resType: authority |
| 115 |
creationDate: \metaString{authority.creationDate} |
| 116 |
title: \\metaString{authority.title}{UNCONFIGURED} |
| 117 |
shortName: \\metaString{authority.shortName} |
| 118 |
subject: Authority |
| 119 |
managingOrg: \\metaString{publisher} |
| 120 |
referenceURL: \\metaString{authority.referenceURL}{UNCONFIGURED} |
| 121 |
identifier: ivo://\getConfig{ivoa}{authority} |
| 122 |
sets: ivo_managed |
| 123 |
</meta> |
| 124 |
<meta name="description"> |
| 125 |
\\metaString{authority.description}{UNCONFIGURED} |
| 126 |
</meta> |
| 127 |
</resRec> |
| 128 |
|
| 129 |
<service id="registry" allowed="pubreg.xml"> |
| 130 |
<registryCore/> |
| 131 |
<publish render="pubreg.xml" sets="ivo_managed"> |
| 132 |
<meta name="accessURL" |
| 133 |
>\getConfig{web}{serverURL}\getConfig{web}{nevowRoot}oai.xml</meta> |
| 134 |
</publish> |
| 135 |
<meta name="resType">registry</meta> |
| 136 |
<meta name="title">\getConfig{web}{sitename} Registry</meta> |
| 137 |
<meta name="creationDate">\metaString{authority.creationDate}</meta> |
| 138 |
<meta name="description"> |
| 139 |
The publishing registry for the \getConfig{web}{sitename}. |
| 140 |
</meta> |
| 141 |
<meta name="subject">virtual-observatories</meta> |
| 142 |
<meta name="shortName">\\metaString{authority.shortName} RG</meta> |
| 143 |
<meta name="content.type">Archive</meta> |
| 144 |
<meta name="rights">public</meta> |
| 145 |
<meta name="harvest.description">The harvesting interface for |
| 146 |
the publishing registry of the \getConfig{web}{sitename}</meta> |
| 147 |
<meta name="maxRecords">10000</meta> |
| 148 |
<meta name="managedAuthority">\getConfig{ivoa}{authority}</meta> |
| 149 |
<meta name="publisher">The staff at the \getConfig{web}{sitename}</meta> |
| 150 |
</service> |
| 151 |
</STREAM> |
| 152 |
|
| 153 |
<!-- ============================= TAP ========================== --> |
| 154 |
|
| 155 |
<STREAM id="tapexamples"> |
| 156 |
<doc>Examples for TAP querying</doc> |
| 157 |
|
| 158 |
<!-- <meta name="_example" title="tap_schema example"> |
| 159 |
To locate columns "by physics", as it were, use UCD in |
| 160 |
:taptable:`tap_schema.columns`. For instance, |
| 161 |
to find everything talking about the mid-infrared about 10µm, you |
| 162 |
could write: |
| 163 |
|
| 164 |
.. tapquery:: |
| 165 |
|
| 166 |
SELECT * FROM tap_schema.columns |
| 167 |
WHERE description LIKE '%em.IR.8-15um%' |
| 168 |
</meta> --> |
| 169 |
</STREAM> |
| 170 |
|
| 171 |
|
| 172 |
<NXSTREAM id="tapdescription"> |
| 173 |
<meta name="description">The \\getConfig{web}{sitename}'s TAP end point. |
| 174 |
The Table Access Protocol (TAP) lets you execute queries against our |
| 175 |
database tables, inspect various metadata, and upload your own |
| 176 |
data. It is thus the VO's premier way to access public data |
| 177 |
holdings. |
| 178 |
|
| 179 |
Tables exposed through this endpoint include: \\tablesForTAP. |
| 180 |
</meta> |
| 181 |
</NXSTREAM> |
| 182 |
|
| 183 |
<NXSTREAM id="sitewidesiap2-extras"> |
| 184 |
<!-- put any items you want to appear in the //siap2#sitewide |
| 185 |
service definition (in particular, metadata) here; it'd be nice if |
| 186 |
you changed the creationDate, at least, as that might aid |
| 187 |
in debugging. |
| 188 |
|
| 189 |
You should also add |
| 190 |
testQuery.pos.ra, testQuery.pos.dec, |
| 191 |
testQuery.size.ra, testQuery.size.dec meta item to describe a field |
| 192 |
that is guaranteed to return at least one result. |
| 193 |
--> |
| 194 |
<meta name="description"> |
| 195 |
The \\getConfig{web}{sitename}'s sitewide SIAP version 2 service |
| 196 |
publishes all the images published through the site. For more |
| 197 |
advanced queries including uploads, all this data is also available |
| 198 |
through ObsTAP. |
| 199 |
</meta> |
| 200 |
<meta name="creationDate">2016-08-05T12:40:00</meta> |
| 201 |
<meta name="subject">virtual-observatories</meta> |
| 202 |
<meta name="shortName">\\metaString{authority.shortName} SIA2</meta> |
| 203 |
<meta name="title">\getConfig{web}{sitename} SIAP Version 2 Service</meta> |
| 204 |
<meta name="sia.type">Pointed</meta> |
| 205 |
</NXSTREAM> |
| 206 |
</resource> |