Welcome!

Release Management Authors: Pat Romanski, Elizabeth White, David H Deans, Liz McMillan, Jnan Dash

Related Topics: Industrial IoT

Industrial IoT: Article

XML and the Semantic Web

XML and the Semantic Web

XML-based formats are now becoming the dominant way of marking up data on the Web. There are standard XML languages for hypertext (XHTML), graphics (SVG), syndication (RSS), multimedia (SMIL), service description and discovery (WSDL and UDDI), and many others, not to mention a plethora of more specialized, often ad hoc, XML-based languages.

Furthermore, there are standard ways to query (XPath and XQuery), link into (XLink and XPointer), and parse and program with (SAX, and DOM) your XML documents. Finally, integration with the many other XML formats can be done in a reasonably straightforward manner either by inclusion (using XML Namespaces) or transformation (using XSLT).

XML as an Interchange Mechanism
Given these facts, it's hard to argue against XML as the interchange mechanism for the Web. But the XML model remains primarily rooted in documents - in particular, textual documents with hierarchical structure. For example, a well-formed XML document can have a <US-address> element that contains <US-street-address-line> and <US-zip-code> elements. From the pure XML point of view, there's nothing but a document-based description of the names and current arrangements of these elements: that is, that a <US-address> contains a <US-zip-code>, which is a string. We could, of course, also have a document with two <US-zip-code>s in it. An XML Schema for <US-address>s could go further and state the specific constraints on that structure, for example, that a <US-address> can contain many <US-street-address-line> elements but only one <US-zip-code> element. With this schema a validator can conclude that our <US-street-address> with two <US-zip-code>s was syntactically incorrect.

However, the schema doesn't actually capture much of the semantics of an address. For example, if we were to take several different documents and find two addresses that were identical except for their zip codes, we wouldn't be able to realize, on the basis of the schema, that at least one zip code was wrong. Similarly, there's no automatic way to convert between two very similar encodings of address (for example, to one where there could only be one <US-street-address> element, which itself had many <US-street-address-line>s). Further, if we wanted to do something complex, such as integrating <US-street-address>s with our personnel database, we would have to rely on a human programmer. We'd need someone to provide a specific mapping from the <US-address> to the various fields in our database structure, and this mapping would be vulnerable to even small changes in our XML format or in the database - and just forget about reusing that mapping with unrelated systems.

More strikingly, there's no clear way to connect our various <US-address>s to more general facts about addresses - for example, that they identify locations, that mail can be delivered to them, or that they're associated with people or businesses. And neither the XML model nor XML Schema are going to be much help in determining that a mailing address is like a fax number, at least in the sense that mailing a letter to an address and faxing it to a number both get the text of the missive to its recipient.

On the Web, however, we really need this semantic information. We want to be able to connect an address that we've encoded in XML in some Web document to people, places, concepts, letters, other documents, databases, directories, PDA contact lists, calendars, sensors, services, and all the other resources on the Web. Done right, such links would allow information in various forms and formats to be automatically manipulated in a coherent way by our computer programs. XML is clearly an important part of the answer, but it's very hard to see the XML data model as a feasible way to represent these links and the real-world semantics they encode.

