Skip to content

Instantly share code, notes, and snippets.

@RubenVerborgh
Created June 1, 2022 20:08
Show Gist options
  • Save RubenVerborgh/fac194ed110cac30ad38f82e6c7dff8c to your computer and use it in GitHub Desktop.
Save RubenVerborgh/fac194ed110cac30ad38f82e6c7dff8c to your computer and use it in GitHub Desktop.
Espanso config for RDF devs
matches:
- trigger: ":rdf "
replace: http://www.w3.org/1999/02/22-rdf-syntax-ns#
- trigger: ":rdfs"
replace: http://www.w3.org/2000/01/rdf-schema#
- trigger: ":owl"
replace: http://www.w3.org/2002/07/owl#
- trigger: ":xsd"
replace: http://www.w3.org/2001/XMLSchema#
- trigger: ":dc "
replace: http://purl.org/dc/elements/1.1/
- trigger: ":dct"
replace: http://purl.org/dc/terms/
- trigger: ":foaf"
replace: http://xmlns.com/foaf/0.1/
- trigger: ":schema"
replace: http://schema.org/
- trigger: ":solid"
replace: http://www.w3.org/ns/solid/terms#
- trigger: ":ldp"
replace: http://www.w3.org/ns/ldp#
- trigger: ":pim"
replace: http://www.w3.org/ns/pim/space#
- trigger: ":vcard"
replace: http://www.w3.org/2006/vcard/ns#
# Autocomplete @prefix lines
- regex: "(?P<command>[:@]prefix\\s*(?P<prefix>\\w+)[: ])"
replace: "{{turtle}}"
vars:
- name: turtle
type: shell
params:
cmd: curl -f https://prefix.cc/{{prefix}}.file.ttl || echo '{{command}}'
@RubenVerborgh
Copy link
Author

Download at https://espanso.org/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment