Add more fields to context examples.
authorDave Longley <dlongley@digitalbazaar.com>
Fri, 28 Oct 2011 17:14:09 -0400
changeset 249 fd0268563475
parent 248 88ecc6b3174f
child 250 10b84f283486
Add more fields to context examples.
contexts/event
contexts/place
--- a/contexts/event	Fri Oct 28 16:53:18 2011 -0400
+++ b/contexts/event	Fri Oct 28 17:14:09 2011 -0400
@@ -23,14 +23,15 @@
       "kilometer": "http://purl.org/measurement#kilometer",
       "feet": "http://purl.org/measurement#feet",
       "miles": "http://purl.org/measurement#miles",
-      
+
+      "ical": "http://www.w3.org/2002/12/cal/ical#",      
       "xsd": "http://www.w3.org/2001/XMLSchema#",
       
       "@coerce":
       {
          "latitude": "xsd:decimal",
-         "longitude": "xsd:decimal"
+         "longitude": "xsd:decimal",
+         "ical:dtstart": "xsd:dateTime"
       }
    }
 }
-
--- a/contexts/place	Fri Oct 28 16:53:18 2011 -0400
+++ b/contexts/place	Fri Oct 28 17:14:09 2011 -0400
@@ -4,6 +4,8 @@
       "Place": "http://schema.org/Place",
       "name": "http://purl.org/dc/terms/title",
       "description": "http://purl.org/dc/terms/description",
+      "geo": "http://schema.org/geo",
+      "image": "http://schema.org/image",
       "latitude": "http://www.w3.org/2003/01/geo/wgs84_pos#latitude",
       "longitude": "http://www.w3.org/2003/01/geo/wgs84_pos#longitude",
       "elevation": "http://www.w3.org/2003/01/geo/wgs84_pos#altitude",
@@ -26,6 +28,7 @@
       
       "@coerce":
       {
+         "image": "@iri",
          "latitude": "xsd:decimal",
          "longitude": "xsd:decimal"
       }