<?xml version="1.0" encoding="UTF-8"?>
<!-- list of standard enumeration types for VOSpace expressed as resource entries

 -->
<ri:VOResources xmlns:ri="http://www.ivoa.org/xml/ResourceSet/v1.0"
	xmlns:vr="http://www.ivoa.net/xml/VOResource/v1.0"
	xmlns:vsp="http://www.ivoa.net/schema/VOSpaceResource/v1.0rc4"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://www.ivoa.org/xml/ResourceSet/v1.0 ResourceSet-v1.0.xsd">
	<!-- std properties -->
	<ri:Resource updated="2005-09-09T12:28:16"
		xsi:type="vsp:ResourceEnumList" created="2005-09-09T12:28:16">
		<title>VOSpace Standard Properties</title>
		<shortName>VOSpaceProps</shortName>
		<identifier>ivo://net.ivoa.vospace/properties</identifier>
		<curation>
			<publisher>IVOA</publisher>
			<creator>
				<name>IVOA</name>
				<logo>
					http://www.ivoa.net/icons/ivoa_logo_small.jpg
				</logo>
			</creator>
			<date role="representative">2006-07-17</date>
			<version>1.0</version>
			<contact>
				<name>IVOA Grid Webservices WG</name>
				<email>vospace@ivoa.net</email>
			</contact>
		</curation>
		<content>
			<subject>VOSpace</subject>
			<description>
				A standard VOSpace property definition
			</description>
			<referenceURL>http://www.ivo.net/vospace</referenceURL>
			<type>Other</type>
		</content>
		<!-- now the actual property metadata -->
		<key id="size" xsi:type="vsp:VOSpaceProperty">
			<description>The size of the data item</description>
			<unit>bytes</unit>
		</key>
		<key id="owner" xsi:type="vsp:VOSpaceProperty">
			<description>The owner of the data</description>
		</key>
      <key id="modificationdate" xsi:type="vsp:VOSpaceProperty">
         <description>The last modification date of the data</description>
      </key>
 
	</ri:Resource>
	<!-- std protocols -->
	<ri:Resource updated="2005-09-09T12:28:16"
		xsi:type="vsp:ResourceEnumList" created="2005-09-09T12:28:16">
		<title>VOSpace standard protocols</title>
		<shortName>VOSpace Protocol</shortName>
		<identifier>ivo://net.ivoa.vospace/protocols</identifier>
		<curation>
			<publisher>IVOA</publisher>
			<creator>
				<name>IVOA</name>
				<logo>
					http://www.ivoa.net/icons/ivoa_logo_small.jpg
				</logo>
			</creator>
			<date role="representative">2006-07-17</date>
			<version>1.0</version>
			<contact>
				<name>IVOA Grid Webservices WG</name>
				<email>vospace@ivoa.net</email>
			</contact>
		</curation>
		<content>
			<subject>VOSpace</subject>
			<description>
				standard VOSpace protocol definitions
			</description>
			<referenceURL>http://www.ivo.net/vospace</referenceURL>
			<type>Other</type>
		</content>
		<!-- now the actual protocol metadata -->
        <!-- needs to be completed -->
		<key id="http-1.1-get" xsi:type="vsp:VOSpaceProtocol">
			<description>http 1.1 get</description>
			<standardUrl>
				http://www.w3.org/Protocols/rfc2616/rfc2616.html
			</standardUrl>
			<urlScheme>http:</urlScheme>
		</key>
		<key id="http-1.1-put" xsi:type="vsp:VOSpaceProtocol">
			<description>http 1.1 put</description>
			<standardUrl>
				http://www.w3.org/Protocols/rfc2616/rfc2616.html
			</standardUrl>
			<urlScheme>http:</urlScheme>
		</key>
      <key id="https-1.1-get" xsi:type="vsp:VOSpaceProtocol">
         <description>http 1.1 get with TLS expecting client authentication via X509 certificates</description>
         <standardUrl>
            http://www.w3.org/Protocols/rfc2616/rfc2616.html
         </standardUrl>
         <urlScheme>http:</urlScheme>
      </key>
      <key id="https-1.1-put" xsi:type="vsp:VOSpaceProtocol">
         <description>http 1.1 put  with TLS expecting client authentication X509 certificates</description>
         <standardUrl>
            http://www.w3.org/Protocols/rfc2616/rfc2616.html
         </standardUrl>
         <urlScheme>http:</urlScheme>
      </key>
      
	   <key id="file" xsi:type="vsp:VOSpaceProtocol">
			<description>direct access to the filesystem</description>
			<urlScheme>file:</urlScheme>
	  </key>

      <key id="dime" xsi:type="vsp:VOSpaceProtocol">
         <description>obtain the data as the first DIME attachemnt of the current VOSpace SOAP control message</description>
      </key>

	</ri:Resource>
	<!-- views -->
	<ri:Resource updated="2005-09-09T12:28:16"
		xsi:type="vsp:ResourceEnumList" created="2005-09-09T12:28:16">
		<title>VOSpace standard views</title>
		<shortName>VOSpace Views</shortName>
		<identifier>ivo://net.ivoa.vospace/views</identifier>
		<curation>
			<publisher>IVOA</publisher>
			<creator>
				<name>IVOA</name>
				<logo>
					http://www.ivoa.net/icons/ivoa_logo_small.jpg
				</logo>
			</creator>
			<date role="representative">2006-07-17</date>
			<version>1.0</version>
			<contact>
				<name>IVOA Grid Webservices WG</name>
				<email>vospace@ivoa.net</email>
			</contact>
		</curation>
		<content>
			<subject>VOSpace</subject>
			<description>
				standard VOSpace protocol definitions
			</description>
			<referenceURL>http://www.ivo.net/vospace</referenceURL>
			<type>Other</type>
		</content>
		<!-- now the actual view metadata -->
		<key id="any" xsi:type="vsp:VOSpaceProtocol"><!-- would not identity/original be better name ?-->
			<description>the data in the original format</description>
		</key>
		<key id="votable1.1" xsi:type="vsp:VOSpaceProtocol">
			<description>votable 1.1 representation</description>
			<standardUrl>
				http://www.ivoa.net/Documents/REC/VOTable/VOTable-20040811.html
			</standardUrl>
		</key>
		<key id="votable1.0" xsi:type="vsp:VOSpaceProtocol">
			<description>votable 1.0 representation</description>
		</key>
	</ri:Resource>

	<!-- access control policies -->
	<ri:Resource updated="2005-09-09T12:28:16"
		xsi:type="vsp:ResourceEnumList" created="2005-09-09T12:28:16">
		<title>VOSpace standard access control policies</title>
		<shortName>VOSpace Policies</shortName>
		<identifier>ivo://net.ivoa.vospace/policies</identifier>
		<curation>
			<publisher>IVOA</publisher>
			<creator>
				<name>IVOA</name>
				<logo>
					http://www.ivoa.net/icons/ivoa_logo_small.jpg
				</logo>
			</creator>
			<date role="representative">2006-07-17</date>
			<version>1.0</version>
			<contact>
				<name>IVOA Grid Webservices WG</name>
				<email>vospace@ivoa.net</email>
			</contact>
		</curation>
		<content>
			<subject>VOSpace</subject>
			<description>
				standard VOSpace access policy definitions
			</description>
			<referenceURL>http://www.ivo.net/vospace</referenceURL>
			<type>Other</type>
		</content>
		<!-- now the actual view metadata -->
		<key id="private">
			<description>
				the owner of the resource has full control, and world
				has no ability to read
			</description>
		</key>
		<key id="public-readonly">
			<description>
				all resources are available read-only to world after authentication, but
				there is no ability to write
			</description>
		</key>
		<key id="public-readwrite">
			<description></description>
		</key>
      <key id="open-readonly">
         <description>readonly with no authentication or authorization controls</description>
      </key>
      <key id="custom">
         <description>custom authorization</description>
      </key>

	</ri:Resource>
	<!-- a vospace service -->
	<ri:Resource updated="2005-09-09T12:28:16" xsi:type="vr:Service"
		created="2005-09-09T12:28:16">
		<title>An example VOSpace definition</title>
		<shortName>VOSpace Protocol</shortName>
		<identifier>ivo://org.eso/vospace</identifier>
		<curation>
			<publisher>ESO</publisher>
			<creator>
				<name>ESO</name>
				<logo>http://www.eso.org/images/eso-logo.gif</logo>
			</creator>
			<date role="representative">2006-07-17</date>
			<version>1.0</version>
			<contact>
				<name>Paul Harrison</name>
				<email>pharriso@eso.org</email>
			</contact>
		</curation>
		<content>
			<subject>VOSpace</subject>
			<description>A set of servers in a VOSpace</description>
			<referenceURL>http://www.ivo.net/vospace</referenceURL>
			<type>Other</type>
		</content>

		<capability xsi:type="vsp:VOSpaceCapability"
			standardID="ivo://net.ivoa/standard/VOSpace">
			<description></description>
			<interface xsi:type="vr:WebService" role="std"
				version="1.0">
				<accessURL>http://host1:8080/vospace</accessURL>
				<!-- there are issues of how to register multiple servers in the space - 
					it could be done with the multiple interfaces or multiple accessURLs within an interface-->
				<accessURL>http://host3:8080/vospace</accessURL>
			</interface>
			<interface xsi:type="vr:WebService" role="std"
				version="1.1">
				<accessURL>http://host2:8080/vospace</accessURL>
			</interface>
			<!-- problem here with versioning - different versions would have different capabilities?
				also the assumption is that all the servers within a space have identical metadata for below 
				- need to examine this assumption-->
			<accessPolicy>
				ivo://net.ivoa.vospace/policies#public-readonly
			</accessPolicy>
			<protocols>
				<accepts>
					<uri>
						ivo://net.ivoa.vospace/protocols#http-1.1-get
					</uri>
				</accepts>
				<provides>
					<uri>
						ivo://net.ivoa.vospace/protocols#http-1.1-get
					</uri>
				</provides>
			</protocols>
			<views>
				<accepts>
					<uri>ivo://net.ivoa.vospace/views#any</uri>
				</accepts>
				<provides>
					<uri>ivo://net.ivoa.vospace/views#any</uri>
				</provides>
			</views>
			<nodeTypes>DataNode</nodeTypes>
		</capability>
	</ri:Resource>
</ri:VOResources>