Skip to content

Commit 924097b

Browse files
authored
documentation for shorthand sq for sparqlquery.py
1 parent 36f62c3 commit 924097b

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

rdflib/tools/sparqlquery.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@
44
55
example usage:
66
```bash
7-
sparqlquery path/to/data.ttl -q "SELECT ?x WHERE {?x a foaf:Person. }"
7+
sq path/to/data.ttl -q "SELECT ?x WHERE {?x a foaf:Person. }"
88
rdfpipe test.ttl | sparqlquery - -q "SELECT ?x WHERE {?x a foaf:Person. }" --format json
9-
sparqlquery data.ttl -q "ASK {:john a foaf:Person}" --format xml | grep true
10-
sparqlquery path/to/data.ttl --query-file query.rq
11-
sparqlquery data1.ttl data2.ttl -q "DESCRIBE <http://example.com/john>" --format turtle:+spacious
12-
sparqlquery http://example.com/sparqlendpoint --query-file query.rq
13-
sparqlquery http://example.com/sparqlendpoint --query-file query.rq --username user --password secret
14-
sparqlquery /pyth/to/berkeley.db -q "SELECT ?x WHERE {?x a foaf:Person. }" --remote-storetype BerkeleyDB
9+
sq data.ttl -q "ASK {:john a foaf:Person}" --format xml | grep true
10+
sq path/to/data.ttl --query-file query.rq
11+
sq data1.ttl data2.ttl -q "DESCRIBE <http://example.com/john>" --format turtle:+spacious
12+
sq http://example.com/sparqlendpoint --query-file query.rq
13+
sq http://example.com/sparqlendpoint --query-file query.rq --username user --password secret
14+
sq /pyth/to/berkeley.db -q "SELECT ?x WHERE {?x a foaf:Person. }" --remote-storetype BerkeleyDB
1515
```
1616
1717
Tip: You can check the truth value for an ASK query, by regex in stdout for 'true'

0 commit comments

Comments
 (0)