Complete Definition Example

Below is a complete example of a definition block for a gfear script.

The block defines a new codifier with the following information:

  • The codifier is called PersonCodifier, in the category of GraphCodify/FoafOntology/Person.
  • The foaf ontology is included using the ontology statement.
  • The core refernece ontologies for rdf, rfds, and xsd are included.
  • The codifier accepts FirstName, LastName, and Age fields from the dataset.
define codifier("PersonCodifier", "GraphCodify/FoafOntology/Person");
ontology("http://xmlns.com/foaf/0.1/", "foaf");

include  rdf, rdfs, xsd, owl, xml;

accepts(FirstName, LastName, Age);