O'Reilly logo

Learning SPARQL, 2nd Edition by Bob DuCharme

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 9. RDF Schema, OWL, and Inferencing

In Chapter 2, we learned the basics of the roles that RDF Schema (RDFS) and the Web Ontology Language (OWL) can play in RDF applications:

  • RDFS and OWL are W3C standard vocabularies that let you define and describe classes and properties that a dataset’s triples might use. These do not function as templates that the data must conform to, as schemas often do in other data modeling systems, but instead as additional metadata to help you get more out of your data.

  • RDFS and OWL statements themselves are expressed using triples, so you can query them with SPARQL.

  • Properties and classes from the RDFS and OWL vocabularies let you describe your own properties and classes in ways that let certain applications infer new information from your dataset. For example, if you have one triple that specifies that the ab:spouse property is an owl:SymmetricProperty, and you have another triple that tells us that Richard has an ab:spouse value of Cindy, then an application that understands what owl:SymmetricProperty means will know that Cindy has an ab:spouse value of Richard. This is a classic example of the value of metadata: it adds information about your data so that you can get more out of it.

What kind of applications understand what owl:SymmetricProperty means, or what RDFS properties such as rdfs:domain and rdfs:range mean? And how does this extend the power of what you can do with your SPARQL queries? We’ll learn the answers to these questions in this ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required