Skip to content

Commit 467fa39

Browse files
author
mrpersonick
committed
initial commit of Sesame 2.7.12 upgrade - first clean compile
git-svn-id: svn+ssh://svn.code.sf.net/p/bigdata/code/branches/SESAME_2_7@8430 8f7bc0f5-282e-0410-95e3-8d296e9bb460
1 parent 3fe7162 commit 467fa39

File tree

88 files changed

+8236
-13373
lines changed

Some content is hidden

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

88 files changed

+8236
-13373
lines changed

.classpath

+6-5
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@
4040
<classpathentry exported="true" kind="lib" path="bigdata/lib/unimi/colt-1.2.0.jar"/>
4141
<classpathentry exported="true" kind="lib" path="bigdata/lib/icu/icu4j-4.8.jar"/>
4242
<classpathentry exported="true" kind="lib" path="bigdata/lib/icu/icu4j-charset-4.8.jar"/>
43-
<classpathentry exported="true" kind="lib" path="bigdata/lib/junit-3.8.1.jar" sourcepath="/root/.m2/repository/junit/junit/3.8.1/junit-3.8.1-sources.jar"/>
4443
<classpathentry exported="true" kind="lib" path="bigdata-jini/lib/jini/lib/browser.jar"/>
4544
<classpathentry exported="true" kind="lib" path="bigdata-jini/lib/jini/lib/classserver.jar"/>
4645
<classpathentry exported="true" kind="lib" path="bigdata-jini/lib/jini/lib/fiddler.jar"/>
@@ -76,10 +75,6 @@
7675
<classpathentry exported="true" kind="lib" path="bigdata-sails/lib/httpcomponents/commons-fileupload-1.2.2.jar"/>
7776
<classpathentry exported="true" kind="lib" path="bigdata-sails/lib/httpcomponents/commons-io-2.1.jar"/>
7877
<classpathentry exported="true" kind="lib" path="bigdata/lib/apache/log4j-1.2.17.jar"/>
79-
<classpathentry exported="true" kind="lib" path="bigdata-rdf/lib/openrdf-sesame-2.6.10-onejar.jar" sourcepath="/Users/bryan/Documents/workspace/org.openrdf.sesame-2.6.10"/>
80-
<classpathentry exported="true" kind="lib" path="bigdata-rdf/lib/sesame-rio-testsuite-2.6.10.jar"/>
81-
<classpathentry exported="true" kind="lib" path="bigdata-sails/lib/sesame-sparql-testsuite-2.6.10.jar"/>
82-
<classpathentry exported="true" kind="lib" path="bigdata-sails/lib/sesame-store-testsuite-2.6.10.jar"/>
8378
<classpathentry exported="true" kind="lib" path="bigdata-rdf/lib/nxparser-1.2.3.jar"/>
8479
<classpathentry exported="true" kind="lib" path="bigdata/lib/jetty/jetty-client-9.1.4.v20140401.jar"/>
8580
<classpathentry exported="true" kind="lib" path="bigdata/lib/jetty/jetty-continuation-9.1.4.v20140401.jar"/>
@@ -99,5 +94,11 @@
9994
<classpathentry kind="lib" path="bigdata-blueprints/lib/blueprints-test-2.5.0.jar"/>
10095
<classpathentry kind="lib" path="bigdata-blueprints/lib/rexster-core-2.5.0.jar"/>
10196
<classpathentry kind="lib" path="bigdata-blueprints/lib/commons-configuration-1.10.jar"/>
97+
<classpathentry kind="lib" path="bigdata-rdf/lib/openrdf-sesame-2.7.11-onejar.jar"/>
98+
<classpathentry kind="lib" path="bigdata-rdf/lib/sesame-rio-testsuite-2.7.11.jar"/>
99+
<classpathentry kind="lib" path="bigdata-sails/lib/sesame-sparql-testsuite-2.7.11.jar" sourcepath="/Users/mikepersonick/.m2/repository/org/openrdf/sesame/sesame-sparql-testsuite/2.7.11/sesame-sparql-testsuite-2.7.11-sources.jar"/>
100+
<classpathentry kind="lib" path="bigdata-sails/lib/sesame-store-testsuite-2.7.11.jar" sourcepath="/Users/mikepersonick/.m2/repository/org/openrdf/sesame/sesame-store-testsuite/2.7.11/sesame-store-testsuite-2.7.11-sources.jar"/>
101+
<classpathentry kind="lib" path="bigdata/lib/junit-4.11.jar" sourcepath="/Users/mikepersonick/.m2/repository/junit/junit/4.11/junit-4.11-sources.jar"/>
102+
<classpathentry kind="lib" path="bigdata/lib/hamcrest-core-1.3.jar"/>
102103
<classpathentry kind="output" path="bin"/>
103104
</classpath>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
eclipse.preferences.version=1
2+
encoding//bigdata-sails/src/test/org/openrdf/repository/RepositoryConnectionTest.java=UTF-8

