Re: RDFa Lite inside <info>
Norm Tovey-Walsh <[email protected]> Fri, 02 Jul 2021 10:00:17 +0100
| Newsgroups | gmane.text.docbook.misc |
|---|---|
| Message-ID | <[email protected]> |
> the last days I've looked into RDFa Lite and how to use it with
> DocBook.
Cool.
> I would like to add some (meta) information into the <info> element
> expressed with RDFa Lite attributes. However, it seems there is no real
> general, semantic-neutral DocBook element.
>
> For example, I would like to add an audience, categories of a text, and
> some keywords. I came up with this example:
I’d be inclined to use DocBook markup for the specific properties you’re
interested in:
<article audience="…">
<info>
<keywordset>
<keyword>…</keyword>
</keywordset>
<!-- or subjectset if you have a controlled vocabulary -->
<abstract>
<para>about…</para>
</abstract>
</info>
…
I imagine you’ll want to run some sort of extraction process to get
metadata out of your documents (to put in a linked data store, for
example), and there’s no reason not to map from DocBook metadata to
properties.
But that doesn’t answer your general question.
> However, that feels like abusing the <annotation> element.
Yes, it does.
> Maybe DocBook needs a general <meta> element soley for information that
> goes beyond the usual markup? Which could be used to distinguish between
> DocBook's own meta information and a foreign framework. Something like
> this:
DocBook 5.2 introduces such an element which can either contain content
or be empty:
https://tdg.docbook.org/tdg/5.2/meta.content.html
https://tdg.docbook.org/tdg/5.2/meta.empty.html
It’s perhaps geared a little too strongly towards the HTML style of meta
element. It could probably be relaxed a little bit, so that name was
optional for example, to make it fit this use case a little better.
Be seeing you,
norm
--
Norman Tovey-Walsh <[email protected]>
https://nwalsh.com/
> Wherever they burn books they will also, in the end, burn human
> beings.--Heine
signature.asc
(application/pgp-signature, 832 B)
-----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEE1ury//rzuvqf7fN/hVWfHhJMAHkFAmDe1aEACgkQhVWfHhJM AHmUXA/+JIYpA63czJepmjU5nJUkwS7IrDGihgj6x1Ks4oIjdt7wHHSBlYYMulqe 8sC8ldxDLn+58E+4wgrdodKdHGl6YuXsoJrkeyXmcFPzL+GPvCQINgRAVtXkfCBz 7Rq50lKhc4tJO+6QxvcpzbPrJ2yCiIoWvcEeo2DSo9DOauUafnEJ7Uxby9XqIn1J Gy4WrT7/dSukr93CvKNLbx/jVXeuf26eZaKzqFk8AeGxa2qLAWr/3OyktFweZQ2l Ihvyujzg+fzK0GIa3mtMGMH2ssIghKnNDBy0K1x1KrFzfnDg+U4wmvyzrIQu+Fe2 0pjdrRXNVP4Chc5dRgoM9W5/GdDrseIta1x0yD1Dfxmfofxpkrkoym21oiYVSqL9 ZKJ/yw6oPwUAc+9KADpejNUme1UAF4r/goni9EQS59fnK0uMwMOxU8KNaMOWFTGm niuJ4U1osD4HK6dYbea1KX9aT6YHfOEtuPi26Ui+cYPUfD/Q6WX3E5kjZ9i90P0f EQrhGM4xJTPO06BJCfMM7FfJAhSrvQjJKsghZ4j9yXKXqutyWm7T2XN1srwtndIm XUegM9slFB9djvK0VLtg0sH3i26Pc2neNq1ny2U/kyNO6n5Ky63gqLQBsxZ8cmV0 EhBHK0MxqnhR4GcBESF4yhIJaUJ6Edc/TBAAn8sDkn6bhufecE0= =g2lM -----END PGP SIGNATURE-----