Sponsored by BMBF Logo

# list all simulations by their parameter filenames, job owner, run host/date
# and, optionally, with their title, sorted by run date

PREFIX rdf:     <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX cctk:    <http://www.cct.lsu.edu/~dstark/cctk/0.1/>
PREFIX xsd:     <http://www.w3.org/2001/XMLSchema#>


SELECT ?parfile ?user ?host ?startedAt ?title

FROM <http://astrogrid.aei.mpg.de:24002/context>

WHERE {
  ?simulation   cctk:parameterFile      ?parfile ;
                cctk:user               ?user ;
                cctk:host               ?host ;
                cctk:startedAt          ?startedAt .
 
  OPTIONAL {
    ?simulation   cctk:hasThornList       ?list .
    ?list         cctk:containsThorn      ?thorn .
    ?thorn        cctk:hasName            'Cactus' ;
                  cctk:hasParameter       ?parameter .
    ?parameter    cctk:hasName            'Cactus::cctk_run_title' ;
                  cctk:hasValue           ?title .
  }
}
ORDER BY DESC (xsd:dateTime(?startedAt))