此 SPARQL 查询中的星号意味着什么?
SELECT ?uri ?type
WHERE{
?uri a ?type.
?type rdfs:subClassOf* example:Device.
}
Run Code Online (Sandbox Code Playgroud)
它的意思是“子类的子类”吗?我可以将它与其他谓词一起使用吗?
我找到了这个查询,但我不知道它做了什么.我不知道"^ a"是什么意思,特别是.
select distinct ?type where {
dbpedia:Stephen_King a ?type .
filter not exists {
?subtype ^a dbpedia:Stephen_King ;
rdfs:subClassOf ?type .
filter ( ?subtype != ?type )
}
}
Run Code Online (Sandbox Code Playgroud)