Skip to content
Browse files

Another chnge to convert code from beta AG 4 to released AG 4.

  • Loading branch information...
1 parent 5e733f0 commit 0b77b88e03eca0f703e1ae6c75ab20aec2331023 @mark-watson committed
Showing with 3 additions and 4 deletions.
  1. BIN lib/agraph-4.0m2.jar
  2. +3 −4 src/com/knowledgebooks/rdf/AllegroGraphServerProxy.java
View
BIN lib/agraph-4.0m2.jar
Binary file not shown.
View
7 src/com/knowledgebooks/rdf/AllegroGraphServerProxy.java
@@ -5,17 +5,14 @@
import org.openrdf.model.Statement;
import org.openrdf.model.URI;
import org.openrdf.model.Value;
-import org.openrdf.model.vocabulary.RDF;
import org.openrdf.query.BindingSet;
import org.openrdf.query.QueryLanguage;
import org.openrdf.query.TupleQuery;
import org.openrdf.query.TupleQueryResult;
-import org.openrdf.repository.Repository;
import org.openrdf.repository.RepositoryResult;
import java.util.ArrayList;
import java.util.List;
-import java.util.Set;
/**
* Created by IntelliJ IDEA.
@@ -174,7 +171,9 @@ public void addTriple(String subject, URI predicate, Literal object) throws Exce
}
public void registerFreetextPredicate(String predicate) throws Exception {
- conn.registerFreetextPredicate(valueFactory.createURI(predicate));
+ //conn.registerFreetextPredicate(valueFactory.createURI(predicate));
+ // NOTE: you would want to change this in any sort of production code:
+ conn.createFreetextIndex("index"+System.currentTimeMillis(), new URI[]{valueFactory.createURI(predicate)});
//if (Triple.RDF_LOCATION == null) Triple.RDF_LOCATION = location;
}

0 comments on commit 0b77b88

Please sign in to comment.
Something went wrong with that request. Please try again.