Skip to content

Commit

Permalink
Update readme taken from develop.
Browse files Browse the repository at this point in the history
  • Loading branch information
johardi committed Jul 8, 2014
1 parent 978855d commit 19d0b65
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions README.md
Expand Up @@ -28,7 +28,7 @@ ApplicationManager manager = new ApplicationFactory()

### SPARQL Query Answer

The `com.obidea.semantika.app.ApplicationManager` then creates `com.obidea.semantika.queryanswer.SparqlQueryEngine` which is a thread-safe object that is initiated once to serve SPARQL query answering.
The `ApplicationManager` then creates `SparqlQueryEngine` which is a thread-safe object that is initiated once to serve SPARQL query answering.
```java
SparqlQueryEngine queryEngine = manager.createQueryEngine();
queryEngine.start();
Expand All @@ -41,8 +41,6 @@ queryEngine.stop();
In addition, the query engine allows you to manage result fetching for efficient data retrieval. The example below shows you how to create a simple paging where each page contains 100 items.

```java
SparqlQueryEngine queryEngine = manager.createQueryEngine();
queryEngine.start();
int offset = 0;
int limit = 100;
int maxPage = 10;
Expand All @@ -56,12 +54,11 @@ while (pageNum <= maxPage) {
offset += limit;
pageNum++;
}
queryEngine.stop();
```

### RDB2RDF Export

The `com.obidea.semantika.app.ApplicationManager` can also create `com.obidea.semantika.materializer.RdfMaterializerEngine` which is a thread-safe object that is initiated once to serve RDB2RDF data exporting.
The `ApplicationManager` can also create `RdfMaterializerEngine` which is a thread-safe object that is initiated once to serve RDB2RDF data exporting.

```java
RdfMaterializerEngine exporter = manager.createMaterializerEngine().useNTriples();
Expand Down

0 comments on commit 19d0b65

Please sign in to comment.