AKSW / LSQ

Linked SPARQL Queries (LSQ): Framework for RDFizing triple store (web) logs and performing SPARQL query extraction, analysis and benchmarking in order to produce datasets of Linked SPARQL Queries
http://lsq.aksw.org
Apache License 2.0
25 stars 11 forks source link

Optimize prefixes throws exception if there are multiple FROM (NAMED) clauses with the same IRI #12

Closed Aklakan closed 4 years ago

Aklakan commented 4 years ago
SELECT DISTINCT  ?instance
FROM <http://data.semanticweb.org/conference/eswc/2012/complete>
FROM <http://data.semanticweb.org/conference/eswc/2012/complete>
WHERE
  { ?instance  rdf:type  foaf:Person }
ORDER BY ?instance

In the jena Query class there is the code:

    public void addNamedGraphURI(String uri)
        ...
        if ( namedGraphURIs.contains(uri) )
            throw new QueryException("URI already in named graph set: "+uri) ;
Aklakan commented 4 years ago

Turns out there in LSQ there is still a copy of a class in use for which I already made a PR https://issues.apache.org/jira/browse/JENA-1862 This class had once had a bug where default graphs were added as named graphs; fixed in jsa