This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.ilrt.researchrevealed.describehandler; | |
import com.hp.hpl.jena.query.Dataset; | |
import com.hp.hpl.jena.rdf.model.Model; | |
import com.hp.hpl.jena.rdf.model.ModelFactory; | |
import com.hp.hpl.jena.rdf.model.RDFNode; | |
import com.hp.hpl.jena.rdf.model.Resource; | |
import com.hp.hpl.jena.sparql.ARQConstants; | |
import com.hp.hpl.jena.sparql.core.Quad; | |
import com.hp.hpl.jena.sparql.core.describe.DescribeHandler; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Index: src/com/hp/hpl/jena/sdb/layout2/hash/TupleLoaderHashH2.java | |
=================================================================== | |
--- src/com/hp/hpl/jena/sdb/layout2/hash/TupleLoaderHashH2.java (revision 8270) | |
+++ src/com/hp/hpl/jena/sdb/layout2/hash/TupleLoaderHashH2.java (working copy) | |
@@ -30,7 +30,7 @@ | |
} | |
@Override | |
- public boolean clearsOnCommit() { return true; } | |
+ public boolean clearsOnCommit() { return false; } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ export TDBROOT=/path/to/tdb/dir | |
$ $TDBROOT/bin/tdbloader --loc=db file1.nt file2.nt | |
...loads data into db/... | |
$ $TDBROOT/bin/tdbquery --results=RDF/XML --loc=db "construct { ?s ?p ?o } { ?s ?p ?o }" > out.rdf |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.ilrt.researchrevealed.describehandler; | |
import com.hp.hpl.jena.query.Dataset; | |
import com.hp.hpl.jena.rdf.model.Model; | |
import com.hp.hpl.jena.rdf.model.ModelFactory; | |
import com.hp.hpl.jena.rdf.model.RDFNode; | |
import com.hp.hpl.jena.rdf.model.Resource; | |
import com.hp.hpl.jena.rdf.model.Statement; | |
import com.hp.hpl.jena.rdf.model.StmtIterator; | |
import com.hp.hpl.jena.rdf.model.impl.StmtIteratorImpl; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.zip.GZIPInputStream; | |
import java.io.*; | |
import java.util.*; | |
import java.util.concurrent.*; | |
public class Calc | |
{ | |
public static void main(final String... args) throws Exception { | |
if (args.length == 0) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package example; | |
import com.hp.hpl.jena.query.larq.IndexLARQ; | |
import com.hp.hpl.jena.query.larq.LARQ; | |
import org.apache.lucene.index.CorruptIndexException; | |
import org.apache.lucene.index.IndexReader; | |
import org.apache.lucene.store.FSDirectory; | |
import org.slf4j.Logger; | |
import org.slf4j.LoggerFactory; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ curl -O http://openjena.org/repo-dev/com/hp/hpl/jena/tdb/0.8.10-SNAPSHOT/tdb-0.8.10-20110325.114138-12.zip | |
... | |
$ unzip tdb-0.8.10-20110325.114138-12.zip | |
... | |
$ export TDBROOT=TDB-0.8.10-SNAPSHOT | |
$ PATH=$TDBROOT/bin:$PATH | |
$ curl -O http://downloads.dbpedia.org/3.6/en/external_links_en.nt.bz2 | |
$ curl -O http://downloads.dbpedia.org/3.6/en/article_categories_en.nt.bz2 | |
$ curl -O http://downloads.dbpedia.org/3.6/en/homepages_en.nt.bz2 | |
$ bzcat *.bz2 | tdbloader2 --loc DBpedia /dev/stdin |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10000.times do |i| | |
print '.' | |
result1 = system './s-put', 'http://localhost:3030/ds', 'http://example.com/graph', 'D.nt' | |
result2 = system './s-delete', 'http://localhost:3030/ds', 'http://example.com/graph' | |
if (!result1 || !result2) then | |
STDERR.puts '\nFailed' | |
exit 1 | |
end | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ export CLASSPATH=~/.m2/repository/com/hp/hpl/jena/tdb/0.8.11-SNAPSHOT/tdb-0.8.11-SNAPSHOT.jar:~/.m2/repository/com/hp/hpl/jena/arq/2.8.9-SNAPSHOT/arq-2.8.9-20110816.103635-29.jar:~/.m2/repository/com/hp/hpl/jena/jena/2.6.4/jena-2.6.4.jar:~/.m2/repository/com/hp/hpl/jena/iri/0.8/iri-0.8.jar:~/.m2/repository/org/slf4j/slf4j-api/1.6.1/slf4j-api-1.6.1.jar:~/.m2/repository/org/slf4j/slf4j-log4j12/1.6.1/slf4j-log4j12-1.6.1.jar:~/.m2/repository/log4j/log4j/1.2.16/log4j-1.2.16.jar:~/.m2/repository/xerces/xercesImpl/2.7.1/xercesImpl-2.7.1.jar:~/.m2/repository/com/ibm/icu/icu4j/3.4.4/icu4j-3.4.4.jar:~/.m2/repository/org/apache/lucene/lucene-core/3.0.2/lucene-core-3.0.2.jar | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package net.rootdev.arpstax; | |
import java.util.Iterator; | |
import javax.xml.namespace.QName; | |
import javax.xml.stream.XMLEventReader; | |
import javax.xml.stream.XMLInputFactory; | |
import javax.xml.stream.XMLStreamException; | |
import javax.xml.stream.XMLStreamReader; | |
import javax.xml.stream.events.Attribute; | |
import javax.xml.stream.events.Characters; |