This is a public chat log generated from the #semsol IRC channel.
14:08:50
can anyone help me with a question please?
14:11:24
is there a way to parse rdfa from a text instead a web url with arc?
14:12:12
yes
14:13:05
when you look at the example at http://arc.semsol.org/docs/v2/extractors
14:13:49
you can do $parser->parse('http://example.com/', $your_html_snippet)
14:14:13
where $your_html_snippet is the data as string variable
14:14:32
and what's the url?
14:14:51
that's the graph (or base) URL used for relative paths
14:15:16
you can set it to anything you want
14:15:48
if you don't have relative URL values in your HTML, it will have no effect
14:16:09
amazing
14:16:17
that is what i need
14:16:32
thank you very much
14:17:36
I hope I remember it correctly ;)
14:18:12
:)
14:19:16
ah, one note: $your_html_snippet must be a single node
14:19:55
i.e. either a complete <html>...</html> or some other single-root-node markup
14:20:41
e.g. in case of "<div>...</div><span>...</span>" only the first node (i.e. the div) will be parsed
14:21:14
wow this is an important note
14:21:35
if you have sibling nodes, just wrap them in a container div
14:21:36
that can avoid a few headaches
14:21:55
thanks again
14:22:00
np
