TINYSPARQL-INTROSPE(1)
โจ TINYSPARQL-INTROSPECT ๐ (tinysparql-introspect)
okay so bestie, this is a page from the TinySPARQL manual and honestly? it's the "let me look inside the database and see what's going on" tool ๐. it's tinysparql-introspect, and it's spelled INTROSPE in the header bc manpage headers are like that, iykyk.
๐ธ SYNOPSIS ๐ธ
tinysparql introspect [(-d |--database) <file> | (-b | --dbus-service) <busname> | (-r | --remote-service) <url>]
[(-t | --tree)] [(-t | --tree) <class>] [(-s | --search) <needle>]t
tinysparql introspect [(-d |--database) <file> | (-b | --dbus-service) <busname> | (-r | --remote-service) <url>]
[(-c | --list-classes)] [(-p | --list-properties)] [(-i | --list-indexes)] [(-n | --list-notifies)] [(-g | --list-graphs)]
(yes there's a lil stray t at the end of the first synopsis line โ not me, that's literally what it says, copy it exactly ๐ญ)
๐ฆ DESCRIPTION ๐ฆ
this command is your little peek-behind-the-curtain moment โจ it lets you probe the current database schema (also known as the ontology, very main character word) and the endpoint's capabilities. and like โ if you call it with no additional arguments beyond the one that specifies the database connection, it just goes ahead and extracts all the information for you. slay, it did the work so you don't have to ๐
in terms of the database ontology, it's genuinely so easy to find out:
- what properties are indexed for speed ๐ฅ
- what properties get notified on changes ๐
- what classes are available
- and the properties belonging to those classes ๐
there are also visual tools that display an ascii tree layout of the classes and their relationships to each other โ it's giving old-school hacker terminal aesthetic and we're obsessed ๐
๐ OPTIONS ๐
-b,--dbus-service=<service_name>โ connects to a SPARQL endpoint at a D-Bus name. ๐-d,--database-path=<database_path>โ connects to a database by location in the filesystem. ๐-r,--remote-service=<url>โ connects to a HTTP SPARQL endpoint. ๐-c,--list-classesโ returns a list of classes which describe the ontology used for storing data. these classes are also used in queries. for example,http://www.w3.org/2000/01/rdf-schema#Resourceis one of many classes which should be returned here. ๐-x,--list-class-prefixesโ returns a list of prefixes in shortened and long form. all RDF classes and properties have such a prefix that may be expressed in either form. ๐ซ-p,--list-properties=[class]โ returns a list of properties which pertain to a class. you can use both formats here for the class, either the full namehttp://tracker.api.gnome.org/ontology/v3/nfo#Videoor the shortened prefix namenfo:Video. see also--treeand--query. ๐-n,--list-notifies=[class]โ returns a list of classes which are notified over D-Bus about any changes that occur in the database. the class does not have to be supplied here โ it's optional and filters the results according to any argument supplied. with no class, all classes are listed. ๐-i,--list-indexes=[property]โ returns a list of properties which are indexed in the database. indexes improve query speed but also add an indexing penalty (trade-offs, always trade-offs ๐ฎโ๐จ). the property does not have to be supplied here โ it's optional and filters the results according to any argument supplied. with no property, all properties are listed. โก-g,--list-graphsโ list all the named graphs in the database. these are used by the filesystem miner to separate metadata so that apps can only see the information relevant to them. ๐๏ธ-t,--tree=[class]โ prints a tree showing all parent classes of class in the ontology. the class can be provided in shorthand or longhand (see--get-shorthandand--get-longhandfor details). ๐ณ
if no class is given, the entire tree is shown. no cap, the whole thing ๐ซถ
the --search command line option can be used to highlight parts of the tree you're looking for. the search is case insensitive. ๐
the --properties command line option can be used to show properties for each class displayed. โจ
-s,--search=<needle>โ returns a list of classes and properties which partially match needle in the ontology. search is case insensitive. see also--tree. ๐ชก
๐ SEE ALSO ๐
tinysparql-endpoint(1). โ go read that one next bestie, it's the sibling ๐
also lowkey โ some of the flags reference other flags (--get-shorthand,--get-longhand,--query,--properties) so like, don't come for me if you can't find them in this list, they're mentioned in the original too, fr fr ๐
and that's the whole page!! version 3.12.0, dated 09/15/2026, brought to you by the TinySPARQL manual crew โ mwah, ty for reading, go introspect something iconic ๐ โจ๐๐ฆ
๐ฆ where this page comes from
- arch rolling: tinysparql 3.12.0-1 ยท GPL-2.0-or-later
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms