Giving up and simply create a copy of the contexts for the time being
authorMarkus Lanthaler <mark_lanthaler@gmx.net>
Fri, 15 Jun 2012 16:49:52 +0200
changeset 721 6f3b3deb9e88
parent 720 0e4d6ce364f7
child 722 a331528edad6
Giving up and simply create a copy of the contexts for the time being

Couldn't figure out how the server is configured, perhaps mod_rewrite is turned of for this directory. Solved the problem for the time being by simply creating a copy of the contexts without file extension. This should be fixed at some point though.
contexts/.htaccess
contexts/event
contexts/person
contexts/place
contexts/recipe
--- a/contexts/.htaccess	Fri Jun 15 16:44:52 2012 +0200
+++ b/contexts/.htaccess	Fri Jun 15 16:49:52 2012 +0200
@@ -1,7 +1,4 @@
-RewriteEngine On
-RewriteRule ^(.*)(event|person|place|recipe)$ $1$2.jsonld
-
-<FilesMatch "\.jsonld$">
+<FilesMatch "(event|person|place|recipe|\.jsonld)$">
    ForceType application/ld+json
    SetHandler default_handler
    Header add Access-Control-Allow-Origin *
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/contexts/event	Fri Jun 15 16:49:52 2012 +0200
@@ -0,0 +1,37 @@
+{
+   "@context":
+   {
+      "Event": "http://schema.org/Event",
+      "name": "http://purl.org/dc/terms/title",
+      "description": "http://purl.org/dc/terms/description",
+      "telephone": "http://schema.org/telephone",
+      "email": "http://xmlns.com/foaf/0.1/mbox",
+
+      "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",
+      
+      "Address": "http://www.w3.org/2006/vcard/ns#Address",
+      "address": "http://www.w3.org/2006/vcard/ns#address",
+      "street": "http://www.w3.org/2006/vcard/ns#street-address",      
+      "locality": "http://www.w3.org/2006/vcard/ns#locality",
+      "region": "http://www.w3.org/2006/vcard/ns#region",
+      "country": "http://www.w3.org/2006/vcard/ns#country",
+      "postalCode": "http://www.w3.org/2006/vcard/ns#postal-code",
+
+      "meter": "http://purl.org/measurement#meter",
+      "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",
+         "ical:dtstart": "xsd:dateTime"
+      }
+   }
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/contexts/person	Fri Jun 15 16:49:52 2012 +0200
@@ -0,0 +1,81 @@
+{
+   "@context":
+   {
+      "Person": "http://xmlns.com/foaf/0.1/Person",
+      "xsd": "http://www.w3.org/2001/XMLSchema#",
+      "name": "http://xmlns.com/foaf/0.1/name",
+      "nickname": "http://xmlns.com/foaf/0.1/nick",
+      "affiliation": "http://schema.org/affiliation",
+      "depiction": 
+      {
+         "@id": "http://xmlns.com/foaf/0.1/depiction",
+         "@type": "@id"
+      },
+      "born": 
+      {
+         "@id": "http://schema.org/birthDate",
+         "@type": "xsd:dateTime"
+      },
+      "child": 
+      {
+         "@id": "http://schema.org/children",
+         "@type": "@id"
+      },
+      "colleague": 
+      {
+         "@id": "http://schema.org/colleagues",
+         "@type": "@id"
+      },
+      "knows": 
+      {
+         "@id": "http://xmlns.com/foaf/0.1/knows",
+         "@type": "@id"
+      },
+      "died": 
+      {
+         "@id": "http://schema.org/deathDate",
+         "@type": "xsd:dateTime"
+      },
+      "email": 
+      {
+         "@id": "http://xmlns.com/foaf/0.1/mbox",
+         "@type": "@id"
+      },
+      "familyName": "http://xmlns.com/foaf/0.1/familyName",
+      "givenName": "http://xmlns.com/foaf/0.1/givenName",
+      "gender": "http://schema.org/gender",
+      "homepage": 
+      {
+         "@id": "http://xmlns.com/foaf/0.1/homepage",
+         "@type": "@id"
+      },
+      "honorificPrefix": "http://schema.org/honorificPrefix",
+      "honorificSuffix": "http://schema.org/honorificSuffix",
+      "jobTitle": "http://xmlns.com/foaf/0.1/title",
+      "nationality": "http://schema.org/nationality",
+      "parent": 
+      {
+         "@id": "http://schema.org/parent",
+         "@type": "@id"
+      },
+      "sibling": 
+      {
+         "@id": "http://schema.org/sibling",
+         "@type": "@id"
+      },
+      "spouse": 
+      {
+         "@id": "http://schema.org/spouse",
+         "@type": "@id"
+      },
+      "telephone": "http://schema.org/telephone",      
+      "Address": "http://www.w3.org/2006/vcard/ns#Address",
+      "address": "http://www.w3.org/2006/vcard/ns#address",
+      "street": "http://www.w3.org/2006/vcard/ns#street-address",
+      "locality": "http://www.w3.org/2006/vcard/ns#locality",
+      "region": "http://www.w3.org/2006/vcard/ns#region",
+      "country": "http://www.w3.org/2006/vcard/ns#country",
+      "postalCode": "http://www.w3.org/2006/vcard/ns#postal-code"
+   }
+}
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/contexts/place	Fri Jun 15 16:49:52 2012 +0200
@@ -0,0 +1,42 @@
+{
+   "@context":
+   {
+      "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":
+      {
+        "@id": "http://schema.org/image",
+        "@type": "@id"
+      },
+      "latitude":
+      {
+        "@id": "http://www.w3.org/2003/01/geo/wgs84_pos#latitude",
+        "@type": "xsd:decimal"
+      },
+      "longitude":
+      {
+        "@id": "http://www.w3.org/2003/01/geo/wgs84_pos#longitude",
+        "@type": "xsd:decimal"
+      },
+      "elevation": "http://www.w3.org/2003/01/geo/wgs84_pos#altitude",
+      "telephone": "http://schema.org/telephone",
+      
+      "Address": "http://www.w3.org/2006/vcard/ns#Address",
+      "address": "http://www.w3.org/2006/vcard/ns#address",
+      "street": "http://www.w3.org/2006/vcard/ns#street-address",      
+      "locality": "http://www.w3.org/2006/vcard/ns#locality",
+      "region": "http://www.w3.org/2006/vcard/ns#region",
+      "country": "http://www.w3.org/2006/vcard/ns#country",
+      "postalCode": "http://www.w3.org/2006/vcard/ns#postal-code",
+
+      "meter": "http://purl.org/measurement#meter",
+      "kilometer": "http://purl.org/measurement#kilometer",
+      "feet": "http://purl.org/measurement#feet",
+      "miles": "http://purl.org/measurement#miles",
+      
+      "xsd": "http://www.w3.org/2001/XMLSchema#"
+   }
+}
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/contexts/recipe	Fri Jun 15 16:49:52 2012 +0200
@@ -0,0 +1,48 @@
+{
+   "@context":
+   {
+      "Recipe": "http://schema.org/Recipe",
+      "title": "http://purl.org/dc/terms/title",
+      "author": "http://purl.org/dc/terms/creator",
+      "description": "http://purl.org/dc/terms/description",
+      "cookTime": "http://schema.org/cookTime",
+      "ingredient": "http://schema.org/ingredient",
+      "prepTime": "http://schema.org/prepTime",
+      "category": "http://schema.org/category",
+      "cuisine": "http://schema.org/cuisine",
+      "step": "http://schema.org/recipeInstructions",
+      "yield": "http://schema.org/recipeYield",
+
+      "pinch": "http://purl.org/measurement#pinch",
+      "teaspoon": "http://purl.org/measurement#teaspoon",
+      "tablespoon": "http://purl.org/measurement#tablespoon",
+      "cup": "http://purl.org/measurement#cup",
+      "pint": "http://purl.org/measurement#pint",
+      "gallon": "http://purl.org/measurement#gallon",
+      "liquidOunce": "http://purl.org/measurement#liquidOunce",
+      "dryOunce": "http://purl.org/measurement#dryOunce",
+      "milligram": "http://purl.org/measurement#milligram",
+      "gram": "http://purl.org/measurement#gram",
+      "kilogram": "http://purl.org/measurement#kilogram",
+      "millilitre": "http://purl.org/measurement#millilitre",
+      "litre": "http://purl.org/measurement#litre",
+      "pound": "http://purl.org/measurement#pound",
+      "whole": "http://purl.org/measurement#whole",
+      "slice": "http://purl.org/measurement#slice",
+      "wedge": "http://purl.org/measurement#wedge",
+      "second": "http://purl.org/measurement#second",
+      "minute": "http://purl.org/measurement#minute",
+      "hour": "http://purl.org/measurement#hour",
+      "day": "http://purl.org/measurement#day",
+      
+      "xsd": "http://www.w3.org/2001/XMLSchema#",
+
+      "@coerce":
+      {
+         "cookTime": "xsd:duration",
+         "prepTime": "xsd:duration",
+         "step": "xsd:integer"
+      }
+   }
+}
+