private void doRebuildTextIndex(HttpServletRequest req, HttpServletResponse resp, String namespace) throws IOException { boolean forceIndexCreate = Boolean.TRUE.toString().equals(req.getParameter(FORCE_INDEX_CREATE_PARAMETER)); PrintWriter writer = resp.getWriter(); try { AbstractTripleStore store = getBigdataRDFContext().getTripleStore(namespace, Tx.UNISOLATED); store.getLexiconRelation().rebuildTextIndex(forceIndexCreate); writer.append("Text index rebuild completed"); } catch (UnsupportedOperationException e) { writer.append(e.getMessage()); resp.sendError(HTTP_INTERNALERROR, e.getMessage()); } }
private void doRebuildTextIndex(HttpServletRequest req, HttpServletResponse resp, String namespace) throws IOException { boolean forceIndexCreate = Boolean.TRUE.toString().equals(req.getParameter(FORCE_INDEX_CREATE_PARAMETER)); PrintWriter writer = resp.getWriter(); try { AbstractTripleStore store = getBigdataRDFContext().getTripleStore(namespace, Tx.UNISOLATED); store.getLexiconRelation().rebuildTextIndex(forceIndexCreate); writer.append("Text index rebuild completed"); } catch (UnsupportedOperationException e) { writer.append(e.getMessage()); resp.sendError(HTTP_INTERNALERROR, e.getMessage()); } }
/** * Describe a namespace into the supplied Graph object. */ private void describeNamespaceTx(final HttpServletRequest req, final Graph g, final String namespace, final boolean describeEachNamedGraph, final long tx) throws IOException { // Get a view onto that KB instance for that timestamp. final AbstractTripleStore tripleStore = getBigdataRDFContext() .getTripleStore(namespace, tx); if (tripleStore == null) { /* * There is no such triple/quad store instance (could be a * concurrent delete of the namespace). */ return; } final BNode aDataSet = ValueFactoryImpl.getInstance().createBNode(); // Figure out the service end point(s). final String[] serviceURI = getServiceURIs(getServletContext(), req); final VoID v = new VoID(g, tripleStore, serviceURI, aDataSet); v.describeDataSet(false/* describeStatistics */, describeEachNamedGraph); }
/** * Describe a namespace into the supplied Graph object. */ private void describeNamespaceTx(final HttpServletRequest req, final Graph g, final String namespace, final boolean describeEachNamedGraph, final long tx) throws IOException { // Get a view onto that KB instance for that timestamp. final AbstractTripleStore tripleStore = getBigdataRDFContext() .getTripleStore(namespace, tx); if (tripleStore == null) { /* * There is no such triple/quad store instance (could be a * concurrent delete of the namespace). */ return; } final BNode aDataSet = ValueFactoryImpl.getInstance().createBNode(); // Figure out the service end point(s). final String[] serviceURI = getServiceURIs(getServletContext(), req); final VoID v = new VoID(g, tripleStore, serviceURI, aDataSet); v.describeDataSet(false/* describeStatistics */, describeEachNamedGraph); }
final AbstractTripleStore tripleStore = context.getTripleStore( namespace, timestamp);
final AbstractTripleStore tripleStore = context.getTripleStore( namespace, timestamp);
.getTripleStore(getNamespace(req), tx);
.getTripleStore(getNamespace(req), tx);