Modeling Links
By examining how links work on the current Web, we can get some idea of what it takes to model them. Web links have two key aspects: first, things on the Web are consistently identified by URIs (Uniform Resource Identifiers). Second, a Web link has the following tripartite structure:

  • The thing you start with (the source of the link). (In XHTML this is the file containing the "a" tag with an "href" attribute.)
  • The connecting, or linking, bit between the source and the target of the link.
  • The thing you end up with (the target). (In XHTML it's typically named named by a URI placed in the href attribute.)

    While, naturally, it's possible to encode Web links in XML (e.g., with <a href="..."/>), note how little in common a Web link has with the XML data model: Web links use URIs instead of tags or QNames; unlike XML, Web links impose no inherent hierarchy, no notion of containment, and no sequencing of the things to which they relate. In fact, a set of Web links doesn't look much like a DOM tree, but does look an awful lot like an RDF (Resource Description Framework) graph, where each link corresponds to an RDF triple. After all, each part of an RDF triple can be, and most often is, identified by a URI, and the structure of a triple is obviously tripartite.

    The parts of a triple, by design, correspond to the parts of a Web link:

    • The subject of a triple is where you start.
    • The predicate connects the subject and the object.
    • The object corresponds to the target of a Web link.
    Indeed, an RDF triple is a representation of a Web link, where each part of the link is made explicit. Thus a collection of RDF triples is a way to represent, share, and process chunks of the Web itself. Having the Web in a standardized representation allows us to enrich the semantics not just of information in documents on the Web, but of the information expressed by the Web. Every Web link is an often vague, usually ambiguous, and almost always underspecified assertion about the things it connects. RDF lets us eliminate that vagueness and nail down the ambiguity. RDF Schema (RDFS) and the new Web Ontology Language (OWL) allow us to model the meaning of our assertion links in precise, machine-processible ways.

    RDFS is a simple language for creating Web-based "controlled vocabularies" and taxonomies. The language defines several RDF predicates for making links between concepts. Most notably, RDFS defines class and property relations and provides a mechanism for restricting the domains and ranges of the properties. In RDFS, for example, we can express site-specific Yahoo-like Web site categories as a hierarchy of classes with sets of named (sometimes inherited) properties. This allows other sites to connect their own information to these terms, providing better interoperability for use in B2C, B2B, or other Web transactions.

    OWL extends RDFS into a more capable language, usable for thesauruses and domain models. OWL is based on DAML+OIL, a Web language jointly developed by the U.S. Defense Advanced Research Projects Agency (DARPA) and the European Union's Information Science and Technology (IST) program. DAML+OIL has begun to get heavy use in the government, and in November 2001 the W3C chartered a Web Ontology Working Group to refine the DAML+OIL standard into a W3C recommendation language, now called OWL.

    OWL extends RDFS with many more constructs for defining the relationships between classes and, more important, placing restrictions on how properties (i.e., predicates) can be used when linking entities. OWL thus allows users to define simple models of their domains using these properties and their constraints. A full discussion of the language is beyond this article (see www.w3.org/2001/sw/WebOnt for more details), but revisiting the "Address" example should make a few things clearer.

    XML and OWL
    In XML we were able to say that there was a document field called a <US-address> that had subfields of a street address, a city name, a state name, and a zip code. In OWL we can explicitly name these objects as classes and properties, and place constraints on how to legally relate these entities to each other or to entities defined in other documents. Thus, for example, we could mention that cities are in states, and that each city is in one, and only one, state. We could know that a U.S. address is a type of international address where the state field is restricted to be one of Alabama, Maine, New York, and so on, and that these addresses have zip codes that consist of either five or nine numbers. We could also add the information that, in general, international addresses have country codes, and that the country code for U.S. addresses always has the value "USA," and many other such facts. (This sort of specification of these relationships in a formal language is called ontology, thus the term ontology language for OWL.)

    Ontologies let us more precisely link to other documents and resources based on shared use of conceptual terms, even where there is only a partial match (a key difference from current XML-based approaches). Our addresses could thus be linked in turn to other vocabularies - for example, knowing that an address names a location, we could link to other location-based Web resources. These could be databases or Web services that would compute the location of the nearest airport (another kind of location) to a given address, the weather forecast for the city the address is located in, or other such location-specific data. Metadata can also be used to link nontext media to ontologies, expressing, for example, that the photo in a particular picture is of a house at a particular address or that the place to complain about the contents of a particular streaming video is in a particular state (allowing you to compare its location to yours and see if local content restrictions might apply).

    Figure 1 provides an example of the linking of a Web site to ontological information. In this case, from a presentation on OWL given at the W3C session of the World Wide Web Conference in May 2002, information about the keynote speaker is linked to information about events, photos, and people.

    The example of addresses is an extremely basic one, yet we already see a tremendous number of possible uses. By mapping the implicit semantics inherent in XML DTDs and schemas into the explicit relationships expressible in RDFS and OWL, a whole range of new applications, largely created by the linking of existing Web resources, become easily implementable. In the business world this kind of linking to models could be done for SEC filings, supply-chain databases, business services posting WSDL descriptions, and a virtually infinite range of others, allowing enterprise integration on a Web-wide scale. Current Semantic Web-related research is also exploring the use and extension of these RDF-based languages to express trust and authorization relationships, to do the automated discovery and composition of Web services, and to design new languages to continue to enhance the potentially revolutionary capabilities of the Semantic Web.

    The Semantic Web is being built on models based on the RDF representation of Web links. To achieve their full impact, however, the enhanced models enabled by the Semantic Web crucially need to be tied to the document-processing and data-exchange capabilities enabled by the spread of XML technologies. If XML- and RDF-based technologies were incompatible, as some people seem to think they are, it would be a true shame. But, in fact, they aren't. While the underlying models are somewhat different, the normative document exchange format for RDF, RDFS, and OWL is XML. Thus, to those preferring to think of the whole world as XML based, RDF, RDFS, and OWL may simply be thought of as yet another XML language to be managed and manipulated using the standard toolkit. To the RDF purist, the documents and datasets being expressed in XML and XML Schema can anchor their models with interoperable data. To those focused on the world of Web services, SOAP and WSDL can carry, in their XML content, RDF models expressing information that can be easily found, linked, and discovered.

    Of course, as is the case with any groups doing overlapping tasks, there is friction between some in the RDF community and some in the XML world. RDF folks often complain about the (for them) superfluous intricacies of XML. XML experts shake their heads at the way the RDF/XML serialization abuses QNames and XML Namespaces and treats certain attributes and child elements as equivalent. However, these kinds of complaints are nothing new. In fact, they're common in the XML community itself: witness the fury that some XML people express over XSLT's use of QNames as attribute content (to pick one example). Similarly, the RDF world has plenty of dark and overcomplicated corners. Both sets of languages are also continuing to evolve, and each is also exploring new non-XML syntaxes (consider Relax-NG, XQuery, and XPath).

    Best of the Best
    In short, the Semantic Web offers powerful new possibilities and a revolution in function. These capabilities will arrive sooner if we stop squabbling and realize that the rift between XML- and the RDF-based languages is now down to the minor sorts of technical differences easily ironed out in the standards process or kludged by designing interoperable tools. Combining the best of all these languages, and their variants, is easily enabled by the combination of the "documents" of the XML Web with the "links" expressed in RDF. Throw interoperable Web services into the mix and the vision is compelling. The future of the Web can be even more exciting than its past, and pulling all these threads together will get us there.

    Useful Links

  • W3C Semantic Web activity: www.w3.org/2001/sw
  • The RDF Schema Language Specification - Working Draft: www.w3.org/TR/rdf-schema
  • "Integrating Applications on the Semantic Web" (paper by J. Hendler, T. Berners-Lee, and E. Miller on using the Semantic Web for business applications): www.w3.org/2002/07/swint
  • W3C Web Ontology Working Group home page: www.w3.org/2001/sw/WebOnt
  • Feature Synopsis for OWL Lite and OWL - Working Draft: www.w3.org/TR/owl-features
  • "Why RDF model is different from the XML model," by T. Berners-Lee: www.w3.org/DesignIssues/RDF-XML.html
  • More Stories By Dr. James Hendler

    Jim Hendler, a University of Maryland professor, is the Director of Semantic Web and agent technology at the Maryland Information and Network Dynamics Laboratory. A fellow of the American Association for Artificial Intelligence, Jim was formerly chief scientist for information systems at the U.S. Defense Advanced Research Projects Agency (DARPA) and cochairs the Web Ontology Working Group for the W3C. He has authored close to 150 technical papers in the areas of artificial intelligence, robotics, agent-based computing and high performance processing. Hendler was the recipient of a 1995 Fulbright Foundation Fellowship, is a member of the US Air Force Science Advisory Board and is a prominent player in the World Wide Web Consortium's Semantic Web Activity.

    More Stories By Bijan Parsia

    Bijan Parsia is a Semantic Web researcher at the Maryland Information and Network Dynamics Laboratory. His research interests include Web logics and rule engines, Semantic Web services, fine-grained, reflective annotation systems, and trust-focused reasoning.

    [email protected]

    Comments (0)

    Share your thoughts on this story.

    Add your comment
    You must be signed in to add a comment. Sign-in | Register

    In accordance with our Comment Policy, we encourage comments that are on topic, relevant and to-the-point. We will remove comments that include profanity, personal attacks, racial slurs, threats of violence, or other inappropriate material that violates our Terms and Conditions, and will block users who make repeated violations. We ask all readers to expect diversity of opinion and to treat one another with dignity and respect.


    @ThingsExpo Stories
    A strange thing is happening along the way to the Internet of Things, namely far too many devices to work with and manage. It has become clear that we'll need much higher efficiency user experiences that can allow us to more easily and scalably work with the thousands of devices that will soon be in each of our lives. Enter the conversational interface revolution, combining bots we can literally talk with, gesture to, and even direct with our thoughts, with embedded artificial intelligence, whic...
    Coca-Cola’s Google powered digital signage system lays the groundwork for a more valuable connection between Coke and its customers. Digital signs pair software with high-resolution displays so that a message can be changed instantly based on what the operator wants to communicate or sell. In their Day 3 Keynote at 21st Cloud Expo, Greg Chambers, Global Group Director, Digital Innovation, Coca-Cola, and Vidya Nagarajan, a Senior Product Manager at Google, discussed how from store operations and ...
    In his session at 21st Cloud Expo, Carl J. Levine, Senior Technical Evangelist for NS1, will objectively discuss how DNS is used to solve Digital Transformation challenges in large SaaS applications, CDNs, AdTech platforms, and other demanding use cases. Carl J. Levine is the Senior Technical Evangelist for NS1. A veteran of the Internet Infrastructure space, he has over a decade of experience with startups, networking protocols and Internet infrastructure, combined with the unique ability to it...
    It is of utmost importance for the future success of WebRTC to ensure that interoperability is operational between web browsers and any WebRTC-compliant client. To be guaranteed as operational and effective, interoperability must be tested extensively by establishing WebRTC data and media connections between different web browsers running on different devices and operating systems. In his session at WebRTC Summit at @ThingsExpo, Dr. Alex Gouaillard, CEO and Founder of CoSMo Software, presented ...
    Gemini is Yahoo’s native and search advertising platform. To ensure the quality of a complex distributed system that spans multiple products and components and across various desktop websites and mobile app and web experiences – both Yahoo owned and operated and third-party syndication (supply), with complex interaction with more than a billion users and numerous advertisers globally (demand) – it becomes imperative to automate a set of end-to-end tests 24x7 to detect bugs and regression. In th...
    "Space Monkey by Vivent Smart Home is a product that is a distributed cloud-based edge storage network. Vivent Smart Home, our parent company, is a smart home provider that places a lot of hard drives across homes in North America," explained JT Olds, Director of Engineering, and Brandon Crowfeather, Product Manager, at Vivint Smart Home, in this SYS-CON.tv interview at @ThingsExpo, held Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA.
    "Cloud Academy is an enterprise training platform for the cloud, specifically public clouds. We offer guided learning experiences on AWS, Azure, Google Cloud and all the surrounding methodologies and technologies that you need to know and your teams need to know in order to leverage the full benefits of the cloud," explained Alex Brower, VP of Marketing at Cloud Academy, in this SYS-CON.tv interview at 21st Cloud Expo, held Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clar...
    "MobiDev is a software development company and we do complex, custom software development for everybody from entrepreneurs to large enterprises," explained Alan Winters, U.S. Head of Business Development at MobiDev, in this SYS-CON.tv interview at 21st Cloud Expo, held Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA.
    SYS-CON Events announced today that CrowdReviews.com has been named “Media Sponsor” of SYS-CON's 22nd International Cloud Expo, which will take place on June 5–7, 2018, at the Javits Center in New York City, NY. CrowdReviews.com is a transparent online platform for determining which products and services are the best based on the opinion of the crowd. The crowd consists of Internet users that have experienced products and services first-hand and have an interest in letting other potential buye...
    "There's plenty of bandwidth out there but it's never in the right place. So what Cedexis does is uses data to work out the best pathways to get data from the origin to the person who wants to get it," explained Simon Jones, Evangelist and Head of Marketing at Cedexis, in this SYS-CON.tv interview at 21st Cloud Expo, held Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA.
    "IBM is really all in on blockchain. We take a look at sort of the history of blockchain ledger technologies. It started out with bitcoin, Ethereum, and IBM evaluated these particular blockchain technologies and found they were anonymous and permissionless and that many companies were looking for permissioned blockchain," stated René Bostic, Technical VP of the IBM Cloud Unit in North America, in this SYS-CON.tv interview at 21st Cloud Expo, held Oct 31 – Nov 2, 2017, at the Santa Clara Conventi...
    WebRTC is great technology to build your own communication tools. It will be even more exciting experience it with advanced devices, such as a 360 Camera, 360 microphone, and a depth sensor camera. In his session at @ThingsExpo, Masashi Ganeko, a manager at INFOCOM Corporation, introduced two experimental projects from his team and what they learned from them. "Shotoku Tamago" uses the robot audition software HARK to track speakers in 360 video of a remote party. "Virtual Teleport" uses a multip...
    SYS-CON Events announced today that Telecom Reseller has been named “Media Sponsor” of SYS-CON's 22nd International Cloud Expo, which will take place on June 5-7, 2018, at the Javits Center in New York, NY. Telecom Reseller reports on Unified Communications, UCaaS, BPaaS for enterprise and SMBs. They report extensively on both customer premises based solutions such as IP-PBX as well as cloud based and hosted platforms.
    SYS-CON Events announced today that Evatronix will exhibit at SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. Evatronix SA offers comprehensive solutions in the design and implementation of electronic systems, in CAD / CAM deployment, and also is a designer and manufacturer of advanced 3D scanners for professional applications.
    Leading companies, from the Global Fortune 500 to the smallest companies, are adopting hybrid cloud as the path to business advantage. Hybrid cloud depends on cloud services and on-premises infrastructure working in unison. Successful implementations require new levels of data mobility, enabled by an automated and seamless flow across on-premises and cloud resources. In his general session at 21st Cloud Expo, Greg Tevis, an IBM Storage Software Technical Strategist and Customer Solution Architec...
    To get the most out of their data, successful companies are not focusing on queries and data lakes, they are actively integrating analytics into their operations with a data-first application development approach. Real-time adjustments to improve revenues, reduce costs, or mitigate risk rely on applications that minimize latency on a variety of data sources. In his session at @BigDataExpo, Jack Norris, Senior Vice President, Data and Applications at MapR Technologies, reviewed best practices to ...
    An increasing number of companies are creating products that combine data with analytical capabilities. Running interactive queries on Big Data requires complex architectures to store and query data effectively, typically involving data streams, an choosing efficient file format/database and multiple independent systems that are tied together through custom-engineered pipelines. In his session at @BigDataExpo at @ThingsExpo, Tomer Levi, a senior software engineer at Intel’s Advanced Analytics gr...
    When talking IoT we often focus on the devices, the sensors, the hardware itself. The new smart appliances, the new smart or self-driving cars (which are amalgamations of many ‘things’). When we are looking at the world of IoT, we should take a step back, look at the big picture. What value are these devices providing? IoT is not about the devices, it’s about the data consumed and generated. The devices are tools, mechanisms, conduits. In his session at Internet of Things at Cloud Expo | DXWor...
    Everything run by electricity will eventually be connected to the Internet. Get ahead of the Internet of Things revolution. In his session at @ThingsExpo, Akvelon expert and IoT industry leader Sergey Grebnov provided an educational dive into the world of managing your home, workplace and all the devices they contain with the power of machine-based AI and intelligent Bot services for a completely streamlined experience.
    SYS-CON Events announced today that Synametrics Technologies will exhibit at SYS-CON's 22nd International Cloud Expo®, which will take place on June 5-7, 2018, at the Javits Center in New York, NY. Synametrics Technologies is a privately held company based in Plainsboro, New Jersey that has been providing solutions for the developer community since 1997. Based on the success of its initial product offerings such as WinSQL, Xeams, SynaMan and Syncrify, Synametrics continues to create and hone inn...