<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Undisciplined Bytes &#187; Semantic web</title>
	<atom:link href="http://www.undisciplinedbytes.com/category/semantic-web/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.undisciplinedbytes.com</link>
	<description>Web Application Development Tips, Tricks and Techniques</description>
	<lastBuildDate>Tue, 31 Jan 2012 09:07:24 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>CSS 3: one more step in the evolution of the web</title>
		<link>http://www.undisciplinedbytes.com/2009/12/css-3-one-more-step-in-the-evolution-of-the-web/</link>
		<comments>http://www.undisciplinedbytes.com/2009/12/css-3-one-more-step-in-the-evolution-of-the-web/#comments</comments>
		<pubDate>Tue, 01 Dec 2009 15:01:41 +0000</pubDate>
		<dc:creator>Oliver Mezquita</dc:creator>
				<category><![CDATA[Documentation]]></category>
		<category><![CDATA[HTML 5]]></category>
		<category><![CDATA[Semantic web]]></category>

		<guid isPermaLink="false">http://www.undisciplinedbytes.com/2009/12/css-3-one-more-step-in-the-evolution-of-the-web/</guid>
		<description><![CDATA[CSS 2 was released in 1997, and after more than 10 years it needs to be updated to reflect the new uses and trends we’ve been seeing in the web. This new version of Cascading Style Sheets brings new features long awaited that will make web development easier. Alongside with HTML 5, this new version [...]]]></description>
			<content:encoded><![CDATA[<p>CSS 2 was released in 1997, and after more than 10 years it needs to be updated to reflect the new uses and trends we’ve been seeing in the web. This new version of <a href="http://en.wikipedia.org/wiki/Cascading_Style_Sheets" target="_blank">Cascading Style Sheets</a> brings new features long awaited that will make web development easier. Alongside with <a href="http://www.undisciplinedbytes.com/2009/11/html-5-dramatic-improvements-in-the-web-language/" target="_blank">HTML 5</a>, this new version represents the evolution of the web, and aims to take the concept of <a href="http://www.undisciplinedbytes.com/2009/11/the-semantic-web/" target="_blank">semantics</a> into the core of the web.</p>
<p>CSS 3 has quite a few new concepts. Let’s take a look:</p>
<p><span id="more-239"></span></p>
<h4>New properties</h4>
<ul>
<li><strong>Borders</strong>: border-color, border-image, border-radius, box-shadow.</li>
<li><strong>Backgrounds</strong>: background-origin, background-clip, background-size, layering multiple background images.</li>
<li><strong>Color</strong>: HSL colors, HSLA colors, RGBA colors opacity.</li>
<li><strong>Text</strong>: text-shadow, text-overflow.</li>
<li><strong>Interface</strong>: box-sizing, resize.</li>
<li><strong>Selectors</strong>: attribute selectors.</li>
<li><strong>Formats</strong>: media queries, multiple column layout, speech.</li>
</ul>
<h4>New features</h4>
<p>Using these new properties we’ll be able to achieve things such as:</p>
<ul>
<li><strong>Borders, background</strong><br />
CSS 3 will allow images for borders, round corners and shadows. Objects can not only be positioned, but its direction can also be changed (horizontal or vertical).</li>
<li><strong>Multi-column layout</strong><br />
Designing pages with multiple columns now will be easier than ever. Until now we needed to enclose the content in two separate DIVs to simulate a two-column layout; now we’ll just use <code>column-count: 2</code>. Not all that hard, right?</li>
<li><strong>Advanced Layout</strong><br />
This new feature will allow objects to be distributed along the screen in a better an easier way, and combine them in different manners without additional tags. Besides, the page model will be included: this means that we will be able to indicate page footers, crossed references, and section headers.</li>
<li><strong>Selectors </strong><br />
There are new selectors to make it easier locating exactly the element you want:<br />
<code>E:only-of-type</code>: an element which is unique in its type.<br />
<code>E:not(s)</code>: an element which doesn’t match simple selector.<br />
<code>E ~ F</code>: an element F with an element E right before.<br />
<code>E:nth-child</code>: the n-th child element of a parent node. With this selector we’ll be able to implement things such as <strong>zebra tables.</strong><br />
<code>E:nth-last-child</code>: the last child element from a parent node.<br />
<code>E:nth-of-type</code>: the n-th element which is of a certain type.<br />
<code>E:first-of-type</code>: the first element which is of a certain type.</li>
<li><strong>Resizing </strong><br />
Up till now, if we wanted our elements to be resizable we needed to use Javascript to alter its attributes. With CSS 3 it will now be a task of the browser, just by using the <code>resize</code> property.</li>
<li><strong>And many more things …</strong></li>
</ul>
<p>Some properties of CSS 3 <a href="http://westciv.com/wiki/Experimental_CSS_compatibility_table" target="_blank">are already being implemented in most major browsers</a>. There’s not a 100% fully compliant web browser yet (specially because CSS 3 is not finished yet), but it won’t take much time to have one. This means that maybe we won’t be able to use all of these new features right now, but we can certainly start using some of them. So, what are you waiting for? The sooner the better!</p>
<h4>Further reading</h4>
<ul>
<li><a href="http://www.w3.org/TR/css3-roadmap/" target="_blank">W3C CSS3</a></li>
<li><a href="http://www.css3.info">www.css3.info</a></li>
<li><a href="http://www.webappers.com/2009/08/10/70-must-have-css3-and-html5-tutorials-and-resources/" target="_blank">70 Must-Have CSS3 and HTML5 Tutorials and Resources</a></li>
</ul>


<h4>Related posts:</h4><p><ol><li><a href='http://www.undisciplinedbytes.com/2009/11/html-5-dramatic-improvements-in-the-web-language/' rel='bookmark' title='Permanent Link: HTML 5: dramatic improvements in the web language'>HTML 5: dramatic improvements in the web language</a></li>
<li><a href='http://www.undisciplinedbytes.com/2009/11/the-semantic-web/' rel='bookmark' title='Permanent Link: The Semantic Web'>The Semantic Web</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.undisciplinedbytes.com/2009/12/css-3-one-more-step-in-the-evolution-of-the-web/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>HTML 5: dramatic improvements in the web language</title>
		<link>http://www.undisciplinedbytes.com/2009/11/html-5-dramatic-improvements-in-the-web-language/</link>
		<comments>http://www.undisciplinedbytes.com/2009/11/html-5-dramatic-improvements-in-the-web-language/#comments</comments>
		<pubDate>Tue, 24 Nov 2009 15:00:23 +0000</pubDate>
		<dc:creator>Oliver Mezquita</dc:creator>
				<category><![CDATA[Documentation]]></category>
		<category><![CDATA[HTML 5]]></category>
		<category><![CDATA[Semantic web]]></category>

		<guid isPermaLink="false">http://www.undisciplinedbytes.com/?p=200</guid>
		<description><![CDATA[HTML 5 is a new revision of the standard language that moves the web. The increase in needs has brought new uses in HTML and new tags to support them, paying special attention to the semantic web. There are quite a few elements added to the new HTML standard to encapsulate different types of information:

New [...]]]></description>
			<content:encoded><![CDATA[<p>HTML 5 is a new revision of the standard language that moves the web. The increase in needs has brought new uses in HTML and new tags to support them, paying special attention to the semantic web. There are quite a few elements added to the new HTML standard to encapsulate different types of information:</p>
<p><span id="more-200"></span></p>
<h4>New tags</h4>
<ul>
<li><code>&lt;article /&gt;</code> This new element defines a portion of the content as an article. Perfect for newspapers or blogs.</li>
<li><code>&lt;aside /&gt;</code> Represents a fragment of information that slightly relates with the rest of the content.</li>
<li><code>&lt;dialog /&gt;</code> Depicts conversations.</li>
<li><code>&lt;figure /&gt;</code> Used to associate a caption with an embedded content, such as graphics or video.</li>
<li><code>&lt;footer /&gt;</code> Page section to hold author information, copyright statement, etc&#8230;</li>
<li><code>&lt;header /&gt;</code> Page section to hold some introductory information.</li>
<li><code>&lt;nav /&gt;</code> Section oriented to navigation.</li>
<li><code>&lt;section /&gt;</code> Element that defines a generic section.</li>
<li><code>&lt;audio /&gt;</code> and &lt;video /&gt; Provides multimedia content.</li>
<li><code>&lt;embed /&gt;</code> Supports plugin contents.</li>
<li><code>&lt;m /&gt;</code> Marked text.</li>
<li><code>&lt;meter /&gt;</code> Used to display measures.</li>
<li><code>&lt;time /&gt;</code> Used to display dates and/or time.</li>
<li><code>&lt;canvas /&gt;</code> Used to show real-time renderized graphics, such as games. For example, <a href="http://www.undisciplinedbytes.com/2009/10/html-5-canvas-tag-demonstration-sierra-adventure-games/" target="_blank">Sierra adventure games.</a></li>
<li><code>&lt;command /&gt;</code> Related with commands a user can invoke.</li>
<li><code>&lt;datagrid /&gt;</code> Shows additional information if it is requested by the user.</li>
<li><code>&lt;datalist /&gt;</code> Used together with the new attribute for &lt;input /&gt; can be used to create comboboxes.</li>
<li><code>&lt;output /&gt;</code> Denotes what kind of output the page produces.</li>
<li><code>&lt;progress /&gt;</code> Represents a progress bar in a time consuming task, such as donwloading a file.</li>
</ul>
<h4>New local attributes</h4>
<p>There&#8217;s a few new attributes for some of the elements that were already present in HTML4.</p>
<ul>
<li><code>media</code>: for greater consistency with the <code>link</code> element.</li>
<li><code>ping</code>: whitespace-delimited URLs list to which a ping will be produced when the link is followed. For the elements <code>&lt;area /&gt;</code> and <code>&lt;a /&gt;</code>.</li>
<li><code>target</code>: for greater consistency the <code>&lt;a /&gt;</code> element.</li>
<li><code>autofocus</code>: indicates that the <code>&lt;input /&gt;, &lt;select /&gt;, &lt;textarea /&gt;</code> or <code>&lt;button /&gt;</code> element should get the focus at page load.</li>
<li><code>form</code>: attribute for <code>&lt;input /&gt;, &lt;ouput /&gt;, &lt;select /&gt; &lt;textarea /&gt;, &lt;button /&gt;</code> and <code>&lt;fieldset /&gt;</code> which allows them to be associated to a form. This way, they can now be placed anywhere on a page, not as children of the <code>form</code> element.</li>
<li><code>replace</code>: will affect the element once changes are performed to it. For elements <code>&lt;input /&gt;, &lt;button /&gt;</code> and <code>&lt;form /&gt;</code>.</li>
<li><code>data</code>: specifies data for the elements <code>&lt;form /&gt;, &lt;select /&gt;</code> and <code>&lt;datalist /&gt;</code>.</li>
<li><code>required</code>: denotes a required element, for <code>&lt;input /&gt;</code> and <code>&lt;textarea /&gt;</code>.</li>
<li><code>disabled</code>: for the <code>&lt;fieldset /&gt;</code> element.</li>
<li><code>autocomplete, min, max, pattern, step</code>: these attributes delimitate the possibilities of the <code>&lt;input /&gt;</code> element.</li>
<li><code>list</code>: for <code>&lt;datalist /&gt;</code> and <code>&lt;select /&gt; </code> elements.</li>
<li><code>template</code>: for <code>&lt;input /&gt;</code> and <code>&lt;button /&gt;</code> elements, it will be used to repeat templates.</li>
<li><code>scoped</code>: for the <code>&lt;style /&gt;</code> element, enables the use of scoped style sheets.</li>
<li><code>async</code>: for the <code>&lt;script /&gt;</code> element. AJAX turned into an attribute.</li>
</ul>
<h4>New global attributes</h4>
<p>Some attributes that apply to the whole web page document:</p>
<ul>
<li><code>contenteditable</code>: denotes an editable area.</li>
<li><code>contextmenu</code>: contextual menu supplied by the user.</li>
<li><code>draggable</code>: &#8230; needs explanation?</li>
<li><code>tabindex</code>: a numeric value representing the order of elements we will tour around when pressing the TAB key.</li>
<li><code>irrelevant</code>: &#8230; need I say more?</li>
<li><code>repeat, repeat-start, repeat-min, repeat-max</code>: these attributes refer to iterations.</li>
</ul>
<h4>HTMLDocument extensions</h4>
<p>There are some improvements, and some other elements that finally get standarized:</p>
<ul>
<li><code>getElementsByClassName()</code>: selects elements given a class. Time responses seem to be dramatically improved by using this function.</li>
<li><code>innerHTML</code>: present in all ECMAScript implementations, it was not a standard till now.</li>
<li><code>activeElement, hasFocus()</code>: will allow us to know which is element is active and which one has the focus.</li>
<li><code>getSelection()</code>: returns an object with the current selection.</li>
<li><code>designMode, execCommand()</code>: used to edit documents.</li>
</ul>
<h4>HTMLElement extensions:</h4>
<p>The DOM element has also had some changes:</p>
<ul>
<li><code>getElementsByClassName()</code>: returns the children of an element that has a given class.</li>
<li><code>innerHTML</code>: reads/changes the content of a node.</li>
<li><code>classList</code>: a very interesting implementation that, along with <code>className</code>, lets us interact with element classes, providing methods such as <code>has(), toggle(), add()</code> and <code>remove()</code>.</li>
<li><code>relList</code>: works as <code>classList</code> on the rel attributes of the elements <code>&lt;a /&gt;, &lt;area /&gt; and &lt;link /&gt;</code>.</li>
</ul>
<p>This is just a quick overview of the most important changes that HTML will bring. But there&#8217;s many more not mentioned here. For a complete reference guide, consult the <a href="http://dev.w3.org/html5/html4-differences/Overview.html" target="_blank">W3C official draft</a>.</p>
<p>HTML 5 is still a draft. Its definition is not finished yet. But all major browsers are already starting to implement some of its features. There&#8217;s still many years to wait for HTML 5 to be as widespread as HTML 4.01 is today, but the improvements this new version bring are so impressive that may affect its adoption speed. The originally proposed name for HTML 5 was <strong>Web Applications 1.0</strong>, which provides a very good idea about the goal of this new standard.</p>
<h4>Further reading</h4>
<ul>
<li> <a href="http://www.sitepoint.com/article/html-5-snapshot-2009/" target="_blank">Yes, you can use HTML 5 today!</a></li>
<li><a href="http://www.smashingmagazine.com/2009/07/06/html-5-cheat-sheet-pdf/" target="_blank">HTML 5 cheat sheet</a></li>
<li><a href="http://www.smashingmagazine.com/2009/08/04/designing-a-html-5-layout-from-scratch/" target="_blank">Coding an HTML 5 layout from scratch</a></li>
<li><a href="http://molly.com/html5/html5-0709.html" target="_blank">A selection of supported features in HTML 5</a></li>
<li><a href="http://jontangerine.com/log/2008/03/preparing-for-html5-with-semantic-class-names" target="_blank">Preparing for HTML 5 with semantic class names</a></li>
</ul>


<h4>Related posts:</h4><p><ol><li><a href='http://www.undisciplinedbytes.com/2009/12/css-3-one-more-step-in-the-evolution-of-the-web/' rel='bookmark' title='Permanent Link: CSS 3: one more step in the evolution of the web'>CSS 3: one more step in the evolution of the web</a></li>
<li><a href='http://www.undisciplinedbytes.com/2010/05/html-5-web-sockets/' rel='bookmark' title='Permanent Link: HTML 5 Web Sockets'>HTML 5 Web Sockets</a></li>
<li><a href='http://www.undisciplinedbytes.com/2009/11/the-semantic-web/' rel='bookmark' title='Permanent Link: The Semantic Web'>The Semantic Web</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.undisciplinedbytes.com/2009/11/html-5-dramatic-improvements-in-the-web-language/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>The Semantic Web</title>
		<link>http://www.undisciplinedbytes.com/2009/11/the-semantic-web/</link>
		<comments>http://www.undisciplinedbytes.com/2009/11/the-semantic-web/#comments</comments>
		<pubDate>Tue, 17 Nov 2009 15:00:31 +0000</pubDate>
		<dc:creator>Oliver Mezquita</dc:creator>
				<category><![CDATA[Documentation]]></category>
		<category><![CDATA[HTML 5]]></category>
		<category><![CDATA[Semantic web]]></category>

		<guid isPermaLink="false">http://www.undisciplinedbytes.com/?p=139</guid>
		<description><![CDATA[Semantics, as defined in Wikipedia:
Semantics is the study of meaning, usually in language. The word &#8220;semantics&#8221; itself denotes a range of ideas [...]. It is often used [...] to denote a problem of understanding that comes down to word selection or connotation.
The Semantic Web is an extended web, with a greater meaning, in which users [...]]]></description>
			<content:encoded><![CDATA[<p>Semantics, as <a href="http://en.wikipedia.org/wiki/Semantics" target="_blank">defined in Wikipedia</a>:</p>
<blockquote><p>Semantics is the study of meaning, usually in language. The word &#8220;semantics&#8221; itself denotes a range of ideas [...]. It is often used [...] to denote a problem of understanding that comes down to word selection or connotation.</p></blockquote>
<p>The Semantic Web is an extended web, with a greater meaning, in which users will be able to find answers to their questions faster and easier due to a better-defined information. This meaning-based web is supported by a set of standardized  languages that solve the problems the semantic-less web has, in which access to some information is a difficult and frustrating task.</p>
<p><span id="more-139"></span></p>
<p>The web has changed the way we communicate and do our work. Worldwide low-cost instantaneous communication is possible nowadays. We have access to millions of resources, regardless of our geographic location or language. These features have made the web tremendously successful&#8230; and at the same time they have provided its <strong>biggest problems: information overload and heterogeneity of information sources.</strong></p>
<p><strong>The Semantic Web aims at solving these two great problems</strong>, allowing software to perform some of the tasks the user must take care of now. Thanks to semantics in the web, software can process its contents and make logical decisions to solve everyday problems automatically.</p>
<p>Imagine you would want to find the nearest open pharmacy. You would go to your favorite web search engine and type <strong><em>&#8220;pharmacies open right now&#8221;</em></strong>. Today&#8217;s search engines would offer different information about pharmacies, but nothing related to what the user <strong>exactly</strong> wants to know. The next step would be to go through all the options listed and manually search for the precise information. Figure 1 shows the results a user would get with a regular search engine today.</p>
<p>By building semantics into the core of the web the search results would be accurate. Software would be able to properly understand what the user is asking for. Figure 2 shows results with a semantic search engine. These results give the user the exact information he was looking for. Geographic location would be detected automatically, and words like<em> &#8220;right now&#8221; </em>acquire greater sense and get translated to today&#8217;s date. All the information would be full of meaning.</p>
<table border="0">
<tbody>
<tr>
<td style="text-align: center;" colspan="2">Searching <strong>&#8220;pharmacies open right now&#8221;<strong> </strong></strong></td>
</tr>
<tr>
<td width="50%"><a href="javascript:;">How much does it cost to open a pharmacy &#8211; How much does it cost &#8230;</a><br />
How much does it cost to open a pharmacy? Can you please guide me. A little advice would go &#8230;</p>
<p><a href="javascript:;">Pharmacy: what it is and how it works</a><br />
One such time is right now, &#8230; the nation&#8217;s 37000 chain store pharmacies had almost 6000 open pharmacist jobs&#8230;</p>
<p><a href="javascript:;">E-Learning: Chemistry Central and Fully Open Access</a><br />
It is hard to tell exactly what this will mean for Open Access chemistry research. Right now the vast majority of articles &#8230;</td>
<td><a href="javascript:;">Mike&#8217;s pharmacy: open 8am &#8211; 10pm</a><br />
The pharmacy you can trust, right in your neighborhood. We open at 8am and close at 10pm to serve all your needs.</p>
<p><a href="javascript:;">The Best Drugstore</a><br />
&#8230; open till late, you will find all the medicines you are looking for &#8230;</p>
<p><a href="javascript:;">Your neighborhood pharmacy</a><br />
Just 5 minutes away, you&#8217;ll get special deals in most of our products. Come visit us any time, we are open 24/7.</td>
</tr>
<tr>
<td style="text-align: center;"><em>Figure 1: Results from a regular search engine</em></td>
<td style="text-align: center;"><em>Figure 2: Results from a semantic search engine</em></td>
</tr>
</tbody>
</table>
<p>The way information will be processed won&#8217;t be based on input/output parameters, but on its semantics. The Semantic Web provides an infrastructure based on metadata, allowing software to reason on the web, extending its capabilities.</p>
<p>It&#8217;s not about a magical artificial intelligence that will enable machines to understand human words&#8230; it&#8217;s just the skill of a machine to solve well-defined problems through well-defined operations that will be performed on a well-defined data set.</p>
<h4>Further reading</h4>
<p>This article covered just the very basics of the Semantic Web. If you&#8217;re still interested, you can expand your knowledge at:</p>
<ul>
<li><a href="http://en.wikipedia.org/wiki/Semantic_Web" target="_blank">Semantic Web</a></li>
<li><a href="http://en.wikipedia.org/wiki/Web_Ontology_Language" target="_blank">Web Ontology Language</a></li>
<li><a href="http://semanticweb.org/wiki/Main_Page" target="_blank">semanticweb.org</a></li>
<li><a href="http://swoogle.umbc.edu/" target="_blank">Swoogle: experimental semantic search engine</a> (if you&#8217;re going to use this, you might as well be interested in the <a href="http://swoogle.umbc.edu/index.php?option=com_swoogle_manual&amp;manual=faq" target="_blank">FAQ</a>)</li>
</ul>


<h4>Related posts:</h4><p><ol><li><a href='http://www.undisciplinedbytes.com/2009/11/html-5-dramatic-improvements-in-the-web-language/' rel='bookmark' title='Permanent Link: HTML 5: dramatic improvements in the web language'>HTML 5: dramatic improvements in the web language</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.undisciplinedbytes.com/2009/11/the-semantic-web/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

