3. Implementing the CGIF

Integration of data into the Culture Knowledge Graph can be as easy as adding a bit of extra markup to a website using either a basic templating engine (which is provided by most web content management systems like MediaWiki, WordPress, TYPO3, or Drupal), a generic SEO plugin, or adding RDF to your existing data. There are two known ways to implement CGIF:

  • Adding JSON-LD statements to the <head> of your pages. If you provide us with a starting URL, we can scrape the embedded metadata periodically. Adding markup to a list view is sufficient, but if you also want to enhance how machine-readable and SEO-ready your content is, you may also want to add the markup to individual resource pages. If your online database does not feature a list view, adding markup to the resource view and sending us a beacon text file listing all URLs is the best option.
  • You may also compile the data as dedicated RDF files and provide us with a data dump.

We also invite contributors to come up with, develop, and demonstrate ways to produce CGIF data from existing data sets.

Plugins and formats

Instead of writing the markup directly into a template, you could also use existing SEO plugins for your content management system to add the markup. The markup shown in the CGIF specification uses the JSON-LD format, but you may also use RDFa Lite instead. If you are producing dedicated text files, you may choose any RDF-compatible format including JSON-LD, Turtle, RDF/XML, or N-Triples.