我是新手,想了解RDF格式,RDFa和因为几天与之相关的东西..如何使用PHP或Java从HTML中提取RDFa?
我的问题是,考虑下面的HTML + RDFa的代码..可以单独提取RDF的一部分?如果是的话,你可以请示范简单的代码片段(PHP或Java)..
我听说耶拿可以使用,但找不到解释这一点的教程。所以,如果有可能与耶拿任何人都可以张贴一些代码片段,请..
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:foaf="http://xmlns.com/foaf/0.1/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
version="XHTML+RDFa 1.0" xml:lang="en">
<head>
<title>John's Home Page</title>
<base href="http://example.org/john-d/" />
<meta property="dc:creator" content="Jonathan Doe" />
<link rel="foaf:primaryTopic" href="http://example.org/john-d/#me" />
</head>
<body about="http://example.org/john-d/#me">
<h1>John's Home Page</h1>
<p>My name is <span property="foaf:nick">John D</span> and I like
<a href="http://www.neubauten.org/" rel="foaf:interest"
xml:lang="de">Einstürzende Neubauten</a>.
</p>
<p>
My <span rel="foaf:interest" resource="urn:ISBN:0752820907">favorite
book is the inspiring <span about="urn:ISBN:0752820907"><cite
property="dc:title">Weaving the Web</cite> by
<span property="dc:creator">Tim Berners-Lee</span></span>
</span>
</p>
</body>
</html>
谢谢迈克尔..链接是非常有益的.. – Robert 2012-03-13 04:09:48