Showing
1 changed file
with
73 additions
and
0 deletions
... | @@ -424,6 +424,79 @@ reportspin:idOfDDRByDateAndWellBoreId | ... | @@ -424,6 +424,79 @@ reportspin:idOfDDRByDateAndWellBoreId |
424 | rdfs:label "id of DDR by date and well bore id"^^xsd:string ; | 424 | rdfs:label "id of DDR by date and well bore id"^^xsd:string ; |
425 | rdfs:subClassOf spin:Functions ; | 425 | rdfs:subClassOf spin:Functions ; |
426 | . | 426 | . |
427 | +reportspin:idOfDPR2ByDateAndFieldName | ||
428 | + rdf:type spin:Function ; | ||
429 | + spin:body [ | ||
430 | + rdf:type sp:Select ; | ||
431 | + sp:limit "1"^^xsd:long ; | ||
432 | + sp:orderBy ( | ||
433 | + [ | ||
434 | + rdf:type sp:Desc ; | ||
435 | + sp:expression [ | ||
436 | + sp:varName "created"^^xsd:string ; | ||
437 | + ] ; | ||
438 | + ] | ||
439 | + ) ; | ||
440 | + sp:resultVariables ( | ||
441 | + [ | ||
442 | + sp:varName "id"^^xsd:string ; | ||
443 | + ] | ||
444 | + ) ; | ||
445 | + sp:where ( | ||
446 | + [ | ||
447 | + sp:object [ | ||
448 | + sp:varName "fieldName"^^xsd:string ; | ||
449 | + ] ; | ||
450 | + sp:predicate <http://www.reportinghub.no/system/schema/reporting#fieldName> ; | ||
451 | + sp:subject [ | ||
452 | + sp:varName "report"^^xsd:string ; | ||
453 | + ] ; | ||
454 | + ] | ||
455 | + [ | ||
456 | + sp:object [ | ||
457 | + sp:varName "date"^^xsd:string ; | ||
458 | + ] ; | ||
459 | + sp:predicate <http://purl.org/dc/terms/date> ; | ||
460 | + sp:subject [ | ||
461 | + sp:varName "report"^^xsd:string ; | ||
462 | + ] ; | ||
463 | + ] | ||
464 | + [ | ||
465 | + sp:object [ | ||
466 | + sp:varName "created"^^xsd:string ; | ||
467 | + ] ; | ||
468 | + sp:predicate <http://purl.org/dc/terms/created> ; | ||
469 | + sp:subject [ | ||
470 | + sp:varName "report"^^xsd:string ; | ||
471 | + ] ; | ||
472 | + ] | ||
473 | + [ | ||
474 | + sp:object [ | ||
475 | + sp:varName "id"^^xsd:string ; | ||
476 | + ] ; | ||
477 | + sp:predicate <http://rdfs.org/sioc/ns#id> ; | ||
478 | + sp:subject [ | ||
479 | + sp:varName "report"^^xsd:string ; | ||
480 | + ] ; | ||
481 | + ] | ||
482 | + ) ; | ||
483 | + ] ; | ||
484 | + spin:constraint [ | ||
485 | + rdf:type spl:Argument ; | ||
486 | + spl:predicate arg:date ; | ||
487 | + spl:valueType xsd:date ; | ||
488 | + rdfs:comment "The xsd:date of the DPR2 to get."^^xsd:string ; | ||
489 | + ] ; | ||
490 | + spin:constraint [ | ||
491 | + rdf:type spl:Argument ; | ||
492 | + spl:predicate arg:fieldName ; | ||
493 | + spl:valueType xsd:string ; | ||
494 | + rdfs:comment "The registered name of the Field."^^xsd:string ; | ||
495 | + ] ; | ||
496 | + spin:returnType xsd:string ; | ||
497 | + rdfs:label "id of DPR2By date and field name"^^xsd:string ; | ||
498 | + rdfs:subClassOf spin:Functions ; | ||
499 | +. | ||
427 | reportspin:idOfDPRByDateAndOwner | 500 | reportspin:idOfDPRByDateAndOwner |
428 | rdf:type spin:Function ; | 501 | rdf:type spin:Function ; |
429 | spin:body [ | 502 | spin:body [ | ... | ... |
-
Please register or login to post a comment