首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >ROWLEX:具有相同属性名称的类不起作用:ROWLEX

ROWLEX:具有相同属性名称的类不起作用:ROWLEX
EN

Stack Overflow用户
提问于 2010-02-05 03:08:30
回答 1查看 116关注 0票数 1

我有一些复杂的类,其中许多都有一个类作为属性。我尝试使用ROWLEX属性标记标记类文件,但当多个类具有相同的属性名称时,Rowlex提取器会给出一个错误。

我制作了一组非常简单的类Leg,Animal,Table。桌子和动物都有腿,这是一个腿的数组...

错误消息是:http://nc3a.nato.int/10/16/ZooOntology#Legs被分配给多个类型。

导入NC3A.SI.Rowlex

http://nc3a.nato.int/10/16/ZooOntology")>

命名空间Namespace1

代码语言:javascript
复制
<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

结束命名空间

EN

回答 1

Stack Overflow用户

发布于 2010-02-05 17:58:48

ROWLEX2.1解决了这个问题,你可以从http://rowlex.nc3a.nato.int下载它。有关更详细的解释和示例代码,请查看this similar StackOverflow question

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/2202432

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档