Package org.apache.clerezza.rdf.core.sparql

Examples of org.apache.clerezza.rdf.core.sparql.SparqlPreParser


     * if no FROM clause is present
     * @return the resulting ResultSet, Graph or Boolean value
     */
    public Object executeSparqlQuery(String query, TripleCollection defaultGraph) throws ParseException {
        final UriRef defaultGraphName = new UriRef("urn:x-temp:/kjsfadfhfasdffds");
        SparqlPreParser sparqlPreParser = new SparqlPreParser(this);
        final Set<UriRef> referencedGraphs = sparqlPreParser.getReferredGraphs(query, defaultGraphName);
        TcProvider singleTargetTcProvider = null;
        if ((referencedGraphs != null) && (!referencedGraphs.contains(defaultGraphName))) {
            singleTargetTcProvider = getSingleTargetTcProvider(referencedGraphs);
        }
        if ((singleTargetTcProvider != null) && (singleTargetTcProvider instanceof QueryableTcProvider)) {
View Full Code Here


            throw new NoQueryEngineException();
        }
    }
   
    public Object executeSparqlQuery(String query, UriRef defaultGraphName) throws ParseException {
        SparqlPreParser sparqlPreParser = new SparqlPreParser(this);
        final Set<UriRef> referencedGraphs = sparqlPreParser.getReferredGraphs(query, defaultGraphName);
        TcProvider singleTargetTcProvider = null;
        if ((referencedGraphs != null)) {
            singleTargetTcProvider = getSingleTargetTcProvider(referencedGraphs);
        }
        if ((singleTargetTcProvider != null) && (singleTargetTcProvider instanceof QueryableTcProvider)) {
View Full Code Here

TOP

Related Classes of org.apache.clerezza.rdf.core.sparql.SparqlPreParser

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.