Skip to content
This repository was archived by the owner on Oct 8, 2020. It is now read-only.

Commit fc9cec9

Browse files
Maven usage section updated
1 parent b27042d commit fc9cec9

File tree

1 file changed

+14
-44
lines changed

1 file changed

+14
-44
lines changed

README.md

Lines changed: 14 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ git clone https://github.com/SANSA-Stack/SANSA-Inference.git
5959
cd SANSA-Inference
6060
mvn clean install
6161
```
62-
Afterwards, you have to add the dependency to your pom.xml
62+
Afterwards, you have to add the dependency to your `pom.xml`
6363

6464
For Apache Spark
6565
```xml
@@ -81,78 +81,48 @@ with `VERSION` beeing the released version you want to use.
8181

8282
### Using Maven pre-build artifacts
8383

84-
1. Add AKSW Maven repository to your pom.xml (will be added to Maven Central soon)
85-
```xml
86-
<repository>
87-
<id>maven.aksw.snapshots</id>
88-
<name>University Leipzig, AKSW Maven2 Repository</name>
89-
<url>http://maven.aksw.org/archiva/repository/snapshots</url>
90-
<releases>
91-
<releases>
92-
<enabled>false</enabled>
93-
</releases>
94-
<snapshots>
95-
<enabled>true</enabled>
96-
</snapshots>
97-
</repository>
98-
99-
<repository>
100-
<id>maven.aksw.internal</id>
101-
<name>University Leipzig, AKSW Maven2 Internal Repository</name>
102-
<url>http://maven.aksw.org/archiva/repository/internal</url>
103-
<releases>
104-
<enabled>true</enabled>
105-
</releases>
106-
<snapshots>
107-
<enabled>false</enabled>
108-
</snapshots>
109-
</repository>
110-
```
111-
2\. Add dependency to your pom.xml
84+
The latest release is available in Maven Central, thus, you only have to add the following dependency to your `pom.xml`:
11285

11386
For Apache Spark
11487
```xml
11588
<dependency>
11689
<groupId>net.sansa-stack</groupId>
11790
<artifactId>sansa-inference-spark_2.11</artifactId>
118-
<version>VERSION</version>
91+
<version>0.4.0</version>
11992
</dependency>
12093
```
12194
and for Apache Flink
12295
```xml
12396
<dependency>
12497
<groupId>net.sansa-stack</groupId>
12598
<artifactId>sansa-inference-flink_2.11</artifactId>
126-
<version>VERSION</version>
99+
<version>0.4.0</version>
127100
</dependency>
128101
```
129-
with `VERSION` beeing the released version you want to use.
102+
130103
### Using SBT
131-
SANSA Inference API has not been published on Maven Central yet, thus, you have to add an additional repository as follows
132-
```scala
133-
resolvers ++= Seq(
134-
"AKSW Maven Releases" at "http://maven.aksw.org/archiva/repository/internal",
135-
"AKSW Maven Snapshots" at "http://maven.aksw.org/archiva/repository/snapshots"
136-
)
137-
```
138-
Then you have to add a dependency on either the Apache Spark or the Apache Flink module.
104+
105+
Add the following lines to your SBT file:
139106

140107
For Apache Spark add
141108
```scala
142-
"net.sansa-stack" % "sansa-inference-spark_2.11" % VERSION
109+
libraryDependencies += "net.sansa-stack" % "sansa-inference-spark_2.11" % "0.4.0"
143110
```
144111

145112
and for Apache Flink add
146113
```scala
147-
"net.sansa-stack" % "sansa-inference-flink_2.11" % VERSION
114+
libraryDependencies += "net.sansa-stack" % "sansa-inference-flink_2.11" % "0.4.0"
148115
```
116+
### Using Snapshots
117+
118+
Snapshot version are only avalibale via our custom Maven repository located at http://maven.aksw.org/archiva/repository/snapshots .
119+
SANSA Inference API has not been published on Maven Central yet, thus, you have to add an additional repository as follows
149120

150-
where `VERSION` is the released version you want to use.
151121

152122
## Usage
153123
Besides using the Inference API in your application code, we also provide a command line interface with various options that allow for a convenient way to use the core reasoning algorithms:
154124
```
155-
RDFGraphMaterializer 0.2.0
125+
RDFGraphMaterializer 0.4.0
156126
Usage: RDFGraphMaterializer [options]
157127
158128
-i, --input <path1>,<path2>,...

0 commit comments

Comments
 (0)