Screen Scraping SW Logic from XHTML

Screen scraping RDF classes and properties from XHTML is great, but it got
me wondering if you could scrape actual logical assertions from it? In
other words, can we create inference rules in XHTML and then transform them
into useful RDF, and if so, how? O.K., the first question is how do we
represent this (for example):-

     "it is not true that is a member and IBM is
     not a member", or:
     </not> - TimBL, DesignIssues, Semantic Web Toolbox [1]

in XHTML??? We could do most of the stuff in prose, but it doesn't make for
transformable code...:-

<h1>The Following is False</h1>
<p class="false">IBM is a member of W3C and Soap isn't</p>

ugh..., so if we define a simple class type; "false" for the <not>; and
"members" for the <w3c:member>, we end up with:-

<h1>False Assertion</h1>
<div class="false">
 <h2>W3C Members</h2>
    <dl class="members">
         <dt>Members: </dt>
          <dd> </dd>
       <div class="false">
          <dd> </dd>

Right, that says that "it is not true that is a member and IBM is
not a member" in both prose and transformable MarkUp. I put this up at for people to run tests
on. Note: Each <dd> point that is a child element of the
dl[@class='members'] takes on the same class attribute, for ease of
transformation. Anyway, here is my own stab at transforming this into RDF
via. XSLT:-

    xmlns="" version="1.0"
    xmlns:rdf="" >
<output method="xml" indent="yes"/>
<template match="html:html">
   <rdf:Description rdf:ID="logic">
<template match="html:div[@class='false']">
   <apply-templates match="html:dl[@class='members']"/>
<template match="html:dl[@class='members']">
<for-each select="html:dd">
   <value-of select="{.}" />
<for-each select="html:div[@class=false]/html:dd">
   <value-of select="{.}"/>
<template match="text()|@*">

I tried running it through both of the W3C XSLT transformation services
that I know of [2], [3], but it didn't seem to like it. I'm not sure if
that's because my code is buggy (i.e. complete rubbish), or because the
servers are down (more likely then not: both). If someone could have a look
at it, that would be great.

Anyway, the point is that because all logic is reified at some point, there
are prose descriptions for all basic levels of machine processable
ontologies. Therefore, it must be possible to have an annotated form of
these in the form of XHTML, that can then be transformed into its
equivalent RDF. I think I've proved that it *is* possible, but is it


Kindest Regards,
Sean B. Palmer [ERT/GL/PF]
"Perhaps, but let's not get bogged down in semantics."
   - Homer J. Simpson, BABF07.

Received on Friday, 29 December 2000 19:25:42 UTC