ROWLEX:具有相同属性名称的类不起作用:ROWLEX
我有一些复杂的类,其中许多类都有一个类作为属性。我尝试使用 ROWLEX 属性标记来标记类文件,但是当多个类具有相同的属性名称时,Rowlex 提取器会给出错误。
我制作了一组非常简单的类 Leg、Animal、Table。两个表和动物有腿,这是腿的数组......
错误消息是:http: //nc3a.nato.int/10/16/ZooOntology#Legs 被分配给多个类型。
导入 NC3A.SI.Rowlex
http://nc3a.nato.int/10/16/ZooOntology")>
命名空间 命名空间1
<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
结束命名空间
I have some complex classes which many of then have a class as a property. I have tried to mark up the class file with th ROWLEX attribute markers but when more than one class has the same property name, the Rowlex extractor gives an error.
I have produced a very simple set of classes Leg, Animal, Table. Both Table & Animal have Legs which is an Array of Leg....
The error message is:http://nc3a.nato.int/10/16/ZooOntology#Legs is assigned to more than one type.
Imports NC3A.SI.Rowlex
http://nc3a.nato.int/10/16/ZooOntology")>
Namespace 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
End Namespace
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
ROWLEX2.1解决了这个问题,您可以从http://rowlex.nc3a.nato.int。有关更详细的解释和示例代码,请查看 这个类似的 StackOverflow 问题。
ROWLEX2.1 solves the issue, you may download it from http://rowlex.nc3a.nato.int. For more detailed explanation and sample code, please look at this similar StackOverflow question.