Gain hands-on experience with SPARQL, the RDF query language that’s bringing new possibilities to semantic web, linked data, and big data projects. This updated and expanded edition shows you how to use SPARQL 1.1 with a variety of tools to retrieve, manipulate, and federate data from the public web as well as from private sources.
Author Bob DuCharme has you writing simple queries right away before providing background on how SPARQL fits into RDF technologies. Using short examples that you can run yourself with open source software, you’ll learn how to update, add to, and delete data in RDF datasets.
- Get the big picture on RDF, linked data, and the semantic web
- Use SPARQL to find bad data and create new data from existing data
- Use datatype metadata and functions in your queries
- Learn techniques and tools to help your queries run more efficiently
- Use RDF Schemas and OWL ontologies to extend the power of your queries
- Discover the roles that SPARQL can play in your applications
Table of contents
- 1. Jumping Right In: Some Data and Some Queries
2. The Semantic Web, RDF, and Linked
Data (and SPARQL)
- What Exactly Is the “Semantic Web”?
- URLs, URIs, IRIs, and Namespaces
- The Resource Description Framework (RDF)
- Reusing and Creating Vocabularies: RDF Schema and OWL
- Linked Data
- SPARQL’s Past, Present, and Future
- The SPARQL Specifications
3. SPARQL Queries: A Deeper Dive
- More Readable Query Results
- Data That Might Not Be There
- Finding Data That Doesn’t Meet Certain Conditions
- Searching Further in the Data
- Searching with Blank Nodes
- Eliminating Redundant Output
- Combining Different Search Conditions
- FILTERing Data Based on Conditions
- Retrieving a Specific Number of Results
- Querying Named Graphs
- Queries in Your Queries
- Combining Values and Assigning Values to Variables
- Creating Tables of Values in Your Queries
- Sorting, Aggregating, Finding the Biggest and Smallest and...
- Querying a Remote SPARQL Service
- Federated Queries: Searching Multiple Datasets with One Query
- 4. Copying, Creating, and Converting Data (and Finding Bad Data)
5. Datatypes and Functions
- Datatypes and Queries
- Extension Functions
- 6. Updating Data with SPARQL
- 7. Query Efficiency and Debugging
- 8. Working with SPARQL Query Result Formats
- 9. RDF Schema, OWL, and Inferencing
10. Building Applications with SPARQL
- Applications and Triples
- SPARQL and Web Application Development
- SPARQL Processors
- SPARQL and HTTP
11. A SPARQL Cookbook
- Themes and Variations
Exploring the Data
- How Do I Look at All the Data at Once?
- What Classes Are Declared?
- What Properties Are Declared?
- Which Classes Have Instances?
- What Properties Are Used?
- Which Classes Use a Particular Property?
- How Much Was a Given Property Used?
- How Much Was a Given Class Used?
- A Given Class Has Lots of Instances. What Are These Things?
- What Data Is Stored About a Class’s Instances?
- What Values Does a Given Property Have?
- A Certain Property’s Values Are Resources. What Data Do We Have About Them?
- How Do I Find Undeclared Properties?
- How Do I Treat a URI as a String?
- Which Data or Property Name Includes a Certain Substring?
- How Do I Convert a String to a URI?
- How Do I Query a Remote Endpoint?
- How Do I Retrieve Triples from a Remote Endpoint?
Creating and Updating Data
- How Do I Delete All the Data?
- How Do I Globally Replace a Property Value?
- How Do I Replace One Property with Another?
- How Do I Change the Datatype of a Certain Property’s Values?
- How Do I Turn Resources into Instances of Declared Classes?
- About the Author
- Title: Learning SPARQL, 2nd Edition
- Release date: July 2013
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9781449371432
You might also like
Hands-On Machine Learning with Scikit-Learn, Keras, and TensorFlow, 2nd Edition
Through a series of recent breakthroughs, deep learning has boosted the entire field of machine learning. …
The current Web is mostly a collection of linked documents useful for human consumption. The evolving …
Designing Data-Intensive Applications
Data is at the center of many challenges in system design today. Difficult issues need to …
Software Engineering at Google
Today, software engineers need to know not only how to program effectively but also how to …