Re: Marking up quotes that relate to known Freebase topics/people

Hi Shawn,
great example. One question: Wouldn't it be better to use the link element to use the entity URI in Freebase?

So

> 	<span itemprop="author" itemscope itemtype="http://schema.org/Person" itemid="http://quotationsbook.com/quotes/author/7349/">
> 		<a itemprop="name" href="http://quotationsbook.com/quotes/author/7349/">Mark Twain</a>
> 		<link itemprop="sameAs" href="http://www.freebase.com/m/014635" />

instead of

> 	<span itemprop="author" itemscope itemtype="http://schema.org/Person" itemid="http://quotationsbook.com/quotes/author/7349/">
> 		<a itemprop="name" href="http://quotationsbook.com/quotes/author/7349/">Mark Twain</a>
> 		<meta itemprop="sameAs" content="http://www.freebase.com/m/014635" >

Justification:

    http://www.whatwg.org/specs/web-apps/current-work/multipage/semantics.html#the-meta-element

says

   "Metadata names whose values are to be URLs must not be proposed or accepted. Links must be represented using the link element, not the meta element."


Also, I am not 100% sure what the convention and requirement is regarding end tags with meta in HTML5. It is clear that the closing slash can be omitted for meta when the document is served as text/html. But I think there was discussion that is should be omitted. At least this should be consistent in the schema.org specification.

Martin


On Dec 6, 2013, at 1:59 AM, Shawn Simister wrote:

> Hey Amit,
> 
> Thanks for putting in the hard work to align your content with Freebase. Fo what you're trying to accomplish you would use your own identifiers for the item IDs and then use the sameAs property to align them with Freebase. Here's how I would mark up a quotation (once the type is part of schema.org) using Microdata:
> 
> <div itemscope itemtype="http://schema.org/Quotation">
> 	<p itemprop="description">Never let formal education get in the way of your learning.</p>
> 	<span itemprop="author" itemscope itemtype="http://schema.org/Person" itemid="http://quotationsbook.com/quotes/author/7349/">
> 		<a itemprop="name" href="http://quotationsbook.com/quotes/author/7349/">Mark Twain</a>
> 		<meta itemprop="sameAs" content="http://www.freebase.com/m/014635" />
> 	</span> on
> 	<span itemprop="about" ietmscope itemtype="http://schema.org/Thing" itemid="http://quotationsbook.com/quotes/tag/learning/">
> 		<a itemprop="name" href="http://quotationsbook.com/quotes/tag/learning/">learning</a>
> 		<meta itemprop="sameAs" content="http://www.freebase.com/m/0d846" />
> 	</span>
> </div>
> 
> 
> On Thu, Dec 5, 2013 at 3:59 PM, Quotations Book <quotationsbook@gmail.com> wrote:
> Hi everyone,
> 
> I run a quotations site called http://quotationsbook.com and this might appear a newbie question, for which I apologise.
> 
> I have previously requested a "quotation" a unique schema.org type which appears to be pending:
> http://www.w3.org/wiki/WebSchemas/QuotationSchema
> 
> Unrelated to this, I have now disambiguated and know freebase unique entity ID's for the following two object-types on my site (painstaking!):
> 	• Each author e.g. "Mark Twain". URL on my site: http://quotationsbook.com/quotes/author/7349/ with Freebase ID: http://www.freebase.com/m/014635
> 	• Each topic e.g. "Hope". URL on my site: http://quotationsbook.com/quotes/tag/hope/ / with Freebase ID: http://www.freebase.com/m/0d846
> In fact, quotationsbook.com first generated that “Hope” topic and linked it as a “quotation subject”.
> 
> In both cases, the problem I have is referencing the author and topic properly:
> 
> - Firstly with the right schema.org markup for both author and topic (please send examples)
> - Secondly, how do I link the author and the topic to Freebase i.e. declare this page has quotes about the entity Mark Twain
> 
> How do I achieve this markup, while also referencing existing Freebase entries which I know?
> 
> Is it better to make top-level references to Freebase or to Wikipedia in the long-term?
> 
> thanks
> Amit
> Founder, quotationsbook.com
> 
> 
> 
> -- 
> Shawn Simister
> 
> Knowledge Developer Relations
> Google

--------------------------------------------------------
martin hepp
e-business & web science research group
universitaet der bundeswehr muenchen

e-mail:  hepp@ebusiness-unibw.org
phone:   +49-(0)89-6004-4217
fax:     +49-(0)89-6004-4620
www:     http://www.unibw.de/ebusiness/ (group)
         http://www.heppnetz.de/ (personal)
skype:   mfhepp 
twitter: mfhepp

Check out GoodRelations for E-Commerce on the Web of Linked Data!
=================================================================
* Project Main Page: http://purl.org/goodrelations/

Received on Friday, 6 December 2013 08:59:04 UTC