我对耶拿知之甚少。我应该如何创建一个方法来获取特定类型的资源?
public static String[] getResourcesOfType(String typeName)
{
...
}
最佳答案
SELECT * { ?x a <typeURI> }
其中“a”是 rdf:type 的缩写形式。
或者使用
model.listStatements(null, RDF.type, <ResourceForTheType>)
关于rdf - 如何使用 Jena 创建获取某种类型资源的方法?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14949945/