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#Resource is 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 name http://tracker.api.gnome.org/ontology/v3/nfo#Video or the shortened prefix name nfo:Video. see also --tree and --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-shorthand and --get-longhand for 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