Mailing list ARC-DEV: Archives

[arc-dev] ARC2_SemHTMLParser parse selected DOM nodes

From: "Wagner, Claudia" 
Subject: [arc-dev] ARC2_SemHTMLParser parse selected DOM nodes
Date: Thu, 12 Feb 2009 13:59:26 +0100


I just tried the new ARC2_SemHTMLParser feature, which I thought is to =
parse selected DOM nodes instead of the whole document, but it seems not =
to work.

What I need to do is:

$test_data=3D'<div xmlns:foaf=3D"http://xmlns.com/foaf/0.1/">
              <div typeOf=3D"foaf:Person" about=3D"#URI">
                <span property=3D"foaf:name">Claudia Wagner</span>
             </div>
            </div>';

$parser->processData($test_data);

But no triples are found. Any ideas whats the problem?

Thanks Claudia

BTW the second optional parameter of parse() is called data. Can you =
maybe give an example how to use it.
I thought it could be a XPath which points to the DOM node from where =
the parser should start to parse.

___________________________________
Claudia WAGNER
Institut f=FCr vernetzte Medien, JOANNEUM RESEARCH Elisabethstra=DFe 20, =
A-8010 Graz, Austria
Tel. +43 316 876 2617   Fax. +43 316 876 1403
http://www.joanneum.at/inm
email: Claudia {dot} Wagner {at} joanneum {dot} at=20