用于高级标记的 hCard 属性

发布于 2024-09-10 03:38:38 字数 259 浏览 7 评论 0原文

我有一个数据库,其中列出了各种学生音乐家的专业和部门(例如,有人可以在历史表演部门专门研究小提琴)。又例如,考虑约翰·塞巴斯蒂安·巴赫 - 他是巴洛克风格的音乐家和作曲家。从逻辑上讲,也许我希望他的专业属于“作曲”,而他的部门属于“巴洛克”。

我认为“部门”可以很好地被“类别”属性覆盖,但是“专业”又如何呢?这也是一种类别。 hCard 规范表示,使用“类别”两次很酷,但这似乎有点肮脏,因为部​​门和专业在语义上是如此不相关。

那么“注释”属性呢?还是“角色”?想法?

I have a database where various student musicians have their specialisms and departments listed (for example somebody could specialise in violin in the Historical Performance department). Also for example, consider Johann Sebastian Bach - he is a musician and composer in the Baroque style. Logically perhaps I'd want his specialism to fall under "Composition" and his department to be "Baroque".

I think that 'department' could be covered happily by the "category" property, but what to make of 'specialism'? That's a kind of category, too. The hCard spec says that it's cool to use 'category' twice, but it seems kind of dirty since department and specialism are so semantically unrelated.

What about the 'notes' property? Or 'role'? Thoughts?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

天暗了我发光 2024-09-17 03:38:38

我想我倾向于将“作曲”和“巴洛克”类别用于角色或作为他的教师演讲的一部分。我不太清楚“巴洛克”是否会成为你们学校的一个可寻址部分,但如果是这样的话那就行了。也许想想你会如何描述他们——约翰会是“巴洛克作曲家”(角色)还是“巴洛克部门的居民”(adr)。

不幸的是,电子名片并不是那么详细。

I think I'd be inclined to use the category for 'Composition' and 'Baroque' either into role or as part of his faculty address. I'm not entirely clear on whether 'Baroque' would be an addressable part of your school, but if that would be the case then that'd work. Maybe think about it in terms of how you would describe them - would Johann be a 'Composer of Baroque' (role) or a 'resident of Baroque department' (adr).

vCards aren't that super detailed, unfortunately.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文