首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >是否有一种标记语言来描述含义?

是否有一种标记语言来描述含义?
EN

Stack Overflow用户
提问于 2012-03-26 18:06:41
回答 1查看 165关注 0票数 4

我很好奇是否真的有一种标记语言来描述文本的含义:

下面是我的意思和它看起来是什么样子的一些例子:

代码语言:javascript
复制
<text>Stack Overflow is a programming Q & A site that’s free. Free to ask questions,
free to answer questions, free to read, free to index, built with plain old HTML, no
fake rot13 text on the home page, no scammy google-cloaking tactics, no salespeople, no
JavaScript windows dropping down in front of the answer asking for $12.95 to go away.
You can register if you want to collect karma and win valuable flair that will appear
next to your name, but otherwise, it’s just free. And fast. Very, very fast.</text>

代码语言:javascript
复制
<mark from="0" to="14" object="Stack Overflow">Stack Overflow is a online community for coders.
The website is: www.stackoverflow.com</mark>
<mark from="20" to="31" object="programming" source="en.wikipedia.org/wiki/programming">
Computer programming (often shortened to programming or coding) is the process of
designing, writing, testing, debugging, and maintaining the source code of computer
programs</mark>

我希望已经有一些语言因为我糟糕的“搜索”-abilities而找不到了。

编辑:我指的不是像HTML那样的语言。

这对我来说是一个标准的html标记:

代码语言:javascript
复制
<p>My really <span class="important">interessting</span> paragraph</p>

代码语言:javascript
复制
<text>Stack Overflow is a programming Q & A site that’s free. Free to ask questions,
free to answer questions, free to read, free to index, built with plain old HTML, no
fake rot13 text on the home page, no scammy google-cloaking tactics, no salespeople, no
JavaScript windows dropping down in front of the answer asking for $12.95 to go away.
You can register if you want to collect karma and win valuable flair that will appear
next to your name, but otherwise, it’s just free. And fast. Very, very fast.</text>

现在我想在第一行标记"Stack Overflow“并对其进行描述。接下来,我想描述一下“编程”,告诉你这是什么,接下来是"Q & A“,然后是一个棘手的部分:我想描述一下什么是”编程Q&A site“。

下面是我编造的内容:

代码语言:javascript
复制
<mark type="description" line="1" from="0" to="15" subject="Stack Overflow" language="English" source="http://en.wikipedia.org/wiki/Stack_overflow">
In software, a stack overflow occurs when too much memory is used on the call stack. 
</mark>
<mark type="description" line="1" from="25" to="40" subject="programming" language="English" source="http://en.wikipedia.org/wiki/programming">
Computer programming (often shortened to programming or coding) is the process of designing, writing, testing, debugging, and maintaining the source code of computer programs.
</mark>
<mark type="alias" line="1" from="42" to="47" subject="Q & A" language="English">
Question and Answer
</mark>
<mark type="description" line="1" from="25" to="52" subject="programming Q & A site" language="English" author="xMRW">
A website that offers people answers on questions related to the subject programming.
</mark>
<mark type="description" line="1" from="25" to="52" subject="programming Q & A site" language="German" author="xMRW">
Das gleiche in Deutsch.
</mark>
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2012-03-26 18:10:52

是的,它被称为语义标记。例如,您可以阅读有关RDF的内容。

开始阅读Wipikepia上关于Semantic Web的这篇文章和关于Semantic Markup的这篇介绍,它们是一个很好的起点,有很多其他链接和参考。

您可能还会对以下内容感兴趣:

它不是真正的语义标记,但它更符合您在example.

  • HTML 5 microdata:中编写的内容,只是简单地将语义元数据嵌入到
  • Wiki,标记中。
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/9870206

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档