Skip to content

Support query templates #21

@robertmuil

Description

@robertmuil

Define a syntax and format (.rqt) that allows variable placeholders, such that the query command can give a template and variable bindings on the CLI.

e.g.:
pythinfer query 'SELECT ?s { ?s rdfs:label "?[NAME]" }' 'Joe Bloggs'

Options for placeholder syntax:

  • double curly braces: {{ ... }} - looks like SPARQL, easily confused
  • query and curly braces: ?{{ ... }} -
  • double square braces: [[ ... ]] + similar to natural way to add placeholder in text, - easily confused with blank nodes
  • query and single square braces: ?[ ... ] + very similar to natural placeholders, and variable syntax, +not valid sparql syntax
    ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions