Note that if D requires the directive Dialect(D) as part of its syntax then this implies that any D-admissible document must have this directive. ?
A spherical-stumbling off a keen admissible file from inside the a dialect, D, is actually a good semantics-sustaining mapping so you can a file in every code L followed closely by a beneficial semantics-sustaining mapping regarding L-file to an enthusiastic admissible D-document. While you are semantically similar, the original therefore the bullet-trigger D-records need not be the same.
cuatro.step one XML with the RIF-FLD Code
RIF-FLD uses [XML1.0] because of its XML sentence structure. The fresh new XML serialization getting RIF-FLD is actually changing or totally striped [ANF01]. A fully striped serialization feedback XML data since the objects and divides all XML tags towards category descriptors, titled sorts of tags, and you can property descriptors, called role tags [TRT03]. We stick to the community of employing capitalized labels to have type labels and lowercase names to possess role labels.
The all-uppercase classes in the EBNF of the presentation syntax, such as Formula, become XML Schema groups in Appendix XML Schema for FLD. They are not visible in instance markup. The other classes sugardaddyforme eÅŸleÅŸme as well as non-terminals and symbols (such as Can be acquired or =) become XML elements with optional attributes, as shown below.
To possess capability of reference, the original algorithms are included ahead
The RIF serialization framework for the syntax of Section EBNF Grammar for the Presentation Syntax of RIF-FLD uses the following XML tags. While there is a RIF-FLD element tag for the Import directive and an attribute for the Dialect directive, there are none for the Feet and Prefix directives: they are handled as discussed in Section Mapping from the RIF-FLD Presentation Syntax to the XML Syntax.
The name away from an effective prefix isn’t of this an XML ability, since it is treated through preprocessing as the discussed inside Area Mapping of one’s Non-annotated RIF-FLD Code.
The id and meta elements, which are expansions of the IRIMETA element, can occur optionally as the initial children of any Class element.
The XML syntax for symbol spaces uses the type attribute associated with the XML element Const. For instance, a literal in the xs:dateTime datatype is represented as
The xml:lang attribute, as defined by 2.12 Language Identification of XML 1.0 or its successor specifications in the W3C recommendation track, is optionally used to identify the language for the presentation of the Const to the user. It is allowed only in association with constants of the type rdf:plainLiteral. A compliant implementation MUST ignore the xml:lang attribute if the type of the Const is not rdf:plainLiteral.
This situation shows a keen XML serialization on algorithms for the Analogy 3. Having best readability, i again use the shortcut sentence structure defined for the [RIF-DTB].
This section defines a normative mapping, ?fld, from the presentation syntax of Section EBNF Grammar for the Presentation Syntax of RIF-FLD to the XML syntax of RIF-FLD. The mapping is given via tables where each row specifies the mapping of a particular syntactic pattern in the presentation syntax. These patterns appear in the first column of the tables and the bold-italic symbols represent metavariables. The second column represents the corresponding XML patterns, which may contain applications of the mapping ?fld to these metavariables. When an expression ?fld(metavar) occurs in an XML pattern in the right column of a translation table, it should be understood as a recursive application of ?fld to the presentation syntax represented by the metavariable. The XML syntax result of such an application is substituted for the expression ?fld(metavar). A sequence of terms containing metavariables with subscripts is indicated by an ellipsis. A metavariable or a well-formed XML subelement is marked as optional by appending a bold-italic question mark, ?, to its right.
