简体   繁体   English

命名法:RDF图中的参数化类

[英]Nomenclature: parametrized classes in RDF graphs

I have a doubt regarding terminology. 我对术语有疑问。 I found that some classes can be parameterized in the sense that they represent classes that have meaning when they are applied to some parameter. 我发现某些类可以参数化,因为它们表示在应用于某个参数时具有意义的类。

For example, the classes "village of China" and "Village of Netherlands" can be both found in Wikidata knowledge graph. 例如,可以在维基数据知识图中找到“中国村”和“荷兰村”类。 They are obvius real classes in the sense that they are instanceable concepts. 它们是obvius真正的类,因为它们是可实现的概念。 However, it looks like they can fit in a template "Village of X" and they could be subclasses of "village". 但是,看起来它们可以放在模板“X村”中,它们可以是“村庄”的子类。

Is there a correct terminology to refer to all these kind of parameterized classes? 是否有正确的术语来引用所有这些参数化类?

In functional programming languages there is a notion of higher kinded types, which are types that can have parameters [1]. 在函数式编程语言中,存在更高级的kinded类型的概念,这些类型可以具有参数[1]。

For example, "List[_]" is a type that depends on another type to be a plain type, there are "List[Int]" (list of ints) or List[String] (list of strings). 例如,“List [_]”是依赖于另一种类型为普通类型的类型,有“List [Int]”(int列表)或List [String](字符串列表)。 But I don't know if that notion has been studied in the field of description logics or knowledge graphs. 但我不知道这个概念是否已经在描述逻辑或知识图领域进行过研究。

[1] https://en.wikipedia.org/wiki/Kind_(type_theory) [1] https://en.wikipedia.org/wiki/Kind_(type_theory)

There is no specific notion of "parametrized types" in OWL, but what you're looking for would typically be modeled using a property restriction : you define a subclass by specifying a restriction on its individual's property values. 在OWL中没有“参数化类型”的具体概念,但您正在寻找的内容通常使用属性限制建模:您通过指定对其个体属性值的限制来定义子类。 For example, the class "villages of China" would be something like this (using OWL Manchester syntax): 例如,“中国的村庄”类就是这样的(使用OWL曼彻斯特语法):

Class: VillageInChina
   EquivalentTo: Village and hasCountry value China

Which reads as: "The class VillageInChina is equivalent to the class of all things that are a Village and which have a hasCountry property with value China ". 这是写着:“类VillageInChina相当于类,它们是一切事物Village hasCountry与值属性China ”。

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

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