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

Commit 82f096b

Browse files
Update README.md
1 parent 68a2c8f commit 82f096b

1 file changed

Lines changed: 35 additions & 4 deletions

File tree

README.md

Lines changed: 35 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,49 @@ Contains common test classes and data.
1717

1818
## Usage
1919
```
20+
RDFGraphMaterializer 0.1.0
2021
Usage: RDFGraphMaterializer [options]
21-
22-
22+
23+
2324
-i <file> | --input <file>
2425
the input file in N-Triple format
2526
-o <directory> | --out <directory>
2627
the output directory
27-
-p {rdfs | owl-horst | owl-el | owl-rl} | --profile {rdfs | owl-horst | owl-el | owl-rl}
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}
2833
the reasoning profile
2934
--help
3035
prints this usage text
3136
```
3237
### Example
3338

34-
`RDFGraphMaterializer -i /PATH/TO/FILE/test.nt -o /PATH/TO/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.
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`.
40+
41+
### From source
42+
43+
To install the SANSA Inference API, you need to download it via Git and install it via Maven.
44+
45+
git clone https://github.com/AKSW/SANSA-Inference.git
46+
cd SNASA-Inference
47+
mvn clean install
48+
Afterwards, you have to add the dependency to your pom.xml
49+
50+
For Apache Spark
51+
```xml
52+
<dependency>
53+
<groupId>net.sansa-stack</groupId>
54+
<artifactId>sansa-inference-spark</artifactId>
55+
<version>0.1.0-SNAPSHOT</version>
56+
</dependency>
57+
```
58+
For Apache Flink
59+
```xml
60+
<dependency>
61+
<groupId>net.sansa-stack</groupId>
62+
<artifactId>sansa-inference-flink</artifactId>
63+
<version>0.1.0-SNAPSHOT</version>
64+
</dependency>
65+
```

0 commit comments

Comments
 (0)