Examples of DatasetRef


Examples of org.apache.jena.fuseki.server.DatasetRef

   
    /** Return prefixes for the datasets, SPARQL syntax. */
    public static String prefixes(HttpServletRequest request)
    {
        String dsName = dataset(request) ;
        DatasetRef desc = getFromRegistry(dsName) ;
        if ( desc == null )
            return "<not found>" ;
        DatasetGraph dsg = desc.dataset ;
       
        if ( dsg instanceof DatasetGraphTDB )
View Full Code Here

Examples of org.apache.jena.fuseki.server.DatasetRef

        long id = action.id ;
        HttpServletRequest request = action.request ;
        HttpServletResponse response = action.response ;
        String uri = request.getRequestURI() ;
        String method = request.getMethod() ;
        DatasetRef desc = action.dsRef ;
       
        String trailing = findTrailing(uri, desc.name) ;
        String qs = request.getQueryString() ;

        boolean hasParams = request.getParameterMap().size() > 0 ;
View Full Code Here

Examples of org.apache.jena.fuseki.server.DatasetRef

    }
   
    private void doGraphStoreProtocol(HttpAction action)
    {
        // The GSP servlets handle direct and indirect naming.
        DatasetRef desc = action.dsRef ;
        String method = action.request.getMethod() ;
       
        if ( HttpNames.METHOD_GET.equalsIgnoreCase(method) ||
             HttpNames.METHOD_HEAD.equalsIgnoreCase(method) )
       {
View Full Code Here

Examples of org.apache.jena.fuseki.server.DatasetRef

        long id = action.id ;
        HttpServletRequest request = action.request ;
        HttpServletResponse response = action.response ;
        String uri = request.getRequestURI() ;
        String method = request.getMethod() ;
        DatasetRef desc = action.dsRef ;
       
        String trailing = findTrailing(uri, desc.name) ;
        String qs = request.getQueryString() ;

        boolean hasParams = request.getParameterMap().size() > 0 ;
View Full Code Here

Examples of org.apache.jena.fuseki.server.DatasetRef

    }
   
    private void doGraphStoreProtocol(HttpAction action)
    {
        // The GSP servlets handle direct and indirect naming.
        DatasetRef desc = action.dsRef ;
        String method = action.request.getMethod() ;
       
        if ( HttpNames.METHOD_GET.equalsIgnoreCase(method) ||
             HttpNames.METHOD_HEAD.equalsIgnoreCase(method) )
       {
View Full Code Here

Examples of org.apache.jena.fuseki.server.DatasetRef

        {
            response.sendError(HttpSC.BAD_REQUEST_400, "No such dataset: " + dataset) ;
            return ;
        }

        DatasetRef ref = DatasetRegistry.get().get(dataset) ;
        HttpAction action = new HttpAction(requestIdAlloc.incrementAndGet(), ref, request, response, false) ;
        scheduleBackup(action, dataset) ;
    }
View Full Code Here

Examples of org.apache.jena.fuseki.server.DatasetRef

   
    /** Return a SPARQL query service name for the dataset */
    public static String serviceQuery(String dataset)
    {
        String dft = "sparql" ;
        DatasetRef ref = getFromRegistry(dataset) ;
        if ( ref == null )
            return dft ;
        return serviceNameOrDefault(ref.queryEP, dft) ;
    }
View Full Code Here

Examples of org.apache.jena.fuseki.server.DatasetRef

   
    /** Return a SPARQL update service name for the dataset */
    public static String serviceUpdate(String dataset)
    {
        String dft = "update" ;
        DatasetRef ref = getFromRegistry(dataset) ;
        if ( ref == null )
            return dft ;
        return serviceNameOrDefault(ref.updateEP, dft) ;
    }
View Full Code Here

Examples of org.apache.jena.fuseki.server.DatasetRef

   
    /** Return a SPARQL upload service name for the dataset */
    public static String serviceUpload(String dataset)
    {
        String dft = "upload" ;
        DatasetRef ref = getFromRegistry(dataset) ;
        if ( ref == null )
            return dft ;
        return serviceNameOrDefault(ref.uploadEP, dft) ;
    }
View Full Code Here

Examples of org.apache.jena.fuseki.server.DatasetRef

    /** Return a SPARQL Graph Store Protocol (Read) service name for the dataset */
    public static String serviceGraphRead(String dataset)
    {
        String dft = "get" ;
        DatasetRef ref = getFromRegistry(dataset) ;
        if ( ref == null )
            return dft ;
        return serviceNameOrDefault(ref.readGraphStoreEP, dft) ;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.