本文整理匯總了Java中com.hp.hpl.jena.graph.Triple.ANY屬性的典型用法代碼示例。如果您正苦於以下問題:Java Triple.ANY屬性的具體用法?Java Triple.ANY怎麽用?Java Triple.ANY使用的例子?那麽, 這裏精選的屬性代碼示例或許可以為您提供幫助。您也可以進一步了解該屬性所在類com.hp.hpl.jena.graph.Triple
的用法示例。
在下文中一共展示了Triple.ANY屬性的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: getInventoryModel
public Model getInventoryModel(int limit) {
log.info("Listing entity set: " + entityMaker);
Model result = ModelFactory.createDefaultModel();
result.setNsPrefixes(mapping.getPrefixes());
FindQuery query = new FindQuery(Triple.ANY, inventory, limit,
new ExecutionContext(mapping.getContext(), null, null, null));
Iterator<Triple> it = TripleQueryIter.create(query.iterator());
while (it.hasNext()) {
result.getGraph().add(it.next());
}
return result;
}
示例2: classMapInventory
public Model classMapInventory(String classMapName, int limitPerClassMap) {
log.info("Listing class map: " + classMapName);
List<TripleRelation> inventoryBridges = classMapInventoryBridges.get(classMapName);
if (inventoryBridges == null) {
return null;
}
Model result = ModelFactory.createDefaultModel();
result.setNsPrefixes(mapping.getPrefixMapping());
FindQuery query = new FindQuery(Triple.ANY, inventoryBridges, limitPerClassMap, null);
result.getGraph().getBulkUpdateHandler().add(TripleQueryIter.create(query.iterator()));
return result;
}