Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

MARMOTTA-659: Port Marmotta to Eclipse RDF4J #31

Open
wants to merge 73 commits into
base: MARMOTTA-659_port_rdf4j
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
73 commits
Select commit Hold shift + click to select a range
0d643e8
Moving to Java 8
ajs6f Mar 31, 2017
51fed1a
Ignore mac and netbeans configuration files
gmora1223 May 6, 2017
dcb6d88
Merge branch 'develop' of https://github.com/apache/marmotta into MAR…
gmora1223 May 6, 2017
5bbbc61
Add marmotta-660 branch to ci
gmora1223 May 7, 2017
15b3165
Add databases to execute all tests
cuent May 17, 2017
6fb5808
Solve compilation errors in KiWi Triplestore: Core.
gmora1223 May 20, 2017
50b4bca
KiWiEvaluationStrategy uses default FederatedServiceResolver
gmora1223 May 21, 2017
b700969
Upgrade sesame from 2.7.16 to 2.8.11.
gmora1223 May 21, 2017
8bd9620
Delete unused tests and add Isolation level: SNAPSHOT_READ.
gmora1223 May 21, 2017
18f42a2
In Sesame 2.8.0, the class RDFJSONUtility is not accesible [1]. The v…
gmora1223 May 21, 2017
c788648
Implement missing abstract methods and add FederatedServiceResolver t…
gmora1223 May 21, 2017
15c28f8
Implement missing abstract methods and add FederatedServiceResolver t…
gmora1223 May 30, 2017
23e6e0d
Solved compatibility with new methods in marmotta-commons.
gmora1223 Jun 5, 2017
724edb9
Merge branch 'MARMOTTA-659' of https://github.com/gmora1223/marmotta …
gmora1223 Jun 5, 2017
ee60459
Merge branch 'develop' of https://github.com/apache/marmotta into MAR…
gmora1223 Jun 7, 2017
8fdf525
New changes in KiWi TripleStore: Core and solves MARMOTTA-39.
gmora1223 Jun 5, 2017
fcb01b3
Merge branch 'MARMOTTA-659' of https://github.com/gmora1223/marmotta …
gmora1223 Jun 8, 2017
3ecff1f
Merge branch 'develop' of https://github.com/apache/marmotta into MAR…
gmora1223 Jun 8, 2017
74a20dc
Add statements and compare size before commit.
gmora1223 Jun 10, 2017
710d7df
Merge remote-tracking branch 'upstream/develop' into MARMOTTA-659
gmora1223 Jun 10, 2017
213b6e5
Merge branch 'develop' of https://github.com/apache/marmotta into MAR…
gmora1223 Jun 10, 2017
5480013
Modify query to verify statements with null values.
gmora1223 Jun 15, 2017
6f25707
Merge branch 'develop' of https://github.com/apache/marmotta into MAR…
gmora1223 Jun 15, 2017
ff99f70
No necessary calculate different hash for objects.
gmora1223 Jun 15, 2017
d019053
Merge branch 'develop' of https://github.com/apache/marmotta into MAR…
gmora1223 Jun 16, 2017
f769cd2
Merge remote-tracking branch 'pr/MARMOTTA-660' into MARMOTTA-660
gmora1223 Jun 16, 2017
377b016
Add sudo to get and ignore MySQL.
cuent Jun 16, 2017
ba67c34
Merge branch 'MARMOTTA-660' of https://github.com/gmora1223/marmotta …
gmora1223 Jun 16, 2017
cff80a0
Ignore NetBeans conf files.
gmora1223 Jun 16, 2017
e309532
Since all values are data typed, tests should also test data type.
gmora1223 Jun 17, 2017
655b892
Ignore flush and prepare methods in snapshot.
gmora1223 Jun 17, 2017
e0c9879
Ignore tests with subselect in optional.
gmora1223 Jun 17, 2017
e640d47
Merge branch 'MARMOTTA-660' into MARMOTTA-659
gmora1223 Jun 22, 2017
b5f3168
Merge branch 'develop' of https://github.com/apache/marmotta into MAR…
gmora1223 Jun 22, 2017
53640df
Upgrade to Sesame 4
gmora1223 Jun 29, 2017
b9f349b
Change URI to IRI in Apache Marmotta: Commons Utilities.
gmora1223 Jun 29, 2017
dae724c
Change URI to IRI in commons vocabularies.
gmora1223 Jun 29, 2017
2f5a924
Change URI to IRI in marmotta Sesame I/O: VCard.
gmora1223 Jun 29, 2017
e558b7a
Change marmota marmotta-sesame-tools URI to IRI.
gmora1223 Jun 29, 2017
d4e58f8
Solve problems in Kiwi-triplestore: core.
gmora1223 Jun 29, 2017
a1a7af3
Solve some tests in marmotta-kiwi triplestore: core.
gmora1223 Jun 29, 2017
b71ab96
Deal with Literal to convert to KiwiUriResource.
gmora1223 Jun 30, 2017
76cb9f0
Verify statements with null values change a https://github.com/gmora1…
gmora1223 Jul 2, 2017
d6d6eda
Statement includes context, so a hash must be generated using context.
gmora1223 Jul 2, 2017
a8902fa
In https://github.com/gmora1223/marmotta/commit/8fdf525255d54bf98e9ad…
gmora1223 Jul 2, 2017
349628b
Solve issues about URI vs IRI in Marmotta Platform Core.
gmora1223 Jul 2, 2017
54e101d
Change URI for IRI in Marmotta sesame tools: facading.
gmora1223 Jul 2, 2017
7a0b13c
Solve conficts URI vs IRI and correct use of interfaces.
gmora1223 Jul 2, 2017
34d0839
Revert changes made in https://github.com/gmora1223/marmotta/commit/f…
gmora1223 Jul 8, 2017
01909b1
Solve conficts URI vs IRI and correct use of interfaces.
gmora1223 Jul 9, 2017
66de6d8
Ignore test related with infinity literals.
gmora1223 Jul 10, 2017
93f4fed
Merge branch 'MARMOTTA-659' of https://github.com/gmora1223/marmotta …
gmora1223 Jul 10, 2017
dc0d2b9
Do not auto-registry functions since they are registered with the Ser…
gmora1223 Jul 10, 2017
5ef0690
Replace dependency json-java-sesame with sesame-rio-jsonld.
gmora1223 Jul 10, 2017
50890e7
Upgrating to RDF4J.
gmora1223 Jul 17, 2017
57d48df
Upgraded to RDF4J.
gmora1223 Jul 18, 2017
139b8f5
Upgraded to RDF4J
gmora1223 Jul 18, 2017
b8fadb9
Upgraded to RDF4J
gmora1223 Jul 21, 2017
10835e1
Change original imports. Due to import problems I changed this import…
gmora1223 Jul 22, 2017
8d5770f
Merge branch 'develop' of https://github.com/apache/marmotta into MAR…
gmora1223 Jul 23, 2017
a03f298
Replace UriRegexFilter for IriRegexFilter.
gmora1223 Jul 23, 2017
ac7fc8d
Ignore GraphSail class because is not longer mantained in TinkerPop 3…
gmora1223 Jul 23, 2017
e196bf4
MARMOTTA-670: corrected call to rdfBackend.listSubjects
dglachs Sep 27, 2017
03e0bc0
updated my gpg key
wikier Nov 7, 2017
fadd942
Merge branch 'develop' into MARMOTTA-670_reversepropertyselector
wikier Dec 1, 2017
0957855
MARMOTTA_671: fixed redundant conditions
wikier Dec 8, 2017
4384d61
upgraded apache parent pom
wikier Jan 26, 2018
2079e4e
MARMOTTA-668: Updated and fixed the refpack-plugin
ja-fra Feb 16, 2018
7c1badc
update assembly-plugin
ja-fra Feb 16, 2018
0726f49
fixed RAT check (missing license headers in source files)
ja-fra Feb 16, 2018
eb27764
trying to get travis back working
ja-fra Feb 16, 2018
6f39451
Merge branch 'develop' of https://github.com/apache/marmotta into MAR…
cuent Feb 17, 2018
036990a
Skip long concurrent tests from SailConcurrencyTest test suite.
cuent Feb 17, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,7 @@
target/
.idea/
.metadata/
maven-eclipse.xml
maven-eclipse.xml
.DS_Store
nb-configuration.xml
nbactions.xml
26 changes: 24 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,42 @@
#

