while (domainsI.hasNext()) {
ISelector domain = null;
Value domainNode = domainsI.next().getObject();
if (domainNode instanceof Resource) {
// This is an instance selector
domain = new InstanceSelector((URI) domainNode);
} else if (domainNode instanceof Literal) {
Literal domainL = (Literal) domainNode;
// TODO: catch bad expressions? throw exceptions?
if (domainL.getDatatype().equals(FresnelCoreTypes.fslSelector)) {
domain = new FSESelector(domainL.getLabel(), _fslContext, conf.getNamespaceMap());