Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我对耶拿知之甚少。我应该如何创建一种方法来获取特定类型的资源?
public static String[] getResourcesOfType(String typeName) { ... }
SELECT * { ?x a <typeURI> }
其中“a”是 rdf:type 的简写形式。
或使用
model.listStatements(null, RDF.type, <ResourceForTheType>)