Skip to content

Instantly share code, notes, and snippets.

@mathias-goebel
Created December 10, 2018 13:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mathias-goebel/aba533f715bd616f9be8903a69d41e28 to your computer and use it in GitHub Desktop.
Save mathias-goebel/aba533f715bd616f9be8903a69d41e28 to your computer and use it in GitHub Desktop.
eXist-db http client with easyrdf converter
xquery version "3.1";
let $content :=
<httpclient:fields>
<httpclient:field name="data" value="" type="string"/>
<httpclient:field name="in" value="guess" type="string"/>
<httpclient:field name="out" value="rdfxml" type="string"/>
<httpclient:field name="raw" value="1" type="string"/>
<httpclient:field name="uri" value="http://njh.me/" type="string"/>
</httpclient:fields>
return
httpclient:post-form(xs:anyURI("http://www.easyrdf.org/converter"), $content, false(), ())
//httpclient:body/node()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment