Showing
1 changed file
with
75 additions
and
40 deletions
... | @@ -116,15 +116,15 @@ arg:wellName | ... | @@ -116,15 +116,15 @@ arg:wellName |
116 | ] ; | 116 | ] ; |
117 | spin:constraint | 117 | spin:constraint |
118 | [ rdf:type spl:Argument ; | 118 | [ rdf:type spl:Argument ; |
119 | - rdfs:comment "The value to match against."^^xsd:string ; | ||
120 | - spl:predicate sp:arg1 | ||
121 | - ] ; | ||
122 | - spin:constraint | ||
123 | - [ rdf:type spl:Argument ; | ||
124 | rdfs:comment "The property that must be used in the result resource."^^xsd:string ; | 119 | rdfs:comment "The property that must be used in the result resource."^^xsd:string ; |
125 | spl:predicate <http://topbraid.org/spin/spinmapl#predicate> ; | 120 | spl:predicate <http://topbraid.org/spin/spinmapl#predicate> ; |
126 | spl:valueType rdf:Property | 121 | spl:valueType rdf:Property |
127 | ] ; | 122 | ] ; |
123 | + spin:constraint | ||
124 | + [ rdf:type spl:Argument ; | ||
125 | + rdfs:comment "The value to match against."^^xsd:string ; | ||
126 | + spl:predicate sp:arg1 | ||
127 | + ] ; | ||
128 | spin:returnType rdfs:Resource . | 128 | spin:returnType rdfs:Resource . |
129 | 129 | ||
130 | npdata:npd | 130 | npdata:npd |
... | @@ -418,15 +418,15 @@ rhspin:WDRTableTemplates | ... | @@ -418,15 +418,15 @@ rhspin:WDRTableTemplates |
418 | spin:abstract "true"^^xsd:boolean ; | 418 | spin:abstract "true"^^xsd:boolean ; |
419 | spin:constraint | 419 | spin:constraint |
420 | [ rdf:type spl:Argument ; | 420 | [ rdf:type spl:Argument ; |
421 | - rdfs:comment "The start date of the reporting week."^^xsd:string ; | ||
422 | - spl:predicate arg:startDate ; | ||
423 | - spl:valueType xsd:date | ||
424 | - ] ; | ||
425 | - spin:constraint | ||
426 | - [ rdf:type spl:Argument ; | ||
427 | rdfs:comment "The DDR that serves as root of the query."^^xsd:string ; | 421 | rdfs:comment "The DDR that serves as root of the query."^^xsd:string ; |
428 | spl:predicate arg:wellBore ; | 422 | spl:predicate arg:wellBore ; |
429 | spl:valueType <http://www.reportinghub.no/ep/schema/well#WellBore> | 423 | spl:valueType <http://www.reportinghub.no/ep/schema/well#WellBore> |
424 | + ] ; | ||
425 | + spin:constraint | ||
426 | + [ rdf:type spl:Argument ; | ||
427 | + rdfs:comment "The start date of the reporting week."^^xsd:string ; | ||
428 | + spl:predicate arg:startDate ; | ||
429 | + spl:valueType xsd:date | ||
430 | ] . | 430 | ] . |
431 | 431 | ||
432 | rhspin:baaById | 432 | rhspin:baaById |
... | @@ -876,16 +876,16 @@ rhspin:ddrOfWeek | ... | @@ -876,16 +876,16 @@ rhspin:ddrOfWeek |
876 | ] ; | 876 | ] ; |
877 | spin:constraint | 877 | spin:constraint |
878 | [ rdf:type spl:Argument ; | 878 | [ rdf:type spl:Argument ; |
879 | - rdfs:comment "The first day of the week."^^xsd:string ; | ||
880 | - spl:predicate sp:arg1 ; | ||
881 | - spl:valueType xsd:date | ||
882 | - ] ; | ||
883 | - spin:constraint | ||
884 | - [ rdf:type spl:Argument ; | ||
885 | rdfs:comment "The well bore that the DDR must be about."^^xsd:string ; | 879 | rdfs:comment "The well bore that the DDR must be about."^^xsd:string ; |
886 | spl:predicate sp:arg2 ; | 880 | spl:predicate sp:arg2 ; |
887 | spl:valueType <http://www.reportinghub.no/ep/schema/well#WellBore> | 881 | spl:valueType <http://www.reportinghub.no/ep/schema/well#WellBore> |
888 | ] ; | 882 | ] ; |
883 | + spin:constraint | ||
884 | + [ rdf:type spl:Argument ; | ||
885 | + rdfs:comment "The first day of the week."^^xsd:string ; | ||
886 | + spl:predicate sp:arg1 ; | ||
887 | + spl:valueType xsd:date | ||
888 | + ] ; | ||
889 | spin:returnType <http://www.reportinghub.no/ep/schema/report#DailyDrillingReport> . | 889 | spin:returnType <http://www.reportinghub.no/ep/schema/report#DailyDrillingReport> . |
890 | 890 | ||
891 | rhspin:ddrWellBoreId | 891 | rhspin:ddrWellBoreId |
... | @@ -972,15 +972,15 @@ rhspin:dtypeValue | ... | @@ -972,15 +972,15 @@ rhspin:dtypeValue |
972 | ] ; | 972 | ] ; |
973 | spin:constraint | 973 | spin:constraint |
974 | [ rdf:type spl:Argument ; | 974 | [ rdf:type spl:Argument ; |
975 | - rdfs:comment "The predicate that points to the reified value."^^xsd:string ; | ||
976 | - spl:predicate sp:arg2 ; | ||
977 | - spl:valueType rdf:Property | ||
978 | - ] ; | ||
979 | - spin:constraint | ||
980 | - [ rdf:type spl:Argument ; | ||
981 | rdfs:comment "The subject of the value."^^xsd:string ; | 975 | rdfs:comment "The subject of the value."^^xsd:string ; |
982 | spl:predicate sp:arg1 ; | 976 | spl:predicate sp:arg1 ; |
983 | spl:valueType rdfs:Resource | 977 | spl:valueType rdfs:Resource |
978 | + ] ; | ||
979 | + spin:constraint | ||
980 | + [ rdf:type spl:Argument ; | ||
981 | + rdfs:comment "The predicate that points to the reified value."^^xsd:string ; | ||
982 | + spl:predicate sp:arg2 ; | ||
983 | + spl:valueType rdf:Property | ||
984 | ] . | 984 | ] . |
985 | 985 | ||
986 | rhspin:facilityById | 986 | rhspin:facilityById |
... | @@ -1027,6 +1027,41 @@ rhspin:fieldById | ... | @@ -1027,6 +1027,41 @@ rhspin:fieldById |
1027 | spl:valueType xsd:string | 1027 | spl:valueType xsd:string |
1028 | ] . | 1028 | ] . |
1029 | 1029 | ||
1030 | +rhspin:fieldNameByOwner | ||
1031 | + rdf:type spin:Function ; | ||
1032 | + rdfs:label "field name by owner"^^xsd:string ; | ||
1033 | + rdfs:subClassOf spin:Functions ; | ||
1034 | + spin:body | ||
1035 | + [ rdf:type sp:Select ; | ||
1036 | + sp:resultVariables ([ sp:varName "fieldName"^^xsd:string | ||
1037 | + ]) ; | ||
1038 | + sp:where ([ rdf:type sp:NamedGraph ; | ||
1039 | + sp:elements ([ sp:object | ||
1040 | + [ sp:varName "owner"^^xsd:string | ||
1041 | + ] ; | ||
1042 | + sp:predicate <http://www.reportinghub.no/np/schema/npd#fieldOwner> ; | ||
1043 | + sp:subject | ||
1044 | + [ sp:varName "field"^^xsd:string | ||
1045 | + ] | ||
1046 | + ] [ sp:object | ||
1047 | + [ sp:varName "fieldName"^^xsd:string | ||
1048 | + ] ; | ||
1049 | + sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; | ||
1050 | + sp:subject | ||
1051 | + [ sp:varName "field"^^xsd:string | ||
1052 | + ] | ||
1053 | + ]) ; | ||
1054 | + sp:graphNameNode npdata:npd | ||
1055 | + ]) | ||
1056 | + ] ; | ||
1057 | + spin:constraint | ||
1058 | + [ rdf:type spl:Argument ; | ||
1059 | + rdfs:comment "The licence or BAA to get the field name of."^^xsd:string ; | ||
1060 | + spl:predicate arg:owner ; | ||
1061 | + spl:valueType <http://www.reportinghub.no/np/schema/npd#Owner> | ||
1062 | + ] ; | ||
1063 | + spin:returnType xsd:string . | ||
1064 | + | ||
1030 | rhspin:graphForDDR | 1065 | rhspin:graphForDDR |
1031 | rdf:type spin:Function ; | 1066 | rdf:type spin:Function ; |
1032 | rdfs:comment "Gets the URI resource of the named graph that holds the reports for a given DDR. This function needs to be called on the (in-memory) graph that contains the newly generated DDR triples. To get the graph for a DDR later, fetch the well bore id from the reports metadata graph and then call rhspin:graphForWellBoreWithId."^^xsd:string ; | 1067 | rdfs:comment "Gets the URI resource of the named graph that holds the reports for a given DDR. This function needs to be called on the (in-memory) graph that contains the newly generated DDR triples. To get the graph for a DDR later, fetch the well bore id from the reports metadata graph and then call rhspin:graphForWellBoreWithId."^^xsd:string ; |
... | @@ -1588,17 +1623,17 @@ rhspin:npdIndividualById | ... | @@ -1588,17 +1623,17 @@ rhspin:npdIndividualById |
1588 | ] ; | 1623 | ] ; |
1589 | spin:constraint | 1624 | spin:constraint |
1590 | [ rdf:type spl:Argument ; | 1625 | [ rdf:type spl:Argument ; |
1591 | - rdfs:comment "The NPD id to match."^^xsd:string ; | ||
1592 | - spl:predicate arg:id ; | ||
1593 | - spl:valueType xsd:string | ||
1594 | - ] ; | ||
1595 | - spin:constraint | ||
1596 | - [ rdf:type spl:Argument ; | ||
1597 | rdfs:comment "The rdf:type that the result must have."^^xsd:string ; | 1626 | rdfs:comment "The rdf:type that the result must have."^^xsd:string ; |
1598 | spl:optional "true"^^xsd:boolean ; | 1627 | spl:optional "true"^^xsd:boolean ; |
1599 | spl:predicate arg:type ; | 1628 | spl:predicate arg:type ; |
1600 | spl:valueType rdfs:Class | 1629 | spl:valueType rdfs:Class |
1601 | ] ; | 1630 | ] ; |
1631 | + spin:constraint | ||
1632 | + [ rdf:type spl:Argument ; | ||
1633 | + rdfs:comment "The NPD id to match."^^xsd:string ; | ||
1634 | + spl:predicate arg:id ; | ||
1635 | + spl:valueType xsd:string | ||
1636 | + ] ; | ||
1602 | spin:returnType <http://www.reportinghub.no/np/schema/npd#Individual> . | 1637 | spin:returnType <http://www.reportinghub.no/np/schema/npd#Individual> . |
1603 | 1638 | ||
1604 | rhspin:npdIndividualByName | 1639 | rhspin:npdIndividualByName |
... | @@ -1663,17 +1698,17 @@ rhspin:npdIndividualByName | ... | @@ -1663,17 +1698,17 @@ rhspin:npdIndividualByName |
1663 | ] ; | 1698 | ] ; |
1664 | spin:constraint | 1699 | spin:constraint |
1665 | [ rdf:type spl:Argument ; | 1700 | [ rdf:type spl:Argument ; |
1666 | - rdfs:comment "The NPD name to match."^^xsd:string ; | ||
1667 | - spl:predicate arg:name ; | ||
1668 | - spl:valueType xsd:string | ||
1669 | - ] ; | ||
1670 | - spin:constraint | ||
1671 | - [ rdf:type spl:Argument ; | ||
1672 | rdfs:comment "The rdf:type that the result must have."^^xsd:string ; | 1701 | rdfs:comment "The rdf:type that the result must have."^^xsd:string ; |
1673 | spl:optional "true"^^xsd:boolean ; | 1702 | spl:optional "true"^^xsd:boolean ; |
1674 | spl:predicate arg:type ; | 1703 | spl:predicate arg:type ; |
1675 | spl:valueType rdfs:Class | 1704 | spl:valueType rdfs:Class |
1676 | ] ; | 1705 | ] ; |
1706 | + spin:constraint | ||
1707 | + [ rdf:type spl:Argument ; | ||
1708 | + rdfs:comment "The NPD name to match."^^xsd:string ; | ||
1709 | + spl:predicate arg:name ; | ||
1710 | + spl:valueType xsd:string | ||
1711 | + ] ; | ||
1677 | spin:returnType <http://www.reportinghub.no/np/schema/npd#Individual> . | 1712 | spin:returnType <http://www.reportinghub.no/np/schema/npd#Individual> . |
1678 | 1713 | ||
1679 | rhspin:npdName | 1714 | rhspin:npdName |
... | @@ -1719,8 +1754,9 @@ rhspin:npdTripleExists | ... | @@ -1719,8 +1754,9 @@ rhspin:npdTripleExists |
1719 | ] ; | 1754 | ] ; |
1720 | spin:constraint | 1755 | spin:constraint |
1721 | [ rdf:type spl:Argument ; | 1756 | [ rdf:type spl:Argument ; |
1722 | - rdfs:comment "The object to match."^^xsd:string ; | 1757 | + rdfs:comment "The subject to find"^^xsd:string ; |
1723 | - spl:predicate sp:arg3 | 1758 | + spl:predicate sp:arg1 ; |
1759 | + spl:valueType rdfs:Resource | ||
1724 | ] ; | 1760 | ] ; |
1725 | spin:constraint | 1761 | spin:constraint |
1726 | [ rdf:type spl:Argument ; | 1762 | [ rdf:type spl:Argument ; |
... | @@ -1730,9 +1766,8 @@ rhspin:npdTripleExists | ... | @@ -1730,9 +1766,8 @@ rhspin:npdTripleExists |
1730 | ] ; | 1766 | ] ; |
1731 | spin:constraint | 1767 | spin:constraint |
1732 | [ rdf:type spl:Argument ; | 1768 | [ rdf:type spl:Argument ; |
1733 | - rdfs:comment "The subject to find"^^xsd:string ; | 1769 | + rdfs:comment "The object to match."^^xsd:string ; |
1734 | - spl:predicate sp:arg1 ; | 1770 | + spl:predicate sp:arg3 |
1735 | - spl:valueType rdfs:Resource | ||
1736 | ] ; | 1771 | ] ; |
1737 | spin:returnType xsd:boolean . | 1772 | spin:returnType xsd:boolean . |
1738 | 1773 | ... | ... |
-
Please register or login to post a comment