Closed spara closed 9 years ago
TIme Open
<xs:complexType name="tDay">
<xs:annotation>
<xs:documentation>element of tTimeOpen</xs:documentation>
<xs:documentation>This can be used for any day of the week</xs:documentation>
</xs:annotation>
<xs:sequence maxOccurs="unbounded">
<xs:element name="From" type="xs:time"/>
<xs:element name="To" type="xs:time"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="tTimeOpen">
<xs:annotation>
<xs:documentation>element of tLanguages, tSite and tSiteService</xs:documentation>
<xs:documentation>TimeOpen refers to the times a service is open or available</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="Sunday" type="tDay" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="Monday" type="tDay" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="Tuesday" type="tDay" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="Wednesday" type="tDay" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="Thursday" type="tDay" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="Friday" type="tDay" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="Saturday" type="tDay" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="Notes" type="xs:string" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
Seasonal
<xs:complexType name="tSeasonal">
<xs:annotation>
<xs:documentation>element of tSiteService</xs:documentation>
<xs:documentation>Activities that are only offered a certain time of year, such as seasonal tax preparation, summer camps and holiday meals</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="Description" type="xs:string" minOccurs="0"/>
<xs:element name="StartDate" type="xs:string" />
<xs:element name="EndDate" type="xs:string" />
</xs:sequence>
</xs:complexType>
Used schema proposed by Moncef, coincides with Ohana API
Can you clarify whether this choice was made to coincide with Ohana API instead of the AIRS schema?
See issue #59 https://github.com/codeforamerica/OpenReferral/issues/59
The AIRS Schema does include an optional framework for Hours that would help someone finding a Food Pantry that was open on a Thursday (instead of scrolling through 25 food pantries to find one that was open on Thursdays)