https://bugzilla.wikimedia.org/show_bug.cgi?id=45206

--- Comment #9 from C. Scott Ananian <[email protected]> ---
http://www.w3.org/TR/html-rdfa/ seems to indicate that CURIEs are fine in
HTML5/RDFa.

However, re-reading indicates that the 'resource' attribute should really only
be used with the <link> element, so some of the <meta>s above should probably
still change to <link>.  Also, <base> sets the default subject for RDFa
processing, so we need to be careful to set an appropriate @about on the
isFormatOf property (and then setting @about on <head> to default to the
revision is a good idea).  The result is:

<html data-parsoid="{}" prefix="mw: http://mediawiki.org/rdf/";>
  <head data-parsoid="{}" prefix="dc: http://purl.org/dc/terms/ mwr:
http://en.wikipedia.org/wiki/Special:Redirect/";
        about="mwr:revision/555790550">
    <meta charset="UTF-8">
    <link about="http://parsoid.wmflabs.org/en/Main_Page";
          rel="dc:isFormatOf" resource="mwr:revision/555790550">
    <link rel="dc:isVersionOf" href="http://en.wikipedia.org/wiki/Main_Page";>
    <meta property="mw:articleNamespace" content="0"
          datatype="xsd:integer">
    <meta property="dc:modified" content="2013-04-15T00:02:02.000Z"
          datatype="xsd:dateTime">
    <link rel="dc:replaces" resource="mwr:revision/552548208">
    <meta property="mw:revisionSHA1"
          content="59b13d0d38a8f8992d5f7231f439c8805656f71c">
    <meta property="dc:description"
          content="replacing with permanent TAFI code">
    <link rel="dc:contributor" resource="mwr:user/153365">
    <meta about="mwr:user/153365"
          property="dc:title" content="Tariqabjotu">

    <title>Main Page</title>
    <base href="http://en.wikipedia.org/wiki/Main_Page";>
</head>

<body>
  <div>Welcome to <a rel="mw:WikiLink" href="./Wikipedia" >Wikipedia</a></div>
</body>

This talks about three pages:
http://parsoid.wmflabs.org/en/Main_Page
http://en.wikipedia.org/wiki/Main_Page
http://en.wikipedia.org/wiki/Special:Redirect/revision/555790550

Note that WikiLinks and other content in the <body> are relations on wikipedia
pages (not parsoid output).

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to