language: java

dist: precise
sudo: false

branches:
only:
- MARMOTTA-660 # Add just for migration testing purposes
- master
- develop

services:
- mysql
- postgresql

addons:
postgresql: "9.4"

jdk:
- oraclejdk7
- oraclejdk8

cache:
directories:
- .autoconf
- $HOME/.m2

before_install:
- echo "MAVEN_OPTS='-Xmx2g'" > ~/.mavenrc
## Ignore for now MySQL, tests failing in most of the databases. Tried with version 5.5, 5.6, and 5.7. Travis executes version 5.5.41
##- mysql -u root -e 'CREATE DATABASE kiwitest;'
##- mysql -u root -e "CREATE USER 'kiwi'@'localhost' IDENTIFIED BY 'kiwi';"
##- mysql -u root -e "GRANT ALL ON kiwitest.* TO 'kiwi'@'localhost';"

script: mvn clean install
- psql -c 'create database kiwitest;' -U postgres
- psql -c "CREATE USER kiwi WITH PASSWORD 'kiwi';" -U postgres
- psql -c 'GRANT ALL PRIVILEGES ON DATABASE kiwitest to kiwi;' -U postgres

install: true

script: mvn clean install
16 changes: 16 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# Dockerfile for Apache Marmotta

FROM debian:jessie-backports
Expand Down
250 changes: 178 additions & 72 deletions KEYS

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/archetypes/marmotta-archetype-module/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@

