# Introduction to RDF & SPARQL on LINDAS Ideas for storyline: * Start with a municipality to have a look at, pick one from the query below * Understand the basic structure of RDF: * like "key-value" (think JSON) but with an identifier for each "document". The document would be the sum of all key-values attached to it * With the identifier for this sum of all key-values, we can link to other "documents" or as we call it in RDF: resources. * The basic RDF model is very simple, see https://linked-data-training.zazuko.com/LD-Basics/index.html#24 * So subject and predicate are always an IRI ("link"), while the object is either pointing to another thing, then it's an IRI; or it's a "literal", like a string. The literal can be a "typed literal", like an integer, a double, a date etc. Like this we can have "real" datatypes. * Understand the basic of SPARQL querying - We build more or less complex "forms" of the data - The SPARQL processor checks which of the data matches this "form" - And returns a list (a result set) of the records that match this form - This can be made more complex depending on the model of the data you try to query - Everything we want to let the processor figure out becomes a variable, starting with `?`. So `?municipality`is a variable with the name `municipality`. - * All existing municipalities right now: https://s.zazuko.com/3Dvhi * Count all municipalities, both existing and abolished: https://s.zazuko.com/21paU1