AdHoc.grm

// FILE. . . . . /home/hak/ilt/src/ilog/rif/versions/bld-v1.0/sources/AdHoc.grm
// EDIT BY . . . Hassan Ait-Kaci
// ON MACHINE. . 4j4zn71
// STARTED ON. . Tue Oct 21 16:19:11 2008

// Last modified on Wed Oct 29 12:48:20 2008 by hak

////////////////////////////////////////////////////////////////////////

////////////////////////////////////////////////////////////////////////
// Temporary ad hoc rules:
////////////////////////////////////////////////////////////////////////



The following rules are here because they depart in some way with the current specification. They are therefore subject to change. This is in order to make some progress while such changes are being discussed in the RIF WG.



Name
  : IDENTIFIER
  ;

Iri
  : STRING
  ;



According to the specifications:
An IRICONST is the special case of a Const with the symbol space rif:iri, again permitting the shortcut forms defined in [RIF-DTB]. One such specialization is '"' IRI '"^^' 'rif:iri' from the Const production, where IRI is a sequence of Unicode characters that forms an internationalized resource identifier as defined by [RFC-3987].
However, this definition complicates tokenizing as it becomes impossible to distinguish the special case from the general one. Therefore, for now and until this is fixed somehow, an IriConst is just a fully qualified constant.


IriConst
  : FullyQualifiedConstant
  ;



If bks is a prefix that expands into http://example.com/books# then bks:LeRif is an abbreviation for "http://example.com/books#LeRif"^^rif:iri.


Curie
  : IDENTIFIER
  | COLON IDENTIFIER
  | IDENTIFIER COLON IDENTIFIER
  ;

////////////////////////////////////////////////////////////////////////

// Curie
//   : PName_LN
//   | PName_NS
//   ;

// PName_LN
//   : PName_NS PN_LOCAL
//   ;

// PName_NS
//   : PN_Prefix_opt COLON
//   ;

// PN_Prefix_opt
//   : // empty
//   | PN_PREFIX
//   ;

////////////////////////////////////////////////////////////////////////


This file was generated on Mon Nov 17 15:35:41 PST 2008 from file AdHoc.grm
by the ilog.language.tools.Hilite Java tool written by Hassan Aït-Kaci