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

Commit 786354c

Browse files
Update README.md
1 parent 82f096b commit 786354c

1 file changed

Lines changed: 71 additions & 23 deletions

File tree

README.md

Lines changed: 71 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -15,34 +15,13 @@ Contains the core Inference API based on Apache Flink.
1515
### sansa-inference-tests
1616
Contains common test classes and data.
1717

18-
## Usage
19-
```
20-
RDFGraphMaterializer 0.1.0
21-
Usage: RDFGraphMaterializer [options]
22-
23-
24-
-i <file> | --input <file>
25-
the input file in N-Triple format
26-
-o <directory> | --out <directory>
27-
the output directory
28-
--single-file
29-
write the output to a single file in the output directory
30-
--sorted
31-
sorted output of the triples (per file)
32-
-p {rdfs | owl-horst} | --profile {rdfs | owl-horst}
33-
the reasoning profile
34-
--help
35-
prints this usage text
36-
```
37-
### Example
38-
39-
`RDFGraphMaterializer -i /PATH/TO/FILE/test.nt -o /PATH/TO/TEST_OUTPUT_DIRECTORY/ -p rdfs` will compute the RDFS materialization on the data contained in `test.nt` and write the inferred RDF graph to the given directory `TEST_OUTPUT_DIRECTORY`.
4018

19+
## Setup
4120
### From source
4221

4322
To install the SANSA Inference API, you need to download it via Git and install it via Maven.
4423

45-
git clone https://github.com/AKSW/SANSA-Inference.git
24+
git clone https://github.com/SANSA-Stack/SANSA-Inference.git
4625
cd SNASA-Inference
4726
mvn clean install
4827
Afterwards, you have to add the dependency to your pom.xml
@@ -63,3 +42,72 @@ For Apache Flink
6342
<version>0.1.0-SNAPSHOT</version>
6443
</dependency>
6544
```
45+
Using Maven pre-build artifacts
46+
47+
1. Add AKSW Maven repository to your pom.xml (will be added to Maven Central soon)
48+
```xml
49+
<repository>
50+
<id>maven.aksw.snapshots</id>
51+
<name>University Leipzig, AKSW Maven2 Repository</name>
52+
<url>http://maven.aksw.org/archiva/repository/snapshots</url>
53+
<releases>
54+
<enabled>false</enabled>
55+
</releases>
56+
<snapshots>
57+
<enabled>true</enabled>
58+
</snapshots>
59+
</repository>
60+
61+
<repository>
62+
<id>maven.aksw.internal</id>
63+
<name>University Leipzig, AKSW Maven2 Internal Repository</name>
64+
<url>http://maven.aksw.org/archiva/repository/internal</url>
65+
<releases>
66+
<enabled>true</enabled>
67+
</releases>
68+
<snapshots>
69+
<enabled>false</enabled>
70+
</snapshots>
71+
</repository>
72+
```
73+
2. Add dependency to your pom.xml
74+
75+
For Apache Spark
76+
```xml
77+
<dependency>
78+
<groupId>net.sansa-stack</groupId>
79+
<artifactId>sansa-inference-spark</artifactId>
80+
<version>0.1.0-SNAPSHOT</version>
81+
</dependency>
82+
```
83+
For Apache Flink
84+
```xml
85+
<dependency>
86+
<groupId>net.sansa-stack</groupId>
87+
<artifactId>sansa-inference-flink</artifactId>
88+
<version>0.1.0-SNAPSHOT</version>
89+
</dependency>
90+
```
91+
92+
## Usage
93+
```
94+
RDFGraphMaterializer 0.1.0
95+
Usage: RDFGraphMaterializer [options]
96+
97+
98+
-i <file> | --input <file>
99+
the input file in N-Triple format
100+
-o <directory> | --out <directory>
101+
the output directory
102+
--single-file
103+
write the output to a single file in the output directory
104+
--sorted
105+
sorted output of the triples (per file)
106+
-p {rdfs | owl-horst} | --profile {rdfs | owl-horst}
107+
the reasoning profile
108+
--help
109+
prints this usage text
110+
```
111+
### Example
112+
113+
`RDFGraphMaterializer -i /PATH/TO/FILE/test.nt -o /PATH/TO/TEST_OUTPUT_DIRECTORY/ -p rdfs` will compute the RDFS materialization on the data contained in `test.nt` and write the inferred RDF graph to the given directory `TEST_OUTPUT_DIRECTORY`.

0 commit comments

Comments
 (0)