4.dos Mapping about RIF-FLD Demonstration Syntax into the XML Sentence structure

4.dos Mapping about RIF-FLD Demonstration Syntax into the XML Sentence structure

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 circular-stumbling out-of an enthusiastic admissible document during the a great dialect, D, is actually a great semantics-sustaining mapping to a file in almost any words L accompanied by a good semantics-retaining mapping in the L-file back to an admissible D-file. While semantically comparable, the initial in addition to bullet-trigger D-files doesn’t have to be identical.

4.step 1 XML towards RIF-FLD Language

RIF-FLD uses [XML1.0] for the XML syntax. This new XML serialization to own RIF-FLD are alternating otherwise totally striped [ANF01]. A totally striped serialization views XML data files because items and you can divides the XML tags into the classification descriptors, named style of labels, and you can possessions descriptors, called part tags [TRT03]. I follow the lifestyle of using capitalized labels to possess style of tags and you may lowercase brands getting character labels.

The all-uppercase classes in https://datingranking.net/ashley-madison-review/ 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 as well as non-terminals and symbols (such as Exists or =) become XML elements with optional attributes, as shown below.

For capability of resource, the first algorithms come 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 Transfer directive and an attribute for the Dialect directive, there are none for the Legs and Prefix directives: they are handled as discussed in Section Mapping from the RIF-FLD Presentation Syntax to the XML Syntax.

Title out-of a great prefix isn’t of this an XML ability, since it is addressed thru preprocessing since discussed during the Section Mapping of Low-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 2007-11-23T-.

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 example shows an XML serialization on the formulas when you look at the Analogy step 3. To own best readability, we once again utilize the shortcut sentence structure laid out 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.

Related Articles

You ought to big date, affect anyone, show her or him brand new flexibility of one’s issues

You ought to big date, affect anyone, show her or him brand new flexibility of one's issues Disadvantages out-of Direct...
Read more

Bir cevap yazın

E-posta hesabınız yayımlanmayacak. Gerekli alanlar * ile işaretlenmişlerdir

X