Skip to content
Alpha: see what works today →
Menu

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.

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