Summary

The SPARQL query language provides a means for querying information from an RDF data graph. The workhorse of the query is the graph pattern—a smaller graph including both resources and variables, that is matched against a data graph. The graph pattern specifies what information is to be fetched from the graph, and how the entities that match the variables are related to one another.

SPARQL queries can be used to fetch information (like SQL queries) or to transform a graph into a new form (like rules). Both forms use the same notion of graph pattern to specify the desired information.

Fundamental concepts

The following fundamental concepts were introduced in this chapter.

Graph pattern—a graph with wildcards, used to match against a ...

Get Semantic Web for the Working Ontologist, 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.