Skip to content

Instantly share code, notes, and snippets.

@grechaw
Created March 11, 2011 23:12
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 grechaw/866782 to your computer and use it in GitHub Desktop.
Save grechaw/866782 to your computer and use it in GitHub Desktop.
redemption code and s3
PREFIX pdb: <http://oreilly.com/legacy/pdb/>
PREFIX product: <urn:x-domain:oreilly.com:product:>
PREFIX dc: <http://purl.org/dc/terms/>
PREFIX pt: <http://purl.oreilly.com/product-types/>
PREFIX trons: <http://purl.oreilly.com/ns/trons/>
PREFIX status: <http://purl.oreilly.com/statuses/>
PREFIX frbr: <http://purl.org/vocab/frbr/core#>
PREFIX mods: <http://www.loc.gov/mods/>
PREFIX pubs: <http://purl.oreilly.com/publishers/>
PREFIX om: <http://purl.oreilly.com/ns/meta/>
select
?x ?s ?p ?o
where
{
?ip frbr:embodiment ?s .
?ip frbr:embodiment ?p .
?s dc:type pt:BOOK .
?p dc:type pt:EBOOK .
OPTIONAL { ?x dc:isFormatOf ?p .}
OPTIONAL {?s om:pdfDownloadKey ?o }
filter ( ?ip = product:9780596517748.IP )
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment