List<SKOSChange> skosChanges = new ArrayList<SKOSChange>();
// entities:
List<SKOSEntityAssertion> entityAssertions = dataFactory.getSKOSEntityAssertions(allEntities);
for (SKOSEntityAssertion ass : entityAssertions) {
skosChanges.add(new AddAssertion(dataset, ass));
}
// skos:inScheme
objectRelationAssertions.addAll(
dataFactory.getSKOSObjectRelationAssertions(concepts, dataFactory.getSKOSInSchemeProperty(), conceptScheme)
);
// object relations:
for (SKOSObjectRelationAssertion assertion : objectRelationAssertions) {
skosChanges.add(new AddAssertion(dataset, assertion));
}
// data relations:
for (SKOSDataRelationAssertion assertion : dataRelationAssertions) {
skosChanges.add(new AddAssertion(dataset, assertion));
}
manager.applyChanges(skosChanges);