I have a few questions related to best practices in RDFa mark-up in HTML. I have marked this question as a community wiki, so feel free to edit or add more questions.
- When using only one RDF vocabulary
in an HTML page (such as the unified
namespace used in the design of
rNews) is it better to use the
vocab
attribute to define the default namespace to shorten the mark-up, or, define namespaces using theprefix
attribute to achieve a clearer description? - Is it OK to use
about=""
when referring to the HTML page containing the RDFa mark-up, or, is it better to use explicitly the full URI of the page, such asabout="http://example.com/page"
? RDFa distillers tend to convertabout=""
to<>
: What happens when the context of the page is lost?<>
seems to me like a local identifier, so what happens when you aggregate different distilled RDFa data usingabout=""
? Can you tell the provenance of the<>
URIs if you're not using named graphs? I haven't seen RDFa distillers using@base
to set the base URI for relative URIs such as<>
. - Is there any way how to leverage content from HTML attributes in RDFa? For example, I may want to mark-up the content of an
alt
attribute of an<img />
as the value fordc:description
, or use the value from thetitle
attribute indc:title
. Do I need to duplicate the content of such HTML attributes elsewhere on the page in order to include it in RDFa data?