Previous topic  Top  Next topic  Print this Topic
 

Annotations for ObjectLogic Module

 

The ObjectLogic syntax has been extended to support the metadata for the module itself. You can use this feature to store annotations to the ontology.

The ontology annotations must  follow the directives directly. They begin with "@module {" and end with "}.". Similarly to the metadata for rules, queries and constraints, these annotations are stored as facts of the $metaatt/4 predicate with the module term as the first argument.

 

Example ObjectLogic ontology:

:- default prefix = "http://yourcompany.com/".

:- prefix dc = "http://purl.org/dc/elements/1.1/".

:- module ontology1.

 

@module {

  // adding Dublin core metadata to the module

  ontology1[dc#creator->"Martin Weindel", dc#date -> "2010-03-04T13:35:30"^^_dateTime],

  myobject[foo->bar]

}.

 

... // rest of ontology