Skip to content

Sample query: What data sources have been imported into KaBOB?

bill-baumgartner edited this page Aug 29, 2017 · 2 revisions
PREFIX ccp: <http://ccp.ucdenver.edu/obo/ext/>
PREFIX obo: <http://purl.obolibrary.org/obo/>
PREFIX dc: <http://purl.org/dc/elements/1.1/>
PREFIX dc_terms: <http://purl.org/dc/terms/>

select ?record_set ?source_file_url ?parse_date  ?download_date ?last_modified_date ?file_size_bytes {
  ?record_set rdf:type ccp:IAO_EXT_0000012 .
  ?record_set dc_terms:date ?parse_date .
  ?record_set dc:source ?source_file .
  ?source_file rdf:type obo:IAO_0000310 . # IAO:document
  ?source_file ccp:DC_EXT_0000000 ?download_date . # DC_EXT_0000000 = DC_EXT:download_date
  ?source_file ccp:DC_EXT_0000001 ?last_modified_date . # DC_EXT_0000001 = DC_EXT:last_modified_date
  ?source_file ccp:DC_EXT_0000002 ?file_size_bytes . # DC_EXT_0000002 = DC_EXT:file_size_bytes
  # not all files are downloaded, therefore not all files have a URL so the dc:source argument is optional
  optional {
     ?source_file dc:source ?source_file_url . 
  }
}
order by ?record_set