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 anowl:SymmetricProperty
, and you have another triple that tells us that Richard has anab:spouse
value of Cindy, then an application that understands whatowl:SymmetricProperty
means will know that Cindy has anab: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 ...
Get Learning SPARQL, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.