私は初心者で、RDF、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>