chembl

See https://www.ebi.ac.uk/rdf/documentation/chembl/ */

    5:- module(chembl,
    6          [
    7           molecule/1,
    8           target/1,
    9           source/1,
   10           activity/1,
   11           uniprotref/1,
   12
   13           class_level/2,
   14           has_target_descendant/2,
   15           has_molecule/2,
   16           has_assay/2,
   17           has_target_component/2,
   18           target_cmpt_xref/2
   19           
   20           ]).   21
   22:- use_module(ebi).   23
   24:- rdf_register_prefix(cco, 'http://rdf.ebi.ac.uk/terms/chembl#').   25:- rdf_register_prefix(chembl_molecule, 'http://rdf.ebi.ac.uk/resource/chembl/molecule/').   26:- rdf_register_prefix(chembl_source, 'http://rdf.ebi.ac.uk/resource/chembl/source/').   27:- rdf_register_prefix(chembl_target, 'http://rdf.ebi.ac.uk/resource/chembl/target/').   28:- rdf_register_prefix(chembl_protclass, 'http://rdf.ebi.ac.uk/resource/chembl/protclass/').   29:- rdf_register_prefix(chembl_assay, 'http://rdf.ebi.ac.uk/resource/chembl/assay/').   30
   31molecule(X) :- rdfs_individual_of(X,cco:'Substance').
   32target(X) :- rdfs_individual_of(X,cco:'Target').
   33source(X) :- rdfs_individual_of(X,cco:'Source').
   34activity(X) :- rdfs_individual_of(X,cco:'Activity').
   35
   36uniprotref(X) :- rdf(X,rdf:type,cco:'UniprotRef').
   37
   38class_level(P,L) :- rdf(P,cco:classLevel,L).
   39has_target_descendant(C,P) :- rdf(C,cco:hasTargetDescendant,P).
   40has_molecule(A,M) :- rdf(A,cco:hasMolecule,M).
   41has_assay(A,T) :- rdf(A,cco:hasAssay,T).
   42has_target_component(T,C) :- rdf(T,cco:hasTargetComponent,C).
   43target_cmpt_xref(C,X) :- rdf(C,cco:targetCmptXref,X).
   44
   45has_child_molecule(P,C) :- rdf(P,cco:hasChildMolecule,C).
   46has_parent_molecule(C,P) :- rdf(C,cco:hasParentMolecule,P)