Chapter 4. Just Enough RDF
Now that you have an understanding of semantics and of how you might build a simple triplestore on your preferred platform, we’re going to introduce you to the world of data formats and semantic standards. At this point, you may have a few unanswered questions after reading the previous chapter:
How do I know which predicates (verbs) to use?
How do I know whether a value in my data refers to a floating-point number or a string representing the number?
Why is “San Francisco, CA” represented as
San_Francisco_Californiaand not something else?How will other people know what representations I used?
Are comma-separated triples really the best way to store and share data?
These questions are concerned with maintaining and sharing a large set of semantic data. In this chapter, we’ll introduce the following few concepts to help solve these problems:
URIs and strong keys, so you can be sure you’re talking about the same thing as someone else
RDF serializations, which have parsers for every popular language and are the standard way to represent and share semantic data
The SPARQL language, the standard way of querying semantic data
The use of semantic web formats goes far beyond what we can cover here, so consider these concepts as the highlights—the pieces you really need in order to get started building semantic applications.
What Is RDF?
Hopefully, by this point you’ve seen that structuring data into graphs is easy, and a good idea as well. But now that you’ve got your data ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access