<properties>
<marmottaVersion>${project.version}</marmottaVersion>
<sesameVersion>${sesame.version}</sesameVersion>
<rdf4jVersion>${rdf4j.version}</rdf4jVersion>

<junitVersion>${junit.version}</junitVersion>
<weldVersion>${weld.version}</weldVersion>
Expand Down
2 changes: 1 addition & 1 deletion build/archetypes/marmotta-archetype-webapp/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@

<properties>
<marmottaVersion>${project.version}</marmottaVersion>
<sesameVersion>${sesame.version}</sesameVersion>
<rdf4jVersion>${rdf4j.version}</rdf4jVersion>

<junitVersion>${junit.version}</junitVersion>
<servletApiVersion>${servlet.api.version}</servletApiVersion>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@
<%@ page import="org.apache.marmotta.platform.core.util.CDIContext" %>
<%
ConfigurationService configurationService = CDIContext.getInstance(ConfigurationService.class);
response.sendRedirect(configurationService.getServerUri()+configurationService.getStringConfiguration("kiwi.pages.startup"));
response.sendRedirect(configurationService.getServerIri()+configurationService.getStringConfiguration("kiwi.pages.startup"));
%>
15 changes: 7 additions & 8 deletions build/plugins/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@
<name>Apache Marmotta: Maven Plugins</name>
<description>Marmotta-specific maven plugins</description>

<properties>
<maven.version>3.1.1</maven.version>
</properties>

