我正在寻找一种用于调用匿名节点的乌龟语法,该匿名节点调用另一个匿名节点.
例如,我想重现这段代码:
:Instance0 a Class0;
:property0 :Instance1.
:Instance1 a Class1;
:property1 :Instance2.
:Instance2 a Class2;
:property2 :Instance1.
Run Code Online (Sandbox Code Playgroud)
有类似的东西:
:Instance0 a Class0;
:property0 [
a Class1;
:property1 [
a Class2;
:property2 [
## The syntax to call the parent, the instance of :Class1
];
];
].
Run Code Online (Sandbox Code Playgroud)
为此目的有没有龟语法?
我想创建一个定义rdf:Seq作为rdfs:range对象的属性:
eg:myProperty a rdf:Property;
rdfs:range rdf:Seq;
.
Run Code Online (Sandbox Code Playgroud)
我正在寻找一种方法来定义存储在中的元素的类型rdf:Seq.例如,我不希望这样:
eg:typeOfElement a rdf:Class;
.
eg:somethingElse a rdf:Class;
.
[] eg:myProperty [
a rdf:Seq;
rdf:_1 [a eg:typeOfElement]; # It's the type I want
rdf:_2 [a eg:typeOfElement]; # It's the type I want
rdf:_3 [a eg:somethingElse]; # I don't want this type
];
.
Run Code Online (Sandbox Code Playgroud)
有没有办法定义rdf:Seq元素只是eg:typeOfElement我定义时的类型eg:myProperty?
(如果需要,我可以使用猫头鹰.)
为了指定rdfs:Class并组织本体,我想使用 SKOS。目前我使用 RDFS 属性定义我的类:
:MyClass a rdfs:Class;
rdfs:label "my label";
rdfs:comment "this is a comment";
.
Run Code Online (Sandbox Code Playgroud)
我可以定义:MyClass为skos:Concept具有 SKOS 属性和 RDFS 属性吗?我想要这样的东西:
:MyClass a rdfs:Class;
rdfs:subClassOf skos:Concept;
rdfs:label "my label";
skos:prefLabel "my label";
rdfs:comment "this is a comment";
skos:notes "this is a comment";
.
Run Code Online (Sandbox Code Playgroud)
我读到一些 RDFS 属性可以映射到 SKOS 属性。那么,大家对这个语法感兴趣吗?RDFS 和 SKOS 在这里给出相同的冗余信息?