Re: Mime type of OGP schema Re: Breakout session www2010 OGP RDFa notes in etherpad.

Thanks Richard! The redirect is now a 302 and Content-Type is
application/rdf+xml.

--David


On Fri, Apr 30, 2010 at 1:13 PM, Richard Cyganiak <richard@cyganiak.de>wrote:

> David,
>
> Small correction to Tim's curl command:
>
>
> On 30 Apr 2010, at 15:38, Tim Berners-Lee wrote:
>
>> Thank you again fro coming, and taking on board everyone's input.
>>
>> Schema - great!
>>
>> One thing - could you please set the MIME type to application/rdf+xml ?
>> I can't view it with Tabulator yet.
>>
>> $ curl -I http://opengraphprotocol.org/schema/
>> HTTP/1.1 301 Moved Permanently
>> Date: Fri, 30 Apr 2010 18:44:24 GMT
>> Server: Apache/2.0.54
>> X-Powered-By: PHP/5.2.6
>> Location: http://opengraphprotocol.org/
>> Vary: Accept-Encoding
>> Content-Type: text/html
>>
>
> Tim didn't send an accept header and therefore gets redirected to the
> homepage. That's fine, although we might quibble about the status code (302
> might be more appropriate than 301, but whatever). When you ask for RDF/XML
> via content negotiation, then you get this:
>
>
> richard@cygri-2:~$ curl -i -H "Accept: application/rdf+xml"
> http://opengraphprotocol.org/schema/ | head
> HTTP/1.1 200 OK
> Date: Fri, 30 Apr 2010 20:06:22 GMT
>
> Server: Apache/2.0.54
> X-Powered-By: PHP/5.2.6
> Vary: Accept-Encoding
> Transfer-Encoding: chunked
> Content-Type: text/html      <----- Problem!!!
>
>
> <rdf:RDF
>  xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
>  xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
>
>
> So you do get RDF/XML content, which is great; but it's reported as
> text/html in the Content-Type header, which should be application/rdf+xml.
> That should make Tim and the Tabulator happy.
>
> All the best,
> Richard
>
>
>
>
>
>
>
>
>> On 2010-04 -30, at 01:20, David Recordon wrote:
>>
>>  Thanks again to everyone for the help this afternoon and evening;
>>> especially Fabian! This is now live at
>>> http://opengraphprotocol.org/schema/ if you set your accept header to
>>> application/rdf+xml.
>>>
>>> --David
>>>
>>>
>>> On Thu, Apr 29, 2010 at 11:03 PM, Fabien Gandon <
>>> Fabien.Gandon@sophia.inria.fr> wrote:
>>> Dan,
>>>
>>> Your work is included and I just pasted an new version.
>>> I keep using etherpad because it is easier for everyone to participate.
>>> http://etherpad.com/ogp-rdfa
>>>
>>> The idea behind this new version is that we don't make direct mappings as
>>> :
>>> - most mappings demand some tricky alignment like creating bnodes for
>>> Adresses or Objects
>>> - the RDFa code must remain very very simple
>>>
>>> The idea is to just capture the voc they use with their semantics and
>>> then have the mapping and translation done through rules (N3 rules, SPARQL
>>> Construct, RIF etc.)
>>> e.g. have a rule to transfrom the ogp "keyword types"  into URIs
>>> e.g. have a rule to create a resource for the page and another one for
>>> the object
>>>
>>> etc.
>>>
>>> Feedback is more than welcome.
>>>
>>> Cheers,
>>>
>>> For the archives the current version is :
>>>
>>> <rdf:RDF
>>> xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
>>> xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
>>> xmlns:owl="http://www.w3.org/2002/07/owl#"
>>> xmlns:og="http://opengraphprotocol.org/schema/"
>>> xmlns:foaf="http://xmlns.com/foaf/0.1/"
>>> xmlns:dc="http://purl.org/dc/elements/1.1/"
>>> xml:base="http://opengraphprotocol.org/schema/"
>>> xml:geo="http://www.w3.org/2003/01/geo/wgs84_pos#"
>>> xml:vcard="http://www.w3.org/2006/vcard/ns#">
>>>
>>> <owl:Ontology rdf:about="http://opengraphprotocol.org/schema/">
>>> <dc:title xml:lang="en-US">Open Graph Protocol Schema</dc:title>
>>> <dc:description xml:lang="en-US">Schema for open graph protocol by
>>> Facebook.</dc:description>
>>> <dc:date rdf:datatype="http://www.w3.org/1999/XMLSchema#date
>>> ">2010-04-29</dc:date>
>>> </owl:Ontology>
>>>
>>>
>>> <!-- Classes generated by Dan Brickley for the categories -->
>>>
>>> <rdfs:Class rdf:about="http://opengraphprotocol.org/schema/Band">
>>> <rdfs:label xml:lang="en-US">Band</rdfs:label>
>>> <rdfs:comment xml:lang="en-US"></rdfs:comment>
>>> </rdfs:Class>
>>>
>>> <rdfs:Class rdf:about="http://opengraphprotocol.org/schema/Governmental
>>> ">
>>> <rdfs:label xml:lang="en-US">Governmental</rdfs:label>
>>> </rdfs:Class>
>>>
>>> <rdfs:Class rdf:about="http://opengraphprotocol.org/schema/Non_profit">
>>> <rdfs:label xml:lang="en-US">Non profit</rdfs:label>
>>> </rdfs:Class>
>>>
>>> <rdfs:Class rdf:about="http://opengraphprotocol.org/schema/School">
>>> <rdfs:label xml:lang="en-US">School</rdfs:label>
>>> </rdfs:Class>
>>>
>>> <rdfs:Class rdf:about="http://opengraphprotocol.org/schema/University">
>>> <rdfs:label xml:lang="en-US">University</rdfs:label>
>>> </rdfs:Class>
>>>
>>> <rdfs:Class rdf:about="http://opengraphprotocol.org/schema/Actor">
>>> <rdfs:label xml:lang="en-US">Actor</rdfs:label>
>>> <rdfs:subClassOf rdf:resource="http://xmlns.com/foaf/0.1/Person"/>
>>> <owl:equivalentClass rdf:resource="http://dbpedia.org/resource/Actor"/>
>>> </rdfs:Class>
>>>
>>> <rdfs:Class rdf:about="http://opengraphprotocol.org/schema/Athlete">
>>> <rdfs:label xml:lang="en-US">Athlete</rdfs:label>
>>> <rdfs:subClassOf rdf:resource="http://xmlns.com/foaf/0.1/Person"/>
>>> <owl:equivalentClass rdf:resource="http://dbpedia.org/resource/Athlete
>>> "/>
>>> </rdfs:Class>
>>>
>>> <rdfs:Class rdf:about="http://opengraphprotocol.org/schema/Author">
>>> <rdfs:label xml:lang="en-US">Author</rdfs:label>
>>> </rdfs:Class>
>>>
>>> <rdfs:Class rdf:about="http://opengraphprotocol.org/schema/Director">
>>> <rdfs:label xml:lang="en-US">Director</rdfs:label>
>>> </rdfs:Class>
>>>
>>> <rdfs:Class rdf:about="http://opengraphprotocol.org/schema/Musician">
>>> <rdfs:label xml:lang="en-US">Musician</rdfs:label>
>>> </rdfs:Class>
>>>
>>> <rdfs:Class rdf:about="http://opengraphprotocol.org/schema/Poltician">
>>> <rdfs:label xml:lang="en-US">Politician</rdfs:label>
>>> </rdfs:Class>
>>>
>>> <rdfs:Class rdf:about="http://opengraphprotocol.org/schema/Public_figure
>>> ">
>>> <rdfs:label xml:lang="en-US">Public Figure</rdfs:label>
>>> </rdfs:Class>
>>>
>>> <rdfs:Class rdf:about="http://opengraphprotocol.org/schema/City">
>>> <rdfs:label xml:lang="en-US">City</rdfs:label>
>>> </rdfs:Class>
>>>
>>> <rdfs:Class rdf:about="http://opengraphprotocol.org/schema/Country">
>>> <rdfs:label xml:lang="en-US">Country</rdfs:label>
>>> </rdfs:Class>
>>>
>>> <rdfs:Class rdf:about="http://opengraphprotocol.org/schema/Landmark">
>>> <rdfs:label xml:lang="en-US">Landmark</rdfs:label>
>>> </rdfs:Class>
>>>
>>> <rdfs:Class rdf:about="
>>> http://opengraphprotocol.org/schema/State_province">
>>> <rdfs:label xml:lang="en-US">State Province</rdfs:label>
>>> </rdfs:Class>
>>>
>>> <rdfs:Class rdf:about="http://opengraphprotocol.org/schema/Album">
>>> <rdfs:label xml:lang="en-US">Album</rdfs:label>
>>> <owl:equivalentClass rdf:resource="http://dbpedia.org/resource/Album"/>
>>> </rdfs:Class>
>>>
>>> <rdfs:Class rdf:about="http://opengraphprotocol.org/schema/Book">
>>> <rdfs:label xml:lang="en-US">Book</rdfs:label>
>>> <owl:equivalentClass rdf:resource="http://purl.org/ontology/bibo/Book"/>
>>> <owl:equivalentClass rdf:resource="http://dbpedia.org/resource/Book"/>
>>> </rdfs:Class>
>>>
>>> <rdfs:Class rdf:about="http://opengraphprotocol.org/schema/Drink">
>>> <rdfs:label xml:lang="en-US">Drink</rdfs:label>
>>> </rdfs:Class>
>>>
>>> <rdfs:Class rdf:about="http://opengraphprotocol.org/schema/Food">
>>> <rdfs:label xml:lang="en-US">Food</rdfs:label>
>>> </rdfs:Class>
>>>
>>> <rdfs:Class rdf:about="http://opengraphprotocol.org/schema/Game">
>>> <rdfs:label xml:lang="en-US">Game</rdfs:label>
>>> </rdfs:Class>
>>>
>>> <rdfs:Class rdf:about="http://opengraphprotocol.org/schema/Movie">
>>> <rdfs:label xml:lang="en-US">Movie</rdfs:label>
>>> </rdfs:Class>
>>>
>>>
>>> <!-- Properties defined at www2010 with exact mapping -->
>>>
>>> <rdf:Property rdf:about="http://opengraphprotocol.org/schema/title">
>>> <rdfs:label xml:lang="en-US">title</rdfs:label>
>>> <rdfs:comment xml:lang="en-US">The title of the object as it should
>>> appear within the graph, e.g.,  "The Rock".</rdfs:comment>
>>> <rdfs:subPropertyOf rdf:resource="
>>> http://www.w3.org/2000/01/rdf-schema#label"/>
>>> <rdfs:isDefinedBy rdf:resource="http://opengraphprotocol.org/schema/"/>
>>> </rdf:Property>
>>>
>>> <rdf:Property rdf:about="http://opengraphprotocol.org/schema/description
>>> ">
>>> <rdfs:label xml:lang="en-US">description</rdfs:label>
>>> <rdfs:comment xml:lang="en-US">A one to two sentence description of your
>>> object.</rdfs:comment>
>>> <rdfs:subPropertyOf rdf:resource="
>>> http://www.w3.org/2000/01/rdf-schema#comments"/>
>>> <rdfs:isDefinedBy rdf:resource="http://opengraphprotocol.org/schema/"/>
>>> </rdf:Property>
>>>
>>>
>>> <!-- Properties defined at www2010 with loose mapping because of
>>> alignment problems and to maintain simple RDFa markup -->
>>>
>>> <rdf:Property rdf:about="http://opengraphprotocol.org/schema/image">
>>> <rdfs:label xml:lang="en-US">image</rdfs:label>
>>> <rdfs:comment xml:lang="en-US">An image URL which should represent your
>>> object within the graph.</rdfs:comment>
>>> <rdfs:seeAlso rdf:resource="http://xmlns.com/foaf/0.1/depiction"/>
>>> <rdfs:isDefinedBy rdf:resource="http://opengraphprotocol.org/schema/"/>
>>> </rdf:Property>
>>>
>>> <rdf:Property rdf:about="http://opengraphprotocol.org/schema/url">
>>> <rdfs:label xml:lang="en-US">url</rdfs:label>
>>> <rdfs:comment xml:lang="en-US">The canonical URL of your object that will
>>> be used as its permanent ID  in the graph, e.g., "
>>> http://www.imdb.com/title/tt0117500/".</rdfs:comment>
>>> <rdfs:seeAlso rdf:resource="http://xmlns.com/foaf/0.1/homepage"/>
>>> <rdfs:seeAlso rdf:resource="http://purl.org/dc/elements/1.1/identifier
>>> "/>
>>> <rdfs:isDefinedBy rdf:resource="http://opengraphprotocol.org/schema/"/>
>>> </rdf:Property>
>>>
>>> <rdf:Property rdf:about="http://opengraphprotocol.org/schema/type">
>>> <rdfs:label xml:lang="en-US">type</rdfs:label>
>>> <rdfs:comment xml:lang="en-US">The type of your  object, e.g., "movie".
>>>  Depending on the type you specify, other  properties may also be
>>> required.</rdfs:comment>
>>> <rdfs:seeAlso rdf:resource="
>>> http://www.w3.org/1999/02/22-rdf-syntax-ns#type"/>
>>> <rdfs:isDefinedBy rdf:resource="http://opengraphprotocol.org/schema/"/>
>>> </rdf:Property>
>>>
>>> <rdf:Property rdf:about="http://opengraphprotocol.org/schema/site_name">
>>> <rdfs:label xml:lang="en-US">site name</rdfs:label>
>>> <rdfs:comment xml:lang="en-US">If your object is part of a larger web
>>> site, the name which should be  displayed for the overall site. e.g.,
>>> "IMDb".</rdfs:comment>
>>> <rdfs:isDefinedBy rdf:resource="http://opengraphprotocol.org/schema/"/>
>>> </rdf:Property>
>>>
>>>
>>> <rdf:Property rdf:about="http://opengraphprotocol.org/schema/latitude">
>>> <rdfs:label xml:lang="en-US">latitude</rdfs:label>
>>> <rdfs:comment xml:lang="en-US">The latitude of the resource e.g., the
>>> latitude of a company.</rdfs:comment>
>>> <rdfs:isDefinedBy rdf:resource="http://opengraphprotocol.org/schema/"/>
>>> <rdfs:seeAlso rdf:resource="http://www.w3.org/2003/01/geo/wgs84_pos#lat
>>> "/>
>>> </rdf:Property>
>>>
>>> <rdf:Property rdf:about="http://opengraphprotocol.org/schema/longitude">
>>> <rdfs:label xml:lang="en-US">longitude</rdfs:label>
>>> <rdfs:comment xml:lang="en-US">The longitude of the resource e.g., the
>>> longitude of a  company.</rdfs:comment>
>>> <rdfs:isDefinedBy rdf:resource="http://opengraphprotocol.org/schema/"/>
>>> <rdfs:seeAlso rdf:resource="http://www.w3.org/2003/01/geo/wgs84_pos#long
>>> "/>
>>> </rdf:Property>
>>>
>>> <rdf:Property rdf:about="
>>> http://opengraphprotocol.org/schema/street-address">
>>> <rdfs:label xml:lang="en-US">street address</rdfs:label>
>>> <rdfs:comment xml:lang="en-US">The street address of the resource e.g.,
>>> "1601 S California Ave".</rdfs:comment>
>>> <rdfs:isDefinedBy rdf:resource="http://opengraphprotocol.org/schema/"/>
>>> <rdfs:seeAlso rdf:resource="
>>> http://www.w3.org/2006/vcard/ns#street-address"/>
>>> </rdf:Property>
>>>
>>> <rdf:Property rdf:about="http://opengraphprotocol.org/schema/locality">
>>> <rdfs:label xml:lang="en-US">locality</rdfs:label>
>>> <rdfs:comment xml:lang="en-US">The locality of the resource e.g, "Palo
>>> Alto"</rdfs:comment>
>>> <rdfs:isDefinedBy rdf:resource="http://opengraphprotocol.org/schema/"/>
>>> <rdfs:seeAlso rdf:resource="http://www.w3.org/2006/vcard/ns#locality"/>
>>> </rdf:Property>
>>>
>>> <rdf:Property rdf:about="http://opengraphprotocol.org/schema/region">
>>> <rdfs:label xml:lang="en-US">region</rdfs:label>
>>> <rdfs:comment xml:lang="en-US">The region of the resource e.g.,
>>> "CA"</rdfs:comment>
>>> <rdfs:isDefinedBy rdf:resource="http://opengraphprotocol.org/schema/"/>
>>> <rdfs:seeAlso rdf:resource="http://www.w3.org/2006/vcard/ns#region"/>
>>> </rdf:Property>
>>>
>>> <rdf:Property rdf:about="http://opengraphprotocol.org/schema/postal-code
>>> ">
>>> <rdfs:label xml:lang="en-US">postal code</rdfs:label>
>>> <rdfs:comment xml:lang="en-US">The postal code of the resource e.g.,
>>> "94304"</rdfs:comment>
>>> <rdfs:isDefinedBy rdf:resource="http://opengraphprotocol.org/schema/"/>
>>> <rdfs:seeAlso rdf:resource="http://www.w3.org/2006/vcard/ns#postal-code
>>> "/>
>>> </rdf:Property>
>>>
>>> <rdf:Property rdf:about="
>>> http://opengraphprotocol.org/schema/country-name">
>>> <rdfs:label xml:lang="en-US">country name</rdfs:label>
>>> <rdfs:comment xml:lang="en-US">The country name of the resource e.g.,
>>> "USA"</rdfs:comment>
>>> <rdfs:isDefinedBy rdf:resource="http://opengraphprotocol.org/schema/"/>
>>> <rdfs:seeAlso rdf:resource="ttp://www.w3.org/2006/vcard/ns#country-name
>>> "/>
>>> </rdf:Property>
>>>
>>> <rdf:Property rdf:about="http://opengraphprotocol.org/schema/email">
>>> <rdfs:label xml:lang="en-US">email</rdfs:label>
>>> <rdfs:comment xml:lang="en-US">Email of the contact for your
>>> object.</rdfs:comment>
>>> <rdfs:isDefinedBy rdf:resource="http://opengraphprotocol.org/schema/"/>
>>> <rdfs:seeAlso rdf:resource="http://xmlns.com/foaf/0.1/mbox"/>
>>> </rdf:Property>
>>>
>>> <rdf:Property rdf:about="
>>> http://opengraphprotocol.org/schema/phone_number">
>>> <rdfs:label xml:lang="en-US">phone number</rdfs:label>
>>> <rdfs:comment xml:lang="en-US">Phone number of the contact for your
>>> object.</rdfs:comment>
>>> <rdfs:isDefinedBy rdf:resource="http://opengraphprotocol.org/schema/"/>
>>> <rdfs:seeAlso rdf:resource="http://xmlns.com/foaf/0.1/phone"/>
>>> </rdf:Property>
>>>
>>> <rdf:Property rdf:about="http://opengraphprotocol.org/schema/fax_number
>>> ">
>>> <rdfs:label xml:lang="en-US">fax number</rdfs:label>
>>> <rdfs:comment xml:lang="en-US">Fax number of the contact for your
>>> object.</rdfs:comment>
>>> <rdfs:isDefinedBy rdf:resource="http://opengraphprotocol.org/schema/"/>
>>> <rdfs:seeAlso  rdf:resource="http://xmlns.com/foaf/0.1/phone"/>
>>> </rdf:Property>
>>>
>>> <rdf:Property rdf:about="http://opengraphprotocol.org/schema/upc">
>>> <rdfs:label xml:lang="en-US">upc</rdfs:label>
>>> <rdfs:label xml:lang="en-US">universal product code</rdfs:label>
>>> <rdfs:comment xml:lang="en-US">Universal  Product Code for your
>>> object.</rdfs:comment>
>>> <rdfs:isDefinedBy rdf:resource="http://opengraphprotocol.org/schema/"/>
>>> <rdfs:seeAlso rdf:resource="
>>> http://purl.org/goodrelations/v1#hasEAN_UCC-13"/>
>>> </rdf:Property>
>>>
>>> <rdf:Property rdf:about="http://opengraphprotocol.org/schema/isbn">
>>> <rdfs:label xml:lang="en-US">isbn</rdfs:label>
>>> <rdfs:label xml:lang="en-US">International Standard Book
>>> Number</rdfs:label>
>>> <rdfs:comment xml:lang="en-US">International Standard Book Number for
>>> your object.</rdfs:comment>
>>> <rdfs:isDefinedBy rdf:resource="http://opengraphprotocol.org/schema/"/>
>>> <rdfs:seeAlso rdf:resource="http://purl.org/ontology/bibo/isbn"/>
>>> </rdf:Property>
>>>
>>> </rdf:RDF>
>>>
>>> --
>>> fabien, inria, http://fabien.info
>>>
>>>
>>
>

Received on Sunday, 2 May 2010 06:32:17 UTC