-
Notifications
You must be signed in to change notification settings - Fork 0
/
Usage
34 lines (24 loc) · 1.57 KB
/
Usage
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# link-based-complementary-fusion
A light-weight tool to fuse complementary facts to DBpedia identifiers
Usage:
Under the directory created from downloading/cloning, build the project and
produce an executable jar using
$ mvn package
The resulting target directory contains jar file JRCNamesJena-0.0.2-SNAPSHOT.jar that include
the project and dependency files.
Use the following format to run it
```$ java -jar ./target/JRCNamesJena-0.0.2-SNAPSHOT.jar --query <path/to/query.rq> [--limit <page size>] [--outdir <output files directory>] [--outfileprefix <prefix>] --sparqlendpoint <URI to SPRAQL endpoint>
```
where the arguments are:
query A SPARQL query of CONSTRUCT type, which is used to to match data against DBPedia.
limit Required page size; Defaults to 10000, actual page size should be checked against the SPARQL endpoint.
outdir Directory where output (paged) files are written, defaults to the user home directory
outputfileprefix Prefix for the output file. Each file will additionally have a number which corresponds to the
offset of records from the SPARQL endpoint.
sparqlendpoint URI to the SPARQL endpoint
To link DBPedia resources of persons and organizations to their corresponding entries in JRC-Names use:
```
$ java -jar ./target/JRCNamesJena-0.0.2-SNAPSHOT.jar --query ./resources/jrcnames-fuse.rq --limit 10000
--outdir ./out --outfileprefix p --sparqlendpoint http://data.europa.eu/euodp/sparqlep
```
(Values of outdir and outfileprefix can be of course different than those suggested above)