public Collection<Node> getPredicates(String field) { return fieldToPredicate.get(field) ; }
public Collection<Endpoint> getEndpoints() { return operations.values(); }
public void addEndpoint(Operation operation, String endpointName, AuthPolicy authPolicy) { Endpoint endpoint = new Endpoint(operation, endpointName, authPolicy); endpoints.put(endpointName, endpoint); operations.put(operation, endpoint); }
/** Return the operations available here. * @see #getEndpoints(Operation) to get the endpoint list */ public Collection<Operation> getOperations() { return operations.keySet(); }
public void addEndpoint(Operation operation, String endpointName, AuthPolicy authPolicy) { Endpoint endpoint = new Endpoint(operation, endpointName, authPolicy); endpoints.put(endpointName, endpoint); operations.put(operation, endpoint); }
/** Return the operations available here. * @see #getEndpoints(Operation) to get the endpoint list */ public Collection<Operation> getOperations() { return operations.keySet(); }
public Collection<Node> getPredicates(String field) { return fieldToPredicate.get(field) ; }
private ListMultimap<String, TextHit> mapResult(List<TextHit> resultList) { ListMultimap<String,TextHit> results = LinkedListMultimap.create(); for (TextHit result : resultList) { results.put(TextQueryFuncs.subjectToString(result.getNode()), result); } return results; }
public Collection<Endpoint> getEndpoints() { return operations.values(); }
public List<Endpoint> getEndpoints(Operation operation) { List<Endpoint> x = operations.get(operation); if ( x == null ) x = Collections.emptyList(); return x; }
private ListMultimap<String, TextHit> mapResult(List<TextHit> resultList) { ListMultimap<String,TextHit> results = LinkedListMultimap.create(); for (TextHit result : resultList) { results.put(TextQueryFuncs.subjectToString(result.getNode()), result); } return results; }
private QueryIterator variableSubject(Binding binding, Node s, Node score, Node literal, Node graph, StrMatch match, ExecutionContext execCxt) { log.trace("variableSubject: {}", match) ; ListMultimap<String,TextHit> results = query(match.getProperty(), match.getQueryString(), match.getLang(), match.getLimit(), match.getHighlight(), execCxt) ; Collection<TextHit> r = results.values(); return resultsToQueryIterator(binding, s, score, literal, graph, r, execCxt); }
public List<Endpoint> getEndpoints(Operation operation) { List<Endpoint> x = operations.get(operation); if ( x == null ) x = Collections.emptyList(); return x; }
private QueryIterator variableSubject(Binding binding, Node s, Node score, Node literal, Node graph, StrMatch match, ExecutionContext execCxt) { log.trace("variableSubject: {}", match) ; ListMultimap<String,TextHit> results = query(match.getProperty(), match.getQueryString(), match.getLang(), match.getLimit(), match.getHighlight(), execCxt) ; Collection<TextHit> r = results.values(); return resultsToQueryIterator(binding, s, score, literal, graph, r, execCxt); }
public Node getPrimaryPredicate() { Collection<Node> c = fieldToPredicate.get(getPrimaryField()) ; return getOne(c) ; }
public Node getPrimaryPredicate() { Collection<Node> c = fieldToPredicate.get(getPrimaryField()) ; return getOne(c) ; }
private QueryIterator concreteSubject(Binding binding, Node s, Node score, Node literal, Node graph, StrMatch match, ExecutionContext execCxt) { log.trace("concreteSubject: {}", match) ; ListMultimap<String,TextHit> x; if (s instanceof Node_URI) { x = query(s.getURI(), match.getProperty(), match.getQueryString(), match.getLang(), -1, match.getHighlight(), execCxt); } else { x = query(match.getProperty(), match.getQueryString(), match.getLang(), -1, match.getHighlight(), execCxt); } if ( x == null ) // null return value - empty result return IterLib.noResults(execCxt) ; List<TextHit> r = x.get(TextQueryFuncs.subjectToString(s)); return resultsToQueryIterator(binding, s, score, literal, graph, r, execCxt); }
private QueryIterator concreteSubject(Binding binding, Node s, Node score, Node literal, Node graph, StrMatch match, ExecutionContext execCxt) { log.trace("concreteSubject: {}", match) ; ListMultimap<String,TextHit> x; if (s instanceof Node_URI) { x = query(s.getURI(), match.getProperty(), match.getQueryString(), match.getLang(), -1, match.getHighlight(), execCxt); } else { x = query(match.getProperty(), match.getQueryString(), match.getLang(), -1, match.getHighlight(), execCxt); } if ( x == null ) // null return value - empty result return IterLib.noResults(execCxt) ; List<TextHit> r = x.get(TextQueryFuncs.subjectToString(s)); return resultsToQueryIterator(binding, s, score, literal, graph, r, execCxt); }