Re: POI Data Format

Hi Jacques,

yes, except for that I used the Turtle syntax for the RDF and you use  
RDF/XML, so you will have to convert my input to RDF/XML.

Opening Hours:
=============

<?xml version="1.0"?>
<rdf:RDF xmlns:gr="http://purl.org/goodrelations/v1#" xmlns:xsd="http://www.w3.org/2001/XMLSchema# 
" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:foo="http://your.target.domain/namespace# 
">
	<rdf:Description rdf:about="http://your.target.domain/namespace#GVAbastille 
">
		<gr:hasOpeningHoursSpecification>
			<gr:OpeningHoursSpecification rdf:about="http://your.target.domain/namespace#Workdays 
">
				<gr:opens rdf:datatype="http://www.w3.org/2001/ 
XMLSchema#time">08:00:00</gr:opens>
				<gr:closes rdf:datatype="http://www.w3.org/2001/ 
XMLSchema#time">18:00:00</gr:closes>
				<gr:hasOpeningHoursDayOfWeek rdf:resource="http://purl.org/goodrelations/v1#Monday 
" />
				<gr:hasOpeningHoursDayOfWeek rdf:resource="http://purl.org/goodrelations/v1#Tuesday 
" />
				<gr:hasOpeningHoursDayOfWeek rdf:resource="http://purl.org/goodrelations/v1#Wednesday 
" />
				<gr:hasOpeningHoursDayOfWeek rdf:resource="http://purl.org/goodrelations/v1#Thursday 
" />
				<gr:hasOpeningHoursDayOfWeek rdf:resource="http://purl.org/goodrelations/v1#Friday 
" />
			</gr:OpeningHoursSpecification>
		</gr:hasOpeningHoursSpecification>
		<gr:hasOpeningHoursSpecification>
			<gr:OpeningHoursSpecification rdf:about="http://your.target.domain/namespace#Saturdays 
">
				<gr:opens rdf:datatype="http://www.w3.org/2001/ 
XMLSchema#time">08:30:00</gr:opens>
				<gr:closes rdf:datatype="http://www.w3.org/2001/ 
XMLSchema#time">14:00:00</gr:closes>
				<gr:hasOpeningHoursDayOfWeek rdf:resource="http://purl.org/goodrelations/v1#Saturday 
" />
			</gr:OpeningHoursSpecification>
		</gr:hasOpeningHoursSpecification>
	</rdf:Description>
</rdf:RDF>

Ticket Offer
============
<?xml version="1.0"?>
<rdf:RDF xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:xsd="http://www.w3.org/2001/XMLSchema# 
" xmlns:tio="http://purl.org/tio/ns#" xmlns:gr="http://purl.org/goodrelations/v1# 
" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:foo="http://your.target.domain/namespace# 
">
	<rdf:Description rdf:about="http://your.target.domain/namespace#HeppTickets 
">
		<gr:offers>
			<gr:Offering rdf:about="http://your.target.domain/namespace#offer3">
				<gr:name xml:lang="en">Day tickets for the Bastille - just EUR 8</ 
gr:name>
				<gr:description xml:lang="en">Day tickets for the Bastille</ 
gr:description>
				<gr:includes>
					<tio:TicketPlaceholder rdf:about="http://your.target.domain/namespace#ticket3 
">
						<rdfs:label xml:lang="en">Day ticket for the Bastille</rdfs:label>
						<tio:accessTo rdf:resource="http://your.target.domain/namespace#GVAbastille 
" />
					</tio:TicketPlaceholder>
				</gr:includes>
				<gr:hasBusinessFunction rdf:resource="http://purl.org/goodrelations/v1#Sell 
" />
				<gr:hasPriceSpecification>
					<gr:UnitPriceSpecification>
						<gr:hasCurrency xml:lang="en">EUR</gr:hasCurrency>
						<gr:hasCurrencyValue rdf:datatype="http://www.w3.org/2001/XMLSchema#float 
">8</gr:hasCurrencyValue>
						<gr:validThrough rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime 