<build>
<plugins>
<plugin>
Expand Down Expand Up @@ -125,7 +129,7 @@
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-plugin-api</artifactId>
<version>3.0.4</version>
<version>${maven.version}</version>
</dependency>
<dependency>
<groupId>org.apache.maven.plugin-tools</groupId>
Expand All @@ -136,17 +140,12 @@
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-core</artifactId>
<version>3.0.4</version>
<version>${maven.version}</version>
</dependency>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-model</artifactId>
<version>3.0.4</version>
</dependency>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-project</artifactId>
<version>2.2.1</version>
<version>${maven.version}</version>
</dependency>
<dependency>
<!-- maven is using commons-logging -->
Expand Down
25 changes: 4 additions & 21 deletions build/plugins/refpack-maven-plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@
<name>Maven Refpack Plugin</name>
<description>This Maven Plugin allows generating IzPack Refpack descriptions out of a collection of dependencies</description>

<prerequisites>
<maven>${maven.version}</maven>
</prerequisites>

<dependencies>
<dependency>
<groupId>org.apache.maven</groupId>
Expand All @@ -41,27 +45,6 @@
<groupId>org.apache.maven</groupId>
<artifactId>maven-model</artifactId>
</dependency>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-project</artifactId>
</dependency>
<dependency>
<!-- required in all cases -->
<groupId>org.sonatype.aether</groupId>
<artifactId>aether-api</artifactId>
<version>1.13.1</version>
</dependency>
<dependency>
<!-- might be superfluous depending on your use case -->
<groupId>org.sonatype.aether</groupId>
<artifactId>aether-util</artifactId>
<version>1.13.1</version>
</dependency>
<dependency>
<groupId>com.jcabi</groupId>
<artifactId>jcabi-aether</artifactId>
<version>0.7.8</version>
</dependency>
<!-- dependencies to annotations -->
<dependency>
<groupId>org.apache.maven.plugin-tools</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,22 +24,22 @@
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugins.annotations.*;
import org.apache.maven.project.*;
import org.eclipse.aether.artifact.DefaultArtifact;
import org.jdom2.Element;
import org.jdom2.Text;
import org.jdom2.output.Format;
import org.jdom2.output.XMLOutputter;
import org.sonatype.aether.RepositorySystem;
import org.sonatype.aether.RepositorySystemSession;
import org.sonatype.aether.artifact.Artifact;
import org.sonatype.aether.collection.CollectRequest;
import org.sonatype.aether.collection.DependencyCollectionException;
import org.sonatype.aether.graph.Dependency;
import org.sonatype.aether.graph.DependencyNode;
import org.sonatype.aether.repository.RemoteRepository;
import org.sonatype.aether.resolution.DependencyRequest;
import org.sonatype.aether.resolution.DependencyResolutionException;
import org.sonatype.aether.resolution.DependencyResult;
import org.sonatype.aether.util.artifact.DefaultArtifact;
import org.eclipse.aether.RepositorySystem;
import org.eclipse.aether.RepositorySystemSession;
import org.eclipse.aether.artifact.Artifact;
import org.eclipse.aether.collection.CollectRequest;
import org.eclipse.aether.collection.DependencyCollectionException;
import org.eclipse.aether.graph.Dependency;
import org.eclipse.aether.graph.DependencyNode;
import org.eclipse.aether.repository.RemoteRepository;
import org.eclipse.aether.resolution.DependencyRequest;
import org.eclipse.aether.resolution.DependencyResolutionException;
import org.eclipse.aether.resolution.DependencyResult;

import java.io.File;
import java.io.FileOutputStream;
Expand Down
6 changes: 4 additions & 2 deletions build/plugins/repocheck-maven-plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@
<name>Repository Plugin</name>
<description>Check which repository contains which dependencies </description>


<prerequisites>
<maven>${maven.version}</maven>
</prerequisites>


