Skip to content

Instantly share code, notes, and snippets.

@mdlincoln
Last active July 29, 2019 03:02
Show Gist options
  • Save mdlincoln/9fd381ea38463150d9aaacc42ead41b9 to your computer and use it in GitHub Desktop.
Save mdlincoln/9fd381ea38463150d9aaacc42ead41b9 to your computer and use it in GitHub Desktop.
Getty open refine strings
'http://vocab.getty.edu/sparql.json?query=select+distinct*{?x+skos:inScheme+aat:;(xl:prefLabel|xl:altLabel)/gvp:term"' + escape(value, 'url') + '"@en}'
'http://vocab.getty.edu/sparql.json?query=select+distinct+*+where+{+?x+skos:inScheme+ulan:;+gvp:broaderInstantial+ulan:500000002;+foaf:focus/gvp:biographyPreferred/gvp:estStart+?born;+foaf:focus/gvp:biographyPreferred/gvp:estEnd+?died;+luc:text+"'+cells["realname"].value+'";+filter(?died+>=+"'+cells["birth"].value+'"^^xsd:gYear+%26%26+?born+<=+"'+cells["death"].value+'"^^xsd:gYear)}+limit+1'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment