我有一些复杂的类,其中许多都有一个类作为属性。我尝试使用ROWLEX属性标记标记类文件,但当多个类具有相同的属性名称时,Rowlex提取器会给出一个错误。
我制作了一组非常简单的类Leg,Animal,Table。桌子和动物都有腿,这是一个腿的数组...
错误消息是:http://nc3a.nato.int/10/16/ZooOntology#Legs被分配给多个类型。
导入NC3A.SI.Rowlex
http://nc3a.nato.int/10/16/ZooOntology")>
命名空间Namespace1
<RdfSerializable(Ontology:="http://nc3a.nato.int/10/16/ZooOntology", HasResourceUri:=False)> _
Public Class Leg
End Class
<RdfSerializable(Ontology:="http://nc3a.nato.int/10/16/ZooOntology", HasResourceUri:=False)> _
Public Class House
<RdfProperty(False)> _
Public readonly Property Legs() As Leg()
Get
Return Nothing
End Get
End Property
End Class
<RdfSerializable(Ontology:="http://nc3a.nato.int/10/16/ZooOntology", HasResourceUri:=False)> _
Public Class Table
<RdfProperty(False)> _
Public ReadOnly Property Legs() As Leg()
Get
Return Nothing
End Get
End Property
End Class结束命名空间
发布于 2010-02-05 17:58:48
ROWLEX2.1解决了这个问题,你可以从http://rowlex.nc3a.nato.int下载它。有关更详细的解释和示例代码,请查看this similar StackOverflow question。
https://stackoverflow.com/questions/2202432
复制相似问题