<dependencies>
Expand All @@ -42,7 +44,7 @@
</dependency>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-project</artifactId>
<artifactId>maven-core</artifactId>
</dependency>
<dependency>
<groupId>org.apache.maven.shared</groupId>
Expand Down
24 changes: 12 additions & 12 deletions client/marmotta-client-java/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -101,25 +101,25 @@
<artifactId>jackson-databind</artifactId>
</dependency>
<dependency>
<groupId>org.openrdf.sesame</groupId>
<artifactId>sesame-rio-api</artifactId>
<groupId>org.eclipse.rdf4j</groupId>
<artifactId>rdf4j-rio-api</artifactId>
</dependency>
<dependency>
<groupId>org.openrdf.sesame</groupId>
<artifactId>sesame-rio-rdfjson</artifactId>
<groupId>org.eclipse.rdf4j</groupId>
<artifactId>rdf4j-rio-rdfjson</artifactId>
</dependency>
<dependency>
<groupId>org.openrdf.sesame</groupId>
<artifactId>sesame-queryresultio-api</artifactId>
<groupId>org.eclipse.rdf4j</groupId>
<artifactId>rdf4j-queryresultio-api</artifactId>
</dependency>
<dependency>
<groupId>org.openrdf.sesame</groupId>
<artifactId>sesame-queryresultio-sparqlxml</artifactId>
<groupId>org.eclipse.rdf4j</groupId>
<artifactId>rdf4j-queryresultio-sparqlxml</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.openrdf.sesame</groupId>
<artifactId>sesame-queryresultio-sparqljson</artifactId>
<groupId>org.eclipse.rdf4j</groupId>
<artifactId>rdf4j-queryresultio-sparqljson</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
Expand Down Expand Up @@ -233,8 +233,8 @@
</dependency>

<dependency>
<groupId>org.openrdf.sesame</groupId>
<artifactId>sesame-sail-memory</artifactId>
<groupId>org.eclipse.rdf4j</groupId>
<artifactId>rdf4j-sail-memory</artifactId>
<scope>test</scope>
</dependency>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,14 @@
*/
package org.apache.marmotta.client.clients;

import static com.google.common.net.HttpHeaders.ACCEPT;
import java.io.IOException;
import java.io.InputStream;
import java.net.URLEncoder;
import java.util.HashMap;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Map;
import org.apache.http.HttpResponse;
import org.apache.http.client.HttpClient;
import org.apache.http.client.methods.HttpGet;
Expand All @@ -28,26 +36,25 @@
import org.apache.marmotta.client.model.rdf.URI;
import org.apache.marmotta.client.model.sparql.SPARQLResult;
import org.apache.marmotta.client.util.HTTPUtil;
import org.openrdf.model.Value;
import org.openrdf.model.ValueFactory;
import org.openrdf.model.impl.ValueFactoryImpl;
import org.openrdf.query.*;
import org.openrdf.query.resultio.*;
import org.openrdf.query.resultio.helpers.QueryResultCollector;
import org.eclipse.rdf4j.model.Value;
import org.eclipse.rdf4j.model.ValueFactory;
import org.eclipse.rdf4j.model.impl.SimpleValueFactory;
import org.eclipse.rdf4j.query.Binding;
import org.eclipse.rdf4j.query.BindingSet;
import org.eclipse.rdf4j.query.QueryResultHandler;
import org.eclipse.rdf4j.query.QueryResultHandlerException;
import org.eclipse.rdf4j.query.TupleQueryResultHandlerException;
import org.eclipse.rdf4j.query.resultio.BooleanQueryResultFormat;
import static org.eclipse.rdf4j.query.resultio.BooleanQueryResultFormat.JSON;
import org.eclipse.rdf4j.query.resultio.QueryResultIO;
import org.eclipse.rdf4j.query.resultio.QueryResultParseException;
import org.eclipse.rdf4j.query.resultio.QueryResultParser;
import org.eclipse.rdf4j.query.resultio.TupleQueryResultFormat;
import org.eclipse.rdf4j.query.resultio.UnsupportedQueryResultFormatException;
import org.eclipse.rdf4j.query.resultio.helpers.QueryResultCollector;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.io.IOException;
import java.io.InputStream;
import java.net.URLEncoder;
import java.util.HashMap;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Map;

import static com.google.common.net.HttpHeaders.ACCEPT;
import static org.openrdf.query.resultio.TupleQueryResultFormat.JSON;

