我想创建一个本体来描述社交网络中用户之间的交互,并且我想将其导入 GraphDB。我决定使用词汇表来利用其中已经定义的资源。我正在创建本体的架构,并将User类开发为foaf:Person的类型,每个用户都有一个字符串名称,所以我想使用foaf:name属性在用户类中添加这个关系。
我的问题是,由于这不是用户的实例,我应该在谓词foaf:name旁边的类描述中使用什么对象?
@prefix : <http://xmlns.com/swp/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/TR/rdf-schema#> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
# BASE INFORMATION
:User a foaf:Person ;
rdfs:label "User" ;
rdfs:comment "A person who has got an account" ;
foaf:name ??? ;
foaf:title :EducationalQualification .
编辑 我认为也许正确的对象可能是xsd:string:
:User a foaf:Person ;
rdfs:label "User" ;
rdfs:comment "A person who has got an account" ;
foaf:name xsd:string ;
foaf:title :EducationalQualification .