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 Users should be careful about the --http-port option, consider using it
32 only combined with the --loopback option.
33
34 The database itself will be stored according to database_path.
35
37 -b, --dbus-service=<service_name>
38 Service name to use on the endpoint.
39
40 -d, --database-path=<database_path>
41 The path where the database will be stored.
42
43 -o, --ontology
44 The name of an ontology in $datadir/tracker/ontologies to use on
45 the constructed database.
46
47 -p, --ontology-path
48 Full path to an ontology to use on the constructed database.
49
50 --session
51 Use the session bus. This is the default.
52
53 --system
54 Use the system bus.
55
56 -l, --list
57 List all SPARQL endpoints available in DBus
58
59 --http-port
60 Creates a HTTP endpoint that listens in the specified port
61
62 --loopback
63 Allows only HTTP connections in the loopback device. Only effective
64 with HTTP endpoints.
65
67 Export a Nepomuk endpoint with the org.example.Example1 bus name.
68
69 $ tracker3 endpoint -b org.example.Example1 -o nepomuk -d /tmp/example1
70
71 Access this endpoint with the tracker3-sparql(1) subcommand.
72
73 $ tracker3 sparql --dbus-service org.example.Example1 -q "
74 SELECT ?s ?o
75 WHERE {
76 ?u a ?o
77 }"
78
79 Export a Nepomuk endpoint via HTTP.
80
81 $ tracker3 endpoint --http-port 8080 -o nepomuk --loopback
82
83 Access this endpoint via HTTP.
84
85 $ tracker3 sparql --remote-service http://127.0.0.1:8080/sparql -q "
86 SELECT ?u {
87 ?u a rdfs:Resource
88 }"
89
91 tracker3-sparql(1),
92
93 https://www.w3.org/TR/sparql11-query/
94
95
96
97 3.6.0 09/19/2023 TRACKER3-ENDPOINT(1)