Is there a markup language to describe the values?

I'm curious if there really is a markup language for describing text values:

Here is an example of what I mean and how it might look:

<text>Qaru 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> 

And now I want to add meta-information to it so that I can give the text meaning:

 <mark from="0" to="14" object="Stack Overflow">Qaru 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> 

I hope that there is already some kind of language that I did not find because of my poor "search" capabilities.

EDIT: I do not mean languages ​​that are actually similar to HTML.

This is the standard html markup for me:

 <p>My really <span class="important">interessting</span> paragraph</p> 

I want to include intersections and describe one part several times and not touch the original text, as in my example above:

 <text>Qaru 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> 

Now I want the "Stack Overflow" markup on the first line and describe it. Then I want to describe "programming" and say what it is, and the next "Q and A", and after that the difficult part arises: I want to describe what "programming Q and A" is.

Here is something I just made up:

 <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 Qaru 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> 
+4
source share
1 answer

Yes, this is called semantic markup. For example, you can read RDF .

Start reading this Wipikepia article on the Semantic Web and this introduction on the Semantic Markup , they are a good starting point with many other links and links.

You may also be interested in:

  • Wiki , this is not really semantic markup, but it is more consistent with what you write in your example.
  • HTML 5 microdata : just embed semantic metadata in your HTML markup.
+1
source

Source: https://habr.com/ru/post/1403432/


All Articles