Advertisement
Guest User

Untitled

a guest
Dec 21st, 2017
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQL 4.43 KB | None | 0 0
  1. ./d2r-query --verbose mapping_pubchem.ttl @q10.sparql
  2. 00:48:14 INFO  SystemLoader         :: Reading mapping file FROM mapping_pubchem.ttl
  3. 00:48:14 INFO  MapParser            :: Done reading D2RQ map WITH 1 DATABASES AND 118 class maps
  4. 00:48:14 INFO  d2r_query            :: Query:
  5. PREFIX : <http://annotation.semanticweb.org/iswc/iswc.daml#>
  6. PREFIX template: <http://bioinfo.iocb.cz/0.9/template#>
  7. PREFIX owl: <http://www.w3.org/2002/07/owl#>
  8. PREFIX iswc: <http://annotation.semanticweb.org/iswc/iswc.daml#>
  9. PREFIX concept: <http://rdf.ncbi.nlm.nih.gov/pubchem/concept/>
  10. PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
  11. PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
  12. PREFIX obov: <http://purl.obolibrary.org/obo#>
  13. PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
  14. PREFIX bp: <http://www.biopax.org/release/biopax-level3.owl#>
  15. PREFIX cito: <http://purl.org/spar/cito/>
  16. PREFIX bao: <http://www.bioassayontology.org/bao#>
  17. PREFIX protein: <http://rdf.ncbi.nlm.nih.gov/pubchem/protein/>
  18. PREFIX sio: <http://semanticscience.org/resource/>
  19. PREFIX vocab: <http://rdf.ncbi.nlm.nih.gov/pubchem/vocabulary#>
  20. PREFIX dcterms: <http://purl.org/dc/terms/>
  21. PREFIX map: <http://example.com/test/>
  22. PREFIX foaf: <http://xmlns.com/foaf/0.1/>
  23. PREFIX proc: <http://bioinfo.iocb.cz/rdf/0.9/procedure-calls#>
  24. PREFIX fabio: <http://purl.org/spar/fabio/>
  25. PREFIX substance: <http://rdf.ncbi.nlm.nih.gov/pubchem/substance/>
  26. PREFIX conserveddomain: <http://rdf.ncbi.nlm.nih.gov/pubchem/conserveddomain/>
  27. PREFIX vcard: <http://www.w3.org/2001/vcard-rdf/3.0#>
  28. PREFIX compound: <http://rdf.ncbi.nlm.nih.gov/pubchem/compound/>
  29. PREFIX orchem: <http://bioinfo.iocb.cz/0.9/orchem#>
  30. PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
  31. PREFIX pdbo: <http://rdf.wwpdb.org/schema/pdbx-v40.owl#>
  32. PREFIX obo: <http://purl.obolibrary.org/obo/>
  33. PREFIX dc: <http://purl.org/dc/elements/1.1/>
  34. SELECT (COUNT(?sub) AS ?subcnt) ?protein
  35.     WHERE {
  36.         ?sub obo:BFO_0000056 ?mg .
  37.         ?mg obo:BFO_0000057 ?protein .
  38.         ?protein rdf:TYPE bp:Protein .
  39.         ?mg obo:OBI_0000299 ?ep .
  40.         ?ep rdf:TYPE bao:BAO_0000190 ; obo:IAO_0000136 ?sub ; sio:has-VALUE ?VALUE .
  41.     }
  42.     GROUP BY ?protein
  43.     ORDER BY DESC (COUNT(?sub))
  44. 00:48:15 INFO  ConnectedDB          :: Establishing JDBC connection TO jdbc:postgresql://localhost:5432/rdf
  45. 00:48:15 INFO  ConnectedDB          :: JDBC DATABASE product TYPE: PostgreSQL
  46. 00:48:15 INFO  ConnectedDB          :: USING vendor class: de.fuberlin.wiwiss.d2rq.SQL.vendor.PostgreSQL
  47. 00:48:15 INFO  Mapping              :: Compiled 203 property bridges
  48. 00:48:15 INFO  SQLIterator          :: SELECT DISTINCT "T7_endpoint_merged"."value", "T4_endpoint_merged"."substance", "T4_endpoint_merged"."measuregroup", "T6_endpoint_merged"."substance", "T2_protein_bases"."name", "T4_endpoint_merged"."bioassay" FROM "protein_bases" AS "T3_protein_bases", "endpoint_merged" AS "T1_endpoint_merged", "endpoint_merged" AS "T5_endpoint_merged", "endpoint_merged" AS "T4_endpoint_merged", "measuregroup_proteins" AS "T2_measuregroup_proteins", "protein_bases" AS "T2_protein_bases", "endpoint_merged" AS "T7_endpoint_merged", "endpoint_merged" AS "T6_endpoint_merged" WHERE ("T1_endpoint_merged"."bioassay" = "T2_measuregroup_proteins"."bioassay" AND "T1_endpoint_merged"."measuregroup" = "T2_measuregroup_proteins"."measuregroup" AND "T1_endpoint_merged"."substance" = "T6_endpoint_merged"."substance" AND "T2_measuregroup_proteins"."bioassay" = "T4_endpoint_merged"."bioassay" AND "T2_measuregroup_proteins"."measuregroup" = "T4_endpoint_merged"."measuregroup" AND "T2_protein_bases"."name" = "T3_protein_bases"."name" AND "T4_endpoint_merged"."bioassay" = "T5_endpoint_merged"."bioassay" AND "T4_endpoint_merged"."measuregroup" = "T5_endpoint_merged"."measuregroup" AND "T4_endpoint_merged"."substance" = "T5_endpoint_merged"."substance" AND "T5_endpoint_merged"."bioassay" = "T6_endpoint_merged"."bioassay" AND "T5_endpoint_merged"."bioassay" = "T7_endpoint_merged"."bioassay" AND "T5_endpoint_merged"."measuregroup" = "T6_endpoint_merged"."measuregroup" AND "T5_endpoint_merged"."measuregroup" = "T7_endpoint_merged"."measuregroup" AND "T5_endpoint_merged"."substance" = "T6_endpoint_merged"."substance" AND "T5_endpoint_merged"."substance" = "T7_endpoint_merged"."substance" AND "T5_endpoint_merged"."type" = 190 AND "T5_endpoint_merged"."type" IS NOT NULL AND "T7_endpoint_merged"."value" IS NOT NULL AND ("T2_measuregroup_proteins"."protein"="T2_protein_bases"."id") AND ("T7_endpoint_merged"."value" IS NOT NULL))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement