A graph is a set of RDF triples. A Callimachus graph document is an RDF document encoded as a Turtle file.


Graph documents are used to add RDF data to the Callimachus RDF database.

Creating a graph document

To create a graph document, select Graph document using the create menu from the folder you wish to store the graph document in. You will be presented with the following initial Turtle code:

@prefix xsd: <> .
@prefix rdf: <> .
@prefix rdfs: <> .
@prefix owl: <> .
@prefix rif: <> .
@prefix skos: <> .
@prefix skosxl: <> .
@prefix cc: <> .
@prefix wdr: <> .
@prefix void: <> .
@prefix msg: <> .
@prefix calli: <> .
@prefix : <#> .

Sample Turtle file

Here is a sample turtle file:

@prefix rdf: <> .
@prefix dc: <> .
@prefix ex: <> .

  dc:title "RDF/XML Syntax Specification (Revised)" ;
  ex:editor [
    ex:fullname "Dave Beckett";
    ex:homePage <>
  ] .

Turtle syntax

Angle brackets are used to identify relative URLs, while colons outside of angle brackets identify a compact URI or a CURIE. The prefix before the colon is mapped to a namespace at the top and prepended to the remaining part after the colon. A comma separates multiple objects; a semicolon separates multiple relationships to to same subject; and a period marks the end of a subject.

For more information about the Turtle syntax see Turtle syntax for RDF.