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 profile (name, country/region, and company) is displayed to the public and will accompany any content you post. You may update your IBM account at any time.

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]

Develop Python/XML with 4Suite, Part 3: 4RDF

Use RDF facilities with Python

Uche Ogbuji (uche.ogbuji@fourthought.com), Principal consultant, Fourthought Inc.
Photo of Uche Ogbuji
Uche Ogbuji is a computer engineer, co-founder, and principal consultant at Fourthought Inc. He has worked with XML for several years, codeveloping 4Suite, a library of open-source tools for XML development in Python, and 4Suite Server, an open-source, cross-platform XML data server providing standards-based XML solutions. He writes articles on XML for IBM developerWorks, LinuxWorld, SunWorld and XML.com. Mr. Ogbuji is a Nigerian immigrant living in Boulder, CO.
Chimezie Ogbuji (chimezie.ogbuji@fourthought.com), Software consultant, Fourthought Inc.
Photo of Chimezie Thomas-Ogbuji
Chimezie Thomas-Ogbuji is a software consultant for Fourthought Inc. He codevelops 4Suite and 4Suite Server. He enjoys writing and developing computer games in his spare time. He also researches artificial intelligence techniques.

Summary:  4Suite is an open source, comprehensive library and toolkit for XML processing in Python. 4Suite implements various open standards related to XML. This series of tutorials introduces 4Suite and gives practical examples of XML development using 4Suite. Continuing from the earlier tutorial, this will go into detail on RDF, with hands-on examples of how to use the various RDF facilities available with Python. The open-source tool set 4RDF will be used as the primary tool in the examples.The tutorial includes a brief example of the advanced topic of RDF inference.

View more content in this series

Date:  02 Jul 2002
Level:  Intermediate PDF:  A4 and Letter (102 KB | 18 pages)Get Adobe® Reader®

Activity:  5313 views
Comments:  

About this tutorial

Introduction

4Suite is an open source, comprehensive library and toolkit for XML processing in Python. 4Suite implements various open standards related to XML. This is the third in a series of developerWorks tutorials that introduce 4Suite and give practical examples of how it is used for XML development. This tutorial goes into detail on the Resource Description Framework (RDF), with hands-on examples of how to use the various RDF facilities available with Python. The open-source tool set 4RDF is used as the primary tool in the examples, which includes a brief example of the advanced topic of RDF inference.


Should I take this tutorial?

The W3Cs RDF specification (see Resources) lays down a solid foundation for a way to process information in an application-agnostic fashion. 4RDF is simply one of a few implementations of the RDF specification and is written in Python.

This tutorial is written for users who are familiar with the RDF specification and Python -- with more emphasis on the former. You may find it helpful to have RDF reference material handy (see Resources).

For introductory information on RDF, see the following resources:

While not required, if you want more information on 4Suite, read the previous installments in this tutorial series:

  • Part 1 focuses on PyXml
  • Part 2 introduces 4XPath and 4XSLT

Tools

The following software packages and files are required in order to follow this tutorial:

  1. 4Suite -- The open source XML library that is the focus of this tutorial series
  2. 4Suite-3.rdf -- The initial RDF serialization of our family tree (download 4suite-3.rdf)
  3. final.rdf -- The final RDF serialization of our family tree (download final.rdf)

About the authors

For technical questions about the content of this tutorial, contact the authors, Uche Ogbuji (uche.ogbuji@fourthought.com) and Chimezie Ogbuji (chimezie.ogbuji@fourthought.com).

1 of 9 | Next

Comments



static.content.url=http://www.ibm.com/developerworks/js/artrating/
SITE_ID=1
Zone=XML
ArticleID=138106
TutorialTitle=Develop Python/XML with 4Suite, Part 3: 4RDF
publish-date=07022002
author1-email=uche.ogbuji@fourthought.com
author1-email-cc=dwxed@us.ibm.com
author2-email=chimezie.ogbuji@fourthought.com
author2-email-cc=dwxed@us.ibm.com