134 if (
dataSource ==
null)
return Collections.emptyList();
136 cache =
new ArrayList<Property>();
138 StmtIterator it = result.listStatements(
null, RDF.type,
type);
139 while (it.hasNext()) {
140 Resource r = it.next().getSubject();
141 if (!r.isURIResource())
continue;
142 cache.add(r.as(Property.class));
Model listPropertyValues(String resourceIRI, Property property, boolean isInverse)
Returns a subgraph of the data source.
DataSource dataSource
Definition: VocabularyStore.java:32
Collection< Property > cache
Definition: VocabularyStore.java:129