1TRACKER3-ENDPOINT(1) Tracker manual TRACKER3-ENDPOINT(1)
2
3
4
6 tracker3-endpoint - Create a SPARQL endpoint
7
9 tracker3 endpoint [--dbus-service | -b] <service_name>
10 [--database-path | -d] <database_path>
11 [[--ontology | -o] <ontology_name> |
12 [--ontology-path | -p] <ontology_path>]
13 [--http-port] <port>
14 [--loopback]
15 [[--system | --session]]
16
18 This command allows creating SPARQL endpoints. The endpoint will be
19 able to handle SPARQL select and update queries, and notify about
20 changes in it.
21
22 The endpoint is exported via DBus, accessible through the given
23 service_name, either using it in a SERVICE clause, or by creating a
24 dedicated bus-based SPARQL connection.
25
26 When creating a database, the ontology_name (or alternatively, a
27 ontology_path) must be provided in order to generate the database. If
28 ontology_name is used, the ontology must exist in
29 $datadir/tracker/ontologies
30
31 The database itself will be stored according to database_path.
32
34 -b, --dbus-service=<service_name>
35 Service name to use on the endpoint.
36
37 -d, --database-path=<database_path>
38 The path where the database will be stored.
39
40 -o, --ontology
41 The name of an ontology in $datadir/tracker/ontologies to use on
42 the constructed database.
43
44 -p, --ontology-path
45 Full path to an ontology to use on the constructed database.
46
47 --session
48 Use the session bus. This is the default.
49
50 --system
51 Use the system bus.
52
53 -l, --list
54 List all SPARQL endpoints available in DBus
55
56 --http-port
57 Creates a HTTP endpoint that listens in the specified port
58
59 --loopback
60 Allows only HTTP connections in the loopback device. Only effective
61 with HTTP endpoints.
62
64 Export a Nepomuk endpoint with the org.example.Example1 bus name.
65
66 $ tracker3 endpoint -b org.example.Example1 -o nepomuk -d /tmp/example1
67
68 Access this endpoint with the tracker3-sparql(1) subcommand.
69
70 $ tracker3 sparql --dbus-service org.example.Example1 -q "
71 SELECT ?s ?o
72 WHERE {
73 ?u a ?o
74 }"
75
76 Export a Nepomuk endpoint via HTTP.
77
78 $ tracker3 endpoint --http-port 8080 -o nepomuk --loopback
79
80 Access this endpoint via HTTP.
81
82 $ tracker3 sparql --remote-service http://127.0.0.1:8080/sparql -q "
83 SELECT ?u {
84 ?u a rdfs:Resource
85 }"
86
88 tracker3-sparql(1),
89
90 https://www.w3.org/TR/sparql11-query/
91
92
93
94 3.2.1 11/01/2021 TRACKER3-ENDPOINT(1)