Profile
The person this pod is about
urn:uuid:1df86788-b7f6-4417-87bc-5e36cd211759
A patient profile is how one hospital names the person. Each record names a profile as its patient, and an About judgment says whose the profile is. Until one counts, the records naming it stay out of every view.
Every section below is one question with only the rows about this profile. The first lists the files of the pod that say something about it or name it. A Turtle link beside a thing opens the file it arrived in; a thing only ever named, or written by the build, has none.
Which file states each thing
The store loads each file twice: into the default graph, which the other questions read, and into a graph named by its address, which GRAPH ?file reads. A file states a thing when it says something about it, or names it as the value of a statement: a patient profile has no file of its own, so the files that name it are where it is stated. Named marks a row for a file that names the thing, and rebuilt a view or the labels, which the build writes. Files the build did not write come first, and among them the file a thing arrived in, if it has one.
Only the rows whose ?thing is this one.
| ?file | ?named | ?rebuilt |
|---|---|---|
subject/1d/1df86788-b7f6-4417-87bc-5e36cd211759.ttl | false | false |
judgments/34/34e5290a-cc49-4199-9ae5-06bfa34f0a55.ttl | true | false |
judgments/5b/5bdddca2-e090-4b38-9ec7-661195258c98.ttl | true | false |
judgments/fb/fbdd142d-e1b8-46ae-9dd7-75a7d85910b5.ttl | true | false |
records/medications/f0/f05684d69079b2c88e6995299cf02d7f868fef3e7e4f34d25e5b38aecba3ac4f.ttl | true | false |
clinical/labels.ttl | false | true |
6 rows
The query: queries/questions/pod/Which file states each thing.rq on GitHub
PREFIX cascade: <https://ns.cascadeprotocol.org/cascade#>
PREFIX pim: <http://www.w3.org/ns/pim/space#>
SELECT DISTINCT ?thing ?file ?named ?rebuilt
WHERE {
{ { SELECT DISTINCT ?file ?thing
WHERE {
?owner pim:storage ?root .
GRAPH ?file { ?thing ?property ?value }
FILTER (isIRI(?thing) && STRSTARTS(STR(?file), STR(?root)))
} }
BIND (false AS ?named)
BIND (EXISTS { ?file a cascade:View } AS ?rebuilt) }
UNION
{ { SELECT DISTINCT ?file ?thing
WHERE {
?owner pim:storage ?root .
GRAPH ?file { ?subject ?property ?thing }
FILTER (isIRI(?thing) && STRSTARTS(STR(?file), STR(?root)))
} }
BIND (true AS ?named)
BIND (EXISTS { ?file a cascade:View } AS ?rebuilt) }
}
ORDER BY ?thing ?rebuilt ?named ?file
The terms it uses: pim:storage, cascade:View.
Run it yourself, from the runtime's root:
npm run ask -- priya-natarajan "pod/Which file states each thing"
It prints the rows for every thing; this block keeps those whose ?thing is
urn:uuid:1df86788-b7f6-4417-87bc-5e36cd211759.
Or in GraphDB, open the saved query pod/Which file states each thing in the repository priya-natarajan.
What needs review: none. The question
Which judgments name it: none. The question
Which records name it
A record names its patient through its current version's cascade:patient. Each hospital names its own profile for the person.
Only the rows whose ?profile is this one.
1 row
The query: queries/questions/profile/Which records name it.rq on GitHub
PREFIX cascade: <https://ns.cascadeprotocol.org/cascade#>
PREFIX pav: <http://purl.org/pav/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?profile ?profileLabel ?record ?recordLabel
WHERE {
?record pav:hasCurrentVersion/cascade:patient ?profile .
OPTIONAL { ?profile rdfs:label ?profileLabel }
OPTIONAL { ?record rdfs:label ?recordLabel }
}
ORDER BY ?profileLabel ?profile ?recordLabel ?record
The terms it uses: pav:hasCurrentVersion, rdfs:label.
Run it yourself, from the runtime's root:
npm run ask -- priya-natarajan "profile/Which records name it"
It prints the rows for every profile; this block keeps those whose ?profile is
urn:uuid:1df86788-b7f6-4417-87bc-5e36cd211759.
Or in GraphDB, open the saved query profile/Which records name it in the repository priya-natarajan.
Whose it is counted as: none. The question