Synopses & Reviews
Get hands-on experience with SPARQL, the RDF query language. With this concise book, you will learn how to use the latest version of this W3C standard to retrieve and manipulate the increasing amount of public and private data available via SPARQL endpoints. Several open source and commercial tools already support SPARQL, and this introduction gets you started right away.
Learn how to write and run simple SPARQL 1.1 queries, then dive into the language's powerful features and capabilities for manipulating the data you retrieve. Learn what you need to know to add to, update, and delete data in RDF datasets, and give web applications access to this data.
- Updated to reflect SPARQL 1.1 Recommendation version of specifications
- Understand SPARQLs connection with RDF, the semantic web, and related specifications
- Query and combine data from local and remote sources
- Copy, convert, and create new RDF data
- Learn how datatype metadata, standardized functions, and extension functions contribute to your queries
- New chapters cover SPARQL Query Results Formats, Query Efficiency and Debugging, RDF Schema, OWL, and Inferencing.
- Includes a cookbook of SPARQL queries useful in a variety of situations
- Expanded Application Development chapter
Gain hands-on experience with SPARQL, the RDF query language thats 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, youll 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
About the Author
Bob DuCharme (http://www.snee.com/bob) is a solutions architect at TopQuadrant, a provider of software for modeling, developing, and deploying semantic web applications. He came to TopQuadrant from Innodata Isogen, where he did system and architecture analysis and design for a wide range of global publishing clients as well as cochairing the 2008 Linked Data Planet conference in New York City. Earlier in his career, he oversaw SGML and XML development at Moody's Investors Service and then moved on to LexisNexis, where he did data and systems architecture as they made the transition to XML-based systems.
In the XML.com newsletter, editor Kendall Clark once wrote “Does anyone write tech prose as clear as Bob?” Bob is the author of Manning Publications “XSLT Quickly,” Prentice Halls “XML: The Annotated Specification” and “SGML CD,” and McGraw Hills “Operating Systems Handbook.” He's written over 70 pieces for XML.com and has contributed to Dr. Dobbs Journal, IBM developerWorks, Nodalities, DevX, perl.com, XML Magazine, XML Journal, XML Developer, OReilly Books “XML Hacks,” and Prentice Halls “XML Handbook.” Bob received his BA in Religion fromColumbia University and his Masters in Computer Science from New York University. He lives in Charlottesville, Virginia, with his wife Jennifer and their daughters Madeline and Alice.
Table of Contents
Preface; Why Learn SPARQL?; Organization of This Book; Conventions Used in This Book; Documentation Conventions; Using Code Examples; Safari® Books Online; How to Contact Us; Acknowledgments; Chapter 1: Jumping Right In: Some Data and Some Queries; 1.1 The Data to Query; 1.2 Querying the Data; 1.3 More Realistic Data and Matching on Multiple Triples; 1.4 Searching for Strings; 1.5 What Could Go Wrong?; 1.6 Querying a Public Data Source; 1.7 Summary; Chapter 2: The Semantic Web, RDF, and Linked Data (and SPARQL); 2.1 What Exactly Is the "Semantic Web"?; 2.2 URLs, URIs, IRIs, and Namespaces; 2.3 The Resource Description Framework (RDF); 2.4 Reusing and Creating Vocabularies: RDF Schema and OWL; 2.5 Linked Data; 2.6 SPARQL's Past, Present, and Future; 2.7 The SPARQL Specifications; 2.8 Summary; Chapter 3: SPARQL Queries: A Deeper Dive; 3.1 More Readable Query Results; 3.2 Data That Might Not Be There; 3.3 Finding Data That Doesn't Meet Certain Conditions; 3.4 Searching Further in the Data; 3.5 Searching with Blank Nodes; 3.6 Eliminating Redundant Output; 3.7 Combining Different Search Conditions; 3.8 FILTERing Data Based on Conditions; 3.9 Retrieving a Specific Number of Results; 3.10 Querying Named Graphs; 3.11 Queries in Your Queries; 3.12 Combining Values and Assigning Values to Variables; 3.13 Creating Tables of Values in Your Queries; 3.14 Sorting, Aggregating, Finding the Biggest and Smallest and...; 3.15 Querying a Remote SPARQL Service; 3.16 Federated Queries: Searching Multiple Datasets with One Query; 3.17 Summary; Chapter 4: Copying, Creating, and Converting Data (and Finding Bad Data); 4.1 Query Forms: SELECT, DESCRIBE, ASK, and CONSTRUCT; 4.2 Copying Data; 4.3 Creating New Data; 4.4 Converting Data; 4.5 Finding Bad Data; 4.6 Asking for a Description of a Resource; 4.7 Summary; Chapter 5: Datatypes and Functions; 5.1 Datatypes and Queries; 5.2 Functions; 5.3 Extension Functions; 5.4 Summary; Chapter 6: Updating Data with SPARQL; 6.1 Getting Started with Fuseki; 6.2 Adding Data to a Dataset; 6.3 Deleting Data; 6.4 Changing Existing Data; 6.5 Named Graphs; 6.6 Summary; Chapter 7: Query Efficiency and Debugging; 7.1 Efficiency Inside the WHERE Clause; 7.2 Efficiency Outside the WHERE Clause; 7.3 Debugging; 7.4 Summary; Chapter 8: Working with SPARQL Query Result Formats; 8.1 SPARQL Query Results XML Format; 8.2 SPARQL Query Results JSON Format; 8.3 SPARQL Query Results CSV and TSV Formats; 8.4 Summary; Chapter 9: RDF Schema, OWL, and Inferencing; 9.1 What Is Inferencing?; 9.2 SPARQL and RDFS Inferencing; 9.3 SPARQL and OWL Inferencing; 9.4 Using SPARQL to Do Your Inferencing; 9.5 Querying Schemas; 9.6 Summary; Chapter 10: Building Applications with SPARQL; 10.1 Applications and Triples; 10.2 SPARQL and Web Application Development; 10.3 SPARQL Processors; 10.4 SPARQL and HTTP; 10.5 Summary; Chapter 11: A SPARQL Cookbook; 11.1 Themes and Variations; 11.2 Exploring the Data; 11.3 Creating and Updating Data; 11.4 Summary; Glossary; Colophon;