Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > Tagging HTML with RDF

Reply
Thread Tools

Tagging HTML with RDF

 
 
drcode@gmail.com
Guest
Posts: n/a
 
      07-05-2005
Hi everyone- I need a quick pointer from someone on how to mark up HTML
with RDF tags. Suppose, for instance, on my web page, I had the
sentence:

"Last Wednesday I ate a turkey sandwich at Subway"

Now suppose I wanted to link this up to a common RDF ontologies that
contains food items, such as the one at

"http://www.w3.org/TR/2004/REC-owl-guide-20040210/wine.rdf"

Is there a "correct" or at least sensible way of doing this? For
instance, would it be correct to say the following in the HTML:

<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:food="http://www.w3.org/TR/2004/REC-owl-guide-20040210/wine.rdf">
Last Wednesday I ate a <food:LightMeatFowlCourse>turkey
sandwich</food:LightMeatFowlCourse> at Subway
</rdf:RDF>

(note the tags around the text for the sandwich)

If this is not correct, where can I find out how to properly mark up
HTML with RDF? The standard RDF resources I was able to find do not
seem to address this particular question- I can find info on how to
mark up an ENTIRE web page, but not a specific text fragment.

Any pointers are appreciated!

Conrad Barski, M.D.

 
Reply With Quote
 
 
 
 
drcode@gmail.com
Guest
Posts: n/a
 
      07-06-2005
I have found some info dealing with this issue, for anyone
interested...

The answer is to use the same techniques commonly used for laying out
an entire web page, but to use bookmarks (using <a name...>) or
XPointer queries to refer to subsections in the document- No RDF is
stored at the actual locations of the text fragments in the body text.

For an example, search for "#XPointer" in the following doc:

http://ubaccess.com/lisa/rdf-tech-src-july.html

Conrad Barski, M.D.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Practial RDF Manish Hatwalne XML 0 09-08-2003 05:07 AM
RDF reading in .NET martin ASP .Net 1 08-04-2003 10:25 AM
Re: What's RSS/RDF etc.? mj002c7991 HTML 0 07-08-2003 09:25 AM
Re: What's RSS/RDF etc.? Toby A Inkster HTML 1 07-07-2003 09:49 PM
RDF/XLink for linkage in XML Schema Peter Saffrey XML 0 07-01-2003 03:34 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57