Who's a What? Using RDF Hierarchies in Jena

Earlier we created a hierarchy of terms to use for our metadata. We used the word vocabulary to refer to this collection of terms, but it is often called an ontology if it defines relationships between the terms. According to the Wikipedia definition, an ontology (in the computer science sense) is a "data structure containing all the relevant entities and their relationships and rules (theorems, regulations) within a domain."

In Jena, there are built-in helper classes for working with commonly used ontologies . The RDF schema is one of these. Jena has a helper class called RDFS, which has a static ...

Get Wicked Cool Java 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.