Skip to content
This repository was archived by the owner on Mar 23, 2026. It is now read-only.

Commit c98a571

Browse files
committed
Merge pull request #4 from blazegraph/BLAZEGRAPH_RELEASE_2_1_0
Blazegraph release 2 1 0
2 parents 98ebb1f + c7075f1 commit c98a571

617 files changed

Lines changed: 170466 additions & 2504 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

bigdata-blueprints/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@ Copyright 2010 by TalkingTrends (Amsterdam, The Netherlands)
2828
<parent>
2929
<groupId>com.blazegraph</groupId>
3030
<artifactId>blazegraph-parent</artifactId>
31-
<version>2.0.1</version>
31+
<version>2.1.0</version>
3232
<relativePath>../pom.xml</relativePath>
3333
</parent>
3434
<groupId>com.blazegraph</groupId>
3535
<artifactId>bigdata-blueprints</artifactId>
36-
<version>2.0.1</version>
36+
<version>2.1.0</version>
3737
<name>Blazegraph Blueprints API</name>
3838
<description>Blazegraph support for Tinkerpop 2.5</description>
3939
<packaging>jar</packaging>

bigdata-blueprints/src/main/java/com/bigdata/blueprints/BigdataGraph.java

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -167,14 +167,14 @@ public interface Options {
167167
private final boolean laxEdges;
168168

169169
/**
170-
* If true, read from the write connection. Necessary for the test suites.
170+
* If true, use pure append mode (don't check old property values).
171171
*/
172-
private final boolean readFromWriteConnection;
172+
protected final boolean laxProperties;
173173

174174
/**
175-
* If true, use pure append mode (don't check old property values).
175+
* If true, read from the write connection. Necessary for the test suites.
176176
*/
177-
protected final boolean laxProperties;
177+
protected transient boolean readFromWriteConnection;
178178

179179
public BigdataGraph(final BlueprintsValueFactory factory) {
180180
this(factory, new Properties());
@@ -230,6 +230,15 @@ public BlueprintsValueFactory getValueFactory() {
230230
* or being blocked by writers.
231231
*/
232232
public abstract RepositoryConnection getReadConnection() throws Exception;
233+
234+
/**
235+
* Clients can read from the write connection if they choose.
236+
*
237+
* @param readFromWriteConnection
238+
*/
239+
public void setReadFromWriteConnection(boolean readFromWriteConnection) {
240+
this.readFromWriteConnection = readFromWriteConnection;
241+
}
233242

234243
/**
235244
* Return a single-valued property for an edge or vertex.

bigdata-blueprints/src/main/java/com/bigdata/blueprints/BigdataGraphEmbedded.java

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@
3535
import org.apache.log4j.Logger;
3636
import org.openrdf.model.BNode;
3737
import org.openrdf.repository.RepositoryConnection;
38-
import org.openrdf.repository.sail.SailRepository;
39-
import org.openrdf.sail.Sail;
4038

4139
import com.bigdata.blueprints.BigdataGraphEdit.Action;
4240
import com.bigdata.bop.engine.IRunningQuery;
@@ -242,8 +240,21 @@ public void shutdown() {
242240
public void stopTransaction(Conclusion arg0) {
243241
}
244242

245-
public StringBuilder dumpStore() {
246-
return ((BigdataSailRepository)repo).getDatabase().dumpStore();
243+
public StringBuilder dumpStore() throws Exception {
244+
final BigdataSailRepositoryConnection cxn =
245+
super.readFromWriteConnection ?
246+
getWriteConnection() : getReadConnection();
247+
248+
try {
249+
if (super.readFromWriteConnection) {
250+
cxn.flush();
251+
}
252+
return cxn.getTripleStore().dumpStore();
253+
} finally {
254+
if (!super.readFromWriteConnection) {
255+
cxn.close();
256+
}
257+
}
247258
}
248259

249260

bigdata-blueprints/src/test/resources/log4j.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ log4j.logger.com.bigdata.rdf.load=INFO
2525
log4j.logger.com.bigdata.rdf.store.DataLoader=INFO
2626
log4j.logger.com.bigdata.resources.AsynchronousOverflowTask=INFO
2727

28-
log4j.logger.com.bigdata.rdf.sail.webapp=INFO
28+
#log4j.logger.com.bigdata.rdf.sail.webapp=INFO
2929

3030
#log4j.logger.com.bigdata.rdf.ServiceProviderHook=INFO
3131

bigdata-cache/pom.xml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@ Copyright 2010 by TalkingTrends (Amsterdam, The Netherlands)
2828
<parent>
2929
<groupId>com.blazegraph</groupId>
3030
<artifactId>blazegraph-parent</artifactId>
31-
<version>2.0.1</version>
31+
<version>2.1.0</version>
3232
<relativePath>../pom.xml</relativePath>
3333
</parent>
3434
<groupId>com.blazegraph</groupId>
3535
<artifactId>bigdata-cache</artifactId>
36-
<version>2.0.1</version>
36+
<version>2.1.0</version>
3737
<name>Blazegraph Cache</name>
3838
<description>Blazegraph Cache utilities</description>
3939
<packaging>jar</packaging>
@@ -113,16 +113,12 @@ ga('send', 'pageview');
113113
<artifactId>bigdata-statics</artifactId>
114114
<version>${project.version}</version>
115115
</dependency>
116-
<!--dependency>
117-
<groupId>com.blazegraph</groupId>
118-
<artifactId>bigdata-util</artifactId>
119-
<version>${project.version}</version>
120-
</dependency-->
121116
<dependency>
122117
<groupId>com.blazegraph</groupId>
123118
<artifactId>bigdata-util</artifactId>
124119
<version>${project.version}</version>
125120
<type>test-jar</type>
121+
<scope>test</scope>
126122
</dependency>
127123
<dependency>
128124
<!-- log4j is the primary logger for bigdata. -->

bigdata-client/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@ Copyright 2010 by TalkingTrends (Amsterdam, The Netherlands)
2828
<parent>
2929
<groupId>com.blazegraph</groupId>
3030
<artifactId>blazegraph-parent</artifactId>
31-
<version>2.0.1</version>
31+
<version>2.1.0</version>
3232
<relativePath>../pom.xml</relativePath>
3333
</parent>
3434
<groupId>com.blazegraph</groupId>
3535
<artifactId>bigdata-client</artifactId>
36-
<version>2.0.1</version>
36+
<version>2.1.0</version>
3737
<name>Blazegraph Client API</name>
3838
<description>Blazegraph Client API tools</description>
3939
<build>
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
/**
2+
Copyright (C) SYSTAP, LLC DBA Blazegraph 2006-2016. All rights reserved.
3+
4+
Contact:
5+
SYSTAP, LLC DBA Blazegraph
6+
2501 Calvert ST NW #106
7+
Washington, DC 20008
8+
licenses@blazegraph.com
9+
10+
This program is free software; you can redistribute it and/or modify
11+
it under the terms of the GNU General Public License as published by
12+
the Free Software Foundation; version 2 of the License.
13+
14+
This program is distributed in the hope that it will be useful,
15+
but WITHOUT ANY WARRANTY; without even the implied warranty of
16+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17+
GNU General Public License for more details.
18+
19+
You should have received a copy of the GNU General Public License
20+
along with this program; if not, write to the Free Software
21+
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22+
*/
23+
package com.bigdata.rdf.sail.webapp.client;
24+
25+
26+
/**
27+
* Exception indicating that GPU acceleration is not available.
28+
*
29+
* @author <a href="mailto:ms@metaphacts.com">Michael Schmidt</a>
30+
*/
31+
public class NoGPUAccelerationAvailable extends RuntimeException {
32+
33+
private static final long serialVersionUID = 1L;
34+
35+
public NoGPUAccelerationAvailable() {
36+
37+
}
38+
39+
public NoGPUAccelerationAvailable(final String message) {
40+
41+
super(message);
42+
43+
}
44+
45+
}

bigdata-client/src/main/java/com/bigdata/rdf/sail/webapp/client/RemoteRepositoryDecls.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,4 +180,9 @@ public class RemoteRepositoryDecls {
180180
* @see com.bigdata.rdf.sail.webapp.QueryServlet.BINDING_PREFIX
181181
*/
182182
public static final String BINDING_PREFIX = "$";
183+
184+
/**
185+
* URL query parameter that contains boolean flag to create full text index if not exists.
186+
*/
187+
public static final String FORCE_INDEX_CREATE = "force-index-create";
183188
}

0 commit comments

Comments
 (0)