|
JavaScript is the most popular language today. Can it be a candidate to replace HTML in the semantic grounds? |
|
JavaScript can not replace HTML, but it can help semantics to be used in HTML. Your example illustrates how to do reasoning over facts embedded in JavaScript structures, but you don't use HTML. You can see another illustration of reasoning over triples embedded within HTML with RDFa using JavaScript. In this example, you can enter statements, such as: Erasmus Darwin was Robert Darwin's father or questions such as: Who were Charles Robert Darwin's parents? Thank you for answering. The example you gave can't ask me questions. I mean a little bit different process. Not the moment when a user searches for information. But the moment when he feeds new information into a machine. Like in expert systems where you can add new information either by using data-driven approach by asking yes/no questions (like in your example) or add new facts by allowing a user to enter free-form sentences in a natural language. But this is not the main difference. The difference relevant to the Semantic Web is that with the semantic based approach, information represented by triples is stored in HTML by using RDFa. So if you want to change your example to make it semantic based, you could output the collected facts using RDFa embedded within HTML. Then external applications could use it. |