/**
* Add file description here!
* <p/>
Expand Down Expand Up @@ -91,7 +98,7 @@ public SPARQLResult select(String query) throws IOException, MarmottaClientExcep
log.debug("SPARQL Query {} evaluated successfully",query);
QueryResultCollector results = new QueryResultCollector();

parse(response.getEntity().getContent(), TupleQueryResultFormat.JSON, results, ValueFactoryImpl.getInstance());
parse(response.getEntity().getContent(), TupleQueryResultFormat.JSON, results, SimpleValueFactory.getInstance());

if(!results.getHandledTuple() || results.getBindingSets().isEmpty()) {
return null;
Expand All @@ -110,14 +117,14 @@ public SPARQLResult select(String query) throws IOException, MarmottaClientExcep
//Map<String,String> nodeDef = (Map<String,String>) entry.getValue();
Value nodeDef = nextBinding.getValue();
RDFNode node = null;
if(nodeDef instanceof org.openrdf.model.URI) {
if(nodeDef instanceof org.eclipse.rdf4j.model.IRI) {
node = new URI(nodeDef.stringValue());
} else if(nodeDef instanceof org.openrdf.model.BNode) {
node = new BNode(((org.openrdf.model.BNode)nodeDef).getID());
} else if(nodeDef instanceof org.openrdf.model.Literal) {
org.openrdf.model.Literal nodeLiteral = (org.openrdf.model.Literal)nodeDef;
if(nodeLiteral.getLanguage() != null) {
node = new Literal(nodeLiteral.getLabel(), nodeLiteral.getLanguage());
} else if(nodeDef instanceof org.eclipse.rdf4j.model.BNode) {
node = new BNode(((org.eclipse.rdf4j.model.BNode)nodeDef).getID());
} else if(nodeDef instanceof org.eclipse.rdf4j.model.Literal) {
org.eclipse.rdf4j.model.Literal nodeLiteral = (org.eclipse.rdf4j.model.Literal)nodeDef;
if(nodeLiteral.getLanguage().orElse(null) != null) {
node = new Literal(nodeLiteral.getLabel(), nodeLiteral.getLanguage().orElse(null));
} else if(nodeLiteral.getDatatype() != null) {
node = new Literal(nodeLiteral.getLabel(), new URI(nodeLiteral.getDatatype().stringValue()));
} else {
Expand Down Expand Up @@ -181,7 +188,7 @@ public boolean ask(String askQuery) throws IOException, MarmottaClientException
log.debug("SPARQL ASK Query {} evaluated successfully",askQuery);
QueryResultCollector results = new QueryResultCollector();

parse(response.getEntity().getContent(), BooleanQueryResultFormat.JSON, results, ValueFactoryImpl.getInstance());
parse(response.getEntity().getContent(), BooleanQueryResultFormat.JSON, results, SimpleValueFactory.getInstance());

if(!results.getHandledBoolean()) {
return false;
Expand Down Expand Up @@ -259,7 +266,7 @@ private static void parse(InputStream in, TupleQueryResultFormat format, QueryRe
throws IOException, QueryResultParseException, QueryResultHandlerException,
UnsupportedQueryResultFormatException
{
QueryResultParser parser = QueryResultIO.createParser(format);
QueryResultParser parser = QueryResultIO.createTupleParser(format);
parser.setValueFactory(valueFactory);
parser.setQueryResultHandler(handler);
parser.parseQueryResult(in);
Expand All @@ -282,7 +289,7 @@ private static void parse(InputStream in, BooleanQueryResultFormat format, Query
throws IOException, QueryResultParseException, QueryResultHandlerException,
UnsupportedQueryResultFormatException
{
QueryResultParser parser = QueryResultIO.createParser(format);
QueryResultParser parser = QueryResultIO.createBooleanParser(format);
parser.setValueFactory(valueFactory);
parser.setQueryResultHandler(handler);
parser.parseQueryResult(in);
Expand Down
Loading