Skip to main content

By clicking Submit, you agree to the developerWorks terms of use.

The first time you sign into developerWorks, a profile is created for you. Select information in your developerWorks profile is displayed to the public, but you may edit the information at any time. Your first name, last name (unless you choose to hide them), and display name will accompany the content that you post.

All information submitted is secure.

  • Close [x]

The first time you sign in to developerWorks, a profile is created for you, so you need to choose a display name. Your display name accompanies the content you post on developerworks.

Please choose a display name between 3-31 characters. Your display name must be unique in the developerWorks community and should not be your email address for privacy reasons.

By clicking Submit, you agree to the developerWorks terms of use.

All information submitted is secure.

  • Close [x]

The ultimate mashup -- Web services and the semantic Web, Part 3: Understand RDF and RDFs

Build and interpret Resource Description Framework (RDF) and RDF Schema Language (RDFs)

Nicholas Chase (ibmquestions@nicholaschase.com), Freelance writer, Backstop Media
Nicholas Chase has been involved in Web site development for companies such as Lucent Technologies, Sun Microsystems, Oracle, and the Tampa Bay Buccaneers. Nick has been a high school physics teacher, a low-level radioactive waste facility manager, an online science fiction magazine editor, a multimedia engineer, an Oracle instructor, and the Chief Technology Officer of an interactive communications company. He is the author of several books, including XML Primer Plus (Sams).

Summary:  The power of the ultimate mashup is the intelligence you'll build into it by using semantic Web techniques, specifically the Web Ontology Language (OWL). But before you can tackle OWL, you want to be familiar with its base language, the Resource Description Framework (RDF) and RDF Schema Language (RDFs). This tutorial gives you a good background in both RDF and RDFs so you'll be ready to build ontologies for your Web services, and also able to make use of RDF's power with other projects as well.

View more content in this series

Date:  08 Mar 2007 (Published 19 Sep 2006)
Level:  Intermediate PDF:  A4 and Letter (106 KB | 33 pages)Get Adobe® Reader®

Activity:  11017 views
Comments:  

Before you start

This tutorial is for developers who are interested in learning about the Resource Description Framework (RDF), as well as for those interested in learning more about the semantic Web and semantic Web services in general and the building of ontologies in particular. You will learn how to build and interpret RDF information in both its familiar XML form and its non-XML shorthand form.

This tutorial does not involve any programming, but assumes that you are familiar with the general concepts behind XML.

About this series

It seems you can't turn around on the Web these days without running into a Web site that either offers access to its data through a Web-services-based API or uses data from another site obtained through a Web-services-based API. When you consider the advantage of using existing information in your own applications, that's probably not terribly surprising. It was also just a matter of time before someone started to combine the data from these disparate systems to create something entirely new. These applications, called mashups, are the latest rage on the Web, from community-based sites to specialized search sites to the ever-present mapping mashups.

Mashups are (almost) all useful, but one thing that they have in common is that they were all developed for a specific set of services. If one of those services changes, or if the preference for a specific service of a particular type changes, you'll have lots of work to do.

The purpose of this tutorial series is to create a mashup application so smart that users can literally add and remove services at will, and the system will know what to do with them. The series progresses as follows:

In Part 1, I introduce the concept of mashups, showing how they work and building a simple version of one. You also discover serious performance problems involved in making potentially dozens of Web calls.

In Part 2, you solve some of that problem by using DB2®'s new pureXML™ capabilities to build an XML cache, which saves the results of previous requests and also enables you to retrieve specific information.

Ultimately, you will need to use ontologies, or vocabularies that define concepts and their relationships, so here in Part 3 you start that process by learning about RDF and RDFS, two key ingredients in the Web Ontology Language (OWL), which I discuss in Part 4. In Part 5, you take the ontologies created in Part 4 and use them to enable users to change out information sources.

In Part 6, things get really fun. At this point, you have a working application and the framework in place so that the system can use semantic reasoning to understand the services at its disposal. In this part, you give the user control, enabling him or her to pick and choose the data that is used for a custom mashup.


About this tutorial

In previous parts of this series, you created the foundation for the mashup: the servlet that checks the database cache and then displays the saved or fresh data. Now you need to start putting the "semantic" in semantic Web. In Part 4, you'll create an ontology that will enable you to perform logic on your services, but first you need to understand the language in which you will work with that ontology, the Resource Description Framework, or RDF.

This tutorial gets you up to speed with RDF and its offshoot, RDF Schema (RDFs). In the course of this tutorial, you will learn:

  • What RDF is and what it's used for
  • The relationships between RDF, RDF Schema, OWL, and the semantic Web
  • The basics of RDF
  • Dealing with resources, properties, and other RDF structures
  • Representing RDF in XML -- and without it
  • Creating classes and instances using RDF Schema

In this tutorial, you will look at these structures from the standpoint of representing the components and data from your mashup.


Prerequisites

Although you do need various software components to run the mashup itself -- see Part 2 for the list of requirements for the current state of the application (see Resources)-- this tutorial is mostly conceptual, so you will need no special software to follow along.

1 of 8 | Next

Comments



Help: Update or add to My dW interests

What's this?

This little timesaver lets you update your My developerWorks profile with just one click! The general subject of this content (AIX and UNIX, Information Management, Lotus, Rational, Tivoli, WebSphere, Java, Linux, Open source, SOA and Web services, Web development, or XML) will be added to the interests section of your profile, if it's not there already. You only need to be logged in to My developerWorks.

And what's the point of adding your interests to your profile? That's how you find other users with the same interests as yours, and see what they're reading and contributing to the community. Your interests also help us recommend relevant developerWorks content to you.

View your My developerWorks profile

Return from help

Help: Remove from My dW interests

What's this?

Removing this interest does not alter your profile, but rather removes this piece of content from a list of all content for which you've indicated interest. In a future enhancement to My developerWorks, you'll be able to see a record of that content.

View your My developerWorks profile

Return from help

static.content.url=http://www.ibm.com/developerworks/js/artrating/
SITE_ID=1
Zone=XML, Information Management, Java technology, Open source, Web development, SOA and Web services
ArticleID=159864
TutorialTitle=The ultimate mashup -- Web services and the semantic Web, Part 3: Understand RDF and RDFs
publish-date=03082007
author1-email=ibmquestions@nicholaschase.com
author1-email-cc=dwxed@us.ibm.com

Tags

Help
Use the search field to find all types of content in My developerWorks with that tag.

Use the slider bar to see more or fewer tags.

Popular tags shows the top tags for this particular content zone (for example, Java technology, Linux, WebSphere).

My tags shows your tags for this particular content zone (for example, Java technology, Linux, WebSphere).

Use the search field to find all types of content in My developerWorks with that tag. Popular tags shows the top tags for this particular content zone (for example, Java technology, Linux, WebSphere). My tags shows your tags for this particular content zone (for example, Java technology, Linux, WebSphere).

Special offers