-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMolecularDefinition.shex
More file actions
146 lines (130 loc) · 5.27 KB
/
MolecularDefinition.shex
File metadata and controls
146 lines (130 loc) · 5.27 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
PREFIX fhir: <http://hl7.org/fhir/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX loinc: <https://loinc.org/rdf/>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX Map: <http://shex.io/extensions/Map/#>
PREFIX metab: <http://a.example/->
start=<#MolecularDefinition>
<#MolecularDefinition> CLOSED {
a [fhir:MolecularDefinition] ;
fhir:nodeRole [fhir:treeRoot] ;
fhir:id { fhir:v xsd:string } ; # "example-allelesliced1"
fhir:moleculeType { fhir:coding @<#OneOrMore_MolecularTypeCoding> } ;
fhir:location @<#OneOrMore_Location> ; #
fhir:representation @<#OneOrMore_Representation> #
}
<#OneOrMore_MolecularTypeCoding> CLOSED {
rdf:first @<#MolecularTypeCoding> ;
rdf:rest [rdf:nil] OR @<#OneOrMore_MolecularTypeCoding>
}
<#MolecularTypeCoding> CLOSED {
fhir:system { fhir:v xsd:anyURI } ; # "http://hl7.org/fhir/sequence-type"
fhir:code { fhir:v xsd:string } ; # "dna"
fhir:display { fhir:v xsd:string } # "DNA Sequence"
}
<#OneOrMore_Location> CLOSED {
rdf:first @<#Location> ;
rdf:rest [rdf:nil] OR @<#OneOrMore_Location>
}
<#Location> CLOSED {
fhir:sequenceLocation CLOSED {
fhir:sequenceContext CLOSED {
fhir:link IRI ; # <http://hl7.org/fhir/MolecularDefinition/example-sequence-lrg584>
fhir:reference { fhir:v xsd:string } ; # "MolecularDefinition/example-sequence-lrg584"
fhir:type { fhir:v xsd:anyURI } ; # "MolecularDefinition"
fhir:display { fhir:v xsd:string } # "Starting Sequence Resource: LRG_584"
} ;
fhir:coordinateInterval CLOSED {
fhir:coordinateSystem CLOSED {
fhir:system CLOSED {
fhir:coding @<#OneOrMore_LocationIntervalCoordinateSystemCoding> ;
fhir:text { fhir:v xsd:string } # "0-based interval counting"
}
} ;
fhir:start CLOSED {
a [fhir:Quantity] ;
fhir:value { fhir:v xsd:decimal } # "5001"
} ;
fhir:end CLOSED {
a [fhir:Quantity] ;
fhir:value { fhir:v xsd:decimal } # "97867"
}
}
}
}
<#OneOrMore_LocationIntervalCoordinateSystemCoding> CLOSED {
rdf:first @<#LocationIntervalCoordinateSystemCoding> ;
rdf:rest [rdf:nil] OR @<#OneOrMore_LocationIntervalCoordinateSystemCoding>
}
<#LocationIntervalCoordinateSystemCoding> CLOSED {
a [loinc:~] ; # LA30100-4
fhir:system { fhir:v xsd:anyURI %Map:{ metab:locCoordSystemSystem %} } ; # "http://loinc.org"
fhir:code { fhir:v xsd:string %Map:{ metab:locCoordSystemCode %} } ; # "LA30100-4"
fhir:display { fhir:v xsd:string %Map:{ metab:locCoordSystemDisp %} } # "0-based interval counting"
}
<#OneOrMore_Representation> CLOSED {
rdf:first @<#Representation> ;
rdf:rest [rdf:nil] OR @<#OneOrMore_Representation>
}
<#Representation> CLOSED {
fhir:focus CLOSED {
fhir:coding @<#OneOrMore_RepresentationFocusCoding>
} ;
fhir:resolvable CLOSED {
fhir:link IRI ; # <http://hl7.org/fhir/DocumentReference/example-genomicFile-ng0083843>
fhir:reference { fhir:v xsd:string } # "DocumentReference/example-genomicFile-ng0083843"
} ? ;
fhir:relative CLOSED {
fhir:startingMolecule CLOSED {
fhir:link IRI ; # <http://hl7.org/fhir/MolecularDefinition/example-sequence-lrg584>
fhir:reference { fhir:v xsd:string } ; # "MolecularDefinition/example-sequence-lrg584"
fhir:type { fhir:v xsd:anyURI } ; # "MolecularDefinition"
fhir:display { fhir:v xsd:string } # "Starting Sequence Resource: LRG_584"
} ;
fhir:edit @<#OneOrMore_RelativeEdit>
} ?
}
<#OneOrMore_RepresentationFocusCoding> CLOSED {
rdf:first @<#RepresentationFocusCoding> ;
rdf:rest [rdf:nil] OR @<#OneOrMore_RepresentationFocusCoding>
}
<#RepresentationFocusCoding> CLOSED {
fhir:code { fhir:v xsd:string } ; # "allele-state", "context-state"
fhir:display { fhir:v xsd:string } # "Allele State", "Context State"
}
<#OneOrMore_RelativeEdit> CLOSED {
rdf:first @<#RelativeEdit> ;
rdf:rest [rdf:nil] OR @<#OneOrMore_RelativeEdit>
}
<#RelativeEdit> CLOSED {
fhir:coordinateInterval CLOSED {
fhir:coordinateSystem CLOSED {
fhir:system CLOSED {
fhir:coding @<#OneOrMore_RelativeEditIntervalCoordinateSystemCoding> ;
fhir:text { fhir:v xsd:string } # "0-based interval counting"
}
}
} ;
fhir:replacementMolecule CLOSED {
fhir:link IRI ; # <http://hl7.org/fhir/MolecularDefinition/example-sequence-t>
fhir:reference { fhir:v xsd:string } ; # "MolecularDefinition/example-sequence-t"
fhir:type { fhir:v xsd:anyURI } ; # "MolecularDefinition"
fhir:display { fhir:v xsd:string } # "Replacement Sequence Resource: T"
} ;
fhir:replacedMolecule CLOSED {
fhir:link IRI ; # <http://hl7.org/fhir/MolecularDefinition/example-sequence-c>
fhir:reference { fhir:v xsd:string } ; # "MolecularDefinition/example-sequence-c"
fhir:type { fhir:v xsd:anyURI } ; # "MolecularDefinition"
fhir:display { fhir:v xsd:string } # "Replaced Sequence Resource: C"
}
}
<#OneOrMore_RelativeEditIntervalCoordinateSystemCoding> CLOSED {
rdf:first @<#RelativeEditIntervalCoordinateSystemCoding> ;
rdf:rest [rdf:nil] OR @<#OneOrMore_RelativeEditIntervalCoordinateSystemCoding>
}
<#RelativeEditIntervalCoordinateSystemCoding> CLOSED {
a [loinc:~] ; # LA30100-4
fhir:system { fhir:v xsd:anyURI } ; # "http://loinc.org"
fhir:code { fhir:v xsd:string } ; # "LA30100-4"
fhir:display { fhir:v xsd:string } # "0-based interval counting"
}