Skip to content

Conversation

@gpotdevin
Copy link
Contributor

Hello,

I created another two magics which you might find useful:

  • %shorthand
    which allows to create shortcuts to be used in the sparql queries. This can typically be used to create new keywords like "is" in sparql queries
    Ex. to shorten label queries:
    %shorthand lbl rdfs:label
    allows to use "lbl" instead of the full rdfs entry.

-%returnrawquery On|Off
which allows to obtain the very text submitted as sparql query. This takes into account the removed comments as well as the introduced shorthands, prefixes, headers, etc. This is handy when developing some query and using it elsewhere for instance.

There is as well the following minor modifications:
-extended comments
comments are allowed to have the form "spaces + #some comment" (not only "#some comment").

-some extra documentation
I documented the %outfile in readme.rst

It seemed to work properly on my local tests.

Paulo Villegas and others added 11 commits September 5, 2018 17:25
* new magic: , to add custom parameters to the query URL
* bugfix: `%lang all` magic didn't work
* new accepted format: xml (MIME type application/sparql-results+xml)
* new magic: `%auth <type> <user> <pwd>` (proposed by asanchez75)
* output file display uses full file path
…s with some leading spaces and then a # character.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants