Repository navigation
Expand file tree
/
Copy pathqueries.txt
More file actions
72 lines (47 loc) · 1.83 KB
/
Copy pathqueries.txt
File metadata and controls
72 lines (47 loc) · 1.83 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
PREFIX orn: <http://openrisknet.org/schema#>
SELECT * {
?smilesSubj <http://semanticscience.org/resource/CHEMINF_000018> ?smilesObj .
?s1 (<orn:blank>|!<orn:blank>)* ?smilesSubj .
?s2 ?p1 ?s1 .
?s3 ?p2 ?s2 .
?s4 ?p3 ?s3 .
?s5 ?p4 ?s4 .
?s6 ?p5 ?s5 .
?s7 ?p6 ?s6 .
}
PREFIX orn: <http://openrisknet.org/schema#>
SELECT * {
?smilesSubj <http://semanticscience.org/resource/CHEMINF_000018> ?smilesObj .
?s1 (<orn:blank>|!<orn:blank>)* ?smilesSubj .
?s2 <http://openrisknet.org/schema#responses> ?s1 .
?s3 ?p2 ?s2 .
?s4 ?p3 ?s3
}
This does not solve the problem for parameters - for those we need
todo: make table overflow with scrollbar
view raw openapi
Give visual loading indication
SELECT * {
?smilesSubj <http://semanticscience.org/resource/CHEMINF_000018> ?smilesObj .
?s1 (<orn:blank>|!<orn:blank>)* ?smilesSubj .
?endpoint ?p1 ?s1 .
?endpoint <rdf:type> <orn:Endpoint>
}
# Query all things having smiles in response or request body by relying on endpoints being given the type Endpoint and an id of the full URL:
PREFIX orn: <http://openrisknet.org/schema#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
SELECT * {
?smilesSubj <http://semanticscience.org/resource/CHEMINF_000018> ?smilesObj .
?s1 (<orn:blank>|!<orn:blank>)* ?smilesSubj .
?endpoint ?p1 ?s1 .
?endpoint <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <orn:Endpoint>
}
# Query all things having smiles in response or request body by relationship to paths only (gives relativeUrl like this: http://openrisknet.org/schema#/cas/to/smiles)
PREFIX orn: <http://openrisknet.org/schema#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
SELECT * {
?smilesSubj <http://semanticscience.org/resource/CHEMINF_000018> ?smilesObj .
?endpoint (<orn:blank>|!<orn:blank>)* ?smilesSubj .
?paths ?relativeUrl ?endpoint .
?root <http://openrisknet.org/schema#paths> ?paths
}