return properties;
}
public Model createConfig(List<ConfigProperty> properties) {
int idx = 0;
Model model = new LinkedHashModel();
model.getNamespaces().putAll(statements.getNamespaces());
for (Statement st : statements) {
Resource subj = st.getSubject();
URI pred = st.getPredicate();
if (schema.contains(pred, null, null) && properties != null) {
if (!properties.get(idx).getPredicate().equals(pred)) {
throw new IllegalArgumentException("Invalid properties");
}
model.add(subj, pred, properties.get(idx++).getValue());
}
else {
model.add(subj, pred, st.getObject());
}
}
return model;
}