Model web services provide an approach for implementing and facilitating the sharing of geographic models. The description and acquisition of inputs and outputs (IO) of geographic models is a key issue in constructing and using model web services. These approaches for describing and acquiring the data formats of the IO of geographic models can be classified into two categories, i.e., intermediate-data-format-based and native-data-format-based. Nonetheless, these two categories mainly consider the description of the IO of geographical models but relatively pay little attention to the acquisition. To address this issue, this paper proposes an approach for automatically parsing data formats of the IO utilizing the relationship between the IO and source codes. This proposed approach can utilize such a strict and coupling relationship and the expression form of the data formats in the source codes to retrospectively derive the IO data format and automatically generate data format documentation. The feasibility of the proposed approach has been verified via a geographical model coded in the FORTRAN language, which shows that it significantly improves the efficiency of writing data format specifications and promotes sharing geographic models as model web services.
翻译:示范网络服务是实施和推动分享地理模型的一种方法,地理模型的投入和产出的说明和获取是建立和使用示范网络服务的一个关键问题,这些描述和获取地理模型国际办公室数据格式的方法可以分为两类,即中间数据-格式和本地数据-格式,但这两个类别主要考虑了地理模型的国际办公室描述,但相对较少注意获取情况。为解决这一问题,本文件建议采用一种方法,利用国际办公室与源代码之间的关系,自动对国际办公室的数据格式进行解析,这种拟议方法可以使用这种严格和混合的关系以及源代码中数据格式的表达形式,追溯性地得出国际办公室数据格式,自动生成数据格式文件。拟议方法的可行性已经通过FORTRAN语言的地理模型加以验证,该模型表明它大大提高了编写数据格式规格的效率,并促进将地理模型作为示范网络服务加以共享。