PRA3006-SPARQL

chemblSources.rq

Database ChEMBL
SPARQl endpoint https://chemblmirror.rdf.bigcat-bioinformatics.org/sparql
License CC-BY-SA 3.0 Unported

Code examples: curl

SPARQL

PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX owl: <http://www.w3.org/2002/07/owl#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX dc: <http://purl.org/dc/elements/1.1/>
PREFIX dcterms: <http://purl.org/dc/terms/>
PREFIX dbpedia2: <http://dbpedia.org/property/>
PREFIX dbpedia: <http://dbpedia.org/>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>

PREFIX cco: <http://rdf.ebi.ac.uk/terms/chembl#>
SELECT ?Source
   WHERE {
   ?Source ?p cco:Source .
} LIMIT 100

Run or Edit

Output

Source
http://rdf.ebi.ac.uk/resource/chembl/source/CHEMBL_SRC_11
http://rdf.ebi.ac.uk/resource/chembl/source/CHEMBL_SRC_0
http://rdf.ebi.ac.uk/resource/chembl/source/CHEMBL_SRC_1
http://rdf.ebi.ac.uk/resource/chembl/source/CHEMBL_SRC_10
http://rdf.ebi.ac.uk/resource/chembl/source/CHEMBL_SRC_12
http://rdf.ebi.ac.uk/resource/chembl/source/CHEMBL_SRC_13
http://rdf.ebi.ac.uk/resource/chembl/source/CHEMBL_SRC_14
http://rdf.ebi.ac.uk/resource/chembl/source/CHEMBL_SRC_15
http://rdf.ebi.ac.uk/resource/chembl/source/CHEMBL_SRC_16
http://rdf.ebi.ac.uk/resource/chembl/source/CHEMBL_SRC_17
http://rdf.ebi.ac.uk/resource/chembl/source/CHEMBL_SRC_18
http://rdf.ebi.ac.uk/resource/chembl/source/CHEMBL_SRC_19
http://rdf.ebi.ac.uk/resource/chembl/source/CHEMBL_SRC_2
http://rdf.ebi.ac.uk/resource/chembl/source/CHEMBL_SRC_20
http://rdf.ebi.ac.uk/resource/chembl/source/CHEMBL_SRC_21
http://rdf.ebi.ac.uk/resource/chembl/source/CHEMBL_SRC_22
http://rdf.ebi.ac.uk/resource/chembl/source/CHEMBL_SRC_23
http://rdf.ebi.ac.uk/resource/chembl/source/CHEMBL_SRC_24
http://rdf.ebi.ac.uk/resource/chembl/source/CHEMBL_SRC_25
http://rdf.ebi.ac.uk/resource/chembl/source/CHEMBL_SRC_26
http://rdf.ebi.ac.uk/resource/chembl/source/CHEMBL_SRC_27
http://rdf.ebi.ac.uk/resource/chembl/source/CHEMBL_SRC_28
http://rdf.ebi.ac.uk/resource/chembl/source/CHEMBL_SRC_29
http://rdf.ebi.ac.uk/resource/chembl/source/CHEMBL_SRC_3
http://rdf.ebi.ac.uk/resource/chembl/source/CHEMBL_SRC_30
http://rdf.ebi.ac.uk/resource/chembl/source/CHEMBL_SRC_31
http://rdf.ebi.ac.uk/resource/chembl/source/CHEMBL_SRC_32
http://rdf.ebi.ac.uk/resource/chembl/source/CHEMBL_SRC_33
http://rdf.ebi.ac.uk/resource/chembl/source/CHEMBL_SRC_34
http://rdf.ebi.ac.uk/resource/chembl/source/CHEMBL_SRC_35
http://rdf.ebi.ac.uk/resource/chembl/source/CHEMBL_SRC_36
http://rdf.ebi.ac.uk/resource/chembl/source/CHEMBL_SRC_37
http://rdf.ebi.ac.uk/resource/chembl/source/CHEMBL_SRC_38
http://rdf.ebi.ac.uk/resource/chembl/source/CHEMBL_SRC_39
http://rdf.ebi.ac.uk/resource/chembl/source/CHEMBL_SRC_4
http://rdf.ebi.ac.uk/resource/chembl/source/CHEMBL_SRC_40
http://rdf.ebi.ac.uk/resource/chembl/source/CHEMBL_SRC_41
http://rdf.ebi.ac.uk/resource/chembl/source/CHEMBL_SRC_42
http://rdf.ebi.ac.uk/resource/chembl/source/CHEMBL_SRC_43
http://rdf.ebi.ac.uk/resource/chembl/source/CHEMBL_SRC_48
http://rdf.ebi.ac.uk/resource/chembl/source/CHEMBL_SRC_49
http://rdf.ebi.ac.uk/resource/chembl/source/CHEMBL_SRC_5
http://rdf.ebi.ac.uk/resource/chembl/source/CHEMBL_SRC_51
http://rdf.ebi.ac.uk/resource/chembl/source/CHEMBL_SRC_52
http://rdf.ebi.ac.uk/resource/chembl/source/CHEMBL_SRC_53
http://rdf.ebi.ac.uk/resource/chembl/source/CHEMBL_SRC_54
http://rdf.ebi.ac.uk/resource/chembl/source/CHEMBL_SRC_55
http://rdf.ebi.ac.uk/resource/chembl/source/CHEMBL_SRC_56
http://rdf.ebi.ac.uk/resource/chembl/source/CHEMBL_SRC_57
http://rdf.ebi.ac.uk/resource/chembl/source/CHEMBL_SRC_59
http://rdf.ebi.ac.uk/resource/chembl/source/CHEMBL_SRC_6
http://rdf.ebi.ac.uk/resource/chembl/source/CHEMBL_SRC_60
http://rdf.ebi.ac.uk/resource/chembl/source/CHEMBL_SRC_7
http://rdf.ebi.ac.uk/resource/chembl/source/CHEMBL_SRC_8
http://rdf.ebi.ac.uk/resource/chembl/source/CHEMBL_SRC_9
b45e5d02f4e7d16710824dac9fcf3780
c0762d2c501410c6ce72659d957b809b
93f72e4f285400acbb3bfbe9e53905a5
cco:hasSource

Code examples

curl

curl -o chemblSources.rq https://raw.githubusercontent.com/BiGCAT-UM/PRA3006-SPARQL/master/sparql/chemblSources.rq
curl -H "Accept: text/tab-separated-values" -G https://chemblmirror.rdf.bigcat-bioinformatics.org/sparql --data-urlencode query@chemblSources.rq

This SPARQL query is available under CCZero.