Holger Knublauch

Added rhspin:userCanUpload

...@@ -98,14 +98,14 @@ arg:wellName ...@@ -98,14 +98,14 @@ arg:wellName
98 ] ; 98 ] ;
99 spin:constraint 99 spin:constraint
100 [ rdf:type spl:Argument ; 100 [ rdf:type spl:Argument ;
101 - rdfs:comment "The property that must be used in the result resource."^^xsd:string ; 101 + rdfs:comment "The value to match against."^^xsd:string ;
102 - spl:predicate <http://topbraid.org/spin/spinmapl#predicate> ; 102 + spl:predicate sp:arg1
103 - spl:valueType rdf:Property
104 ] ; 103 ] ;
105 spin:constraint 104 spin:constraint
106 [ rdf:type spl:Argument ; 105 [ rdf:type spl:Argument ;
107 - rdfs:comment "The value to match against."^^xsd:string ; 106 + rdfs:comment "The property that must be used in the result resource."^^xsd:string ;
108 - spl:predicate sp:arg1 107 + spl:predicate <http://topbraid.org/spin/spinmapl#predicate> ;
108 + spl:valueType rdf:Property
109 ] ; 109 ] ;
110 spin:returnType rdfs:Resource . 110 spin:returnType rdfs:Resource .
111 111
...@@ -513,15 +513,15 @@ rhspin:dtypeValue ...@@ -513,15 +513,15 @@ rhspin:dtypeValue
513 ] ; 513 ] ;
514 spin:constraint 514 spin:constraint
515 [ rdf:type spl:Argument ; 515 [ rdf:type spl:Argument ;
516 - rdfs:comment "The subject of the value."^^xsd:string ;
517 - spl:predicate sp:arg1 ;
518 - spl:valueType rdfs:Resource
519 - ] ;
520 - spin:constraint
521 - [ rdf:type spl:Argument ;
522 rdfs:comment "The predicate that points to the reified value."^^xsd:string ; 516 rdfs:comment "The predicate that points to the reified value."^^xsd:string ;
523 spl:predicate sp:arg2 ; 517 spl:predicate sp:arg2 ;
524 spl:valueType rdf:Property 518 spl:valueType rdf:Property
519 + ] ;
520 + spin:constraint
521 + [ rdf:type spl:Argument ;
522 + rdfs:comment "The subject of the value."^^xsd:string ;
523 + spl:predicate sp:arg1 ;
524 + spl:valueType rdfs:Resource
525 ] . 525 ] .
526 526
527 rhspin:facilityById 527 rhspin:facilityById
...@@ -874,9 +874,8 @@ rhspin:npdTripleExists ...@@ -874,9 +874,8 @@ rhspin:npdTripleExists
874 ] ; 874 ] ;
875 spin:constraint 875 spin:constraint
876 [ rdf:type spl:Argument ; 876 [ rdf:type spl:Argument ;
877 - rdfs:comment "The subject to find"^^xsd:string ; 877 + rdfs:comment "The object to match."^^xsd:string ;
878 - spl:predicate sp:arg1 ; 878 + spl:predicate sp:arg3
879 - spl:valueType rdfs:Resource
880 ] ; 879 ] ;
881 spin:constraint 880 spin:constraint
882 [ rdf:type spl:Argument ; 881 [ rdf:type spl:Argument ;
...@@ -886,8 +885,9 @@ rhspin:npdTripleExists ...@@ -886,8 +885,9 @@ rhspin:npdTripleExists
886 ] ; 885 ] ;
887 spin:constraint 886 spin:constraint
888 [ rdf:type spl:Argument ; 887 [ rdf:type spl:Argument ;
889 - rdfs:comment "The object to match."^^xsd:string ; 888 + rdfs:comment "The subject to find"^^xsd:string ;
890 - spl:predicate sp:arg3 889 + spl:predicate sp:arg1 ;
890 + spl:valueType rdfs:Resource
891 ] ; 891 ] ;
892 spin:returnType xsd:boolean . 892 spin:returnType xsd:boolean .
893 893
...@@ -946,6 +946,13 @@ rhspin:tufById ...@@ -946,6 +946,13 @@ rhspin:tufById
946 spl:valueType xsd:string 946 spl:valueType xsd:string
947 ] . 947 ] .
948 948
949 +rhspin:userCanUpload
950 + rdf:type spin:Function ;
951 + rdfs:comment "Checks whether the current user has the privilege to upload reports. This is used to control which parts of the UI are visible, depending on who is logged in. The implementation of this function is Java only."^^xsd:string ;
952 + rdfs:label "user can upload"^^xsd:string ;
953 + rdfs:subClassOf spin:Functions ;
954 + spin:returnType xsd:boolean .
955 +
949 rhspin:userName 956 rhspin:userName
950 rdf:type spin:Function ; 957 rdf:type spin:Function ;
951 rdfs:comment "Gets the name of the currently logged in user."^^xsd:string ; 958 rdfs:comment "Gets the name of the currently logged in user."^^xsd:string ;
......