Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ttools: provide taplint with VOSITables schema
taplint was generating the following warning when validating the /tables endpoint for some services: W-TMV-UNSC-1 Schema from unknown namespace during validation: http://www.ivoa.net/xml/VOSITables/v1.0 I'm not sure why I hadn't noticed this before, or why I hadn't included the VOSITables schema in taplint's hardwired schema collection before. Anyway, I have now, so this warning will go away. NOTE, as pointed out to me by Gregory Mantelet, and earlier (July 2014) noted by Markus Demleitner on the grid@ivoa.net list, there appears to be an error in the copy of that schema currently (29 Oct 2014) hosted at the canonical location (http://www.ivoa.net/xml/VOSITables/v1.0) - it's got its namespaces in a twist. Maybe that's the reason I didn't include it before. Therefore the VOSITables-v1.0.xsd schema included in this commit has been copied'n'pasted from the VOSI 1.0 REC standard text (Appendix A.3), with some whitespace formatting errors and annoyances adjusted.
- Loading branch information
Showing
3 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
ttools/src/resources/uk/ac/starlink/ttools/taplint/VOSITables-v1.0.xsd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<xsd:schema targetNamespace="http://www.ivoa.net/xml/VOSITables/v1.0" | ||
xmlns:tns="http://www.ivoa.net/xml/VOSITables/v1.0" | ||
xmlns:vr="http://www.ivoa.net/xml/VOResource/v1.0" | ||
xmlns:vs="http://www.ivoa.net/xml/VODataService/v1.1" | ||
xmlns:xsd="http://www.w3.org/2001/XMLSchema" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
elementFormDefault="qualified" | ||
attributeFormDefault="unqualified" | ||
version="1.0"> | ||
|
||
<xsd:annotation> | ||
<xsd:documentation> | ||
A schema for formatting table metadata as returned by a | ||
tables resource, defined by the IVOA Support Interfaces | ||
specification (VOSI). | ||
See http://www.ivoa.net/Documents/latest/VOSI.html. | ||
</xsd:documentation> | ||
</xsd:annotation> | ||
|
||
<xsd:import namespace="http://www.ivoa.net/xml/VODataService/v1.1" | ||
schemaLocation="http://www.ivoa.net/xml/VODataService/v1.1" /> | ||
|
||
<!-- | ||
- the root element for a VOSI table metadata (section 3.4) | ||
--> | ||
<xsd:element name="tableset" type="vs:TableSet" > | ||
<xsd:annotation> | ||
<xsd:documentation> | ||
A description of the table metadata supported by the | ||
service associated with a VOSI-enabled resource. | ||
</xsd:documentation> | ||
</xsd:annotation> | ||
</xsd:element> | ||
|
||
</xsd:schema> |