ArticleslgStudy

science

GRDDL

GRDDL is a science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand GRDDL rather than just read about it. In short: GRDDL (pronounced "griddle") is a markup format for Gleaning Resource Descriptions from Dialects of Languages. It is a W3C Recommendation, and enables users to obtain RDF triples out of XML documents, including XHTML.

Key takeaways

  • GRDDL belongs to science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect GRDDL to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of GRDDL from memory before moving on to harder problems.

Reference excerpt

GRDDL (pronounced "griddle") is a markup format for Gleaning Resource Descriptions from Dialects of Languages. It is a W3C Recommendation, and enables users to obtain RDF triples out of XML documents, including XHTML. The GRDDL specification shows examples using XSLT, however it was intended to be abstract enough to allow for other implementations as well. It became a Recommendation on September 11, 2007.

Mechanism

XHTML and transformations A document specifies associated transformations, using one of a number of ways. For instance, an XHTML document may contain the following markup:

Document consumers are informed that there are GRDDL transformations available in this page, by including the following URI in the profile attribute of the head element:

http://www.w3.org/2003/g/data-view

The available transformations are revealed through one or more link elements:

This code is valid for XHTML 1.x only. The profile attribute has been dropped in HTML5, including its XML serialisation.

Microformats and profile transformations If an XHTML page contains Microformats, there is usually a specific profile. For instance, a document with hcard information should have:

When fetched http://www.w3.org/2006/03/hcard has:

and

The GRDDL aware agent can then use that profileTransformation to extract all hcard data from pages that reference that link.

XML and transformations In a similar fashion to XHTML, GRDDL transformations can be attached to XML documents.

Explicitly linking to transformations GRDDL specifies a grddl:transform attribute that can be appended to the root element, which can be used to link to one or more transformations.

This allows the GRDDL transformation employed to be specified on a per-resource basis.

XML namespace transformations Just like a profileTransformation, an XML namespace can have a transformation associated with it. This allows entire XML dialects (for instance, KML or Atom) to provide meaningful RDF. An XML document simply points to a namespace

and when fetched, http://example.com/1.0/ points to a namespaceTransformation. This also allows very large amounts of the existing XML data in the wild to become RDF/XML with minimal effort from the namespace author.

Output Once a document has been transformed, there is an RDF representation of that data. This output is generally put into a database and queried via SPARQL.

Implementations

GRDDL consumers (also known as GRDDL aware agents) OpenLink Virtuoso through its Sponger cartridge system XML_GRDDL, a semi compliant PHP 5 library See other implementations

See also Microformats – a simplified approach to semantically annotate data in websites RDFa – a W3C Recommendation for annotating websites with RDF data

References

External links W3C GRDDL Specification W3C GRDDL Working Group W3C GRDDL Primer W3C GRDDL Use-Cases

Worked examples

Example 1 — a first encounter with GRDDL

Start with the simplest possible case. Write down what GRDDL claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to GRDDL before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about GRDDL ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of GRDDL

In research
GRDDL appears in science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses GRDDL in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
GRDDL is common in secondary-school and first-year university syllabi. It links to neighbouring topics Semantic Web, World Wide Web Consortium standards, XML-based standards, so understanding it makes those chapters shorter.
In everyday life
Look for GRDDL outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “GRDDL” →

How to study GRDDL in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what GRDDL means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain GRDDL out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is GRDDL in simple terms?

GRDDL (pronounced "griddle") is a markup format for Gleaning Resource Descriptions from Dialects of Languages. It is a W3C Recommendation, and enables users to obtain RDF triples out of XML documents, including XHTML.

Why does GRDDL matter?

Because it connects several science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study GRDDL?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on GRDDL.

Tags

  • Semantic Web
  • World Wide Web Consortium standards
  • XML-based standards

Keep exploring