Changeset 568
- Timestamp:
- 11/08/06 18:19:44 (2 years ago)
- Files:
-
- bbox/template/capabilities.xml (modified) (1 diff)
- bbox/template/feature.atom (modified) (1 diff)
- bbox/template/feature.gml (modified) (1 diff)
- bbox/template/feature.json (modified) (1 diff)
- bbox/template/feature.rdf (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
bbox/template/capabilities.xml
Revision 559 Revision 568 1 #from rdfobj import foaf 1 <?xml version="1.0" encoding="UTF-8"?> 2 <?xml version="1.0" encoding="UTF-8"?> 2 <wfsb:WFS_Simple_Capabilities version="1.0.0" updateSequence="0" xmlns="http://www.opengis.net/ows" 3 <wfsb:WFS_Simple_Capabilities version="1.0.0" updateSequence="0" xmlns="http://www.opengis.net/ows" 3 xmlns:wfs="http://www.opengis.net/wfs" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink" 4 xmlns:wfs="http://www.opengis.net/wfs" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink" 4 xsi:schemaLocation="http://www.opengis.net/wfs http://schemas.opengeospatial.net/wfs/1.1.0/wfs.xsd"> 5 xsi:schemaLocation="http://www.opengis.net/wfs http://schemas.opengeospatial.net/wfs/1.1.0/wfs.xsd"> 5 6 6 <ServiceIdentification> 7 <ServiceIdentification> 7 <Title></Title> 8 <Title></Title> 8 <Keywords> 9 <Keywords> 9 #for $k in $keywords: 10 #for $k in $keywords: 10 <Keyword>$k</Keyword> 11 <Keyword>$k</Keyword> 11 #end for 12 #end for 12 </Keywords> 13 </Keywords> 13 <ServiceType>wfssimple</ServiceType> 14 <ServiceType>wfssimple</ServiceType> 14 <ServiceTypeVersion>1.0.0</ServiceTypeVersion> 15 <ServiceTypeVersion>1.0.0</ServiceTypeVersion> 15 <Fees>none</Fees> 16 <Fees>none</Fees> 16 <AccessConstraints>none</AccessConstraints> 17 <AccessConstraints>none</AccessConstraints> 17 </ServiceIdentification> 18 </ServiceIdentification> 18 19 19 <ServiceProvider> 20 <ServiceProvider> 20 <ProviderName> Acme, Inc.</ProviderName>21 <ProviderName>$maintainer[foaf.name]</ProviderName> 21 <ServiceContact> 22 <ServiceContact> 22 <PositionName>Geo Sys Admin</PositionName>23 <ContactInfo> 23 <ContactInfo> 24 <Phone>25 <Voice>1.800.CALL.US</Voice>26 </Phone>27 <Address> 24 <Address> 28 <ElectronicMailAddress> geoadmin@atom.example.com</ElectronicMailAddress>25 <ElectronicMailAddress>$maintainer[foaf.mbox]</ElectronicMailAddress> 29 </Address> 26 </Address> 30 </ContactInfo> 27 </ContactInfo> 31 </ServiceContact> 28 </ServiceContact> 32 </ServiceProvider> 29 </ServiceProvider> 33 30 34 <OperationsMetadata> 31 <OperationsMetadata> 35 <Operation name="GetCapabilities"> 32 <Operation name="GetCapabilities"> 36 <DCP><HTTP><Get xlink:href="http://atom.example.com/wfs"></Get></HTTP></DCP> 33 <DCP><HTTP><Get xlink:href="http://atom.example.com/wfs"></Get></HTTP></DCP> 37 </Operation> 34 </Operation> 38 <Operation name="GetFeature"> 35 <Operation name="GetFeature"> 39 <DCP><HTTP><Get xlink:href="http://atom.example.com/wfs"></Get></HTTP></DCP> 36 <DCP><HTTP><Get xlink:href="http://atom.example.com/wfs"></Get></HTTP></DCP> 40 <Parameter name="outputFormat"> 37 <Parameter name="outputFormat"> 41 <Value>text/xml</Value> 38 <Value>text/xml</Value> 42 </Parameter> 39 </Parameter> 43 <Parameter name="outputFormat"> 40 <Parameter name="outputFormat"> 44 <Value>application/rdf+xml</Value> 41 <Value>application/rdf+xml</Value> 45 </Parameter> 42 </Parameter> 46 <Parameter name="outputFormat"> 43 <Parameter name="outputFormat"> 47 <Value>application/atom+xml</Value> 44 <Value>application/atom+xml</Value> 48 </Parameter> 45 </Parameter> 49 <Parameter name="outputFormat"> 46 <Parameter name="outputFormat"> 50 <Value>application/json</Value> 47 <Value>application/json</Value> 51 </Parameter> 48 </Parameter> 52 49 53 </Operation> 50 </Operation> 54 <Operation name="DescribeFeatureType"> 51 <Operation name="DescribeFeatureType"> 55 <DCP><HTTP><Get xlink:href="http://atom.example.com/wfs"></Get></HTTP></DCP> 52 <DCP><HTTP><Get xlink:href="http://atom.example.com/wfs"></Get></HTTP></DCP> 56 <Parameter name="outputFormat"> 53 <Parameter name="outputFormat"> 57 <Value>application/rdf+xml</Value> 54 <Value>application/rdf+xml</Value> 58 </Parameter> 55 </Parameter> 59 </Operation> 56 </Operation> 60 </OperationsMetadata> 57 </OperationsMetadata> 61 58 62 </wfsb:WFS_Simple_Capabilities> 59 </wfsb:WFS_Simple_Capabilities> 63 60 bbox/template/feature.atom
Revision 559 Revision 568 1 #from rdfobj import dc,ical,geo,georss 1 #from rdfobj import dc,ical,geo,georss,foaf 2 <feed xmlns="http://www.w3.org/2005/Atom" xmlns:georss="http://www.georss.org/georss" xmlns:gml="http://www.opengis.net/gml"> 2 <feed xmlns="http://www.w3.org/2005/Atom" xmlns:georss="http://www.georss.org/georss" xmlns:gml="http://www.opengis.net/gml"> 3 <title>Interesting places to visit in London </title> 3 <title>Interesting places to visit in London </title> 4 <updated> (date goes here)</updated>4 <updated>$features[0][dc.date]</updated> 5 <author> 5 <author> 6 <name> Jo Walsh</name>6 <name>$maintainer[foaf.name]</name> 7 <email> zool@frot.org</email>7 <email>$maintainer[foaf.mbox]</email> 8 </author> 8 </author> 9 <id>http://example.com/bleh</id> 9 <georss:box>$envelope</georss:box> 10 #for $feature in $features: 10 11 <entry> 11 #for $feature in $features: 12 <entry> 12 <title>$feature[dc.title]</title> 13 <title>$feature[dc.title]</title> 13 <id>$feature.uri()</id> 14 <id>$feature</id> 14 <updated>$feature[ical.datetime]</updated> 15 #if $feature[dc.date] is not None: 16 <updated>$feature[dc.date]</updated> 17 #end if 18 #if $feature[dc.description] is not None: 15 <content type="html">$feature[dc.description]</content> 19 <content type="html">$feature[dc.description]</content> 20 #end if 16 <georss:where> 21 <georss:where> 17 <gml:Point> 22 <gml:Point> 18 <gml:pos>$feature[geo.lat] $feature[geo.long]</gml:pos> 23 <gml:pos>$feature[geo.lat] $feature[geo.long]</gml:pos> 19 </gml:Point> 24 </gml:Point> 20 </georss:where> 25 </georss:where> 21 </entry> 26 </entry> 27 22 #end for 28 #end for 29 23 </feed> 30 </feed> 31 bbox/template/feature.gml
Revision 559 Revision 568 1 #from rdfobj import dc,ical,geo,georss 1 #from rdfobj import dc,ical,geo,georss,foaf 2 <feed xmlns="http://www.w3.org/2005/Atom" xmlns:georss="http://www.georss.org/georss" xmlns:gml="http://www.opengis.net/gml"> 2 <feed xmlns="http://www.w3.org/2005/Atom" xmlns:georss="http://www.georss.org/georss" xmlns:gml="http://www.opengis.net/gml"> 3 <title>Interesting places to visit in London </title> 3 <title>Interesting places to visit in London </title> 4 <updated> (date goes here)</updated>4 <updated>$features[0][dc.date]</updated> 5 <author> 5 <author> 6 <name> Jo Walsh</name>6 <name>$maintainer[foaf.name]</name> 7 <email> zool@frot.org</email>7 <email>$maintainer[foaf.mbox]</email> 8 </author> 8 </author> 9 <!-- this is the general idea --> 9 <georss:box>$envelope</georss:box> 10 <georss:envelope>$envelope</georss:envelope> 10 11 <id>http://example.com/bleh</id> 12 #for $feature in $features: 11 #for $feature in $features: 13 <entry> 12 <entry> 14 <title>$feature[dc.title]</title> 13 <title>$feature[dc.title]</title> 15 <id>$feature</id> 14 <id>$feature</id> 16 #if $feature[dc.date] is not None: 15 #if $feature[dc.date] is not None: 17 <updated>$feature[dc.date]</updated> 16 <updated>$feature[dc.date]</updated> 18 #end if 17 #end if 19 #if $feature[dc.description] is not None: 18 #if $feature[dc.description] is not None: 20 <content type="html">$feature[dc.description]</content> 19 <content type="html">$feature[dc.description]</content> 21 #end if 20 #end if 22 <georss:where> 21 <georss:where> 23 <gml:Point> 22 <gml:Point> 24 <gml:pos>$feature[geo.lat] $feature[geo.long]</gml:pos> 23 <gml:pos>$feature[geo.lat] $feature[geo.long]</gml:pos> 25 </gml:Point> 24 </gml:Point> 26 </georss:where> 25 </georss:where> 27 </entry> 26 </entry> 28 27 29 #end for 28 #end for 30 29 31 </feed> 30 </feed> 32 31 bbox/template/feature.json
Revision 559 Revision 568 1 insert json here 1 #from rdfobj import foaf, geo, georss, dc 2 {"feed": 3 {"title":"Interesting places to visit in London", 4 "author": { 5 "name":"$maintainer[foaf.name]", 6 "email":"$maintainer[foaf.mbox]", 7 }, 8 "updated":"$features[0][dc.date]", 9 "envelope":"$envelope", 10 11 "entries": [ 12 #for $feature in $features: 13 {"title":"$feature[dc.title]", 14 "id":"$feature", 15 "updated":"$feature[dc.date]", 16 "geo_lat":"$feature[geo.lat]", 17 "geo_long":"$feature[geo.long]", 18 }, 19 #end for 20 ] 21 } 22 } 23 24 25 bbox/template/feature.rdf
Revision 559 Revision 568 1 #for $f in $features: 1 #for $f in $features: 2 $f .dump()2 $f 3 #end for 3 #end for
