public void usePropertyBindings(String binding, List<BindingSet> results) { if (property instanceof PropertyConsumer) { String var = binding + "_" + pd.getName(); if (results.get(0).getBindingNames().contains(var)) { PropertyConsumer pc = (PropertyConsumer) property; pc.usePropertyBindings(var, results); } } }
public void usePropertyBindings(String binding, List<BindingSet> results) { if (property instanceof PropertyConsumer) { String var = binding + "_" + pd.getName(); if (results.get(0).hasBinding(var)) { PropertyConsumer pc = (PropertyConsumer) property; pc.usePropertyBindings(var, results); } } }
public void usePropertyBindings(String binding, List<BindingSet> results) { if (property instanceof PropertyConsumer) { String var = binding + "_" + field.getName(); if (results.get(0).hasBinding(var)) { PropertyConsumer pc = (PropertyConsumer) property; pc.usePropertyBindings(var, results); } } }
public void usePropertyBindings(String binding, List<BindingSet> results) { if (property instanceof PropertyConsumer) { String var = binding + "_" + field.getName(); if (results.get(0).getBindingNames().contains(var)) { PropertyConsumer pc = (PropertyConsumer) property; pc.usePropertyBindings(var, results); } } }
private Object createRDFObject(Value value, String binding, List<BindingSet> properties) throws QueryEvaluationException { if (value == null) return null; if (value instanceof Literal) return of.createObject((Literal) value); Object obj; if (properties.get(0).hasBinding(binding + "_class")) { Set<URI> list = new HashSet<URI>(properties.size()); for (BindingSet bindings : properties) { Value t = bindings.getValue(binding + "_class"); if (t instanceof URI) { list.add((URI) t); } } obj = of.createObject((Resource) value, list); } else { try { obj = manager.getObject(value); } catch (RepositoryException e) { throw new QueryEvaluationException(e); } } if (obj instanceof PropertyConsumer) { ((PropertyConsumer) obj).usePropertyBindings(binding, properties); } return obj; }
private Object createRDFObject(Value value, List<BindingSet> properties) throws QueryEvaluationException { if (value == null) return null; if (value instanceof Literal) return of.createObject((Literal) value); Object obj; if (properties.get(0).hasBinding(binding + "_class")) { Set<URI> list = new HashSet<URI>(properties.size()); for (BindingSet bindings : properties) { Value t = bindings.getValue(binding + "_class"); if (t instanceof URI) { list.add((URI) t); } } obj = of.createObject((Resource) value, list); } else { try { obj = manager.getObject(value); } catch (RepositoryException e) { throw new QueryEvaluationException(e); } } if (obj instanceof PropertyConsumer) { ((PropertyConsumer) obj).usePropertyBindings(binding, properties); } return obj; }
private Object createRDFObject(Value value, String binding, List<BindingSet> properties) throws QueryEvaluationException { if (value == null) return null; if (value instanceof Literal) return of.createObject((Literal) value); Object obj; if (properties.get(0).hasBinding(binding + "_class")) { Set<URI> list = new HashSet<URI>(properties.size()); for (BindingSet bindings : properties) { Value t = bindings.getValue(binding + "_class"); if (t instanceof URI) { list.add((URI) t); } } obj = manager.getObject(list, (Resource) value); } else { try { obj = manager.getObject(value); } catch (RepositoryException e) { throw new QueryEvaluationException(e); } } if (obj instanceof PropertyConsumer) { ((PropertyConsumer) obj).usePropertyBindings(binding, properties); } return obj; }
private Object createRDFObject(Value value, List<BindingSet> properties) throws QueryEvaluationException { if (value == null) return null; if (value instanceof Literal) return of.createObject((Literal) value); Object obj; if (properties.get(0).hasBinding(binding + "_class")) { Set<URI> list = new HashSet<URI>(properties.size()); for (BindingSet bindings : properties) { Value t = bindings.getValue(binding + "_class"); if (t instanceof URI) { list.add((URI) t); } } obj = manager.getObject(list, (Resource) value); } else { try { obj = manager.getObject(value); } catch (RepositoryException e) { throw new QueryEvaluationException(e); } } if (obj instanceof PropertyConsumer) { ((PropertyConsumer) obj).usePropertyBindings(binding, properties); } return obj; }