Tore Christiansen

Fixed time based resource

...@@ -103,7 +103,7 @@ ...@@ -103,7 +103,7 @@
103 rdfs:subClassOf [ 103 rdfs:subClassOf [
104 rdf:type owl:Restriction ; 104 rdf:type owl:Restriction ;
105 owl:minQualifiedCardinality "0"^^xsd:nonNegativeInteger ; 105 owl:minQualifiedCardinality "0"^^xsd:nonNegativeInteger ;
106 - owl:onClass :Resource ; 106 + owl:onClass :ResourceValue ;
107 owl:onProperty :hasResource ; 107 owl:onProperty :hasResource ;
108 ] ; 108 ] ;
109 rdfs:subClassOf [ 109 rdfs:subClassOf [
...@@ -594,6 +594,12 @@ ...@@ -594,6 +594,12 @@
594 rdfs:label "Cost Based Resource"^^xsd:string ; 594 rdfs:label "Cost Based Resource"^^xsd:string ;
595 rdfs:subClassOf :Resource ; 595 rdfs:subClassOf :Resource ;
596 . 596 .
597 +:CostBasedResourceValue
598 + rdf:type owl:Class ;
599 + rdfs:comment "Not implemented"^^xsd:string ;
600 + rdfs:label "Cost based resource value"^^xsd:string ;
601 + rdfs:subClassOf :ResourceValue ;
602 +.
597 :Country 603 :Country
598 rdf:type :PlanGeoArea ; 604 rdf:type :PlanGeoArea ;
599 rdfs:label "Country"^^xsd:string ; 605 rdfs:label "Country"^^xsd:string ;
...@@ -1698,7 +1704,7 @@ NOTE 2 A Plan for Activity can define a number of part activities which are rel ...@@ -1698,7 +1704,7 @@ NOTE 2 A Plan for Activity can define a number of part activities which are rel
1698 rdfs:subClassOf [ 1704 rdfs:subClassOf [
1699 rdf:type owl:Restriction ; 1705 rdf:type owl:Restriction ;
1700 owl:minQualifiedCardinality "1"^^xsd:nonNegativeInteger ; 1706 owl:minQualifiedCardinality "1"^^xsd:nonNegativeInteger ;
1701 - owl:onClass :TimeBasedResourceValue ; 1707 + owl:onClass :TimeBasedResource ;
1702 owl:onProperty :hasTimeBasedResource ; 1708 owl:onProperty :hasTimeBasedResource ;
1703 ] ; 1709 ] ;
1704 rdfs:subClassOf [ 1710 rdfs:subClassOf [
...@@ -1715,6 +1721,13 @@ NOTE 2 A Plan for Activity can define a number of part activities which are rel ...@@ -1715,6 +1721,13 @@ NOTE 2 A Plan for Activity can define a number of part activities which are rel
1715 rdfs:label "Resource value"^^xsd:string ; 1721 rdfs:label "Resource value"^^xsd:string ;
1716 rdfs:subClassOf <http://data.posccaesar.org/rdl/RDS7945844> ; 1722 rdfs:subClassOf <http://data.posccaesar.org/rdl/RDS7945844> ;
1717 rdfs:subClassOf owl:Thing ; 1723 rdfs:subClassOf owl:Thing ;
1724 + rdfs:subClassOf [
1725 + rdf:type owl:Class ;
1726 + owl:unionOf (
1727 + :CostBasedResourceValue
1728 + :TimeBasedResourceValue
1729 + ) ;
1730 + ] ;
1718 owl:equivalentClass <http://data.posccaesar.org/rdl/RDS409510451> ; 1731 owl:equivalentClass <http://data.posccaesar.org/rdl/RDS409510451> ;
1719 . 1732 .
1720 :Responsible 1733 :Responsible
...@@ -2120,9 +2133,40 @@ NOTE 2 A Plan for Activity can define a number of part activities which are rel ...@@ -2120,9 +2133,40 @@ NOTE 2 A Plan for Activity can define a number of part activities which are rel
2120 . 2133 .
2121 :TimeBasedResource 2134 :TimeBasedResource
2122 rdf:type owl:Class ; 2135 rdf:type owl:Class ;
2136 + :shouldHaveID "true"^^xsd:boolean ;
2123 rdfs:comment "A Resource that is limited by the time it is available"^^xsd:string ; 2137 rdfs:comment "A Resource that is limited by the time it is available"^^xsd:string ;
2124 rdfs:label "Time based resource"^^xsd:string ; 2138 rdfs:label "Time based resource"^^xsd:string ;
2125 rdfs:subClassOf :Resource ; 2139 rdfs:subClassOf :Resource ;
2140 + rdfs:subClassOf [
2141 + rdf:type owl:Restriction ;
2142 + owl:maxQualifiedCardinality "1"^^xsd:nonNegativeInteger ;
2143 + owl:onDataRange xsd:decimal ;
2144 + owl:onProperty :hasDefaultRate ;
2145 + ] ;
2146 + rdfs:subClassOf [
2147 + rdf:type owl:Restriction ;
2148 + owl:maxQualifiedCardinality "1"^^xsd:nonNegativeInteger ;
2149 + owl:onDataRange xsd:string ;
2150 + owl:onProperty :hasDescription ;
2151 + ] ;
2152 + rdfs:subClassOf [
2153 + rdf:type owl:Restriction ;
2154 + owl:minQualifiedCardinality "0"^^xsd:nonNegativeInteger ;
2155 + owl:onClass :Availability ;
2156 + owl:onProperty :hasAvailability ;
2157 + ] ;
2158 + rdfs:subClassOf [
2159 + rdf:type owl:Restriction ;
2160 + owl:minQualifiedCardinality "0"^^xsd:nonNegativeInteger ;
2161 + owl:onClass :ExternalReference ;
2162 + owl:onProperty :hasExternalReference ;
2163 + ] ;
2164 + rdfs:subClassOf [
2165 + rdf:type owl:Restriction ;
2166 + owl:onDataRange xsd:string ;
2167 + owl:onProperty :hasName ;
2168 + owl:qualifiedCardinality "1"^^xsd:nonNegativeInteger ;
2169 + ] ;
2126 . 2170 .
2127 :TimeBasedResourceRef 2171 :TimeBasedResourceRef
2128 rdf:type owl:ObjectProperty ; 2172 rdf:type owl:ObjectProperty ;
...@@ -2169,6 +2213,13 @@ NOTE 2 A Plan for Activity can define a number of part activities which are rel ...@@ -2169,6 +2213,13 @@ NOTE 2 A Plan for Activity can define a number of part activities which are rel
2169 ] ; 2213 ] ;
2170 rdfs:subClassOf [ 2214 rdfs:subClassOf [
2171 rdf:type owl:Restriction ; 2215 rdf:type owl:Restriction ;
2216 + :shouldUseAnyUri "true"^^xsd:boolean ;
2217 + owl:maxQualifiedCardinality "1"^^xsd:nonNegativeInteger ;
2218 + owl:onClass <http://data.posccaesar.org/ilap/refdata/NORSOK/Z-014/SCCSCoding/COR_Thing> ;
2219 + owl:onProperty rdf:type ;
2220 + ] ;
2221 + rdfs:subClassOf [
2222 + rdf:type owl:Restriction ;
2172 :shouldUseRef "true"^^xsd:boolean ; 2223 :shouldUseRef "true"^^xsd:boolean ;
2173 owl:maxQualifiedCardinality "1"^^xsd:nonNegativeInteger ; 2224 owl:maxQualifiedCardinality "1"^^xsd:nonNegativeInteger ;
2174 owl:onClass :Profile ; 2225 owl:onClass :Profile ;
...@@ -2861,7 +2912,6 @@ NOTE 2 A Plan for Activity can define a number of part activities which are rel ...@@ -2861,7 +2912,6 @@ NOTE 2 A Plan for Activity can define a number of part activities which are rel
2861 rdfs:label "Time based 1"^^xsd:string ; 2912 rdfs:label "Time based 1"^^xsd:string ;
2862 rdfs:subClassOf :Category ; 2913 rdfs:subClassOf :Category ;
2863 rdfs:subClassOf :Discipline ; 2914 rdfs:subClassOf :Discipline ;
2864 - rdfs:subClassOf :TimeBasedResource ;
2865 . 2915 .
2866 <http://data.posccaesar.org/ilap/refdata/NORSOK/Z-014/SCCSCoding/PBS_Thing> 2916 <http://data.posccaesar.org/ilap/refdata/NORSOK/Z-014/SCCSCoding/PBS_Thing>
2867 rdf:type owl:Class ; 2917 rdf:type owl:Class ;
......