bigdata-gom/src/test/com/bigdata/gom/TestNumericBNodes.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
import org.openrdf.rio.RDFParserRegistry;
77

88
import com.bigdata.rdf.axioms.NoAxioms;
9-
import com.bigdata.rdf.rio.nquads.NQuadsParser;
109
import com.bigdata.rdf.rio.turtle.BigdataTurtleParser;
1110
import com.bigdata.rdf.store.AbstractTripleStore;
1211

@@ -32,7 +31,7 @@ protected Properties getProperties() throws Exception {
3231
* Mike,
3332
*
3433
* If you load the attached file into the NSS and then execute
35-
* bigdata-gom/samples/É/Example1 (or Example2) it will throw an exception
34+
* bigdata-gom/samples//Example1 (or Example2) it will throw an exception
3635
* having to do with bnode Ids. This is the issue that David Booth posted
3736
* here [1].
3837
*
2.51 MB
Binary file not shown.
1.31 MB
Binary file not shown.

bigdata-rdf/src/java/com/bigdata/rdf/ServiceProviderHook.java

+14-7
Original file line numberDiff line numberDiff line change
@@ -32,17 +32,16 @@
3232
import java.util.ServiceLoader;
3333

3434
import org.openrdf.query.QueryLanguage;
35+
import org.openrdf.query.resultio.TupleQueryResultParserRegistry;
3536
import org.openrdf.query.resultio.TupleQueryResultWriterRegistry;
3637
import org.openrdf.rio.RDFFormat;
3738
import org.openrdf.rio.RDFParserRegistry;
3839
import org.openrdf.rio.RDFWriterRegistry;
3940

4041
import com.bigdata.rdf.model.StatementEnum;
4142
import com.bigdata.rdf.rio.json.BigdataSPARQLResultsJSONParserFactory;
42-
import com.bigdata.rdf.rio.json.BigdataSPARQLResultsJSONWriterFactoryForConstruct;
43-
import com.bigdata.rdf.rio.json.BigdataSPARQLResultsJSONWriterFactoryForSelect;
43+
import com.bigdata.rdf.rio.json.BigdataSPARQLResultsJSONWriterFactory;
4444
import com.bigdata.rdf.rio.ntriples.BigdataNTriplesParserFactory;
45-
import com.bigdata.rdf.rio.rdfxml.BigdataRDFXMLWriterFactory;
4645
import com.bigdata.rdf.rio.turtle.BigdataTurtleParserFactory;
4746
import com.bigdata.rdf.rio.turtle.BigdataTurtleWriterFactory;
4847

@@ -126,19 +125,27 @@ synchronized static public void forceLoad() {
126125
* Allows parsing of JSON SPARQL Results with an {s,p,o,[c]} header.
127126
* RDR-enabled.
128127
*/
129-
r.add(new BigdataSPARQLResultsJSONParserFactory());
128+
// r.add(new BigdataSPARQLResultsJSONParserFactory());
130129

131130
}
132131

133132
{
134133

135134
final TupleQueryResultWriterRegistry r = TupleQueryResultWriterRegistry.getInstance();
136135

137-
// add our custom RDR-enabled JSON writer (RDR-enabled)
138-
r.add(new BigdataSPARQLResultsJSONWriterFactoryForSelect());
136+
// add our custom RDR-enabled JSON writer
137+
r.add(new BigdataSPARQLResultsJSONWriterFactory());
139138

140139
}
141140

141+
{
142+
143+
final TupleQueryResultParserRegistry r = TupleQueryResultParserRegistry.getInstance();
144+
145+
// add our custom RDR-enabled JSON parser
146+
r.add(new BigdataSPARQLResultsJSONParserFactory());
147+
148+
}
142149

143150
// Ditto, but for the writer.
144151
{
@@ -150,7 +157,7 @@ synchronized static public void forceLoad() {
150157
r.add(new BigdataTurtleWriterFactory());
151158

152159
// RDR-enabled
153-
r.add(new BigdataSPARQLResultsJSONWriterFactoryForConstruct());
160+
// r.add(new BigdataSPARQLResultsJSONWriterFactory());
154161

155162
}
156163

bigdata-rdf/src/java/com/bigdata/rdf/model/BNodeContextFactory.java

+5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package com.bigdata.rdf.model;
22

3+
import java.util.Date;
34
import java.util.UUID;
45

56
import javax.xml.datatype.XMLGregorianCalendar;
@@ -153,6 +154,10 @@ public BigdataLiteral createLiteral(XMLGregorianCalendar arg0) {
153154
return valueFactory.createLiteral(arg0);
154155
}
155156

157+
public BigdataLiteral createLiteral(Date arg0) {
158+
return valueFactory.createLiteral(arg0);
159+
}
160+
156161
public BigdataStatement createStatement(Resource s, URI p, Value o) {
157162
return valueFactory.createStatement(s, p, o);
158163
}

bigdata-rdf/src/java/com/bigdata/rdf/model/BigdataValueFactory.java

+4
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@
2727

2828
package com.bigdata.rdf.model;
2929

30+
import java.util.Date;
31+
3032
import javax.xml.datatype.XMLGregorianCalendar;
3133

3234
import org.openrdf.model.BNode;
@@ -114,6 +116,8 @@ public interface BigdataValueFactory extends ValueFactory {
114116

115117
BigdataLiteral createLiteral(XMLGregorianCalendar arg0);
116118

119+
BigdataLiteral createLiteral(Date arg0);
120+
117121
BigdataLiteral createLiteral(String label, String language);
118122

119123
BigdataLiteral createLiteral(String label, URI datatype);

bigdata-rdf/src/java/com/bigdata/rdf/model/BigdataValueFactoryImpl.java

+16-1
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,19 @@
2727

2828
package com.bigdata.rdf.model;
2929

30+
import java.util.Date;
31+
import java.util.GregorianCalendar;
3032
import java.util.LinkedHashMap;
3133
import java.util.Map;
3234
import java.util.UUID;
3335

36+
import javax.xml.datatype.DatatypeConfigurationException;
37+
import javax.xml.datatype.DatatypeFactory;
3438
import javax.xml.datatype.XMLGregorianCalendar;
3539

3640
import org.openrdf.model.BNode;
3741
import org.openrdf.model.Literal;
3842
import org.openrdf.model.Resource;
39-
import org.openrdf.model.Statement;
4043
import org.openrdf.model.URI;
4144
import org.openrdf.model.Value;
4245
import org.openrdf.model.datatypes.XMLDatatypeUtil;
@@ -396,6 +399,18 @@ public BigdataLiteralImpl createLiteral(double arg0) {
396399
return new BigdataLiteralImpl(this, "" + arg0, null, xsd_double);
397400

398401
}
402+
403+
public BigdataLiteralImpl createLiteral(final Date date) {
404+
GregorianCalendar c = new GregorianCalendar();
405+
c.setTime(date);
406+
try {
407+
XMLGregorianCalendar xmlGregCalendar = DatatypeFactory.newInstance().newXMLGregorianCalendar(c);
408+
return createLiteral(xmlGregCalendar);
409+
}
410+
catch (DatatypeConfigurationException e) {
411+
throw new RuntimeException("Could not instantiate javax.xml.datatype.DatatypeFactory", e);
412+
}
413+
}
399414

400415
public BigdataLiteralImpl createLiteral(final XMLGregorianCalendar arg0) {
401416

0 commit comments

Comments
 (0)