Package org.graphity.server.model

Examples of org.graphity.server.model.SPARQLEndpointOrigin


            if (!variant.getMediaType().isCompatible(MediaType.TEXT_HTML_TYPE) &&
                    !variant.getMediaType().isCompatible(MediaType.APPLICATION_XHTML_XML_TYPE))
            {
                if (log.isDebugEnabled()) log.debug("Using remote SPARQL endpoint URI: {}", getEndpointURI());
                SPARQLEndpointOrigin origin = new SPARQLEndpointOriginBase(getEndpointURI().toString());
                return SPARQLEndpointFactory.createProxy(getRequest(), getServletContext(), origin, getDataManager());
            }
        }
       
        return super.getSPARQLResource();
View Full Code Here


     * @return endpoint instance
     */
    @Override
    public SPARQLEndpoint getSPARQLEndpoint()
    {
        SPARQLEndpointOrigin origin = getSPARQLEndpointOrigin();
        if (origin != null) // use proxy for remote endpoint
        {
            return super.getSPARQLEndpoint();
        }
        else // use local endpoint
View Full Code Here

TOP

Related Classes of org.graphity.server.model.SPARQLEndpointOrigin

Copyright © 2018 www.massapicom. 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.