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 ofGraphCodify/FoafOntology/Person. - The
foafontology is included using theontologystatement. - The core refernece ontologies for
rdf,rfds, andxsdare included. - The codifier accepts
FirstName,LastName, andAgefields 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);