Skip to content

Commit 0b9a4b8

Browse files
committed
Merge branch 'release3' of https://github.com/bio2rdf/bio2rdf-scripts into release3
2 parents 3b43a9d + bbf221d commit 0b9a4b8

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

linkedSPLs/LinkedSPLs-update/test/test-example-queries.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import urllib2
22

3-
qryUrlsL = ['https://dbmi-icode-01.dbmi.pitt.edu/sparql?default-graph-uri=&query=PREFIX+rdfs%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F2000%2F01%2Frdf-schema%23%3E%0D%0APREFIX+foaf%3A+%3Chttp%3A%2F%2Fxmlns.com%2Ffoaf%2F0.1%2F%3E%0D%0APREFIX+linkedspls_vocabulary%3A+%3Chttp%3A%2F%2Fbio2rdf.org%2Flinkedspls_vocabulary%3A%3E%0D%0A%0D%0A%23%23+Get+metadata+for+the+SPLs+of+all+products+containing+a+drug+%23%23%0D%0ASELECT+%3Flabel+%3FsplId+%3Fversion+%3FsetId+%3Forg+%3Fdate+%3Fhomepage%0D%0AFROM+%3Chttp%3A%2F%2Fpurl.org%2Fnet%2Fnlprepository%2Fspl-core%3E%0D%0AWHERE+{%0D%0A%0D%0A%3FsplId+rdfs%3Alabel+%3Flabel.%0D%0A%3FsplId+dc%3Asubject+%3Chttp%3A%2F%2Fpurl.bioontology.org%2Fontology%2FRXNORM%2F1975177%3E.++%0D%0A%3FsplId+linkedspls_vocabulary%3AversionNumber+%3Fversion.%0D%0A%3FsplId+linkedspls_vocabulary%3AsetId+%3FsetId.%0D%0A%3FsplId+linkedspls_vocabulary%3ArepresentedOrganization+%3Forg.%0D%0A%3FsplId+linkedspls_vocabulary%3AeffectiveTime+%3Fdate.%0D%0A%3FsplId+foaf%3Ahomepage+%3Fhomepage.%0D%0A%0D%0A}&format=text%2Fhtml&timeout=0&debug=on','http://goo.gl/nU95fy','http://goo.gl/KfSGSR','http://goo.gl/9RFeL9']
3+
qryUrlsL = ["https://goo.gl/Z3CAuz","https://goo.gl/dYHEQe","https://goo.gl/UsnWRI","https://goo.gl/z7HJdM","https://goo.gl/YHjIcB ","https://goo.gl/0Ogeka","https://goo.gl/64JQlU","https://goo.gl/XmphPo","https://goo.gl/gOZbHF","https://goo.gl/VgSfw6","https://goo.gl/kS8agv","https://goo.gl/Q4RISO","https://goo.gl/ujJL5s","https://goo.gl/eY2ljk","http://tinyurl.com/zauxa8b","https://goo.gl/AsbpBQ","https://goo.gl/al1r0y","https://goo.gl/fp3syi","https://goo.gl/eQi5pf","https://goo.gl/nocS8m","http://tinyurl.com/z3wrh3j","http://tinyurl.com/z3wrh3j","http://tinyurl.com/hx32ty3","http://tinyurl.com/jcty9qn","http://tinyurl.com/gpxglqf","http://tinyurl.com/hrulbmn","https://goo.gl/WYIzYz","https://goo.gl/Hr1HMX","https://goo.gl/WhpOFO","https://goo.gl/jZ0jpi","https://goo.gl/bH6gA1","https://goo.gl/fr1WoQ","https://goo.gl/fFFLwN","https://goo.gl/YyIbec","https://goo.gl/F9DF3N","https://goo.gl/hoKbw6","https://goo.gl/yIzjo1","https://goo.gl/nMjTjE"]
44

55
for qryUrlStr in qryUrlsL:
66

@@ -11,3 +11,6 @@
1111
print "[TESTING] query %s is OK" % (qryUrlStr)
1212
else:
1313
print "[WARNING] query %s not return any results" % (qryUrlStr)
14+
15+
16+

linkedSPLs/example-queries-bio2rdf-linkedSPLs-RDF.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ WHERE {
2828

2929
}
3030

31-
Results set in shorten URL: Results set in shorten URL: https://goo.gl/Z3CAuz
31+
Results set in shorten URL: https://goo.gl/Z3CAuz
3232

3333
--------------------------------------------------------------------------------
3434
Get the three sections of interest for a specific SPL
@@ -53,7 +53,7 @@ OPTIONAL { <http://bio2rdf.org/linkedspls:911cd48f-01ea-4dec-b30c-95e7e0ea9d2a>
5353
LIMIT 10
5454

5555

56-
Results set in shorten URL: Results set in shorten URL: https://goo.gl/dYHEQe
56+
Results set in shorten URL: https://goo.gl/dYHEQe
5757

5858
--------------------------------------------------------------------------------
5959
return all sections from all drug products containing Soma (Meda Pharmaceuticals Inc.) that the FDA notes as having pharmgx information:

0 commit comments

Comments
 (0)