简体   繁体   English

将 XML:literal 值输入并保存到 protege 中

[英]Entering and saving XML:literal value into protege

I have been trying to assign data type to instance using Data property called asGML ( the instance is an object of the type of domain class of the data property ) and the range of the property is data type rdf:XMLLiteral .我一直在尝试使用名为 asGML 的 Data 属性将数据类型分配给实例(该实例是数据属性的域类类型的对象),并且该属性的范围是数据类型rdf:XMLLiteral ( please see attached photo named Dataproperty to check the structure of the data property). (请参阅附加的名为 Dataproperty 的照片以检查 data 属性的结构)。

Also, I created an instance called 25484-105 (please check the attached Instance photo ) from the type of AbstractGeometry class, which is the domain of the data property asGML, and I need to assign the range of the property which is rdf:MLLiteral , the value is :另外,我从 AbstractGeometry 类的类型创建了一个名为 25484-105 的实例(请检查附加的实例照片),这是数据属性 asGML 的域,我需要分配属性的范围,即rdf:MLLiteral ,值为:

<gml:MultiPolygon><gml:polygonMember><gml:Polygon><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>322508.3974999999,183565.0044 322506.8969,183552.0980999999 322509.7991,183506.8011 322527.1961999999,183509.9001999999 322542.4001,183503.7018999999 322553.0031999999,183496.8038999999 322573.3025999999,183471.3011999999 322573.8962,183470.3015 322574.8032,183464.0033 322575.1989,183458.304899999, 322574.3991999999164542.6994999999</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></gml:polygonMember></gml:MultiPolygon> <GML:的MultiPolygon> <GML:polygonMember> <GML:多边形> <GML:outerBoundaryIs> <GML:线性环> <GML:坐标> 322508.3974999999,183565.0044 322506.8969,183552.0980999999 322509.7991,183506.8011 322527.1961999999,183509.9001999999 322542.4001,183503.7018999999 322553.0031999999,183496.8038999999 322573.3025999999, 183471.3011999999 322573.8962,183470.3015 322574.8032,183464.0033 322575.1989,183458.304899999,322574.3991999999164542.6994999999 </ GML:坐标> </ GML:线性环> </ GML:outerBoundaryIs> </ GML:多边形> </ GML:polygonMember> </ GML:的MultiPolygon>

The previous value is copied form the Ordnance survey linked data resource as it is and its type is XMLLiteral .先前的值是从军械调查链接的数据资源中按原样复制的,其类型为XMLLiteral When enter image description here ver I assign this value to the created instance, I receive an error ( please refer to attached photo 1 and 2 to see the errors) when I try to save the ontology.当我在此处输入图像描述并将此值分配给创建的实例时,当我尝试保存本体时收到错误(请参阅附图 1 和 2 以查看错误)。

This XML snippet is not self contained because there is no namespace declaration for "gml".这个 XML 片段不是自包含的,因为“gml”没有命名空间声明。 It needs to appear on the root element, as it is used there for the first time.它需要出现在根元素上,因为它是第一次在那里使用。

If the declaration for gml exists in the original file but is attached to another node, that's a bug in the original file and should be reported to the authors;如果 gml 的声明存在于原始文件中,但附加到另一个节点,则这是原始文件中的错误,应报告给作者; if necessary, the declaration can be repeated in the literal, but it must appear there.如有必要,声明可以在文字中重复,但它必须出现在那里。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM