Created
June 1, 2022 20:08
-
-
Save RubenVerborgh/fac194ed110cac30ad38f82e6c7dff8c to your computer and use it in GitHub Desktop.
Espanso config for RDF devs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Download at https://espanso.org/