User:Danbri

From W3C Wiki
Jump to: navigation, search

User:DanBri is Dan Brickley.

  • I am affiliated to the Vrije Universiteit, Amsterdam (vu.nl), where I work part-time on TV/Web and Linked Data via the NoTube project.
  • I work also on the Schema.org initiative, working as a contractor for Google via W3C's WebSchemas group. There is a page documenting the relationship between Schema.org and Web Schemas TF.
  • I'm responsible, with Libby Miller, for the FOAF project.
  • At W3C, I chair the Semantic Web Interest Group (which started in 1998 as RDF-DEV, then RDF Interest Group in 1999...).
  • Libby and I ran the SWAD-Europe project which created SKOS, and the ancestor of this Wiki.

If you have any questions about my work, or my various affiliations / hats, don't hestitate to get in touch via danbri@danbri.org.


Sandbox

Can we use templates? Testing 'Template:SchemaDotOrgTerm'



Testing Geshi syntax highligher

See my draft of notes on posting examples in W3C wikis.

In these examples, we try basically the same text with some variations. In each case we have 'line start 100' and a highlight set on line 5.


XML syntax highlighting

Taken from schema.org, with some XMLisation:

  1. <div itemscope="true" itemtype="http://schema.org/Movie">
  2. <h1 itemprop="name">Pirates of the Carribean: On Stranger Tides (2011)</h1>
  3. <span itemprop="description">Jack Sparrow and Barbossa embark on a quest to
  4.  find the elusive fountain of youth, only to discover that Blackbeard and
  5.  his daughter are after it too.</span>
  6. Director:
  7.  <div itemprop="director" itemscope="true" itemtype="http://schema.org/People">
  8. <span itemprop="name">Rob Marshall</span>
  9. </div>


Ok, how does it deal with illformed XML? After all, that's a reasonable thing to show in an example (especially on a standards site):

Result: illformed (i.e. attributes with no values) are displayed fine. This is good!

  1. <div itemscope itemtype="http://schema.org/Movie">
  2. <h1 itemprop="name">Pirates of the Carribean: On Stranger Tides (2011)</h1>
  3. <span itemprop="description">Jack Sparrow and Barbossa embark on a quest to
  4.  find the elusive fountain of youth, only to discover that Blackbeard and
  5.  his daughter are after it too.</span>
  6. Director:
  7.  <div itemprop="director" itemscope itemtype="http://schema.org/People">
  8. <span itemprop="name">Rob Marshall</span>
  9. </div>

Syntax highlighting tests

Tentative conclusion: For now, use html5strict language type for html5 examples.

HTML4 syntax highlighting

Taken from schema.org, without any XMLisation (uses 'itemscope' value-less attribute):

  1. <div itemscope itemtype="http://schema.org/Movie">
  2. <h1 itemprop="name">Pirates of the Carribean: On Stranger Tides (2011)</h1>
  3. <span itemprop="description">Jack Sparrow and Barbossa embark on a quest to
  4.  find the elusive fountain of youth, only to discover that Blackbeard and
  5.  his daughter are after it too.</span>
  6. Director:
  7.  <div itemprop="director" itemscope itemtype="http://schema.org/People">
  8. <span itemprop="name">Rob Marshall</span>
  9. </div>



Text syntax highlighting

As above, with different highlighter ('text'):

  1. <div itemscope itemtype="http://schema.org/Movie">
  2. <h1 itemprop="name">Pirates of the Carribean: On Stranger Tides (2011)</h1>
  3. <span itemprop="description">Jack Sparrow and Barbossa embark on a quest to
  4.  find the elusive fountain of youth, only to discover that Blackbeard and
  5.  his daughter are after it too.</span>
  6. Director:
  7.  <div itemprop="director" itemscope itemtype="http://schema.org/People">
  8. <span itemprop="name">Rob Marshall</span>
  9. </div>


Note: Trying 'html' as a language does not work.