« Social Networking Workshop Report | Main | Palm webOS approach to HTML extensibility: x-mojo-* »

Semantic Data Extractor

Every so often, someone writes to me or to the public-qa-dev mailing list to report bugs, or simply to give thanks on the semantic data extractor.

I'm always pleasantly surprised when I hear that, what started as a 10 minutes demonstrator of the semantics attached to HTML, is actually used as a tool by a number of developers.

With a name such "semantic data extractor", it was a bit of a shame that the tool didn't highlight the usage of GRDDL or RDFa on pages that use either of these technologies; I have just added detection of both of these to the extractor.

As a bonus, I have also added detection of non-semantic markup: at this time, it will detect purely-wrapping <div>, empty <span>, and tables with a single row or a single column (which have good chances to be layout tables); if you have suggestions for detecting other non-semantic markup, let me know!

Filed by Dominique Hazaël-Massieux on February 12, 2009 10:27 AM in Semantic Web, Tools
| | Comments (7) | TrackBacks (0)

Comments

Carlo # 2009-03-13

The tool doesn't work! This is the error message:

Using org.apache.xerces.parsers.SAXParser Exception net.sf.saxon.trans.DynamicError: org.xml.sax.SAXParseException: Content is not allowed in prolog. org.xml.sax.SAXParseException: Content is not allowed in prolog.

Dom # 2009-03-13

Hi Carlo,

Please report bugs and errors on public-qa-dev@w3.org, with details on the URI you tried the tool on.

Thanks,

Dom

OP # 2009-04-09

Hi there.

I am a big fan of this tool. But something that is puzzling me is this message we are getting for our site(s) when running them through.

" with no additional content to their unique child"

Gotta love it. Naturally I checked out a few things and tried what I thought might fix this from appearing, and to no avail.

The divs I have are empty in a sense... they have this. Since the include file is in

So I tried to add a few things into the div container... nbsp's, transparent gifs, other content, and still nothing was reducing the amount of divs with no additional content.

The included file doesnt consist of having empty divs inside it.

Other divs have content in them with headers and such, so I think that the div i mentioned may be throwing it off.

Any suggestions what to do to remedy this?

Joe # 2009-07-08

I second OP's comment. I have no clue what this error means, having tried the same as OP:

Non-semantic markup

The following suspiciously non-semantic markup has been detected:

* 6 <div> with no additional content to their unique child

Any advice? Someone? Thanks!

Dom # 2009-07-08

I have removed the test for empty div, as it was both confusing and misleading.

James Sanders # 2011-01-01

Hello All,

Well, after 3 hours of searching through W3C to try to figure out what is wrong and why the semantics validator keeps throwing errors, I finally decided to post here in hopes that some answers might be forthcoming. Hopefully, with Q@A being closed, this still gets some attention. So without further delay, the error I get is as follows:

Using org.apache.xerces.parsers.SAXParser Exception net.sf.saxon.trans.XPathException: org.xml.sax.SAXParseException: The markup declarations contained or pointed to by the document type declaration must be well-formed. org.xml.sax.SAXParseException: The markup declarations contained or pointed to by the document type declaration must be well-formed.

URI link to the file in question is as follows: http://www.sanders-consultation-group-plus.com/redesign/grail-template.html

Any help in this matter would be greatly appreciated because I do so much love the idea of running pages through the validator. It really does give a designer an idea of what spiders might think a page is about based on the semantics, and lets me know, as a designer, if I have done my job to make sure they know.

Thanks in advance

Dom # 2011-01-03

The problem reported by James seems to be coming from an invalid/ill-formed XHTML document, see http://lists.w3.org/Archives/Public/public-qa-dev/2011Jan/0001.html

Leave a comment

Note: this blog is intended to foster polite on-topic discussions. Comments failing these requirements and spam will not get published. Please, enter your real name and email address. Every individual comment is reviewed by the W3C staff. This may take some time, thank you for your patience.

You can use the following HTML markup (a href, b, i, br/, p, strong, em, ul, ol, li, blockquote, pre) and/or Markdown syntax.

Your comment


About you

This blog is written by W3C staff and working group participants,
 and maintained by Coralie Mercier.
Authorized parties may log in to create a new entry.
Powered by Movable Type, magpierss and a lot of Web Technology