">2010-12-31T23:59:59</gr:validThrough>
					</gr:UnitPriceSpecification>
				</gr:hasPriceSpecification>
			</gr:Offering>
		</gr:offers>
	</rdf:Description>
</rdf:RDF>


Martin

On 25.01.2011, at 17:33, jacques lemordant wrote:

> Hi martin,
>> looks interesting!
>> Note that you can directly attach opening hours information with  
>> GoodRelations [1] and entrance fee information / tickets with the  
>> TIO extension to GoodRelations [2]:
>
> good input!
> ---> We can use GoodRelations as shown below?
> jacques
>
> <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
>          xmlns:poap="http://wam.inria.fr/poap/0.1/"
>          xmlns:foaf="http://xmlns.com/foaf/0.1/">
>
>          <poap:Poi rdf:ID="GVAbastille">
>                   <poap:name>Bastille</poap:name>
>                   <poap:coordinates lat="45.198662" lon="5.725124"  
> ele="386.58"/>
>                   <poap:triggering radius="193.3" />
>                   <poap:visibility radius="284.2" />
>                   <foaf:maker rdf:resource="http://wam.inrialpes.fr/rdf/foaf/Audrey-Colbrant.rdf 
> "/>
>                   <foaf:homepage rdf:resource="www.bastille-grenoble.com 
> " />
>                   <poap:update timestamp="2010-11-01T18:17:44Z"/>
>                   <poap:content doctype="http://purl.org/ 
> goodRelations" rdf:resource="./resource/content/jardinDeVille.rdf"/>
>                   <poap:content doctype="html" rdf:resource="./ 
> resource/content/bastille.html"/>
>                   <poap:lifecycle begin="2010-11-01T18:17:44Z"  
> end="2011-12-31T18:17:44Z" />
>                   <poap:channel category="culture"/>
>          </poap:Poi>
> .....
> </rdf:RDF>
>
> with  the following jardinDeVille.rdf  document:
>
>
>>
> <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax- 
> ns#" .....>
>> # Point of interest: foo:GVAbastille
>>
>> # Opening hours
>>
>> foo:GVAbastille gr:hasOpeningHoursSpecification foo:Workdays,  
>> foo:Saturdays .
>>
>> foo:Workdays
>> 	a gr:OpeningHoursSpecification ;
>> 	gr:opens "08:00:00"^^xsd:time ;
>> 	gr:closes "18:00:00"^^xsd:time ;
>> 	gr:hasOpeningHoursDayOfWeek
>> 		gr:Monday, gr:Tuesday, gr:Wednesday, gr:Thursday, gr:Friday .
>>
>> foo:Saturdays
>> 	a gr:OpeningHoursSpecification ;
>> 	gr:opens "08:30:00"^^xsd:time ;
>> 	gr:closes "14:00:00"^^xsd:time ;
>> 	gr:hasOpeningHoursDayOfWeek gr:Saturday .
>>
>>
>> # Tickets
>> foo:ticket3 a tio:TicketPlaceholder ;
>>    rdfs:label "Day ticket for the Bastille"@en ;
>>    tio:accessTo foo:GVAbastille .
>>
>> foo:HeppTickets gr:offers foo:offer3 .
>>
>> foo:offer3 a gr:Offering ;
>>        gr:name "Day tickets for the Bastille - just EUR 8"@en ;
>>        gr:description "Day tickets for the Bastille"@en ;
>>        gr:includes foo:ticket3 ;
>>        gr:hasBusinessFunction gr:Sell ;
>>        gr:hasPriceSpecification
>>             [ a gr:UnitPriceSpecification ;
>>                 gr:hasCurrency "EUR"@en ;
>>                 gr:hasCurrencyValue "8"^^xsd:float ;
>>                 gr:validThrough  
>> "2010-12-31T23:59:59"^^xsd:dateTime  ] .
> </rdf:RDF>
>

Received on Tuesday, 25 January 2011 17:12:14 UTC