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
foaf
ontology is included using theontology
statement. - The core refernece ontologies for
rdf
,rfds
, andxsd
are included. - The codifier accepts
FirstName
,LastName
, andAge
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);