From 3c0e544faa016fa5bfa7f4d8d3c9cbed4d01dd21 Mon Sep 17 00:00:00 2001 From: dguedesb Date: Tue, 29 Apr 2014 19:41:06 +0100 Subject: [PATCH] Finished the pos-merge code revision. Both API and examples are now functional along with its validation methods. --- SPIN_API/DebuggingFiles/CloudsigmaRS.ttl | 580 +++++++------ .../DebuggingFiles/MAzureSmallPrePaid6m.ttl | 788 +++++++++--------- SPIN_API/DebuggingFiles/VMWareVPCloud.ttl | 435 +++++----- SPIN_API/DebuggingFiles/amazonOD.ttl | 301 ++++--- SPIN_API/DebuggingFiles/amazonRI.ttl | 392 ++++----- SPIN_API/DebuggingFiles/amazonSI.ttl | 329 ++++---- SPIN_API/DebuggingFiles/arsys.ttl | 285 ++++--- .../priceModelValidation/AmazonODReader.java | 11 +- .../priceModelValidation/AmazonOnDemand.java | 3 +- SPIN_API/src/priceModelValidation/Arsys.java | 4 +- .../CloudSigmaReader.java | 2 +- .../MicrosoftAzureReader.java | 2 +- .../VMWareVPCloudReader.java | 2 +- .../constants/enums/ResourceNameEnum.java | 20 +- .../usdl/constants/enums/USDLCoreEnum.java | 2 + SPIN_API/src/usdl/queries/QueryUtils.java | 4 +- SPIN_API/src/usdl/queries/ReaderQueries.java | 13 +- .../src/usdl/servicemodel/CloudProvider.java | 19 +- .../usdl/servicemodel/LinkedUSDLModel.java | 11 +- .../servicemodel/LinkedUSDLModelFactory.java | 8 +- SPIN_API/src/usdl/servicemodel/Offering.java | 17 +- .../src/usdl/servicemodel/PriceComponent.java | 18 +- .../src/usdl/servicemodel/PriceFunction.java | 24 +- SPIN_API/src/usdl/servicemodel/PricePlan.java | 24 +- SPIN_API/src/usdl/servicemodel/PriceSpec.java | 19 +- SPIN_API/src/usdl/servicemodel/Provider.java | 18 +- .../usdl/servicemodel/QualitativeValue.java | 19 +- .../usdl/servicemodel/QuantitativeValue.java | 19 +- SPIN_API/src/usdl/servicemodel/Service.java | 29 +- SPIN_API/src/usdl/servicemodel/Usage.java | 20 +- .../validations/LinkedUSDLValidator.java | 26 +- 31 files changed, 1698 insertions(+), 1746 deletions(-) diff --git a/SPIN_API/DebuggingFiles/CloudsigmaRS.ttl b/SPIN_API/DebuggingFiles/CloudsigmaRS.ttl index c16feb7..6903f19 100644 --- a/SPIN_API/DebuggingFiles/CloudsigmaRS.ttl +++ b/SPIN_API/DebuggingFiles/CloudsigmaRS.ttl @@ -1,54 +1,99 @@ -@prefix dc: . @prefix legal: . +@prefix dc: . @prefix : . @prefix foaf: . @prefix sp: . @prefix vann: . +@prefix cloudtaxonomy: . +@prefix org: . @prefix rdfs: . +@prefix pf: . @prefix price: . @prefix spl: . +@prefix usdk: . @prefix xsd: . @prefix owl: . -@prefix rdf: . @prefix spin: . -@prefix cloud: . +@prefix rdf: . @prefix core: . @prefix gr: . @prefix skos: . -:QuantitativeValue_TIME27596743506376 - a gr:QuantitativeValue ; - gr:hasUnitOfMeasurement "USD" ; - gr:hasValue "0.0715"^^xsd:double . +:cpuspeedTIME26090344104883 + a price:Usage ; + rdfs:comment "CPUSpeed you need." ; + rdfs:label "cpuspeedTIME26090344104883" . + +:dataout-pf a spin:Function ; + rdfs:label "dataout-pf" ; + spin:body [ a sp:Select ; + sp:resultVariables ( [ sp:varName "result"^^xsd:string ] ) ; + sp:where ( [ sp:object [ sp:varName "gboutcostTIME26090345224858_instance"^^xsd:string ] ; + sp:predicate price:hasValue ; + sp:subject :gboutcostTIME26090345224858 + ] [ sp:object [ sp:varName "gboutcostTIME26090345224858_value"^^xsd:string ] ; + sp:predicate gr:hasValue ; + sp:subject [ sp:varName "gboutcostTIME26090345224858_instance"^^xsd:string ] + ] [ sp:object [ sp:varName "ngboutTIME26090345157292_instance"^^xsd:string ] ; + sp:predicate price:hasValue ; + sp:subject :ngboutTIME26090345157292 + ] [ sp:object [ sp:varName "ngboutTIME26090345157292_value"^^xsd:string ] ; + sp:predicate gr:hasValue ; + sp:subject [ sp:varName "ngboutTIME26090345157292_instance"^^xsd:string ] + ] [ a sp:Bind ; + sp:expression [ a sp:mul ; + sp:arg1 [ a sp:mul ; + sp:arg1 [ a sp:mul ; + sp:arg1 [ sp:varName "gboutcostTIME26090345224858_value"^^xsd:string ] ; + sp:arg2 [ sp:varName "ngboutTIME26090345157292_value"^^xsd:string ] + ] ; + sp:arg2 6 + ] ; + sp:arg2 [ a sp:add ; + sp:arg1 1 ; + sp:arg2 [ a sp:mul ; + sp:arg1 -1 ; + sp:arg2 0.1 + ] + ] + ] ; + sp:variable [ sp:varName "result"^^xsd:string ] + ] ) + ] ; + price:hasVariable :gboutcostTIME26090345224858 , :ngboutTIME26090345157292 . -:ram-pf_TIME27596702977786 - a spin:Function ; +:nstaticipTIME26090344852389 + a price:Usage ; + rdfs:comment "Number of StaticIP you need." ; + rdfs:label "nstaticipTIME26090344852389" . + +:ram-pf a spin:Function ; rdfs:label "ram-pf" ; spin:body [ a sp:Select ; sp:resultVariables ( [ sp:varName "result"^^xsd:string ] ) ; - sp:where ( [ sp:object [ sp:varName "gbramTIME27596574816716_instance"^^xsd:string ] ; + sp:where ( [ sp:object [ sp:varName "gbramTIME26090343142705_instance"^^xsd:string ] ; sp:predicate price:hasValue ; - sp:subject :gbramTIME27596574816716 - ] [ sp:object [ sp:varName "gbramTIME27596574816716_value"^^xsd:string ] ; + sp:subject :gbramTIME26090343142705 + ] [ sp:object [ sp:varName "gbramTIME26090343142705_value"^^xsd:string ] ; sp:predicate gr:hasValue ; - sp:subject [ sp:varName "gbramTIME27596574816716_instance"^^xsd:string ] - ] [ sp:object [ sp:varName "ramcostTIME27596574823130_instance"^^xsd:string ] ; + sp:subject [ sp:varName "gbramTIME26090343142705_instance"^^xsd:string ] + ] [ sp:object [ sp:varName "ramcostTIME26090343338134_instance"^^xsd:string ] ; sp:predicate price:hasValue ; - sp:subject :ramcostTIME27596574823130 - ] [ sp:object [ sp:varName "ramcostTIME27596574823130_value"^^xsd:string ] ; + sp:subject :ramcostTIME26090343338134 + ] [ sp:object [ sp:varName "ramcostTIME26090343338134_value"^^xsd:string ] ; sp:predicate gr:hasValue ; - sp:subject [ sp:varName "ramcostTIME27596574823130_instance"^^xsd:string ] + sp:subject [ sp:varName "ramcostTIME26090343338134_instance"^^xsd:string ] ] [ a sp:Bind ; sp:expression [ a sp:if ; sp:arg1 [ a sp:lt ; - sp:arg1 [ sp:varName "gbramTIME27596574816716_value"^^xsd:string ] ; + sp:arg1 [ sp:varName "gbramTIME26090343142705_value"^^xsd:string ] ; sp:arg2 50 ] ; sp:arg2 [ a sp:mul ; sp:arg1 [ a sp:mul ; sp:arg1 [ a sp:mul ; - sp:arg1 [ sp:varName "ramcostTIME27596574823130_value"^^xsd:string ] ; - sp:arg2 [ sp:varName "gbramTIME27596574816716_value"^^xsd:string ] + sp:arg1 [ sp:varName "ramcostTIME26090343338134_value"^^xsd:string ] ; + sp:arg2 [ sp:varName "gbramTIME26090343142705_value"^^xsd:string ] ] ; sp:arg2 4320 ] ; @@ -67,11 +112,11 @@ sp:expression [ a sp:if ; sp:arg1 [ a sp:and ; sp:arg1 [ a sp:ge ; - sp:arg1 [ sp:varName "gbramTIME27596574816716_value"^^xsd:string ] ; + sp:arg1 [ sp:varName "gbramTIME26090343142705_value"^^xsd:string ] ; sp:arg2 50 ] ; sp:arg2 [ a sp:lt ; - sp:arg1 [ sp:varName "gbramTIME27596574816716_value"^^xsd:string ] ; + sp:arg1 [ sp:varName "gbramTIME26090343142705_value"^^xsd:string ] ; sp:arg2 100 ] ] ; @@ -79,8 +124,8 @@ sp:arg1 [ a sp:mul ; sp:arg1 [ a sp:mul ; sp:arg1 [ a sp:mul ; - sp:arg1 [ sp:varName "ramcostTIME27596574823130_value"^^xsd:string ] ; - sp:arg2 [ sp:varName "gbramTIME27596574816716_value"^^xsd:string ] + sp:arg1 [ sp:varName "ramcostTIME26090343338134_value"^^xsd:string ] ; + sp:arg2 [ sp:varName "gbramTIME26090343142705_value"^^xsd:string ] ] ; sp:arg2 4320 ] ; @@ -107,11 +152,11 @@ sp:expression [ a sp:if ; sp:arg1 [ a sp:and ; sp:arg1 [ a sp:ge ; - sp:arg1 [ sp:varName "gbramTIME27596574816716_value"^^xsd:string ] ; + sp:arg1 [ sp:varName "gbramTIME26090343142705_value"^^xsd:string ] ; sp:arg2 100 ] ; sp:arg2 [ a sp:lt ; - sp:arg1 [ sp:varName "gbramTIME27596574816716_value"^^xsd:string ] ; + sp:arg1 [ sp:varName "gbramTIME26090343142705_value"^^xsd:string ] ; sp:arg2 500 ] ] ; @@ -119,8 +164,8 @@ sp:arg1 [ a sp:mul ; sp:arg1 [ a sp:mul ; sp:arg1 [ a sp:mul ; - sp:arg1 [ sp:varName "ramcostTIME27596574823130_value"^^xsd:string ] ; - sp:arg2 [ sp:varName "gbramTIME27596574816716_value"^^xsd:string ] + sp:arg1 [ sp:varName "ramcostTIME26090343338134_value"^^xsd:string ] ; + sp:arg2 [ sp:varName "gbramTIME26090343142705_value"^^xsd:string ] ] ; sp:arg2 4320 ] ; @@ -147,11 +192,11 @@ sp:expression [ a sp:if ; sp:arg1 [ a sp:and ; sp:arg1 [ a sp:ge ; - sp:arg1 [ sp:varName "gbramTIME27596574816716_value"^^xsd:string ] ; + sp:arg1 [ sp:varName "gbramTIME26090343142705_value"^^xsd:string ] ; sp:arg2 500 ] ; sp:arg2 [ a sp:lt ; - sp:arg1 [ sp:varName "gbramTIME27596574816716_value"^^xsd:string ] ; + sp:arg1 [ sp:varName "gbramTIME26090343142705_value"^^xsd:string ] ; sp:arg2 4000 ] ] ; @@ -159,8 +204,8 @@ sp:arg1 [ a sp:mul ; sp:arg1 [ a sp:mul ; sp:arg1 [ a sp:mul ; - sp:arg1 [ sp:varName "ramcostTIME27596574823130_value"^^xsd:string ] ; - sp:arg2 [ sp:varName "gbramTIME27596574816716_value"^^xsd:string ] + sp:arg1 [ sp:varName "ramcostTIME26090343338134_value"^^xsd:string ] ; + sp:arg2 [ sp:varName "gbramTIME26090343142705_value"^^xsd:string ] ] ; sp:arg2 4320 ] ; @@ -187,11 +232,11 @@ sp:expression [ a sp:if ; sp:arg1 [ a sp:and ; sp:arg1 [ a sp:ge ; - sp:arg1 [ sp:varName "gbramTIME27596574816716_value"^^xsd:string ] ; + sp:arg1 [ sp:varName "gbramTIME26090343142705_value"^^xsd:string ] ; sp:arg2 4000 ] ; sp:arg2 [ a sp:lt ; - sp:arg1 [ sp:varName "gbramTIME27596574816716_value"^^xsd:string ] ; + sp:arg1 [ sp:varName "gbramTIME26090343142705_value"^^xsd:string ] ; sp:arg2 10000 ] ] ; @@ -199,8 +244,8 @@ sp:arg1 [ a sp:mul ; sp:arg1 [ a sp:mul ; sp:arg1 [ a sp:mul ; - sp:arg1 [ sp:varName "ramcostTIME27596574823130_value"^^xsd:string ] ; - sp:arg2 [ sp:varName "gbramTIME27596574816716_value"^^xsd:string ] + sp:arg1 [ sp:varName "ramcostTIME26090343338134_value"^^xsd:string ] ; + sp:arg2 [ sp:varName "gbramTIME26090343142705_value"^^xsd:string ] ] ; sp:arg2 4320 ] ; @@ -226,15 +271,15 @@ ] [ a sp:Bind ; sp:expression [ a sp:if ; sp:arg1 [ a sp:ge ; - sp:arg1 [ sp:varName "gbramTIME27596574816716_value"^^xsd:string ] ; + sp:arg1 [ sp:varName "gbramTIME26090343142705_value"^^xsd:string ] ; sp:arg2 10000 ] ; sp:arg2 [ a sp:mul ; sp:arg1 [ a sp:mul ; sp:arg1 [ a sp:mul ; sp:arg1 [ a sp:mul ; - sp:arg1 [ sp:varName "ramcostTIME27596574823130_value"^^xsd:string ] ; - sp:arg2 [ sp:varName "gbramTIME27596574816716_value"^^xsd:string ] + sp:arg1 [ sp:varName "ramcostTIME26090343338134_value"^^xsd:string ] ; + sp:arg2 [ sp:varName "gbramTIME26090343142705_value"^^xsd:string ] ] ; sp:arg2 4320 ] ; @@ -277,45 +322,65 @@ sp:variable [ sp:varName "result"^^xsd:string ] ] ) ] ; - price:hasVariable :ramcostTIME27596574823130 , :gbramTIME27596574816716 . + price:hasVariable :ramcostTIME26090343338134 , :gbramTIME26090343142705 . -:6MRecurrentSubscription_TIME27596576308303 - a core:Service ; - rdfs:label "6MRecurrentSubscription" . +:QuantitativeValue_35 + a gr:QuantitativeValue ; + gr:hasUnitOfMeasurement "USD" ; + gr:hasValue "0.0229"^^xsd:double . -:ramcostTIME27596574823130 +:ssdcostTIME26090341786247 a price:Constant ; - rdfs:label "ramcostTIME27596574823130" ; - price:hasValue :QuantitativeValue_TIME27596714863447 . + rdfs:label "ssdcostTIME26090341786247" ; + price:hasValue :QuantitativeValue_30 . -:QuantitativeValue_TIME27596738837895 +:pc4-staticipcost a price:PriceComponent ; + rdfs:comment "Responsible for calculating the cost of the StaticIPs." ; + rdfs:label "pc4-staticipcost" ; + price:hasPriceFunction :staticip-pf . + +:pc2-ramcost a price:PriceComponent ; + rdfs:comment "Responsible for calculating the cost of the ram." ; + rdfs:label "pc2-ramcost" ; + price:hasPriceFunction :ram-pf . + +:QuantitativeValue_30 a gr:QuantitativeValue ; gr:hasUnitOfMeasurement "USD" ; - gr:hasValue "4.5"^^xsd:double . + gr:hasValue "0.22"^^xsd:double . -:dataout-pf_TIME27596741996401 - a spin:Function ; - rdfs:label "dataout-pf" ; +:gboutcostTIME26090345224858 + a price:Constant ; + rdfs:label "gboutcostTIME26090345224858" ; + price:hasValue :QuantitativeValue_50 . + +:S16mSubs-O-PP a price:PricePlan ; + rdfs:comment "PricePlan for CloudSigma's s1 6msubscription plan" ; + rdfs:label "S16mSubs-O-PP" ; + price:hasPriceComponent :pc5-DATAOUT , :pc4-staticipcost , :pc3-cpuspeedcost , :pc2-ramcost , :pc1-ssdcost . + +:staticip-pf a spin:Function ; + rdfs:label "staticip-pf" ; spin:body [ a sp:Select ; sp:resultVariables ( [ sp:varName "result"^^xsd:string ] ) ; - sp:where ( [ sp:object [ sp:varName "gboutcostTIME27596574898821_instance"^^xsd:string ] ; + sp:where ( [ sp:object [ sp:varName "staticipcostTIME26090344924231_instance"^^xsd:string ] ; sp:predicate price:hasValue ; - sp:subject :gboutcostTIME27596574898821 - ] [ sp:object [ sp:varName "gboutcostTIME27596574898821_value"^^xsd:string ] ; + sp:subject :staticipcostTIME26090344924231 + ] [ sp:object [ sp:varName "staticipcostTIME26090344924231_value"^^xsd:string ] ; sp:predicate gr:hasValue ; - sp:subject [ sp:varName "gboutcostTIME27596574898821_instance"^^xsd:string ] - ] [ sp:object [ sp:varName "ngboutTIME27596574893262_instance"^^xsd:string ] ; + sp:subject [ sp:varName "staticipcostTIME26090344924231_instance"^^xsd:string ] + ] [ sp:object [ sp:varName "nstaticipTIME26090344852389_instance"^^xsd:string ] ; sp:predicate price:hasValue ; - sp:subject :ngboutTIME27596574893262 - ] [ sp:object [ sp:varName "ngboutTIME27596574893262_value"^^xsd:string ] ; + sp:subject :nstaticipTIME26090344852389 + ] [ sp:object [ sp:varName "nstaticipTIME26090344852389_value"^^xsd:string ] ; sp:predicate gr:hasValue ; - sp:subject [ sp:varName "ngboutTIME27596574893262_instance"^^xsd:string ] + sp:subject [ sp:varName "nstaticipTIME26090344852389_instance"^^xsd:string ] ] [ a sp:Bind ; sp:expression [ a sp:mul ; sp:arg1 [ a sp:mul ; sp:arg1 [ a sp:mul ; - sp:arg1 [ sp:varName "gboutcostTIME27596574898821_value"^^xsd:string ] ; - sp:arg2 [ sp:varName "ngboutTIME27596574893262_value"^^xsd:string ] + sp:arg1 [ sp:varName "staticipcostTIME26090344924231_value"^^xsd:string ] ; + sp:arg2 [ sp:varName "nstaticipTIME26090344852389_value"^^xsd:string ] ] ; sp:arg2 6 ] ; @@ -330,50 +395,97 @@ sp:variable [ sp:varName "result"^^xsd:string ] ] ) ] ; - price:hasVariable :gboutcostTIME27596574898821 , :ngboutTIME27596574893262 . + price:hasVariable :staticipcostTIME26090344924231 , :nstaticipTIME26090344852389 . -:pc3-cpuspeedcost_TIME27596714947691 - a price:PriceComponent ; - rdfs:comment "Responsible for calculating the cost of the CPUSpeed." ; - rdfs:label "pc3-cpuspeedcost" ; - price:hasPriceFunction :cpuspeed-pf_TIME27596723560669 . +:pc1-ssdcost a price:PriceComponent ; + rdfs:comment "Responsible for calculating the cost of the SSD hardware." ; + rdfs:label "pc1-ssdcost" ; + price:hasPriceFunction :ssd-pf . -:S16MSubscription-Offering_TIME27596575041223 +:S16MSubscription-Offering a core:ServiceOffering ; rdfs:label "S16MSubscription-Offering" ; - core:includes :6MRecurrentSubscription_TIME27596576308303 ; - price:hasPricePlan :S16mSubs-O-PP_TIME27596576942912 . + core:includes :6MRecurrentSubscription ; + price:hasPricePlan :S16mSubs-O-PP . -:ssd-pf_TIME27596584867399 - a spin:Function ; - rdfs:label "ssd-pf" ; +:gbdiskTIME26090334019544 + a price:Usage ; + rdfs:comment "Number of GB that you need for the instance disk." ; + rdfs:label "gbdiskTIME26090334019544" . + +:ramcostTIME26090343338134 + a price:Constant ; + rdfs:label "ramcostTIME26090343338134" ; + price:hasValue :QuantitativeValue_35 . + +:QuantitativeValue_50 + a gr:QuantitativeValue ; + gr:hasUnitOfMeasurement "USD" ; + gr:hasValue "0.0715"^^xsd:double . + +:gbramTIME26090343142705 + a price:Usage ; + rdfs:comment "Number of GB of RAM you need." ; + rdfs:label "gbramTIME26090343142705" . + +:cpuspeedcostTIME26090344319556 + a price:Constant ; + rdfs:label "cpuspeedcostTIME26090344319556" ; + price:hasValue :QuantitativeValue_40 . + +:staticipcostTIME26090344924231 + a price:Constant ; + rdfs:label "staticipcostTIME26090344924231" ; + price:hasValue :QuantitativeValue_45 . + +:QuantitativeValue_45 + a gr:QuantitativeValue ; + gr:hasUnitOfMeasurement "USD" ; + gr:hasValue "4.5"^^xsd:double . + +:pc5-DATAOUT a price:PriceComponent ; + rdfs:comment "Responsible for calculating the cost of the outgoing data transferral." ; + rdfs:label "pc5-DATAOUT" ; + price:hasPriceFunction :dataout-pf . + +:6MRecurrentSubscription + a core:Service ; + rdfs:label "6MRecurrentSubscription" . + +:ngboutTIME26090345157292 + a price:Usage ; + rdfs:comment "Number of GB you expect to send out per month." ; + rdfs:label "ngboutTIME26090345157292" . + +:cpuspeed-pf a spin:Function ; + rdfs:label "cpuspeed-pf" ; spin:body [ a sp:Select ; sp:resultVariables ( [ sp:varName "result"^^xsd:string ] ) ; - sp:where ( [ sp:object [ sp:varName "gbdiskTIME27596574220166_instance"^^xsd:string ] ; + sp:where ( [ sp:object [ sp:varName "cpuspeedTIME26090344104883_instance"^^xsd:string ] ; sp:predicate price:hasValue ; - sp:subject :gbdiskTIME27596574220166 - ] [ sp:object [ sp:varName "gbdiskTIME27596574220166_value"^^xsd:string ] ; + sp:subject :cpuspeedTIME26090344104883 + ] [ sp:object [ sp:varName "cpuspeedTIME26090344104883_value"^^xsd:string ] ; sp:predicate gr:hasValue ; - sp:subject [ sp:varName "gbdiskTIME27596574220166_instance"^^xsd:string ] - ] [ sp:object [ sp:varName "ssdcostTIME27596574769676_instance"^^xsd:string ] ; + sp:subject [ sp:varName "cpuspeedTIME26090344104883_instance"^^xsd:string ] + ] [ sp:object [ sp:varName "cpuspeedcostTIME26090344319556_instance"^^xsd:string ] ; sp:predicate price:hasValue ; - sp:subject :ssdcostTIME27596574769676 - ] [ sp:object [ sp:varName "ssdcostTIME27596574769676_value"^^xsd:string ] ; + sp:subject :cpuspeedcostTIME26090344319556 + ] [ sp:object [ sp:varName "cpuspeedcostTIME26090344319556_value"^^xsd:string ] ; sp:predicate gr:hasValue ; - sp:subject [ sp:varName "ssdcostTIME27596574769676_instance"^^xsd:string ] + sp:subject [ sp:varName "cpuspeedcostTIME26090344319556_instance"^^xsd:string ] ] [ a sp:Bind ; sp:expression [ a sp:if ; sp:arg1 [ a sp:lt ; - sp:arg1 [ sp:varName "gbdiskTIME27596574220166_value"^^xsd:string ] ; - sp:arg2 15360 + sp:arg1 [ sp:varName "cpuspeedTIME26090344104883_value"^^xsd:string ] ; + sp:arg2 50 ] ; sp:arg2 [ a sp:mul ; sp:arg1 [ a sp:mul ; sp:arg1 [ a sp:mul ; - sp:arg1 [ sp:varName "ssdcostTIME27596574769676_value"^^xsd:string ] ; - sp:arg2 [ sp:varName "gbdiskTIME27596574220166_value"^^xsd:string ] + sp:arg1 [ sp:varName "cpuspeedcostTIME26090344319556_value"^^xsd:string ] ; + sp:arg2 [ sp:varName "cpuspeedTIME26090344104883_value"^^xsd:string ] ] ; - sp:arg2 6 + sp:arg2 4320 ] ; sp:arg2 [ a sp:add ; sp:arg1 1 ; @@ -390,22 +502,22 @@ sp:expression [ a sp:if ; sp:arg1 [ a sp:and ; sp:arg1 [ a sp:ge ; - sp:arg1 [ sp:varName "gbdiskTIME27596574220166_value"^^xsd:string ] ; - sp:arg2 15360 + sp:arg1 [ sp:varName "cpuspeedTIME26090344104883_value"^^xsd:string ] ; + sp:arg2 50 ] ; sp:arg2 [ a sp:lt ; - sp:arg1 [ sp:varName "gbdiskTIME27596574220166_value"^^xsd:string ] ; - sp:arg2 25600 + sp:arg1 [ sp:varName "cpuspeedTIME26090344104883_value"^^xsd:string ] ; + sp:arg2 100 ] ] ; sp:arg2 [ a sp:mul ; sp:arg1 [ a sp:mul ; sp:arg1 [ a sp:mul ; sp:arg1 [ a sp:mul ; - sp:arg1 [ sp:varName "ssdcostTIME27596574769676_value"^^xsd:string ] ; - sp:arg2 [ sp:varName "gbdiskTIME27596574220166_value"^^xsd:string ] + sp:arg1 [ sp:varName "cpuspeedcostTIME26090344319556_value"^^xsd:string ] ; + sp:arg2 [ sp:varName "cpuspeedTIME26090344104883_value"^^xsd:string ] ] ; - sp:arg2 6 + sp:arg2 4320 ] ; sp:arg2 [ a sp:add ; sp:arg1 1 ; @@ -430,22 +542,22 @@ sp:expression [ a sp:if ; sp:arg1 [ a sp:and ; sp:arg1 [ a sp:ge ; - sp:arg1 [ sp:varName "gbdiskTIME27596574220166_value"^^xsd:string ] ; - sp:arg2 25600 + sp:arg1 [ sp:varName "cpuspeedTIME26090344104883_value"^^xsd:string ] ; + sp:arg2 100 ] ; sp:arg2 [ a sp:lt ; - sp:arg1 [ sp:varName "gbdiskTIME27596574220166_value"^^xsd:string ] ; - sp:arg2 51200 + sp:arg1 [ sp:varName "cpuspeedTIME26090344104883_value"^^xsd:string ] ; + sp:arg2 500 ] ] ; sp:arg2 [ a sp:mul ; sp:arg1 [ a sp:mul ; sp:arg1 [ a sp:mul ; sp:arg1 [ a sp:mul ; - sp:arg1 [ sp:varName "ssdcostTIME27596574769676_value"^^xsd:string ] ; - sp:arg2 [ sp:varName "gbdiskTIME27596574220166_value"^^xsd:string ] + sp:arg1 [ sp:varName "cpuspeedcostTIME26090344319556_value"^^xsd:string ] ; + sp:arg2 [ sp:varName "cpuspeedTIME26090344104883_value"^^xsd:string ] ] ; - sp:arg2 6 + sp:arg2 4320 ] ; sp:arg2 [ a sp:add ; sp:arg1 1 ; @@ -470,22 +582,22 @@ sp:expression [ a sp:if ; sp:arg1 [ a sp:and ; sp:arg1 [ a sp:ge ; - sp:arg1 [ sp:varName "gbdiskTIME27596574220166_value"^^xsd:string ] ; - sp:arg2 51200 + sp:arg1 [ sp:varName "cpuspeedTIME26090344104883_value"^^xsd:string ] ; + sp:arg2 500 ] ; sp:arg2 [ a sp:lt ; - sp:arg1 [ sp:varName "gbdiskTIME27596574220166_value"^^xsd:string ] ; - sp:arg2 256000 + sp:arg1 [ sp:varName "cpuspeedTIME26090344104883_value"^^xsd:string ] ; + sp:arg2 4000 ] ] ; sp:arg2 [ a sp:mul ; sp:arg1 [ a sp:mul ; sp:arg1 [ a sp:mul ; sp:arg1 [ a sp:mul ; - sp:arg1 [ sp:varName "ssdcostTIME27596574769676_value"^^xsd:string ] ; - sp:arg2 [ sp:varName "gbdiskTIME27596574220166_value"^^xsd:string ] + sp:arg1 [ sp:varName "cpuspeedcostTIME26090344319556_value"^^xsd:string ] ; + sp:arg2 [ sp:varName "cpuspeedTIME26090344104883_value"^^xsd:string ] ] ; - sp:arg2 6 + sp:arg2 4320 ] ; sp:arg2 [ a sp:add ; sp:arg1 1 ; @@ -510,22 +622,22 @@ sp:expression [ a sp:if ; sp:arg1 [ a sp:and ; sp:arg1 [ a sp:ge ; - sp:arg1 [ sp:varName "gbdiskTIME27596574220166_value"^^xsd:string ] ; - sp:arg2 256000 + sp:arg1 [ sp:varName "cpuspeedTIME26090344104883_value"^^xsd:string ] ; + sp:arg2 4000 ] ; sp:arg2 [ a sp:lt ; - sp:arg1 [ sp:varName "gbdiskTIME27596574220166_value"^^xsd:string ] ; - sp:arg2 1024000 + sp:arg1 [ sp:varName "cpuspeedTIME26090344104883_value"^^xsd:string ] ; + sp:arg2 10000 ] ] ; sp:arg2 [ a sp:mul ; sp:arg1 [ a sp:mul ; sp:arg1 [ a sp:mul ; sp:arg1 [ a sp:mul ; - sp:arg1 [ sp:varName "ssdcostTIME27596574769676_value"^^xsd:string ] ; - sp:arg2 [ sp:varName "gbdiskTIME27596574220166_value"^^xsd:string ] + sp:arg1 [ sp:varName "cpuspeedcostTIME26090344319556_value"^^xsd:string ] ; + sp:arg2 [ sp:varName "cpuspeedTIME26090344104883_value"^^xsd:string ] ] ; - sp:arg2 6 + sp:arg2 4320 ] ; sp:arg2 [ a sp:add ; sp:arg1 1 ; @@ -549,17 +661,17 @@ ] [ a sp:Bind ; sp:expression [ a sp:if ; sp:arg1 [ a sp:ge ; - sp:arg1 [ sp:varName "gbdiskTIME27596574220166_value"^^xsd:string ] ; - sp:arg2 1024000 + sp:arg1 [ sp:varName "cpuspeedTIME26090344104883_value"^^xsd:string ] ; + sp:arg2 10000 ] ; sp:arg2 [ a sp:mul ; sp:arg1 [ a sp:mul ; sp:arg1 [ a sp:mul ; sp:arg1 [ a sp:mul ; - sp:arg1 [ sp:varName "ssdcostTIME27596574769676_value"^^xsd:string ] ; - sp:arg2 [ sp:varName "gbdiskTIME27596574220166_value"^^xsd:string ] + sp:arg1 [ sp:varName "cpuspeedcostTIME26090344319556_value"^^xsd:string ] ; + sp:arg2 [ sp:varName "cpuspeedTIME26090344104883_value"^^xsd:string ] ] ; - sp:arg2 6 + sp:arg2 4320 ] ; sp:arg2 [ a sp:add ; sp:arg1 1 ; @@ -600,167 +712,47 @@ sp:variable [ sp:varName "result"^^xsd:string ] ] ) ] ; - price:hasVariable :ssdcostTIME27596574769676 , :gbdiskTIME27596574220166 . - -:nstaticipTIME27596574872308 - a price:Usage ; - rdfs:comment "Number of StaticIP you need." ; - rdfs:label "nstaticipTIME27596574872308" . - -:cpuspeedTIME27596574850926 - a price:Usage ; - rdfs:comment "CPUSpeed you need." ; - rdfs:label "cpuspeedTIME27596574850926" . + price:hasVariable :cpuspeedcostTIME26090344319556 , :cpuspeedTIME26090344104883 . -:pc5-DATAOUT_TIME27596738896054 - a price:PriceComponent ; - rdfs:comment "Responsible for calculating the cost of the outgoing data transferral." ; - rdfs:label "pc5-DATAOUT" ; - price:hasPriceFunction :dataout-pf_TIME27596741996401 . - -:pc2-ramcost_TIME27596697706769 - a price:PriceComponent ; - rdfs:comment "Responsible for calculating the cost of the ram." ; - rdfs:label "pc2-ramcost" ; - price:hasPriceFunction :ram-pf_TIME27596702977786 . - -:QuantitativeValue_TIME27596733642569 +:QuantitativeValue_40 a gr:QuantitativeValue ; gr:hasUnitOfMeasurement "USD" ; gr:hasValue "0.0187"^^xsd:double . -:gbdiskTIME27596574220166 - a price:Usage ; - rdfs:comment "Number of GB that you need for the instance disk." ; - rdfs:label "gbdiskTIME27596574220166" . - -:gboutcostTIME27596574898821 - a price:Constant ; - rdfs:label "gboutcostTIME27596574898821" ; - price:hasValue :QuantitativeValue_TIME27596743506376 . - -:pc1-ssdcost_TIME27596577028011 - a price:PriceComponent ; - rdfs:comment "Responsible for calculating the cost of the SSD hardware." ; - rdfs:label "pc1-ssdcost" ; - price:hasPriceFunction :ssd-pf_TIME27596584867399 . - -:ngboutTIME27596574893262 - a price:Usage ; - rdfs:comment "Number of GB you expect to send out per month." ; - rdfs:label "ngboutTIME27596574893262" . - -:staticip-pf_TIME27596736952457 - a spin:Function ; - rdfs:label "staticip-pf" ; - spin:body [ a sp:Select ; - sp:resultVariables ( [ sp:varName "result"^^xsd:string ] ) ; - sp:where ( [ sp:object [ sp:varName "staticipcostTIME27596574877867_instance"^^xsd:string ] ; - sp:predicate price:hasValue ; - sp:subject :staticipcostTIME27596574877867 - ] [ sp:object [ sp:varName "staticipcostTIME27596574877867_value"^^xsd:string ] ; - sp:predicate gr:hasValue ; - sp:subject [ sp:varName "staticipcostTIME27596574877867_instance"^^xsd:string ] - ] [ sp:object [ sp:varName "nstaticipTIME27596574872308_instance"^^xsd:string ] ; - sp:predicate price:hasValue ; - sp:subject :nstaticipTIME27596574872308 - ] [ sp:object [ sp:varName "nstaticipTIME27596574872308_value"^^xsd:string ] ; - sp:predicate gr:hasValue ; - sp:subject [ sp:varName "nstaticipTIME27596574872308_instance"^^xsd:string ] - ] [ a sp:Bind ; - sp:expression [ a sp:mul ; - sp:arg1 [ a sp:mul ; - sp:arg1 [ a sp:mul ; - sp:arg1 [ sp:varName "staticipcostTIME27596574877867_value"^^xsd:string ] ; - sp:arg2 [ sp:varName "nstaticipTIME27596574872308_value"^^xsd:string ] - ] ; - sp:arg2 6 - ] ; - sp:arg2 [ a sp:add ; - sp:arg1 1 ; - sp:arg2 [ a sp:mul ; - sp:arg1 -1 ; - sp:arg2 0.1 - ] - ] - ] ; - sp:variable [ sp:varName "result"^^xsd:string ] - ] ) - ] ; - price:hasVariable :staticipcostTIME27596574877867 , :nstaticipTIME27596574872308 . - -:pc4-staticipcost_TIME27596733707997 - a price:PriceComponent ; - rdfs:comment "Responsible for calculating the cost of the StaticIPs." ; - rdfs:label "pc4-staticipcost" ; - price:hasPriceFunction :staticip-pf_TIME27596736952457 . - -:QuantitativeValue_TIME27596714863447 - a gr:QuantitativeValue ; - gr:hasUnitOfMeasurement "USD" ; - gr:hasValue "0.0229"^^xsd:double . - -:QuantitativeValue_TIME27596691612129 - a gr:QuantitativeValue ; - gr:hasUnitOfMeasurement "USD" ; - gr:hasValue "0.22"^^xsd:double . - -:S16mSubs-O-PP_TIME27596576942912 - a price:PricePlan ; - rdfs:comment "PricePlan for CloudSigma's s1 6msubscription plan" ; - rdfs:label "S16mSubs-O-PP" ; - price:hasPriceComponent :pc5-DATAOUT_TIME27596738896054 , :pc4-staticipcost_TIME27596733707997 , :pc3-cpuspeedcost_TIME27596714947691 , :pc2-ramcost_TIME27596697706769 , :pc1-ssdcost_TIME27596577028011 . - -:staticipcostTIME27596574877867 - a price:Constant ; - rdfs:label "staticipcostTIME27596574877867" ; - price:hasValue :QuantitativeValue_TIME27596738837895 . - -:ssdcostTIME27596574769676 - a price:Constant ; - rdfs:label "ssdcostTIME27596574769676" ; - price:hasValue :QuantitativeValue_TIME27596691612129 . - -:cpuspeedcostTIME27596574856486 - a price:Constant ; - rdfs:label "cpuspeedcostTIME27596574856486" ; - price:hasValue :QuantitativeValue_TIME27596733642569 . - -:gbramTIME27596574816716 - a price:Usage ; - rdfs:comment "Number of GB of RAM you need." ; - rdfs:label "gbramTIME27596574816716" . +:pc3-cpuspeedcost a price:PriceComponent ; + rdfs:comment "Responsible for calculating the cost of the CPUSpeed." ; + rdfs:label "pc3-cpuspeedcost" ; + price:hasPriceFunction :cpuspeed-pf . -:cpuspeed-pf_TIME27596723560669 - a spin:Function ; - rdfs:label "cpuspeed-pf" ; +:ssd-pf a spin:Function ; + rdfs:label "ssd-pf" ; spin:body [ a sp:Select ; sp:resultVariables ( [ sp:varName "result"^^xsd:string ] ) ; - sp:where ( [ sp:object [ sp:varName "cpuspeedTIME27596574850926_instance"^^xsd:string ] ; + sp:where ( [ sp:object [ sp:varName "gbdiskTIME26090334019544_instance"^^xsd:string ] ; sp:predicate price:hasValue ; - sp:subject :cpuspeedTIME27596574850926 - ] [ sp:object [ sp:varName "cpuspeedTIME27596574850926_value"^^xsd:string ] ; + sp:subject :gbdiskTIME26090334019544 + ] [ sp:object [ sp:varName "gbdiskTIME26090334019544_value"^^xsd:string ] ; sp:predicate gr:hasValue ; - sp:subject [ sp:varName "cpuspeedTIME27596574850926_instance"^^xsd:string ] - ] [ sp:object [ sp:varName "cpuspeedcostTIME27596574856486_instance"^^xsd:string ] ; + sp:subject [ sp:varName "gbdiskTIME26090334019544_instance"^^xsd:string ] + ] [ sp:object [ sp:varName "ssdcostTIME26090341786247_instance"^^xsd:string ] ; sp:predicate price:hasValue ; - sp:subject :cpuspeedcostTIME27596574856486 - ] [ sp:object [ sp:varName "cpuspeedcostTIME27596574856486_value"^^xsd:string ] ; + sp:subject :ssdcostTIME26090341786247 + ] [ sp:object [ sp:varName "ssdcostTIME26090341786247_value"^^xsd:string ] ; sp:predicate gr:hasValue ; - sp:subject [ sp:varName "cpuspeedcostTIME27596574856486_instance"^^xsd:string ] + sp:subject [ sp:varName "ssdcostTIME26090341786247_instance"^^xsd:string ] ] [ a sp:Bind ; sp:expression [ a sp:if ; sp:arg1 [ a sp:lt ; - sp:arg1 [ sp:varName "cpuspeedTIME27596574850926_value"^^xsd:string ] ; - sp:arg2 50 + sp:arg1 [ sp:varName "gbdiskTIME26090334019544_value"^^xsd:string ] ; + sp:arg2 15360 ] ; sp:arg2 [ a sp:mul ; sp:arg1 [ a sp:mul ; sp:arg1 [ a sp:mul ; - sp:arg1 [ sp:varName "cpuspeedcostTIME27596574856486_value"^^xsd:string ] ; - sp:arg2 [ sp:varName "cpuspeedTIME27596574850926_value"^^xsd:string ] + sp:arg1 [ sp:varName "ssdcostTIME26090341786247_value"^^xsd:string ] ; + sp:arg2 [ sp:varName "gbdiskTIME26090334019544_value"^^xsd:string ] ] ; - sp:arg2 4320 + sp:arg2 6 ] ; sp:arg2 [ a sp:add ; sp:arg1 1 ; @@ -777,22 +769,22 @@ sp:expression [ a sp:if ; sp:arg1 [ a sp:and ; sp:arg1 [ a sp:ge ; - sp:arg1 [ sp:varName "cpuspeedTIME27596574850926_value"^^xsd:string ] ; - sp:arg2 50 + sp:arg1 [ sp:varName "gbdiskTIME26090334019544_value"^^xsd:string ] ; + sp:arg2 15360 ] ; sp:arg2 [ a sp:lt ; - sp:arg1 [ sp:varName "cpuspeedTIME27596574850926_value"^^xsd:string ] ; - sp:arg2 100 + sp:arg1 [ sp:varName "gbdiskTIME26090334019544_value"^^xsd:string ] ; + sp:arg2 25600 ] ] ; sp:arg2 [ a sp:mul ; sp:arg1 [ a sp:mul ; sp:arg1 [ a sp:mul ; sp:arg1 [ a sp:mul ; - sp:arg1 [ sp:varName "cpuspeedcostTIME27596574856486_value"^^xsd:string ] ; - sp:arg2 [ sp:varName "cpuspeedTIME27596574850926_value"^^xsd:string ] + sp:arg1 [ sp:varName "ssdcostTIME26090341786247_value"^^xsd:string ] ; + sp:arg2 [ sp:varName "gbdiskTIME26090334019544_value"^^xsd:string ] ] ; - sp:arg2 4320 + sp:arg2 6 ] ; sp:arg2 [ a sp:add ; sp:arg1 1 ; @@ -817,22 +809,22 @@ sp:expression [ a sp:if ; sp:arg1 [ a sp:and ; sp:arg1 [ a sp:ge ; - sp:arg1 [ sp:varName "cpuspeedTIME27596574850926_value"^^xsd:string ] ; - sp:arg2 100 + sp:arg1 [ sp:varName "gbdiskTIME26090334019544_value"^^xsd:string ] ; + sp:arg2 25600 ] ; sp:arg2 [ a sp:lt ; - sp:arg1 [ sp:varName "cpuspeedTIME27596574850926_value"^^xsd:string ] ; - sp:arg2 500 + sp:arg1 [ sp:varName "gbdiskTIME26090334019544_value"^^xsd:string ] ; + sp:arg2 51200 ] ] ; sp:arg2 [ a sp:mul ; sp:arg1 [ a sp:mul ; sp:arg1 [ a sp:mul ; sp:arg1 [ a sp:mul ; - sp:arg1 [ sp:varName "cpuspeedcostTIME27596574856486_value"^^xsd:string ] ; - sp:arg2 [ sp:varName "cpuspeedTIME27596574850926_value"^^xsd:string ] + sp:arg1 [ sp:varName "ssdcostTIME26090341786247_value"^^xsd:string ] ; + sp:arg2 [ sp:varName "gbdiskTIME26090334019544_value"^^xsd:string ] ] ; - sp:arg2 4320 + sp:arg2 6 ] ; sp:arg2 [ a sp:add ; sp:arg1 1 ; @@ -857,22 +849,22 @@ sp:expression [ a sp:if ; sp:arg1 [ a sp:and ; sp:arg1 [ a sp:ge ; - sp:arg1 [ sp:varName "cpuspeedTIME27596574850926_value"^^xsd:string ] ; - sp:arg2 500 + sp:arg1 [ sp:varName "gbdiskTIME26090334019544_value"^^xsd:string ] ; + sp:arg2 51200 ] ; sp:arg2 [ a sp:lt ; - sp:arg1 [ sp:varName "cpuspeedTIME27596574850926_value"^^xsd:string ] ; - sp:arg2 4000 + sp:arg1 [ sp:varName "gbdiskTIME26090334019544_value"^^xsd:string ] ; + sp:arg2 256000 ] ] ; sp:arg2 [ a sp:mul ; sp:arg1 [ a sp:mul ; sp:arg1 [ a sp:mul ; sp:arg1 [ a sp:mul ; - sp:arg1 [ sp:varName "cpuspeedcostTIME27596574856486_value"^^xsd:string ] ; - sp:arg2 [ sp:varName "cpuspeedTIME27596574850926_value"^^xsd:string ] + sp:arg1 [ sp:varName "ssdcostTIME26090341786247_value"^^xsd:string ] ; + sp:arg2 [ sp:varName "gbdiskTIME26090334019544_value"^^xsd:string ] ] ; - sp:arg2 4320 + sp:arg2 6 ] ; sp:arg2 [ a sp:add ; sp:arg1 1 ; @@ -897,22 +889,22 @@ sp:expression [ a sp:if ; sp:arg1 [ a sp:and ; sp:arg1 [ a sp:ge ; - sp:arg1 [ sp:varName "cpuspeedTIME27596574850926_value"^^xsd:string ] ; - sp:arg2 4000 + sp:arg1 [ sp:varName "gbdiskTIME26090334019544_value"^^xsd:string ] ; + sp:arg2 256000 ] ; sp:arg2 [ a sp:lt ; - sp:arg1 [ sp:varName "cpuspeedTIME27596574850926_value"^^xsd:string ] ; - sp:arg2 10000 + sp:arg1 [ sp:varName "gbdiskTIME26090334019544_value"^^xsd:string ] ; + sp:arg2 1024000 ] ] ; sp:arg2 [ a sp:mul ; sp:arg1 [ a sp:mul ; sp:arg1 [ a sp:mul ; sp:arg1 [ a sp:mul ; - sp:arg1 [ sp:varName "cpuspeedcostTIME27596574856486_value"^^xsd:string ] ; - sp:arg2 [ sp:varName "cpuspeedTIME27596574850926_value"^^xsd:string ] + sp:arg1 [ sp:varName "ssdcostTIME26090341786247_value"^^xsd:string ] ; + sp:arg2 [ sp:varName "gbdiskTIME26090334019544_value"^^xsd:string ] ] ; - sp:arg2 4320 + sp:arg2 6 ] ; sp:arg2 [ a sp:add ; sp:arg1 1 ; @@ -936,17 +928,17 @@ ] [ a sp:Bind ; sp:expression [ a sp:if ; sp:arg1 [ a sp:ge ; - sp:arg1 [ sp:varName "cpuspeedTIME27596574850926_value"^^xsd:string ] ; - sp:arg2 10000 + sp:arg1 [ sp:varName "gbdiskTIME26090334019544_value"^^xsd:string ] ; + sp:arg2 1024000 ] ; sp:arg2 [ a sp:mul ; sp:arg1 [ a sp:mul ; sp:arg1 [ a sp:mul ; sp:arg1 [ a sp:mul ; - sp:arg1 [ sp:varName "cpuspeedcostTIME27596574856486_value"^^xsd:string ] ; - sp:arg2 [ sp:varName "cpuspeedTIME27596574850926_value"^^xsd:string ] + sp:arg1 [ sp:varName "ssdcostTIME26090341786247_value"^^xsd:string ] ; + sp:arg2 [ sp:varName "gbdiskTIME26090334019544_value"^^xsd:string ] ] ; - sp:arg2 4320 + sp:arg2 6 ] ; sp:arg2 [ a sp:add ; sp:arg1 1 ; @@ -987,4 +979,4 @@ sp:variable [ sp:varName "result"^^xsd:string ] ] ) ] ; - price:hasVariable :cpuspeedcostTIME27596574856486 , :cpuspeedTIME27596574850926 . + price:hasVariable :ssdcostTIME26090341786247 , :gbdiskTIME26090334019544 . diff --git a/SPIN_API/DebuggingFiles/MAzureSmallPrePaid6m.ttl b/SPIN_API/DebuggingFiles/MAzureSmallPrePaid6m.ttl index f56bec3..cdcf90b 100644 --- a/SPIN_API/DebuggingFiles/MAzureSmallPrePaid6m.ttl +++ b/SPIN_API/DebuggingFiles/MAzureSmallPrePaid6m.ttl @@ -1,104 +1,96 @@ -@prefix dc: . @prefix legal: . @prefix : . +@prefix dc: . @prefix foaf: . @prefix sp: . @prefix vann: . +@prefix cloudtaxonomy: . +@prefix org: . @prefix rdfs: . +@prefix pf: . @prefix price: . @prefix spl: . +@prefix usdk: . @prefix xsd: . @prefix owl: . -@prefix rdf: . @prefix spin: . -@prefix cloud: . +@prefix rdf: . @prefix core: . @prefix gr: . @prefix skos: . -:SmallPrePaid-Offering_TIME37892012841850 - a core:ServiceOffering ; - rdfs:label "SmallPrePaid-Offering" ; - core:includes :SmallPrePaid6m_TIME37892014035377 ; - price:hasPricePlan :SmallPrePaid-O-PP_TIME37892014640051 . +:VMCost6mTIME26138695121627 + a price:Constant ; + rdfs:label "VMCost6mTIME26138695121627" ; + price:hasValue :QuantitativeValue_26 . -:br-cost-pf_TIME37892203565356 - a spin:Function ; - rdfs:label "br-cost-pf" ; - spin:body [ a sp:Select ; - sp:resultVariables ( [ sp:varName "result"^^xsd:string ] ) ; - sp:where ( [ sp:object [ sp:varName "NGBbrTIME37892012588691_instance"^^xsd:string ] ; - sp:predicate price:hasValue ; - sp:subject :NGBbrTIME37892012588691 - ] [ sp:object [ sp:varName "NGBbrTIME37892012588691_value"^^xsd:string ] ; - sp:predicate gr:hasValue ; - sp:subject [ sp:varName "NGBbrTIME37892012588691_instance"^^xsd:string ] - ] [ sp:object [ sp:varName "backupcostTIME37892012583132_instance"^^xsd:string ] ; - sp:predicate price:hasValue ; - sp:subject :backupcostTIME37892012583132 - ] [ sp:object [ sp:varName "backupcostTIME37892012583132_value"^^xsd:string ] ; - sp:predicate gr:hasValue ; - sp:subject [ sp:varName "backupcostTIME37892012583132_instance"^^xsd:string ] - ] [ a sp:Bind ; - sp:expression [ a sp:mul ; - sp:arg1 6 ; - sp:arg2 [ a sp:mul ; - sp:arg1 [ sp:varName "NGBbrTIME37892012588691_value"^^xsd:string ] ; - sp:arg2 [ sp:varName "backupcostTIME37892012583132_value"^^xsd:string ] - ] - ] ; - sp:variable [ sp:varName "result"^^xsd:string ] - ] ) - ] ; - price:hasVariable :backupcostTIME37892012583132 , :NGBbrTIME37892012588691 . +:QuantitativeValue_56 + a gr:QuantitativeValue ; + gr:hasUnitOfMeasurement "EUR" ; + gr:hasValue "0.167"^^xsd:double . + +:QuantitativeValue_26 + a gr:QuantitativeValue ; + gr:hasUnitOfMeasurement "EUR" ; + gr:hasValue "0.038"^^xsd:double . + +:QuantitativeValue_38 + a gr:QuantitativeValue ; + gr:hasUnitOfMeasurement "EUR" ; + gr:hasValue "0.167"^^xsd:double . -:totalprice-deduction-pf_TIME37892229090832 +:QuantitativeValue_51 + a gr:QuantitativeValue ; + gr:hasUnitOfMeasurement "EUR" ; + gr:hasValue "0.167"^^xsd:double . + +:totalprice-deduction-pf a spin:Function ; rdfs:label "totalprice-deduction-pf" ; spin:body [ a sp:Select ; sp:resultVariables ( [ sp:varName "result"^^xsd:string ] ) ; - sp:where ( [ sp:object [ sp:varName "VMCost6mTIME37892012664810_instance"^^xsd:string ] ; + sp:where ( [ sp:object [ sp:varName "VMCost6mTIME26138706107993_instance"^^xsd:string ] ; sp:predicate price:hasValue ; - sp:subject :VMCost6mTIME37892012664810 - ] [ sp:object [ sp:varName "VMCost6mTIME37892012664810_value"^^xsd:string ] ; + sp:subject :VMCost6mTIME26138706107993 + ] [ sp:object [ sp:varName "VMCost6mTIME26138706107993_value"^^xsd:string ] ; sp:predicate gr:hasValue ; - sp:subject [ sp:varName "VMCost6mTIME37892012664810_instance"^^xsd:string ] - ] [ sp:object [ sp:varName "ngboutz1TIME37892012654546_instance"^^xsd:string ] ; + sp:subject [ sp:varName "VMCost6mTIME26138706107993_instance"^^xsd:string ] + ] [ sp:object [ sp:varName "ngboutz1TIME26138705823616_instance"^^xsd:string ] ; sp:predicate price:hasValue ; - sp:subject :ngboutz1TIME37892012654546 - ] [ sp:object [ sp:varName "ngboutz1TIME37892012654546_value"^^xsd:string ] ; + sp:subject :ngboutz1TIME26138705823616 + ] [ sp:object [ sp:varName "ngboutz1TIME26138705823616_value"^^xsd:string ] ; sp:predicate gr:hasValue ; - sp:subject [ sp:varName "ngboutz1TIME37892012654546_instance"^^xsd:string ] - ] [ sp:object [ sp:varName "gboutcostz1TIME37892012659250_instance"^^xsd:string ] ; + sp:subject [ sp:varName "ngboutz1TIME26138705823616_instance"^^xsd:string ] + ] [ sp:object [ sp:varName "gboutcostz1TIME26138705933518_instance"^^xsd:string ] ; sp:predicate price:hasValue ; - sp:subject :gboutcostz1TIME37892012659250 - ] [ sp:object [ sp:varName "gboutcostz1TIME37892012659250_value"^^xsd:string ] ; + sp:subject :gboutcostz1TIME26138705933518 + ] [ sp:object [ sp:varName "gboutcostz1TIME26138705933518_value"^^xsd:string ] ; sp:predicate gr:hasValue ; - sp:subject [ sp:varName "gboutcostz1TIME37892012659250_instance"^^xsd:string ] - ] [ sp:object [ sp:varName "ngboutz2TIME37892012657112_instance"^^xsd:string ] ; + sp:subject [ sp:varName "gboutcostz1TIME26138705933518_instance"^^xsd:string ] + ] [ sp:object [ sp:varName "ngboutz2TIME26138705878780_instance"^^xsd:string ] ; sp:predicate price:hasValue ; - sp:subject :ngboutz2TIME37892012657112 - ] [ sp:object [ sp:varName "ngboutz2TIME37892012657112_value"^^xsd:string ] ; + sp:subject :ngboutz2TIME26138705878780 + ] [ sp:object [ sp:varName "ngboutz2TIME26138705878780_value"^^xsd:string ] ; sp:predicate gr:hasValue ; - sp:subject [ sp:varName "ngboutz2TIME37892012657112_instance"^^xsd:string ] - ] [ sp:object [ sp:varName "gboutcostz2TIME37892012662244_instance"^^xsd:string ] ; + sp:subject [ sp:varName "ngboutz2TIME26138705878780_instance"^^xsd:string ] + ] [ sp:object [ sp:varName "gboutcostz2TIME26138706020755_instance"^^xsd:string ] ; sp:predicate price:hasValue ; - sp:subject :gboutcostz2TIME37892012662244 - ] [ sp:object [ sp:varName "gboutcostz2TIME37892012662244_value"^^xsd:string ] ; + sp:subject :gboutcostz2TIME26138706020755 + ] [ sp:object [ sp:varName "gboutcostz2TIME26138706020755_value"^^xsd:string ] ; sp:predicate gr:hasValue ; - sp:subject [ sp:varName "gboutcostz2TIME37892012662244_instance"^^xsd:string ] - ] [ sp:object [ sp:varName "NGBbrTIME37892012651981_instance"^^xsd:string ] ; + sp:subject [ sp:varName "gboutcostz2TIME26138706020755_instance"^^xsd:string ] + ] [ sp:object [ sp:varName "NGBbrTIME26138705767595_instance"^^xsd:string ] ; sp:predicate price:hasValue ; - sp:subject :NGBbrTIME37892012651981 - ] [ sp:object [ sp:varName "NGBbrTIME37892012651981_value"^^xsd:string ] ; + sp:subject :NGBbrTIME26138705767595 + ] [ sp:object [ sp:varName "NGBbrTIME26138705767595_value"^^xsd:string ] ; sp:predicate gr:hasValue ; - sp:subject [ sp:varName "NGBbrTIME37892012651981_instance"^^xsd:string ] - ] [ sp:object [ sp:varName "backupcostTIME37892012648132_instance"^^xsd:string ] ; + sp:subject [ sp:varName "NGBbrTIME26138705767595_instance"^^xsd:string ] + ] [ sp:object [ sp:varName "backupcostTIME26138705676082_instance"^^xsd:string ] ; sp:predicate price:hasValue ; - sp:subject :backupcostTIME37892012648132 - ] [ sp:object [ sp:varName "backupcostTIME37892012648132_value"^^xsd:string ] ; + sp:subject :backupcostTIME26138705676082 + ] [ sp:object [ sp:varName "backupcostTIME26138705676082_value"^^xsd:string ] ; sp:predicate gr:hasValue ; - sp:subject [ sp:varName "backupcostTIME37892012648132_instance"^^xsd:string ] + sp:subject [ sp:varName "backupcostTIME26138705676082_instance"^^xsd:string ] ] [ a sp:Bind ; sp:expression [ a sp:if ; sp:arg1 [ a sp:and ; @@ -113,17 +105,17 @@ ] ; sp:arg2 24 ] ; - sp:arg2 [ sp:varName "VMCost6mTIME37892012664810_value"^^xsd:string ] + sp:arg2 [ sp:varName "VMCost6mTIME26138706107993_value"^^xsd:string ] ] ; sp:arg2 [ a sp:mul ; sp:arg1 [ a sp:add ; sp:arg1 [ a sp:mul ; - sp:arg1 [ sp:varName "ngboutz1TIME37892012654546_value"^^xsd:string ] ; - sp:arg2 [ sp:varName "gboutcostz1TIME37892012659250_value"^^xsd:string ] + sp:arg1 [ sp:varName "ngboutz1TIME26138705823616_value"^^xsd:string ] ; + sp:arg2 [ sp:varName "gboutcostz1TIME26138705933518_value"^^xsd:string ] ] ; sp:arg2 [ a sp:mul ; - sp:arg1 [ sp:varName "ngboutz2TIME37892012657112_value"^^xsd:string ] ; - sp:arg2 [ sp:varName "gboutcostz2TIME37892012662244_value"^^xsd:string ] + sp:arg1 [ sp:varName "ngboutz2TIME26138705878780_value"^^xsd:string ] ; + sp:arg2 [ sp:varName "gboutcostz2TIME26138706020755_value"^^xsd:string ] ] ] ; sp:arg2 6 @@ -132,8 +124,8 @@ sp:arg2 [ a sp:mul ; sp:arg1 6 ; sp:arg2 [ a sp:mul ; - sp:arg1 [ sp:varName "NGBbrTIME37892012651981_value"^^xsd:string ] ; - sp:arg2 [ sp:varName "backupcostTIME37892012648132_value"^^xsd:string ] + sp:arg1 [ sp:varName "NGBbrTIME26138705767595_value"^^xsd:string ] ; + sp:arg2 [ sp:varName "backupcostTIME26138705676082_value"^^xsd:string ] ] ] ] ; @@ -150,17 +142,17 @@ ] ; sp:arg2 24 ] ; - sp:arg2 [ sp:varName "VMCost6mTIME37892012664810_value"^^xsd:string ] + sp:arg2 [ sp:varName "VMCost6mTIME26138706107993_value"^^xsd:string ] ] ; sp:arg2 [ a sp:mul ; sp:arg1 [ a sp:add ; sp:arg1 [ a sp:mul ; - sp:arg1 [ sp:varName "ngboutz1TIME37892012654546_value"^^xsd:string ] ; - sp:arg2 [ sp:varName "gboutcostz1TIME37892012659250_value"^^xsd:string ] + sp:arg1 [ sp:varName "ngboutz1TIME26138705823616_value"^^xsd:string ] ; + sp:arg2 [ sp:varName "gboutcostz1TIME26138705933518_value"^^xsd:string ] ] ; sp:arg2 [ a sp:mul ; - sp:arg1 [ sp:varName "ngboutz2TIME37892012657112_value"^^xsd:string ] ; - sp:arg2 [ sp:varName "gboutcostz2TIME37892012662244_value"^^xsd:string ] + sp:arg1 [ sp:varName "ngboutz2TIME26138705878780_value"^^xsd:string ] ; + sp:arg2 [ sp:varName "gboutcostz2TIME26138706020755_value"^^xsd:string ] ] ] ; sp:arg2 6 @@ -169,8 +161,8 @@ sp:arg2 [ a sp:mul ; sp:arg1 6 ; sp:arg2 [ a sp:mul ; - sp:arg1 [ sp:varName "NGBbrTIME37892012651981_value"^^xsd:string ] ; - sp:arg2 [ sp:varName "backupcostTIME37892012648132_value"^^xsd:string ] + sp:arg1 [ sp:varName "NGBbrTIME26138705767595_value"^^xsd:string ] ; + sp:arg2 [ sp:varName "backupcostTIME26138705676082_value"^^xsd:string ] ] ] ] ; @@ -188,17 +180,17 @@ ] ; sp:arg2 24 ] ; - sp:arg2 [ sp:varName "VMCost6mTIME37892012664810_value"^^xsd:string ] + sp:arg2 [ sp:varName "VMCost6mTIME26138706107993_value"^^xsd:string ] ] ; sp:arg2 [ a sp:mul ; sp:arg1 [ a sp:add ; sp:arg1 [ a sp:mul ; - sp:arg1 [ sp:varName "ngboutz1TIME37892012654546_value"^^xsd:string ] ; - sp:arg2 [ sp:varName "gboutcostz1TIME37892012659250_value"^^xsd:string ] + sp:arg1 [ sp:varName "ngboutz1TIME26138705823616_value"^^xsd:string ] ; + sp:arg2 [ sp:varName "gboutcostz1TIME26138705933518_value"^^xsd:string ] ] ; sp:arg2 [ a sp:mul ; - sp:arg1 [ sp:varName "ngboutz2TIME37892012657112_value"^^xsd:string ] ; - sp:arg2 [ sp:varName "gboutcostz2TIME37892012662244_value"^^xsd:string ] + sp:arg1 [ sp:varName "ngboutz2TIME26138705878780_value"^^xsd:string ] ; + sp:arg2 [ sp:varName "gboutcostz2TIME26138706020755_value"^^xsd:string ] ] ] ; sp:arg2 6 @@ -207,8 +199,8 @@ sp:arg2 [ a sp:mul ; sp:arg1 6 ; sp:arg2 [ a sp:mul ; - sp:arg1 [ sp:varName "NGBbrTIME37892012651981_value"^^xsd:string ] ; - sp:arg2 [ sp:varName "backupcostTIME37892012648132_value"^^xsd:string ] + sp:arg1 [ sp:varName "NGBbrTIME26138705767595_value"^^xsd:string ] ; + sp:arg2 [ sp:varName "backupcostTIME26138705676082_value"^^xsd:string ] ] ] ] ; @@ -237,17 +229,17 @@ ] ; sp:arg2 24 ] ; - sp:arg2 [ sp:varName "VMCost6mTIME37892012664810_value"^^xsd:string ] + sp:arg2 [ sp:varName "VMCost6mTIME26138706107993_value"^^xsd:string ] ] ; sp:arg2 [ a sp:mul ; sp:arg1 [ a sp:add ; sp:arg1 [ a sp:mul ; - sp:arg1 [ sp:varName "ngboutz1TIME37892012654546_value"^^xsd:string ] ; - sp:arg2 [ sp:varName "gboutcostz1TIME37892012659250_value"^^xsd:string ] + sp:arg1 [ sp:varName "ngboutz1TIME26138705823616_value"^^xsd:string ] ; + sp:arg2 [ sp:varName "gboutcostz1TIME26138705933518_value"^^xsd:string ] ] ; sp:arg2 [ a sp:mul ; - sp:arg1 [ sp:varName "ngboutz2TIME37892012657112_value"^^xsd:string ] ; - sp:arg2 [ sp:varName "gboutcostz2TIME37892012662244_value"^^xsd:string ] + sp:arg1 [ sp:varName "ngboutz2TIME26138705878780_value"^^xsd:string ] ; + sp:arg2 [ sp:varName "gboutcostz2TIME26138706020755_value"^^xsd:string ] ] ] ; sp:arg2 6 @@ -256,8 +248,8 @@ sp:arg2 [ a sp:mul ; sp:arg1 6 ; sp:arg2 [ a sp:mul ; - sp:arg1 [ sp:varName "NGBbrTIME37892012651981_value"^^xsd:string ] ; - sp:arg2 [ sp:varName "backupcostTIME37892012648132_value"^^xsd:string ] + sp:arg1 [ sp:varName "NGBbrTIME26138705767595_value"^^xsd:string ] ; + sp:arg2 [ sp:varName "backupcostTIME26138705676082_value"^^xsd:string ] ] ] ] ; @@ -274,17 +266,17 @@ ] ; sp:arg2 24 ] ; - sp:arg2 [ sp:varName "VMCost6mTIME37892012664810_value"^^xsd:string ] + sp:arg2 [ sp:varName "VMCost6mTIME26138706107993_value"^^xsd:string ] ] ; sp:arg2 [ a sp:mul ; sp:arg1 [ a sp:add ; sp:arg1 [ a sp:mul ; - sp:arg1 [ sp:varName "ngboutz1TIME37892012654546_value"^^xsd:string ] ; - sp:arg2 [ sp:varName "gboutcostz1TIME37892012659250_value"^^xsd:string ] + sp:arg1 [ sp:varName "ngboutz1TIME26138705823616_value"^^xsd:string ] ; + sp:arg2 [ sp:varName "gboutcostz1TIME26138705933518_value"^^xsd:string ] ] ; sp:arg2 [ a sp:mul ; - sp:arg1 [ sp:varName "ngboutz2TIME37892012657112_value"^^xsd:string ] ; - sp:arg2 [ sp:varName "gboutcostz2TIME37892012662244_value"^^xsd:string ] + sp:arg1 [ sp:varName "ngboutz2TIME26138705878780_value"^^xsd:string ] ; + sp:arg2 [ sp:varName "gboutcostz2TIME26138706020755_value"^^xsd:string ] ] ] ; sp:arg2 6 @@ -293,8 +285,8 @@ sp:arg2 [ a sp:mul ; sp:arg1 6 ; sp:arg2 [ a sp:mul ; - sp:arg1 [ sp:varName "NGBbrTIME37892012651981_value"^^xsd:string ] ; - sp:arg2 [ sp:varName "backupcostTIME37892012648132_value"^^xsd:string ] + sp:arg1 [ sp:varName "NGBbrTIME26138705767595_value"^^xsd:string ] ; + sp:arg2 [ sp:varName "backupcostTIME26138705676082_value"^^xsd:string ] ] ] ] ; @@ -312,17 +304,17 @@ ] ; sp:arg2 24 ] ; - sp:arg2 [ sp:varName "VMCost6mTIME37892012664810_value"^^xsd:string ] + sp:arg2 [ sp:varName "VMCost6mTIME26138706107993_value"^^xsd:string ] ] ; sp:arg2 [ a sp:mul ; sp:arg1 [ a sp:add ; sp:arg1 [ a sp:mul ; - sp:arg1 [ sp:varName "ngboutz1TIME37892012654546_value"^^xsd:string ] ; - sp:arg2 [ sp:varName "gboutcostz1TIME37892012659250_value"^^xsd:string ] + sp:arg1 [ sp:varName "ngboutz1TIME26138705823616_value"^^xsd:string ] ; + sp:arg2 [ sp:varName "gboutcostz1TIME26138705933518_value"^^xsd:string ] ] ; sp:arg2 [ a sp:mul ; - sp:arg1 [ sp:varName "ngboutz2TIME37892012657112_value"^^xsd:string ] ; - sp:arg2 [ sp:varName "gboutcostz2TIME37892012662244_value"^^xsd:string ] + sp:arg1 [ sp:varName "ngboutz2TIME26138705878780_value"^^xsd:string ] ; + sp:arg2 [ sp:varName "gboutcostz2TIME26138706020755_value"^^xsd:string ] ] ] ; sp:arg2 6 @@ -331,8 +323,8 @@ sp:arg2 [ a sp:mul ; sp:arg1 6 ; sp:arg2 [ a sp:mul ; - sp:arg1 [ sp:varName "NGBbrTIME37892012651981_value"^^xsd:string ] ; - sp:arg2 [ sp:varName "backupcostTIME37892012648132_value"^^xsd:string ] + sp:arg1 [ sp:varName "NGBbrTIME26138705767595_value"^^xsd:string ] ; + sp:arg2 [ sp:varName "backupcostTIME26138705676082_value"^^xsd:string ] ] ] ] ; @@ -360,17 +352,17 @@ ] ; sp:arg2 24 ] ; - sp:arg2 [ sp:varName "VMCost6mTIME37892012664810_value"^^xsd:string ] + sp:arg2 [ sp:varName "VMCost6mTIME26138706107993_value"^^xsd:string ] ] ; sp:arg2 [ a sp:mul ; sp:arg1 [ a sp:add ; sp:arg1 [ a sp:mul ; - sp:arg1 [ sp:varName "ngboutz1TIME37892012654546_value"^^xsd:string ] ; - sp:arg2 [ sp:varName "gboutcostz1TIME37892012659250_value"^^xsd:string ] + sp:arg1 [ sp:varName "ngboutz1TIME26138705823616_value"^^xsd:string ] ; + sp:arg2 [ sp:varName "gboutcostz1TIME26138705933518_value"^^xsd:string ] ] ; sp:arg2 [ a sp:mul ; - sp:arg1 [ sp:varName "ngboutz2TIME37892012657112_value"^^xsd:string ] ; - sp:arg2 [ sp:varName "gboutcostz2TIME37892012662244_value"^^xsd:string ] + sp:arg1 [ sp:varName "ngboutz2TIME26138705878780_value"^^xsd:string ] ; + sp:arg2 [ sp:varName "gboutcostz2TIME26138706020755_value"^^xsd:string ] ] ] ; sp:arg2 6 @@ -379,8 +371,8 @@ sp:arg2 [ a sp:mul ; sp:arg1 6 ; sp:arg2 [ a sp:mul ; - sp:arg1 [ sp:varName "NGBbrTIME37892012651981_value"^^xsd:string ] ; - sp:arg2 [ sp:varName "backupcostTIME37892012648132_value"^^xsd:string ] + sp:arg1 [ sp:varName "NGBbrTIME26138705767595_value"^^xsd:string ] ; + sp:arg2 [ sp:varName "backupcostTIME26138705676082_value"^^xsd:string ] ] ] ] ; @@ -397,17 +389,17 @@ ] ; sp:arg2 24 ] ; - sp:arg2 [ sp:varName "VMCost6mTIME37892012664810_value"^^xsd:string ] + sp:arg2 [ sp:varName "VMCost6mTIME26138706107993_value"^^xsd:string ] ] ; sp:arg2 [ a sp:mul ; sp:arg1 [ a sp:add ; sp:arg1 [ a sp:mul ; - sp:arg1 [ sp:varName "ngboutz1TIME37892012654546_value"^^xsd:string ] ; - sp:arg2 [ sp:varName "gboutcostz1TIME37892012659250_value"^^xsd:string ] + sp:arg1 [ sp:varName "ngboutz1TIME26138705823616_value"^^xsd:string ] ; + sp:arg2 [ sp:varName "gboutcostz1TIME26138705933518_value"^^xsd:string ] ] ; sp:arg2 [ a sp:mul ; - sp:arg1 [ sp:varName "ngboutz2TIME37892012657112_value"^^xsd:string ] ; - sp:arg2 [ sp:varName "gboutcostz2TIME37892012662244_value"^^xsd:string ] + sp:arg1 [ sp:varName "ngboutz2TIME26138705878780_value"^^xsd:string ] ; + sp:arg2 [ sp:varName "gboutcostz2TIME26138706020755_value"^^xsd:string ] ] ] ; sp:arg2 6 @@ -416,8 +408,8 @@ sp:arg2 [ a sp:mul ; sp:arg1 6 ; sp:arg2 [ a sp:mul ; - sp:arg1 [ sp:varName "NGBbrTIME37892012651981_value"^^xsd:string ] ; - sp:arg2 [ sp:varName "backupcostTIME37892012648132_value"^^xsd:string ] + sp:arg1 [ sp:varName "NGBbrTIME26138705767595_value"^^xsd:string ] ; + sp:arg2 [ sp:varName "backupcostTIME26138705676082_value"^^xsd:string ] ] ] ] ; @@ -443,223 +435,136 @@ sp:variable [ sp:varName "result"^^xsd:string ] ] ) ] ; - price:hasVariable :ngboutz2TIME37892012657112 , :backupcostTIME37892012648132 , :gboutcostz2TIME37892012662244 , :NGBbrTIME37892012651981 , :ngboutz1TIME37892012654546 , :VMCost6mTIME37892012664810 , :gboutcostz1TIME37892012659250 . - -:NGBbrTIME37892012636586 - a price:Usage ; - rdfs:comment "Number of GB you expect to backup per month." ; - rdfs:label "NGBbrTIME37892012636586" . - -:ngboutz1TIME37892012542506 - a price:Usage ; - rdfs:comment "Number of GB you expect to send out per month to the US West, US East, US North Central, US South Central, Europe West, Europe North." ; - rdfs:label "ngboutz1TIME37892012542506" . - -:QuantitativeValue_TIME37892225605615 - a gr:QuantitativeValue ; - gr:hasUnitOfMeasurement "EUR" ; - gr:hasValue "0.167"^^xsd:double . + price:hasVariable :VMCost6mTIME26138706107993 , :gboutcostz1TIME26138705933518 , :ngboutz1TIME26138705823616 , :gboutcostz2TIME26138706020755 , :ngboutz2TIME26138705878780 , :backupcostTIME26138705676082 , :NGBbrTIME26138705767595 . -:pc5-brdeduction_TIME37892216687307 - a price:Deduction , price:PriceComponent ; +:pc5-brdeduction a price:Deduction ; rdfs:comment "Responsible for calculating the total deduction of the backup recovery feature." ; rdfs:label "pc5-brdeduction" ; - price:hasPriceFunction :br-deduction-pf_TIME37892222828559 . + price:hasPriceFunction :br-deduction-pf . -:pc4-datatransf-deduction_TIME37892205441814 - a price:Deduction , price:PriceComponent ; - rdfs:comment "Responsible for calculating the discount of data transf." ; - rdfs:label "pc4-datatransf-deduction" ; - price:hasPriceFunction :datatrans-deduction-pf_TIME37892209393153 . - -:QuantitativeValue_TIME37892216628293 +:QuantitativeValue_63 a gr:QuantitativeValue ; gr:hasUnitOfMeasurement "USD" ; gr:hasValue "0.012"^^xsd:double . -:VMCost6mTIME37892012664810 - a price:Constant ; - rdfs:label "VMCost6mTIME37892012664810" ; - price:hasValue :QuantitativeValue_TIME37892246513499 . - -:datatransf-cost-pf_TIME37892195481789 - a spin:Function ; - rdfs:label "datatransf-cost-pf" ; - spin:body [ a sp:Select ; - sp:resultVariables ( [ sp:varName "result"^^xsd:string ] ) ; - sp:where ( [ sp:object [ sp:varName "ngboutz1TIME37892012542506_instance"^^xsd:string ] ; - sp:predicate price:hasValue ; - sp:subject :ngboutz1TIME37892012542506 - ] [ sp:object [ sp:varName "ngboutz1TIME37892012542506_value"^^xsd:string ] ; - sp:predicate gr:hasValue ; - sp:subject [ sp:varName "ngboutz1TIME37892012542506_instance"^^xsd:string ] - ] [ sp:object [ sp:varName "gboutcostz1TIME37892012558756_instance"^^xsd:string ] ; - sp:predicate price:hasValue ; - sp:subject :gboutcostz1TIME37892012558756 - ] [ sp:object [ sp:varName "gboutcostz1TIME37892012558756_value"^^xsd:string ] ; - sp:predicate gr:hasValue ; - sp:subject [ sp:varName "gboutcostz1TIME37892012558756_instance"^^xsd:string ] - ] [ sp:object [ sp:varName "ngboutz2TIME37892012551914_instance"^^xsd:string ] ; - sp:predicate price:hasValue ; - sp:subject :ngboutz2TIME37892012551914 - ] [ sp:object [ sp:varName "ngboutz2TIME37892012551914_value"^^xsd:string ] ; - sp:predicate gr:hasValue ; - sp:subject [ sp:varName "ngboutz2TIME37892012551914_instance"^^xsd:string ] - ] [ sp:object [ sp:varName "gboutcostz2TIME37892012565171_instance"^^xsd:string ] ; - sp:predicate price:hasValue ; - sp:subject :gboutcostz2TIME37892012565171 - ] [ sp:object [ sp:varName "gboutcostz2TIME37892012565171_value"^^xsd:string ] ; - sp:predicate gr:hasValue ; - sp:subject [ sp:varName "gboutcostz2TIME37892012565171_instance"^^xsd:string ] - ] [ a sp:Bind ; - sp:expression [ a sp:mul ; - sp:arg1 [ a sp:add ; - sp:arg1 [ a sp:mul ; - sp:arg1 [ sp:varName "ngboutz1TIME37892012542506_value"^^xsd:string ] ; - sp:arg2 [ sp:varName "gboutcostz1TIME37892012558756_value"^^xsd:string ] - ] ; - sp:arg2 [ a sp:mul ; - sp:arg1 [ sp:varName "ngboutz2TIME37892012551914_value"^^xsd:string ] ; - sp:arg2 [ sp:varName "gboutcostz2TIME37892012565171_value"^^xsd:string ] - ] - ] ; - sp:arg2 6 - ] ; - sp:variable [ sp:varName "result"^^xsd:string ] - ] ) - ] ; - price:hasVariable :gboutcostz2TIME37892012565171 , :gboutcostz1TIME37892012558756 , :ngboutz2TIME37892012551914 , :ngboutz1TIME37892012542506 . - -:pc1-vmcost_TIME37892014721302 - a price:PriceComponent ; - rdfs:comment "Responsible for calculating the total cost of the VM." ; - rdfs:label "pc1-vmcost" ; - price:hasPriceFunction :smallvm-cost-pf_TIME37892020998114 . - -:gboutcostz1TIME37892012659250 - a price:Constant ; - rdfs:label "gboutcostz1TIME37892012659250" ; - price:hasValue :QuantitativeValue_TIME37892246348432 . - -:gboutcostz1TIME37892012608362 - a price:Constant ; - rdfs:label "gboutcostz1TIME37892012608362" ; - price:hasValue :QuantitativeValue_TIME37892216553457 . - -:ngboutz1TIME37892012602375 - a price:Usage ; - rdfs:comment "Number of GB you expect to send out per month to the US West, US East, US North Central, US South Central, Europe West, Europe North." ; - rdfs:label "ngboutz1TIME37892012602375" . - -:ngboutz1TIME37892012654546 - a price:Usage ; - rdfs:comment "Number of GB you expect to send out per month to the US West, US East, US North Central, US South Central, Europe West, Europe North." ; - rdfs:label "ngboutz1TIME37892012654546" . - -:SmallPrePaid6m_TIME37892014035377 - a core:Service ; - rdfs:label "SmallPrePaid6m" . - -:pc6-totaldeduction_TIME37892225667194 - a price:Deduction , price:PriceComponent ; +:pc6-totaldeduction a price:Deduction ; rdfs:comment "Responsible for calculating the total deduction to be applied to the final price." ; rdfs:label "pc6-totaldeduction" ; - price:hasPriceFunction :totalprice-deduction-pf_TIME37892229090832 . + price:hasPriceFunction :totalprice-deduction-pf . -:gboutcostz1TIME37892012558756 - a price:Constant ; - rdfs:label "gboutcostz1TIME37892012558756" ; - price:hasValue :QuantitativeValue_TIME37892199262074 . +:ngboutz2TIME26138705878780 + a price:Usage ; + rdfs:comment "Number of GB you expect to send out per month to the Asia Pacific East, Asia Pacific Southeast, Japan East, Japan West." ; + rdfs:label "ngboutz2TIME26138705878780" . -:QuantitativeValue_TIME37892216553457 +:QuantitativeValue_45 a gr:QuantitativeValue ; gr:hasUnitOfMeasurement "USD" ; gr:hasValue "0.08"^^xsd:double . -:QuantitativeValue_TIME37892246275735 - a gr:QuantitativeValue ; - gr:hasUnitOfMeasurement "EUR" ; - gr:hasValue "0.167"^^xsd:double . +:NGBbrTIME26138705504172 + a price:Usage ; + rdfs:comment "Number of GB you expect to backup per month." ; + rdfs:label "NGBbrTIME26138705504172" . -:gboutcostz2TIME37892012662244 +:VMCost6mTIME26138706107993 a price:Constant ; - rdfs:label "gboutcostz2TIME37892012662244" ; - price:hasValue :QuantitativeValue_TIME37892246416854 . - -:QuantitativeValue_TIME37892199329213 - a gr:QuantitativeValue ; - gr:hasUnitOfMeasurement "USD" ; - gr:hasValue "0.012"^^xsd:double . - -:SmallPrePaid-O-PP_TIME37892014640051 - a price:PricePlan ; - rdfs:comment "PricePlan for Microsoft's Small Virtual Machine." ; - rdfs:label "SmallPrePaid-O-PP" ; - price:hasPriceComponent :pc6-totaldeduction_TIME37892225667194 , :pc5-brdeduction_TIME37892216687307 , :pc4-datatransf-deduction_TIME37892205441814 , :pc3-brcost_TIME37892199376252 , :pc1-datatransf_cost_TIME37892189927250 , :pc1-vmcost_TIME37892014721302 . + rdfs:label "VMCost6mTIME26138706107993" ; + price:hasValue :QuantitativeValue_65 . -:gboutcostz2TIME37892012565171 - a price:Constant ; - rdfs:label "gboutcostz2TIME37892012565171" ; - price:hasValue :QuantitativeValue_TIME37892199329213 . +:br-deduction-pf a spin:Function ; + rdfs:label "br-deduction-pf" ; + spin:body [ a sp:Select ; + sp:resultVariables ( [ sp:varName "result"^^xsd:string ] ) ; + sp:where ( [ sp:object [ sp:varName "NGBbrTIME26138705504172_instance"^^xsd:string ] ; + sp:predicate price:hasValue ; + sp:subject :NGBbrTIME26138705504172 + ] [ sp:object [ sp:varName "NGBbrTIME26138705504172_value"^^xsd:string ] ; + sp:predicate gr:hasValue ; + sp:subject [ sp:varName "NGBbrTIME26138705504172_instance"^^xsd:string ] + ] [ sp:object [ sp:varName "backupcostTIME26138704317913_instance"^^xsd:string ] ; + sp:predicate price:hasValue ; + sp:subject :backupcostTIME26138704317913 + ] [ sp:object [ sp:varName "backupcostTIME26138704317913_value"^^xsd:string ] ; + sp:predicate gr:hasValue ; + sp:subject [ sp:varName "backupcostTIME26138704317913_instance"^^xsd:string ] + ] [ a sp:Bind ; + sp:expression [ a sp:if ; + sp:arg1 [ a sp:gt ; + sp:arg1 [ sp:varName "NGBbrTIME26138705504172_value"^^xsd:string ] ; + sp:arg2 5 + ] ; + sp:arg2 [ a sp:mul ; + sp:arg1 6 ; + sp:arg2 [ a sp:mul ; + sp:arg1 5 ; + sp:arg2 [ sp:varName "backupcostTIME26138704317913_value"^^xsd:string ] + ] + ] ; + sp:arg3 0 + ] ; + sp:variable [ sp:varName "result0"^^xsd:string ] + ] [ a sp:Bind ; + sp:expression [ sp:varName "result0"^^xsd:string ] ; + sp:variable [ sp:varName "result"^^xsd:string ] + ] ) + ] ; + price:hasVariable :backupcostTIME26138705412231 , :NGBbrTIME26138705504172 . -:ngboutz2TIME37892012551914 +:NGBbrTIME26138704562521 a price:Usage ; - rdfs:comment "Number of GB you expect to send out per month to the Asia Pacific East, Asia Pacific Southeast, Japan East, Japan West." ; - rdfs:label "ngboutz2TIME37892012551914" . - -:QuantitativeValue_TIME37892199262074 - a gr:QuantitativeValue ; - gr:hasUnitOfMeasurement "USD" ; - gr:hasValue "0.08"^^xsd:double . + rdfs:comment "Number of GB you expect to backup per month." ; + rdfs:label "NGBbrTIME26138704562521" . -:QuantitativeValue_TIME37892246348432 - a gr:QuantitativeValue ; - gr:hasUnitOfMeasurement "USD" ; - gr:hasValue "0.08"^^xsd:double . +:SmallPrePaid-Offering + a core:ServiceOffering ; + rdfs:label "SmallPrePaid-Offering" ; + core:includes :SmallPrePaid6m ; + price:hasPricePlan :SmallPrePaid-O-PP . -:backupcostTIME37892012632737 +:gboutcostz1TIME26138705088084 a price:Constant ; - rdfs:label "backupcostTIME37892012632737" ; - price:hasValue :QuantitativeValue_TIME37892225605615 . + rdfs:label "gboutcostz1TIME26138705088084" ; + price:hasValue :QuantitativeValue_45 . -:datatrans-deduction-pf_TIME37892209393153 +:datatrans-deduction-pf a spin:Function ; rdfs:label "datatrans-deduction-pf" ; spin:body [ a sp:Select ; sp:resultVariables ( [ sp:varName "result"^^xsd:string ] ) ; - sp:where ( [ sp:object [ sp:varName "ngboutz1TIME37892012602375_instance"^^xsd:string ] ; + sp:where ( [ sp:object [ sp:varName "ngboutz1TIME26138704864431_instance"^^xsd:string ] ; sp:predicate price:hasValue ; - sp:subject :ngboutz1TIME37892012602375 - ] [ sp:object [ sp:varName "ngboutz1TIME37892012602375_value"^^xsd:string ] ; + sp:subject :ngboutz1TIME26138704864431 + ] [ sp:object [ sp:varName "ngboutz1TIME26138704864431_value"^^xsd:string ] ; sp:predicate gr:hasValue ; - sp:subject [ sp:varName "ngboutz1TIME37892012602375_instance"^^xsd:string ] - ] [ sp:object [ sp:varName "ngboutz2TIME37892012604941_instance"^^xsd:string ] ; + sp:subject [ sp:varName "ngboutz1TIME26138704864431_instance"^^xsd:string ] + ] [ sp:object [ sp:varName "ngboutz2TIME26138704923017_instance"^^xsd:string ] ; sp:predicate price:hasValue ; - sp:subject :ngboutz2TIME37892012604941 - ] [ sp:object [ sp:varName "ngboutz2TIME37892012604941_value"^^xsd:string ] ; + sp:subject :ngboutz2TIME26138704923017 + ] [ sp:object [ sp:varName "ngboutz2TIME26138704923017_value"^^xsd:string ] ; sp:predicate gr:hasValue ; - sp:subject [ sp:varName "ngboutz2TIME37892012604941_instance"^^xsd:string ] - ] [ sp:object [ sp:varName "gboutcostz1TIME37892012608362_instance"^^xsd:string ] ; + sp:subject [ sp:varName "ngboutz2TIME26138704923017_instance"^^xsd:string ] + ] [ sp:object [ sp:varName "gboutcostz1TIME26138705088084_instance"^^xsd:string ] ; sp:predicate price:hasValue ; - sp:subject :gboutcostz1TIME37892012608362 - ] [ sp:object [ sp:varName "gboutcostz1TIME37892012608362_value"^^xsd:string ] ; + sp:subject :gboutcostz1TIME26138705088084 + ] [ sp:object [ sp:varName "gboutcostz1TIME26138705088084_value"^^xsd:string ] ; sp:predicate gr:hasValue ; - sp:subject [ sp:varName "gboutcostz1TIME37892012608362_instance"^^xsd:string ] - ] [ sp:object [ sp:varName "gboutcostz2TIME37892012611355_instance"^^xsd:string ] ; + sp:subject [ sp:varName "gboutcostz1TIME26138705088084_instance"^^xsd:string ] + ] [ sp:object [ sp:varName "gboutcostz2TIME26138705182591_instance"^^xsd:string ] ; sp:predicate price:hasValue ; - sp:subject :gboutcostz2TIME37892012611355 - ] [ sp:object [ sp:varName "gboutcostz2TIME37892012611355_value"^^xsd:string ] ; + sp:subject :gboutcostz2TIME26138705182591 + ] [ sp:object [ sp:varName "gboutcostz2TIME26138705182591_value"^^xsd:string ] ; sp:predicate gr:hasValue ; - sp:subject [ sp:varName "gboutcostz2TIME37892012611355_instance"^^xsd:string ] + sp:subject [ sp:varName "gboutcostz2TIME26138705182591_instance"^^xsd:string ] ] [ a sp:Bind ; sp:expression [ a sp:if ; sp:arg1 [ a sp:and ; sp:arg1 [ a sp:gt ; - sp:arg1 [ sp:varName "ngboutz1TIME37892012602375_value"^^xsd:string ] ; + sp:arg1 [ sp:varName "ngboutz1TIME26138704864431_value"^^xsd:string ] ; sp:arg2 5 ] ; sp:arg2 [ a sp:gt ; - sp:arg1 [ sp:varName "ngboutz2TIME37892012604941_value"^^xsd:string ] ; + sp:arg1 [ sp:varName "ngboutz2TIME26138704923017_value"^^xsd:string ] ; sp:arg2 5 ] ] ; @@ -668,11 +573,11 @@ sp:arg2 [ a sp:add ; sp:arg1 [ a sp:mul ; sp:arg1 5 ; - sp:arg2 [ sp:varName "gboutcostz1TIME37892012608362_value"^^xsd:string ] + sp:arg2 [ sp:varName "gboutcostz1TIME26138705088084_value"^^xsd:string ] ] ; sp:arg2 [ a sp:mul ; sp:arg1 5 ; - sp:arg2 [ sp:varName "gboutcostz2TIME37892012611355_value"^^xsd:string ] + sp:arg2 [ sp:varName "gboutcostz2TIME26138705182591_value"^^xsd:string ] ] ] ] ; @@ -683,11 +588,11 @@ sp:expression [ a sp:if ; sp:arg1 [ a sp:and ; sp:arg1 [ a sp:gt ; - sp:arg1 [ sp:varName "ngboutz1TIME37892012602375_value"^^xsd:string ] ; + sp:arg1 [ sp:varName "ngboutz1TIME26138704864431_value"^^xsd:string ] ; sp:arg2 5 ] ; sp:arg2 [ a sp:lt ; - sp:arg1 [ sp:varName "ngboutz2TIME37892012604941_value"^^xsd:string ] ; + sp:arg1 [ sp:varName "ngboutz2TIME26138704923017_value"^^xsd:string ] ; sp:arg2 5 ] ] ; @@ -695,7 +600,7 @@ sp:arg1 6 ; sp:arg2 [ a sp:mul ; sp:arg1 5 ; - sp:arg2 [ sp:varName "gboutcostz1TIME37892012608362_value"^^xsd:string ] + sp:arg2 [ sp:varName "gboutcostz1TIME26138705088084_value"^^xsd:string ] ] ] ; sp:arg3 0 @@ -705,11 +610,11 @@ sp:expression [ a sp:if ; sp:arg1 [ a sp:and ; sp:arg1 [ a sp:lt ; - sp:arg1 [ sp:varName "ngboutz1TIME37892012602375_value"^^xsd:string ] ; + sp:arg1 [ sp:varName "ngboutz1TIME26138704864431_value"^^xsd:string ] ; sp:arg2 5 ] ; sp:arg2 [ a sp:gt ; - sp:arg1 [ sp:varName "ngboutz2TIME37892012604941_value"^^xsd:string ] ; + sp:arg1 [ sp:varName "ngboutz2TIME26138704923017_value"^^xsd:string ] ; sp:arg2 5 ] ] ; @@ -717,7 +622,7 @@ sp:arg1 6 ; sp:arg2 [ a sp:mul ; sp:arg1 5 ; - sp:arg2 [ sp:varName "gboutcostz2TIME37892012611355_value"^^xsd:string ] + sp:arg2 [ sp:varName "gboutcostz2TIME26138705182591_value"^^xsd:string ] ] ] ; sp:arg3 0 @@ -734,140 +639,227 @@ sp:variable [ sp:varName "result"^^xsd:string ] ] ) ] ; - price:hasVariable :gboutcostz2TIME37892012611355 , :gboutcostz1TIME37892012608362 , :ngboutz2TIME37892012604941 , :ngboutz1TIME37892012602375 . - -:ngboutz2TIME37892012604941 - a price:Usage ; - rdfs:comment "Number of GB you expect to send out per month to the Asia Pacific East, Asia Pacific Southeast, Japan East, Japan West." ; - rdfs:label "ngboutz2TIME37892012604941" . + price:hasVariable :gboutcostz2TIME26138705182591 , :gboutcostz1TIME26138705088084 , :ngboutz2TIME26138704923017 , :ngboutz1TIME26138704864431 . -:VMCost6mTIME37892011986154 +:gboutcostz1TIME26138703615310 a price:Constant ; - rdfs:label "VMCost6mTIME37892011986154" ; - price:hasValue :QuantitativeValue_TIME37892188433525 . + rdfs:label "gboutcostz1TIME26138703615310" ; + price:hasValue :QuantitativeValue_32 . -:QuantitativeValue_TIME37892246416854 +:QuantitativeValue_34 a gr:QuantitativeValue ; gr:hasUnitOfMeasurement "USD" ; gr:hasValue "0.012"^^xsd:double . -:ngboutz2TIME37892012657112 - a price:Usage ; - rdfs:comment "Number of GB you expect to send out per month to the Asia Pacific East, Asia Pacific Southeast, Japan East, Japan West." ; - rdfs:label "ngboutz2TIME37892012657112" . - -:pc3-brcost_TIME37892199376252 - a price:PriceComponent ; - rdfs:comment "Responsible for calculating the total cost of the backup recovery feature." ; - rdfs:label "pc3-brcost" ; - price:hasPriceFunction :br-cost-pf_TIME37892203565356 . +:SmallPrePaid6m a core:Service ; + rdfs:label "SmallPrePaid6m" . -:NGBbrTIME37892012588691 - a price:Usage ; - rdfs:comment "Number of GB you expect to backup per month." ; - rdfs:label "NGBbrTIME37892012588691" . +:datatransf-cost-pf a spin:Function ; + rdfs:label "datatransf-cost-pf" ; + spin:body [ a sp:Select ; + sp:resultVariables ( [ sp:varName "result"^^xsd:string ] ) ; + sp:where ( [ sp:object [ sp:varName "ngboutz1TIME26138703354880_instance"^^xsd:string ] ; + sp:predicate price:hasValue ; + sp:subject :ngboutz1TIME26138703354880 + ] [ sp:object [ sp:varName "ngboutz1TIME26138703354880_value"^^xsd:string ] ; + sp:predicate gr:hasValue ; + sp:subject [ sp:varName "ngboutz1TIME26138703354880_instance"^^xsd:string ] + ] [ sp:object [ sp:varName "gboutcostz1TIME26138703615310_instance"^^xsd:string ] ; + sp:predicate price:hasValue ; + sp:subject :gboutcostz1TIME26138703615310 + ] [ sp:object [ sp:varName "gboutcostz1TIME26138703615310_value"^^xsd:string ] ; + sp:predicate gr:hasValue ; + sp:subject [ sp:varName "gboutcostz1TIME26138703615310_instance"^^xsd:string ] + ] [ sp:object [ sp:varName "ngboutz2TIME26138703441262_instance"^^xsd:string ] ; + sp:predicate price:hasValue ; + sp:subject :ngboutz2TIME26138703441262 + ] [ sp:object [ sp:varName "ngboutz2TIME26138703441262_value"^^xsd:string ] ; + sp:predicate gr:hasValue ; + sp:subject [ sp:varName "ngboutz2TIME26138703441262_instance"^^xsd:string ] + ] [ sp:object [ sp:varName "gboutcostz2TIME26138703802614_instance"^^xsd:string ] ; + sp:predicate price:hasValue ; + sp:subject :gboutcostz2TIME26138703802614 + ] [ sp:object [ sp:varName "gboutcostz2TIME26138703802614_value"^^xsd:string ] ; + sp:predicate gr:hasValue ; + sp:subject [ sp:varName "gboutcostz2TIME26138703802614_instance"^^xsd:string ] + ] [ a sp:Bind ; + sp:expression [ a sp:mul ; + sp:arg1 [ a sp:add ; + sp:arg1 [ a sp:mul ; + sp:arg1 [ sp:varName "ngboutz1TIME26138703354880_value"^^xsd:string ] ; + sp:arg2 [ sp:varName "gboutcostz1TIME26138703615310_value"^^xsd:string ] + ] ; + sp:arg2 [ a sp:mul ; + sp:arg1 [ sp:varName "ngboutz2TIME26138703441262_value"^^xsd:string ] ; + sp:arg2 [ sp:varName "gboutcostz2TIME26138703802614_value"^^xsd:string ] + ] + ] ; + sp:arg2 6 + ] ; + sp:variable [ sp:varName "result"^^xsd:string ] + ] ) + ] ; + price:hasVariable :gboutcostz2TIME26138703802614 , :gboutcostz1TIME26138703615310 , :ngboutz2TIME26138703441262 , :ngboutz1TIME26138703354880 . -:backupcostTIME37892012583132 +:gboutcostz2TIME26138705182591 a price:Constant ; - rdfs:label "backupcostTIME37892012583132" ; - price:hasValue :QuantitativeValue_TIME37892205388360 . + rdfs:label "gboutcostz2TIME26138705182591" ; + price:hasValue :QuantitativeValue_47 . -:QuantitativeValue_TIME37892246513499 - a gr:QuantitativeValue ; - gr:hasUnitOfMeasurement "EUR" ; - gr:hasValue "0.038"^^xsd:double . +:pc4-datatransf-deduction + a price:Deduction ; + rdfs:comment "Responsible for calculating the discount of data transf." ; + rdfs:label "pc4-datatransf-deduction" ; + price:hasPriceFunction :datatrans-deduction-pf . -:NGBbrTIME37892012651981 +:ngboutz1TIME26138704864431 a price:Usage ; - rdfs:comment "Number of GB you expect to backup per month." ; - rdfs:label "NGBbrTIME37892012651981" . + rdfs:comment "Number of GB you expect to send out per month to the US West, US East, US North Central, US South Central, Europe West, Europe North." ; + rdfs:label "ngboutz1TIME26138704864431" . -:gboutcostz2TIME37892012611355 - a price:Constant ; - rdfs:label "gboutcostz2TIME37892012611355" ; - price:hasValue :QuantitativeValue_TIME37892216628293 . +:ngboutz1TIME26138703354880 + a price:Usage ; + rdfs:comment "Number of GB you expect to send out per month to the US West, US East, US North Central, US South Central, Europe West, Europe North." ; + rdfs:label "ngboutz1TIME26138703354880" . -:backupcostTIME37892012648132 +:backupcostTIME26138705676082 a price:Constant ; - rdfs:label "backupcostTIME37892012648132" ; - price:hasValue :QuantitativeValue_TIME37892246275735 . + rdfs:label "backupcostTIME26138705676082" ; + price:hasValue :QuantitativeValue_56 . -:QuantitativeValue_TIME37892188433525 +:QuantitativeValue_65 a gr:QuantitativeValue ; gr:hasUnitOfMeasurement "EUR" ; gr:hasValue "0.038"^^xsd:double . -:QuantitativeValue_TIME37892205388360 +:QuantitativeValue_47 a gr:QuantitativeValue ; - gr:hasUnitOfMeasurement "EUR" ; - gr:hasValue "0.167"^^xsd:double . + gr:hasUnitOfMeasurement "USD" ; + gr:hasValue "0.012"^^xsd:double . -:pc1-datatransf_cost_TIME37892189927250 - a price:PriceComponent ; +:backupcostTIME26138705412231 + a price:Constant ; + rdfs:label "backupcostTIME26138705412231" ; + price:hasValue :QuantitativeValue_51 . + +:pc1-datatransf_cost a price:PriceComponent ; rdfs:comment "Responsible for calculating the cost of the data transfers." ; rdfs:label "pc1-datatransf_cost" ; - price:hasPriceFunction :datatransf-cost-pf_TIME37892195481789 . + price:hasPriceFunction :datatransf-cost-pf . -:br-deduction-pf_TIME37892222828559 - a spin:Function ; - rdfs:label "br-deduction-pf" ; - spin:body [ a sp:Select ; - sp:resultVariables ( [ sp:varName "result"^^xsd:string ] ) ; - sp:where ( [ sp:object [ sp:varName "NGBbrTIME37892012636586_instance"^^xsd:string ] ; - sp:predicate price:hasValue ; - sp:subject :NGBbrTIME37892012636586 - ] [ sp:object [ sp:varName "NGBbrTIME37892012636586_value"^^xsd:string ] ; - sp:predicate gr:hasValue ; - sp:subject [ sp:varName "NGBbrTIME37892012636586_instance"^^xsd:string ] - ] [ sp:object [ sp:varName "backupcostTIME37892012583132_instance"^^xsd:string ] ; - sp:predicate price:hasValue ; - sp:subject :backupcostTIME37892012583132 - ] [ sp:object [ sp:varName "backupcostTIME37892012583132_value"^^xsd:string ] ; - sp:predicate gr:hasValue ; - sp:subject [ sp:varName "backupcostTIME37892012583132_instance"^^xsd:string ] - ] [ a sp:Bind ; - sp:expression [ a sp:if ; - sp:arg1 [ a sp:gt ; - sp:arg1 [ sp:varName "NGBbrTIME37892012636586_value"^^xsd:string ] ; - sp:arg2 5 - ] ; - sp:arg2 [ a sp:mul ; - sp:arg1 6 ; - sp:arg2 [ a sp:mul ; - sp:arg1 5 ; - sp:arg2 [ sp:varName "backupcostTIME37892012583132_value"^^xsd:string ] - ] - ] ; - sp:arg3 0 - ] ; - sp:variable [ sp:varName "result0"^^xsd:string ] - ] [ a sp:Bind ; - sp:expression [ sp:varName "result0"^^xsd:string ] ; - sp:variable [ sp:varName "result"^^xsd:string ] - ] ) - ] ; - price:hasVariable :backupcostTIME37892012632737 , :NGBbrTIME37892012636586 . +:pc1-vmcost a price:PriceComponent ; + rdfs:comment "Responsible for calculating the total cost of the VM." ; + rdfs:label "pc1-vmcost" ; + price:hasPriceFunction :smallvm-cost-pf . -:smallvm-cost-pf_TIME37892020998114 - a spin:Function ; +:gboutcostz2TIME26138706020755 + a price:Constant ; + rdfs:label "gboutcostz2TIME26138706020755" ; + price:hasValue :QuantitativeValue_63 . + +:smallvm-cost-pf a spin:Function ; rdfs:label "smallvm-cost-pf" ; spin:body [ a sp:Select ; sp:resultVariables ( [ sp:varName "result"^^xsd:string ] ) ; - sp:where ( [ sp:object [ sp:varName "VMCost6mTIME37892011986154_instance"^^xsd:string ] ; + sp:where ( [ sp:object [ sp:varName "VMCost6mTIME26138695121627_instance"^^xsd:string ] ; sp:predicate price:hasValue ; - sp:subject :VMCost6mTIME37892011986154 - ] [ sp:object [ sp:varName "VMCost6mTIME37892011986154_value"^^xsd:string ] ; + sp:subject :VMCost6mTIME26138695121627 + ] [ sp:object [ sp:varName "VMCost6mTIME26138695121627_value"^^xsd:string ] ; sp:predicate gr:hasValue ; - sp:subject [ sp:varName "VMCost6mTIME37892011986154_instance"^^xsd:string ] + sp:subject [ sp:varName "VMCost6mTIME26138695121627_instance"^^xsd:string ] ] [ a sp:Bind ; sp:expression [ a sp:mul ; sp:arg1 [ a sp:mul ; sp:arg1 6 ; sp:arg2 732 ] ; - sp:arg2 [ sp:varName "VMCost6mTIME37892011986154_value"^^xsd:string ] + sp:arg2 [ sp:varName "VMCost6mTIME26138695121627_value"^^xsd:string ] ] ; sp:variable [ sp:varName "result"^^xsd:string ] ] ) ] ; - price:hasVariable :VMCost6mTIME37892011986154 . + price:hasVariable :VMCost6mTIME26138695121627 . + +:QuantitativeValue_61 + a gr:QuantitativeValue ; + gr:hasUnitOfMeasurement "USD" ; + gr:hasValue "0.08"^^xsd:double . + +:ngboutz2TIME26138703441262 + a price:Usage ; + rdfs:comment "Number of GB you expect to send out per month to the Asia Pacific East, Asia Pacific Southeast, Japan East, Japan West." ; + rdfs:label "ngboutz2TIME26138703441262" . + +:gboutcostz2TIME26138703802614 + a price:Constant ; + rdfs:label "gboutcostz2TIME26138703802614" ; + price:hasValue :QuantitativeValue_34 . + +:NGBbrTIME26138705767595 + a price:Usage ; + rdfs:comment "Number of GB you expect to backup per month." ; + rdfs:label "NGBbrTIME26138705767595" . + +:SmallPrePaid-O-PP a price:PricePlan ; + rdfs:comment "PricePlan for Microsoft's Small Virtual Machine." ; + rdfs:label "SmallPrePaid-O-PP" ; + price:hasPriceComponent :pc6-totaldeduction , :pc5-brdeduction , :pc4-datatransf-deduction , :pc3-brcost , :pc1-datatransf_cost , :pc1-vmcost . + +:pc3-brcost a price:PriceComponent ; + rdfs:comment "Responsible for calculating the total cost of the backup recovery feature." ; + rdfs:label "pc3-brcost" ; + price:hasPriceFunction :br-cost-pf . + +:gboutcostz1TIME26138705933518 + a price:Constant ; + rdfs:label "gboutcostz1TIME26138705933518" ; + price:hasValue :QuantitativeValue_61 . + +:backupcostTIME26138704317913 + a price:Constant ; + rdfs:label "backupcostTIME26138704317913" ; + price:hasValue :QuantitativeValue_38 . + +:ngboutz1TIME26138705823616 + a price:Usage ; + rdfs:comment "Number of GB you expect to send out per month to the US West, US East, US North Central, US South Central, Europe West, Europe North." ; + rdfs:label "ngboutz1TIME26138705823616" . + +:QuantitativeValue_32 + a gr:QuantitativeValue ; + gr:hasUnitOfMeasurement "USD" ; + gr:hasValue "0.08"^^xsd:double . + +:ngboutz2TIME26138704923017 + a price:Usage ; + rdfs:comment "Number of GB you expect to send out per month to the Asia Pacific East, Asia Pacific Southeast, Japan East, Japan West." ; + rdfs:label "ngboutz2TIME26138704923017" . + +:br-cost-pf a spin:Function ; + rdfs:label "br-cost-pf" ; + spin:body [ a sp:Select ; + sp:resultVariables ( [ sp:varName "result"^^xsd:string ] ) ; + sp:where ( [ sp:object [ sp:varName "NGBbrTIME26138704562521_instance"^^xsd:string ] ; + sp:predicate price:hasValue ; + sp:subject :NGBbrTIME26138704562521 + ] [ sp:object [ sp:varName "NGBbrTIME26138704562521_value"^^xsd:string ] ; + sp:predicate gr:hasValue ; + sp:subject [ sp:varName "NGBbrTIME26138704562521_instance"^^xsd:string ] + ] [ sp:object [ sp:varName "backupcostTIME26138704317913_instance"^^xsd:string ] ; + sp:predicate price:hasValue ; + sp:subject :backupcostTIME26138704317913 + ] [ sp:object [ sp:varName "backupcostTIME26138704317913_value"^^xsd:string ] ; + sp:predicate gr:hasValue ; + sp:subject [ sp:varName "backupcostTIME26138704317913_instance"^^xsd:string ] + ] [ a sp:Bind ; + sp:expression [ a sp:mul ; + sp:arg1 6 ; + sp:arg2 [ a sp:mul ; + sp:arg1 [ sp:varName "NGBbrTIME26138704562521_value"^^xsd:string ] ; + sp:arg2 [ sp:varName "backupcostTIME26138704317913_value"^^xsd:string ] + ] + ] ; + sp:variable [ sp:varName "result"^^xsd:string ] + ] ) + ] ; + price:hasVariable :backupcostTIME26138704317913 , :NGBbrTIME26138704562521 . diff --git a/SPIN_API/DebuggingFiles/VMWareVPCloud.ttl b/SPIN_API/DebuggingFiles/VMWareVPCloud.ttl index 80de09c..4d56806 100644 --- a/SPIN_API/DebuggingFiles/VMWareVPCloud.ttl +++ b/SPIN_API/DebuggingFiles/VMWareVPCloud.ttl @@ -1,104 +1,93 @@ -@prefix dc: . @prefix legal: . +@prefix dc: . @prefix : . @prefix foaf: . @prefix sp: . @prefix vann: . +@prefix cloudtaxonomy: . +@prefix org: . @prefix rdfs: . +@prefix pf: . @prefix price: . @prefix spl: . +@prefix usdk: . @prefix xsd: . @prefix owl: . -@prefix rdf: . @prefix spin: . -@prefix cloud: . +@prefix rdf: . @prefix core: . @prefix gr: . @prefix skos: . -:VMWareVPC_TIME495381147203917 - a core:Service ; - rdfs:label "VMWareVPC" . - -:cpuspeedTIME495381145342427 - a price:Usage ; - rdfs:comment "Number of GHz you need for the CPU." ; - rdfs:label "cpuspeedTIME495381145342427" . - -:cpuramcostTIME495381145853877 +:bandwidthcostTIME27003059410873 a price:Constant ; - rdfs:label "cpuramcostTIME495381145853877" ; - price:hasValue :QuantitativeValue_TIME495381217675810 . + rdfs:label "bandwidthcostTIME27003059410873" ; + price:hasValue :QuantitativeValue_29 . -:nstaticipTIME495381145965917 - a price:Usage ; - rdfs:comment "Number of Static IPs you need." ; - rdfs:label "nstaticipTIME495381145965917" . +:VMWareVPC a core:Service ; + rdfs:label "VMWareVPC" . -:pc5-staticip_TIME495381241574974 - a price:PriceComponent ; - rdfs:comment "Responsible for calculating the cost of the number of StaticIPs chosen by the customer." ; - rdfs:label "pc5-staticip" ; - price:hasPriceFunction :staticip-pf_TIME495381245036669 . +:QuantitativeValue_29 + a gr:QuantitativeValue ; + gr:hasUnitOfMeasurement "USD" ; + gr:hasValue "197.0"^^xsd:double . -:bandwidthTIME495381145946246 +:bandwidthTIME27003059335181 a price:Usage ; rdfs:comment "Mbps of Bandwith you need." ; - rdfs:label "bandwidthTIME495381145946246" . + rdfs:label "bandwidthTIME27003059335181" . -:bandwidthcostTIME495381145952233 - a price:Constant ; - rdfs:label "bandwidthcostTIME495381145952233" ; - price:hasValue :QuantitativeValue_TIME495381241518954 . - -:pc1-cpu_ramcost_TIME495381147963822 - a price:PriceComponent ; - rdfs:comment "Responsible for calculating the cost of the CPU and RAM hardware." ; - rdfs:label "pc1-cpu_ramcost" ; - price:hasPriceFunction :cpu_ram-pf_TIME495381154210267 . - -:QuantitativeValue_TIME495381224794628 +:QuantitativeValue_24 a gr:QuantitativeValue ; gr:hasUnitOfMeasurement "USD" ; - gr:hasValue "90.0"^^xsd:double . + gr:hasValue "249.0"^^xsd:double . -:cpu_ram-pf_TIME495381154210267 - a spin:Function ; +:VPMonthlySubs-O-PP a price:PricePlan ; + rdfs:comment "PricePlan for VMWare's Virtual Price Cloud subscription plan" ; + rdfs:label "VPMonthlySubs-O-PP" ; + price:hasPriceComponent :pc5-staticip , :pc4-bandwidth , :pc3-diskcost , :pc2-supportcost , :pc1-cpu_ramcost . + +:nstaticipTIME27003059848771 + a price:Usage ; + rdfs:comment "Number of Static IPs you need." ; + rdfs:label "nstaticipTIME27003059848771" . + +:cpu_ram-pf a spin:Function ; rdfs:label "cpu_ram-pf" ; spin:body [ a sp:Select ; sp:resultVariables ( [ sp:varName "result"^^xsd:string ] ) ; - sp:where ( [ sp:object [ sp:varName "cpuspeedTIME495381145342427_instance"^^xsd:string ] ; + sp:where ( [ sp:object [ sp:varName "cpuspeedTIME27003048872669_instance"^^xsd:string ] ; sp:predicate price:hasValue ; - sp:subject :cpuspeedTIME495381145342427 - ] [ sp:object [ sp:varName "cpuspeedTIME495381145342427_value"^^xsd:string ] ; + sp:subject :cpuspeedTIME27003048872669 + ] [ sp:object [ sp:varName "cpuspeedTIME27003048872669_value"^^xsd:string ] ; sp:predicate gr:hasValue ; - sp:subject [ sp:varName "cpuspeedTIME495381145342427_instance"^^xsd:string ] - ] [ sp:object [ sp:varName "ramsizeTIME495381145361671_instance"^^xsd:string ] ; + sp:subject [ sp:varName "cpuspeedTIME27003048872669_instance"^^xsd:string ] + ] [ sp:object [ sp:varName "ramsizeTIME27003048974873_instance"^^xsd:string ] ; sp:predicate price:hasValue ; - sp:subject :ramsizeTIME495381145361671 - ] [ sp:object [ sp:varName "ramsizeTIME495381145361671_value"^^xsd:string ] ; + sp:subject :ramsizeTIME27003048974873 + ] [ sp:object [ sp:varName "ramsizeTIME27003048974873_value"^^xsd:string ] ; sp:predicate gr:hasValue ; - sp:subject [ sp:varName "ramsizeTIME495381145361671_instance"^^xsd:string ] - ] [ sp:object [ sp:varName "cpuramcostTIME495381145853877_instance"^^xsd:string ] ; + sp:subject [ sp:varName "ramsizeTIME27003048974873_instance"^^xsd:string ] + ] [ sp:object [ sp:varName "cpuramcostTIME27003055792227_instance"^^xsd:string ] ; sp:predicate price:hasValue ; - sp:subject :cpuramcostTIME495381145853877 - ] [ sp:object [ sp:varName "cpuramcostTIME495381145853877_value"^^xsd:string ] ; + sp:subject :cpuramcostTIME27003055792227 + ] [ sp:object [ sp:varName "cpuramcostTIME27003055792227_value"^^xsd:string ] ; sp:predicate gr:hasValue ; - sp:subject [ sp:varName "cpuramcostTIME495381145853877_instance"^^xsd:string ] + sp:subject [ sp:varName "cpuramcostTIME27003055792227_instance"^^xsd:string ] ] [ a sp:Bind ; sp:expression [ a sp:if ; sp:arg1 [ a sp:and ; sp:arg1 [ a sp:le ; - sp:arg1 [ sp:varName "cpuspeedTIME495381145342427_value"^^xsd:string ] ; + sp:arg1 [ sp:varName "cpuspeedTIME27003048872669_value"^^xsd:string ] ; sp:arg2 5 ] ; sp:arg2 [ a sp:le ; - sp:arg1 [ sp:varName "ramsizeTIME495381145361671_value"^^xsd:string ] ; + sp:arg1 [ sp:varName "ramsizeTIME27003048974873_value"^^xsd:string ] ; sp:arg2 20 ] ] ; sp:arg2 [ a sp:mul ; - sp:arg1 [ sp:varName "cpuramcostTIME495381145853877_value"^^xsd:string ] ; + sp:arg1 [ sp:varName "cpuramcostTIME27003055792227_value"^^xsd:string ] ; sp:arg2 3 ] ; sp:arg3 0 @@ -108,11 +97,11 @@ sp:expression [ a sp:if ; sp:arg1 [ a sp:and ; sp:arg1 [ a sp:le ; - sp:arg1 [ sp:varName "cpuspeedTIME495381145342427_value"^^xsd:string ] ; + sp:arg1 [ sp:varName "cpuspeedTIME27003048872669_value"^^xsd:string ] ; sp:arg2 5 ] ; sp:arg2 [ a sp:gt ; - sp:arg1 [ sp:varName "ramsizeTIME495381145361671_value"^^xsd:string ] ; + sp:arg1 [ sp:varName "ramsizeTIME27003048974873_value"^^xsd:string ] ; sp:arg2 20 ] ] ; @@ -120,14 +109,14 @@ sp:arg1 [ a sp:mul ; sp:arg1 [ a sp:ceil ; sp:arg1 [ a sp:mul ; - sp:arg1 [ sp:varName "ramsizeTIME495381145361671_value"^^xsd:string ] ; + sp:arg1 [ sp:varName "ramsizeTIME27003048974873_value"^^xsd:string ] ; sp:arg2 [ a sp:divide ; sp:arg1 1 ; sp:arg2 20 ] ] ] ; - sp:arg2 [ sp:varName "cpuramcostTIME495381145853877_value"^^xsd:string ] + sp:arg2 [ sp:varName "cpuramcostTIME27003055792227_value"^^xsd:string ] ] ; sp:arg2 3 ] ; @@ -138,11 +127,11 @@ sp:expression [ a sp:if ; sp:arg1 [ a sp:and ; sp:arg1 [ a sp:gt ; - sp:arg1 [ sp:varName "cpuspeedTIME495381145342427_value"^^xsd:string ] ; + sp:arg1 [ sp:varName "cpuspeedTIME27003048872669_value"^^xsd:string ] ; sp:arg2 5 ] ; sp:arg2 [ a sp:le ; - sp:arg1 [ sp:varName "ramsizeTIME495381145361671_value"^^xsd:string ] ; + sp:arg1 [ sp:varName "ramsizeTIME27003048974873_value"^^xsd:string ] ; sp:arg2 20 ] ] ; @@ -150,14 +139,14 @@ sp:arg1 [ a sp:mul ; sp:arg1 [ a sp:ceil ; sp:arg1 [ a sp:mul ; - sp:arg1 [ sp:varName "cpuspeedTIME495381145342427_value"^^xsd:string ] ; + sp:arg1 [ sp:varName "cpuspeedTIME27003048872669_value"^^xsd:string ] ; sp:arg2 [ a sp:divide ; sp:arg1 1 ; sp:arg2 5 ] ] ] ; - sp:arg2 [ sp:varName "cpuramcostTIME495381145853877_value"^^xsd:string ] + sp:arg2 [ sp:varName "cpuramcostTIME27003055792227_value"^^xsd:string ] ] ; sp:arg2 3 ] ; @@ -169,18 +158,18 @@ sp:arg1 [ a sp:and ; sp:arg1 [ a sp:and ; sp:arg1 [ a sp:gt ; - sp:arg1 [ sp:varName "cpuspeedTIME495381145342427_value"^^xsd:string ] ; + sp:arg1 [ sp:varName "cpuspeedTIME27003048872669_value"^^xsd:string ] ; sp:arg2 5 ] ; sp:arg2 [ a sp:gt ; - sp:arg1 [ sp:varName "ramsizeTIME495381145361671_value"^^xsd:string ] ; + sp:arg1 [ sp:varName "ramsizeTIME27003048974873_value"^^xsd:string ] ; sp:arg2 20 ] ] ; sp:arg2 [ a sp:gt ; sp:arg1 [ a sp:ceil ; sp:arg1 [ a sp:mul ; - sp:arg1 [ sp:varName "cpuspeedTIME495381145342427_value"^^xsd:string ] ; + sp:arg1 [ sp:varName "cpuspeedTIME27003048872669_value"^^xsd:string ] ; sp:arg2 [ a sp:divide ; sp:arg1 1 ; sp:arg2 5 @@ -189,7 +178,7 @@ ] ; sp:arg2 [ a sp:ceil ; sp:arg1 [ a sp:mul ; - sp:arg1 [ sp:varName "ramsizeTIME495381145361671_value"^^xsd:string ] ; + sp:arg1 [ sp:varName "ramsizeTIME27003048974873_value"^^xsd:string ] ; sp:arg2 [ a sp:divide ; sp:arg1 1 ; sp:arg2 20 @@ -202,14 +191,14 @@ sp:arg1 [ a sp:mul ; sp:arg1 [ a sp:ceil ; sp:arg1 [ a sp:mul ; - sp:arg1 [ sp:varName "cpuspeedTIME495381145342427_value"^^xsd:string ] ; + sp:arg1 [ sp:varName "cpuspeedTIME27003048872669_value"^^xsd:string ] ; sp:arg2 [ a sp:divide ; sp:arg1 1 ; sp:arg2 5 ] ] ] ; - sp:arg2 [ sp:varName "cpuramcostTIME495381145853877_value"^^xsd:string ] + sp:arg2 [ sp:varName "cpuramcostTIME27003055792227_value"^^xsd:string ] ] ; sp:arg2 3 ] ; @@ -221,18 +210,18 @@ sp:arg1 [ a sp:and ; sp:arg1 [ a sp:and ; sp:arg1 [ a sp:gt ; - sp:arg1 [ sp:varName "cpuspeedTIME495381145342427_value"^^xsd:string ] ; + sp:arg1 [ sp:varName "cpuspeedTIME27003048872669_value"^^xsd:string ] ; sp:arg2 5 ] ; sp:arg2 [ a sp:gt ; - sp:arg1 [ sp:varName "ramsizeTIME495381145361671_value"^^xsd:string ] ; + sp:arg1 [ sp:varName "ramsizeTIME27003048974873_value"^^xsd:string ] ; sp:arg2 20 ] ] ; sp:arg2 [ a sp:lt ; sp:arg1 [ a sp:ceil ; sp:arg1 [ a sp:mul ; - sp:arg1 [ sp:varName "cpuspeedTIME495381145342427_value"^^xsd:string ] ; + sp:arg1 [ sp:varName "cpuspeedTIME27003048872669_value"^^xsd:string ] ; sp:arg2 [ a sp:divide ; sp:arg1 1 ; sp:arg2 5 @@ -241,7 +230,7 @@ ] ; sp:arg2 [ a sp:ceil ; sp:arg1 [ a sp:mul ; - sp:arg1 [ sp:varName "ramsizeTIME495381145361671_value"^^xsd:string ] ; + sp:arg1 [ sp:varName "ramsizeTIME27003048974873_value"^^xsd:string ] ; sp:arg2 [ a sp:divide ; sp:arg1 1 ; sp:arg2 20 @@ -254,14 +243,14 @@ sp:arg1 [ a sp:mul ; sp:arg1 [ a sp:ceil ; sp:arg1 [ a sp:mul ; - sp:arg1 [ sp:varName "ramsizeTIME495381145361671_value"^^xsd:string ] ; + sp:arg1 [ sp:varName "ramsizeTIME27003048974873_value"^^xsd:string ] ; sp:arg2 [ a sp:divide ; sp:arg1 1 ; sp:arg2 20 ] ] ] ; - sp:arg2 [ sp:varName "cpuramcostTIME495381145853877_value"^^xsd:string ] + sp:arg2 [ sp:varName "cpuramcostTIME27003055792227_value"^^xsd:string ] ] ; sp:arg2 3 ] ; @@ -273,18 +262,18 @@ sp:arg1 [ a sp:and ; sp:arg1 [ a sp:and ; sp:arg1 [ a sp:gt ; - sp:arg1 [ sp:varName "cpuspeedTIME495381145342427_value"^^xsd:string ] ; + sp:arg1 [ sp:varName "cpuspeedTIME27003048872669_value"^^xsd:string ] ; sp:arg2 5 ] ; sp:arg2 [ a sp:gt ; - sp:arg1 [ sp:varName "ramsizeTIME495381145361671_value"^^xsd:string ] ; + sp:arg1 [ sp:varName "ramsizeTIME27003048974873_value"^^xsd:string ] ; sp:arg2 20 ] ] ; sp:arg2 [ a sp:eq ; sp:arg1 [ a sp:ceil ; sp:arg1 [ a sp:mul ; - sp:arg1 [ sp:varName "cpuspeedTIME495381145342427_value"^^xsd:string ] ; + sp:arg1 [ sp:varName "cpuspeedTIME27003048872669_value"^^xsd:string ] ; sp:arg2 [ a sp:divide ; sp:arg1 1 ; sp:arg2 5 @@ -293,7 +282,7 @@ ] ; sp:arg2 [ a sp:ceil ; sp:arg1 [ a sp:mul ; - sp:arg1 [ sp:varName "ramsizeTIME495381145361671_value"^^xsd:string ] ; + sp:arg1 [ sp:varName "ramsizeTIME27003048974873_value"^^xsd:string ] ; sp:arg2 [ a sp:divide ; sp:arg1 1 ; sp:arg2 20 @@ -306,14 +295,14 @@ sp:arg1 [ a sp:mul ; sp:arg1 [ a sp:ceil ; sp:arg1 [ a sp:mul ; - sp:arg1 [ sp:varName "ramsizeTIME495381145361671_value"^^xsd:string ] ; + sp:arg1 [ sp:varName "ramsizeTIME27003048974873_value"^^xsd:string ] ; sp:arg2 [ a sp:divide ; sp:arg1 1 ; sp:arg2 20 ] ] ] ; - sp:arg2 [ sp:varName "cpuramcostTIME495381145853877_value"^^xsd:string ] + sp:arg2 [ sp:varName "cpuramcostTIME27003055792227_value"^^xsd:string ] ] ; sp:arg2 3 ] ; @@ -340,59 +329,97 @@ sp:variable [ sp:varName "result"^^xsd:string ] ] ) ] ; - price:hasVariable :cpuramcostTIME495381145853877 , :ramsizeTIME495381145361671 , :cpuspeedTIME495381145342427 . + price:hasVariable :cpuramcostTIME27003055792227 , :ramsizeTIME27003048974873 , :cpuspeedTIME27003048872669 . -:QuantitativeValue_TIME495381217675810 - a gr:QuantitativeValue ; - gr:hasUnitOfMeasurement "USD" ; - gr:hasValue "519.0"^^xsd:double . +:pc3-diskcost a price:PriceComponent ; + rdfs:comment "Responsible for calculating the cost of the disk size." ; + rdfs:label "pc3-diskcost" ; + price:hasPriceFunction :disksize-pf . -:QuantitativeValue_TIME495381247655070 +:support-pf a spin:Function ; + rdfs:label "support-pf" ; + spin:body [ a sp:Select ; + sp:resultVariables ( [ sp:varName "result"^^xsd:string ] ) ; + sp:where ( [ sp:object [ sp:varName "supportcostTIME27003056332758_instance"^^xsd:string ] ; + sp:predicate price:hasValue ; + sp:subject :supportcostTIME27003056332758 + ] [ sp:object [ sp:varName "supportcostTIME27003056332758_value"^^xsd:string ] ; + sp:predicate gr:hasValue ; + sp:subject [ sp:varName "supportcostTIME27003056332758_instance"^^xsd:string ] + ] [ a sp:Bind ; + sp:expression [ a sp:mul ; + sp:arg1 [ sp:varName "supportcostTIME27003056332758_value"^^xsd:string ] ; + sp:arg2 3 + ] ; + sp:variable [ sp:varName "result"^^xsd:string ] + ] ) + ] ; + price:hasVariable :supportcostTIME27003056332758 . + +:diskcostTIME27003058298167 + a price:Constant ; + rdfs:label "diskcostTIME27003058298167" ; + price:hasValue :QuantitativeValue_24 . + +:QuantitativeValue_19 a gr:QuantitativeValue ; gr:hasUnitOfMeasurement "USD" ; - gr:hasValue "21.5"^^xsd:double . + gr:hasValue "90.0"^^xsd:double . -:staticipcostTIME495381145972759 +:staticipcostTIME27003059920186 a price:Constant ; - rdfs:label "staticipcostTIME495381145972759" ; - price:hasValue :QuantitativeValue_TIME495381247655070 . + rdfs:label "staticipcostTIME27003059920186" ; + price:hasValue :QuantitativeValue_34 . -:pc3-diskcost_TIME495381224848938 - a price:PriceComponent ; - rdfs:comment "Responsible for calculating the cost of the disk size." ; - rdfs:label "pc3-diskcost" ; - price:hasPriceFunction :disksize-pf_TIME495381228812247 . - -:diskcostTIME495381145929568 +:cpuramcostTIME27003055792227 a price:Constant ; - rdfs:label "diskcostTIME495381145929568" ; - price:hasValue :QuantitativeValue_TIME495381231704334 . + rdfs:label "cpuramcostTIME27003055792227" ; + price:hasValue :QuantitativeValue_15 . -:disksize-pf_TIME495381228812247 - a spin:Function ; - rdfs:label "disksize-pf" ; +:pc2-supportcost a price:PriceComponent ; + rdfs:comment "Responsible for calculating the cost of the support." ; + rdfs:label "pc2-supportcost" ; + price:hasPriceFunction :support-pf . + +:pc4-bandwidth a price:PriceComponent ; + rdfs:comment "Responsible for calculating the cost of the bandwidth." ; + rdfs:label "pc4-bandwidth" ; + price:hasPriceFunction :bandwidth-pf . + +:disksizeTIME27003058077507 + a price:Usage ; + rdfs:comment "GB of Disk you need." ; + rdfs:label "disksizeTIME27003058077507" . + +:pc5-staticip a price:PriceComponent ; + rdfs:comment "Responsible for calculating the cost of the number of StaticIPs chosen by the customer." ; + rdfs:label "pc5-staticip" ; + price:hasPriceFunction :staticip-pf . + +:staticip-pf a spin:Function ; + rdfs:label "staticip-pf" ; spin:body [ a sp:Select ; sp:resultVariables ( [ sp:varName "result"^^xsd:string ] ) ; - sp:where ( [ sp:object [ sp:varName "disksizeTIME495381145923154_instance"^^xsd:string ] ; + sp:where ( [ sp:object [ sp:varName "nstaticipTIME27003059848771_instance"^^xsd:string ] ; sp:predicate price:hasValue ; - sp:subject :disksizeTIME495381145923154 - ] [ sp:object [ sp:varName "disksizeTIME495381145923154_value"^^xsd:string ] ; + sp:subject :nstaticipTIME27003059848771 + ] [ sp:object [ sp:varName "nstaticipTIME27003059848771_value"^^xsd:string ] ; sp:predicate gr:hasValue ; - sp:subject [ sp:varName "disksizeTIME495381145923154_instance"^^xsd:string ] - ] [ sp:object [ sp:varName "diskcostTIME495381145929568_instance"^^xsd:string ] ; + sp:subject [ sp:varName "nstaticipTIME27003059848771_instance"^^xsd:string ] + ] [ sp:object [ sp:varName "staticipcostTIME27003059920186_instance"^^xsd:string ] ; sp:predicate price:hasValue ; - sp:subject :diskcostTIME495381145929568 - ] [ sp:object [ sp:varName "diskcostTIME495381145929568_value"^^xsd:string ] ; + sp:subject :staticipcostTIME27003059920186 + ] [ sp:object [ sp:varName "staticipcostTIME27003059920186_value"^^xsd:string ] ; sp:predicate gr:hasValue ; - sp:subject [ sp:varName "diskcostTIME495381145929568_instance"^^xsd:string ] + sp:subject [ sp:varName "staticipcostTIME27003059920186_instance"^^xsd:string ] ] [ a sp:Bind ; sp:expression [ a sp:if ; sp:arg1 [ a sp:le ; - sp:arg1 [ sp:varName "disksizeTIME495381145923154_value"^^xsd:string ] ; - sp:arg2 2048 + sp:arg1 [ sp:varName "nstaticipTIME27003059848771_value"^^xsd:string ] ; + sp:arg2 2 ] ; sp:arg2 [ a sp:mul ; - sp:arg1 [ sp:varName "diskcostTIME495381145929568_value"^^xsd:string ] ; + sp:arg1 [ sp:varName "staticipcostTIME27003059920186_value"^^xsd:string ] ; sp:arg2 3 ] ; sp:arg3 0 @@ -401,21 +428,21 @@ ] [ a sp:Bind ; sp:expression [ a sp:if ; sp:arg1 [ a sp:gt ; - sp:arg1 [ sp:varName "disksizeTIME495381145923154_value"^^xsd:string ] ; - sp:arg2 2048 + sp:arg1 [ sp:varName "nstaticipTIME27003059848771_value"^^xsd:string ] ; + sp:arg2 2 ] ; sp:arg2 [ a sp:mul ; sp:arg1 [ a sp:mul ; sp:arg1 [ a sp:ceil ; sp:arg1 [ a sp:mul ; - sp:arg1 [ sp:varName "disksizeTIME495381145923154_value"^^xsd:string ] ; + sp:arg1 [ sp:varName "nstaticipTIME27003059848771_value"^^xsd:string ] ; sp:arg2 [ a sp:divide ; sp:arg1 1 ; - sp:arg2 2024 + sp:arg2 2 ] ] ] ; - sp:arg2 [ sp:varName "diskcostTIME495381145929568_value"^^xsd:string ] + sp:arg2 [ sp:varName "staticipcostTIME27003059920186_value"^^xsd:string ] ] ; sp:arg2 3 ] ; @@ -430,33 +457,58 @@ sp:variable [ sp:varName "result"^^xsd:string ] ] ) ] ; - price:hasVariable :diskcostTIME495381145929568 , :disksizeTIME495381145923154 . + price:hasVariable :staticipcostTIME27003059920186 , :nstaticipTIME27003059848771 . -:staticip-pf_TIME495381245036669 - a spin:Function ; - rdfs:label "staticip-pf" ; +:QuantitativeValue_15 + a gr:QuantitativeValue ; + gr:hasUnitOfMeasurement "USD" ; + gr:hasValue "519.0"^^xsd:double . + +:VPMonthlySubscription-Offering + a core:ServiceOffering ; + rdfs:label "VPMonthlySubscription-Offering" ; + core:includes :VMWareVPC ; + price:hasPricePlan :VPMonthlySubs-O-PP . + +:cpuspeedTIME27003048872669 + a price:Usage ; + rdfs:comment "Number of GHz you need for the CPU." ; + rdfs:label "cpuspeedTIME27003048872669" . + +:QuantitativeValue_34 + a gr:QuantitativeValue ; + gr:hasUnitOfMeasurement "USD" ; + gr:hasValue "21.5"^^xsd:double . + +:pc1-cpu_ramcost a price:PriceComponent ; + rdfs:comment "Responsible for calculating the cost of the CPU and RAM hardware." ; + rdfs:label "pc1-cpu_ramcost" ; + price:hasPriceFunction :cpu_ram-pf . + +:disksize-pf a spin:Function ; + rdfs:label "disksize-pf" ; spin:body [ a sp:Select ; sp:resultVariables ( [ sp:varName "result"^^xsd:string ] ) ; - sp:where ( [ sp:object [ sp:varName "nstaticipTIME495381145965917_instance"^^xsd:string ] ; + sp:where ( [ sp:object [ sp:varName "disksizeTIME27003058077507_instance"^^xsd:string ] ; sp:predicate price:hasValue ; - sp:subject :nstaticipTIME495381145965917 - ] [ sp:object [ sp:varName "nstaticipTIME495381145965917_value"^^xsd:string ] ; + sp:subject :disksizeTIME27003058077507 + ] [ sp:object [ sp:varName "disksizeTIME27003058077507_value"^^xsd:string ] ; sp:predicate gr:hasValue ; - sp:subject [ sp:varName "nstaticipTIME495381145965917_instance"^^xsd:string ] - ] [ sp:object [ sp:varName "staticipcostTIME495381145972759_instance"^^xsd:string ] ; + sp:subject [ sp:varName "disksizeTIME27003058077507_instance"^^xsd:string ] + ] [ sp:object [ sp:varName "diskcostTIME27003058298167_instance"^^xsd:string ] ; sp:predicate price:hasValue ; - sp:subject :staticipcostTIME495381145972759 - ] [ sp:object [ sp:varName "staticipcostTIME495381145972759_value"^^xsd:string ] ; + sp:subject :diskcostTIME27003058298167 + ] [ sp:object [ sp:varName "diskcostTIME27003058298167_value"^^xsd:string ] ; sp:predicate gr:hasValue ; - sp:subject [ sp:varName "staticipcostTIME495381145972759_instance"^^xsd:string ] + sp:subject [ sp:varName "diskcostTIME27003058298167_instance"^^xsd:string ] ] [ a sp:Bind ; sp:expression [ a sp:if ; sp:arg1 [ a sp:le ; - sp:arg1 [ sp:varName "nstaticipTIME495381145965917_value"^^xsd:string ] ; - sp:arg2 2 + sp:arg1 [ sp:varName "disksizeTIME27003058077507_value"^^xsd:string ] ; + sp:arg2 2048 ] ; sp:arg2 [ a sp:mul ; - sp:arg1 [ sp:varName "staticipcostTIME495381145972759_value"^^xsd:string ] ; + sp:arg1 [ sp:varName "diskcostTIME27003058298167_value"^^xsd:string ] ; sp:arg2 3 ] ; sp:arg3 0 @@ -465,21 +517,21 @@ ] [ a sp:Bind ; sp:expression [ a sp:if ; sp:arg1 [ a sp:gt ; - sp:arg1 [ sp:varName "nstaticipTIME495381145965917_value"^^xsd:string ] ; - sp:arg2 2 + sp:arg1 [ sp:varName "disksizeTIME27003058077507_value"^^xsd:string ] ; + sp:arg2 2048 ] ; sp:arg2 [ a sp:mul ; sp:arg1 [ a sp:mul ; sp:arg1 [ a sp:ceil ; sp:arg1 [ a sp:mul ; - sp:arg1 [ sp:varName "nstaticipTIME495381145965917_value"^^xsd:string ] ; + sp:arg1 [ sp:varName "disksizeTIME27003058077507_value"^^xsd:string ] ; sp:arg2 [ a sp:divide ; sp:arg1 1 ; - sp:arg2 2 + sp:arg2 2024 ] ] ] ; - sp:arg2 [ sp:varName "staticipcostTIME495381145972759_value"^^xsd:string ] + sp:arg2 [ sp:varName "diskcostTIME27003058298167_value"^^xsd:string ] ] ; sp:arg2 3 ] ; @@ -494,43 +546,32 @@ sp:variable [ sp:varName "result"^^xsd:string ] ] ) ] ; - price:hasVariable :staticipcostTIME495381145972759 , :nstaticipTIME495381145965917 . - -:QuantitativeValue_TIME495381241518954 - a gr:QuantitativeValue ; - gr:hasUnitOfMeasurement "USD" ; - gr:hasValue "197.0"^^xsd:double . + price:hasVariable :diskcostTIME27003058298167 , :disksizeTIME27003058077507 . -:QuantitativeValue_TIME495381231704334 - a gr:QuantitativeValue ; - gr:hasUnitOfMeasurement "USD" ; - gr:hasValue "249.0"^^xsd:double . - -:bandwidth-pf_TIME495381238175714 - a spin:Function ; +:bandwidth-pf a spin:Function ; rdfs:label "bandwidth-pf" ; spin:body [ a sp:Select ; sp:resultVariables ( [ sp:varName "result"^^xsd:string ] ) ; - sp:where ( [ sp:object [ sp:varName "bandwidthTIME495381145946246_instance"^^xsd:string ] ; + sp:where ( [ sp:object [ sp:varName "bandwidthTIME27003059335181_instance"^^xsd:string ] ; sp:predicate price:hasValue ; - sp:subject :bandwidthTIME495381145946246 - ] [ sp:object [ sp:varName "bandwidthTIME495381145946246_value"^^xsd:string ] ; + sp:subject :bandwidthTIME27003059335181 + ] [ sp:object [ sp:varName "bandwidthTIME27003059335181_value"^^xsd:string ] ; sp:predicate gr:hasValue ; - sp:subject [ sp:varName "bandwidthTIME495381145946246_instance"^^xsd:string ] - ] [ sp:object [ sp:varName "bandwidthcostTIME495381145952233_instance"^^xsd:string ] ; + sp:subject [ sp:varName "bandwidthTIME27003059335181_instance"^^xsd:string ] + ] [ sp:object [ sp:varName "bandwidthcostTIME27003059410873_instance"^^xsd:string ] ; sp:predicate price:hasValue ; - sp:subject :bandwidthcostTIME495381145952233 - ] [ sp:object [ sp:varName "bandwidthcostTIME495381145952233_value"^^xsd:string ] ; + sp:subject :bandwidthcostTIME27003059410873 + ] [ sp:object [ sp:varName "bandwidthcostTIME27003059410873_value"^^xsd:string ] ; sp:predicate gr:hasValue ; - sp:subject [ sp:varName "bandwidthcostTIME495381145952233_instance"^^xsd:string ] + sp:subject [ sp:varName "bandwidthcostTIME27003059410873_instance"^^xsd:string ] ] [ a sp:Bind ; sp:expression [ a sp:if ; sp:arg1 [ a sp:le ; - sp:arg1 [ sp:varName "bandwidthTIME495381145946246_value"^^xsd:string ] ; + sp:arg1 [ sp:varName "bandwidthTIME27003059335181_value"^^xsd:string ] ; sp:arg2 10 ] ; sp:arg2 [ a sp:mul ; - sp:arg1 [ sp:varName "bandwidthcostTIME495381145952233_value"^^xsd:string ] ; + sp:arg1 [ sp:varName "bandwidthcostTIME27003059410873_value"^^xsd:string ] ; sp:arg2 3 ] ; sp:arg3 0 @@ -539,21 +580,21 @@ ] [ a sp:Bind ; sp:expression [ a sp:if ; sp:arg1 [ a sp:gt ; - sp:arg1 [ sp:varName "bandwidthTIME495381145946246_value"^^xsd:string ] ; + sp:arg1 [ sp:varName "bandwidthTIME27003059335181_value"^^xsd:string ] ; sp:arg2 10 ] ; sp:arg2 [ a sp:mul ; sp:arg1 [ a sp:mul ; sp:arg1 [ a sp:ceil ; sp:arg1 [ a sp:mul ; - sp:arg1 [ sp:varName "bandwidthTIME495381145946246_value"^^xsd:string ] ; + sp:arg1 [ sp:varName "bandwidthTIME27003059335181_value"^^xsd:string ] ; sp:arg2 [ a sp:divide ; sp:arg1 1 ; sp:arg2 10 ] ] ] ; - sp:arg2 [ sp:varName "bandwidthcostTIME495381145952233_value"^^xsd:string ] + sp:arg2 [ sp:varName "bandwidthcostTIME27003059410873_value"^^xsd:string ] ] ; sp:arg2 3 ] ; @@ -568,64 +609,14 @@ sp:variable [ sp:varName "result"^^xsd:string ] ] ) ] ; - price:hasVariable :bandwidthcostTIME495381145952233 , :bandwidthTIME495381145946246 . + price:hasVariable :bandwidthcostTIME27003059410873 , :bandwidthTIME27003059335181 . -:supportcostTIME495381145905621 +:supportcostTIME27003056332758 a price:Constant ; - rdfs:label "supportcostTIME495381145905621" ; - price:hasValue :QuantitativeValue_TIME495381224794628 . - -:VPMonthlySubs-O-PP_TIME495381147876157 - a price:PricePlan ; - rdfs:comment "PricePlan for VMWare's Virtual Price Cloud subscription plan" ; - rdfs:label "VPMonthlySubs-O-PP" ; - price:hasPriceComponent :pc5-staticip_TIME495381241574974 , :pc4-bandwidth_TIME495381231790716 , :pc3-diskcost_TIME495381224848938 , :pc2-supportcost_TIME495381218486176 , :pc1-cpu_ramcost_TIME495381147963822 . - -:pc4-bandwidth_TIME495381231790716 - a price:PriceComponent ; - rdfs:comment "Responsible for calculating the cost of the bandwidth." ; - rdfs:label "pc4-bandwidth" ; - price:hasPriceFunction :bandwidth-pf_TIME495381238175714 . - -:VPMonthlySubscription-Offering_TIME495381146122431 - a core:ServiceOffering ; - rdfs:label "VPMonthlySubscription-Offering" ; - core:includes :VMWareVPC_TIME495381147203917 ; - price:hasPricePlan :VPMonthlySubs-O-PP_TIME495381147876157 . - -:support-pf_TIME495381223659689 - a spin:Function ; - rdfs:label "support-pf" ; - spin:body [ a sp:Select ; - sp:resultVariables ( [ sp:varName "result"^^xsd:string ] ) ; - sp:where ( [ sp:object [ sp:varName "supportcostTIME495381145905621_instance"^^xsd:string ] ; - sp:predicate price:hasValue ; - sp:subject :supportcostTIME495381145905621 - ] [ sp:object [ sp:varName "supportcostTIME495381145905621_value"^^xsd:string ] ; - sp:predicate gr:hasValue ; - sp:subject [ sp:varName "supportcostTIME495381145905621_instance"^^xsd:string ] - ] [ a sp:Bind ; - sp:expression [ a sp:mul ; - sp:arg1 [ sp:varName "supportcostTIME495381145905621_value"^^xsd:string ] ; - sp:arg2 3 - ] ; - sp:variable [ sp:varName "result"^^xsd:string ] - ] ) - ] ; - price:hasVariable :supportcostTIME495381145905621 . - -:disksizeTIME495381145923154 - a price:Usage ; - rdfs:comment "GB of Disk you need." ; - rdfs:label "disksizeTIME495381145923154" . + rdfs:label "supportcostTIME27003056332758" ; + price:hasValue :QuantitativeValue_19 . -:ramsizeTIME495381145361671 +:ramsizeTIME27003048974873 a price:Usage ; rdfs:comment "GB of RAM you need.." ; - rdfs:label "ramsizeTIME495381145361671" . - -:pc2-supportcost_TIME495381218486176 - a price:PriceComponent ; - rdfs:comment "Responsible for calculating the cost of the support." ; - rdfs:label "pc2-supportcost" ; - price:hasPriceFunction :support-pf_TIME495381223659689 . + rdfs:label "ramsizeTIME27003048974873" . diff --git a/SPIN_API/DebuggingFiles/amazonOD.ttl b/SPIN_API/DebuggingFiles/amazonOD.ttl index 065ffe0..05fa87c 100644 --- a/SPIN_API/DebuggingFiles/amazonOD.ttl +++ b/SPIN_API/DebuggingFiles/amazonOD.ttl @@ -13,95 +13,82 @@ @prefix usdk: . @prefix xsd: . @prefix owl: . -@prefix rdf: . @prefix spin: . +@prefix rdf: . @prefix core: . @prefix gr: . @prefix skos: . - - a gr:QuantitativeValue ; - gr:hasUnitOfMeasurement "USD" ; - gr:hasValue "0.09"^^xsd:double . - - - a price:Constant ; - rdfs:comment "The number of hours that you'll be using the instance." ; - rdfs:label "NumberOfHoursTIME507916921524120" . - - - a cloudtaxonomy:DataOUTExternal , gr:QuantitativeValue ; - gr:hasMaxValue "358400.0"^^xsd:double ; - gr:hasUnitOfMeasurement "E34" . +:PricePlan-m3.medium-OD + a price:PricePlan ; + rdfs:label "PricePlan-m3.medium-OD" ; + price:hasPriceComponent :DataCostPC-PPm3.medium-OD , :HourlyPC-PPm3.medium-OD . - - a cloudtaxonomy:MemorySize , gr:QuantitativeValue ; +:QuantitativeValue_5 a cloudtaxonomy:DiskSize , gr:QuantitativeValue ; gr:hasUnitOfMeasurement "E34" ; - gr:hasValue "3.75"^^xsd:double . - - - a cloudtaxonomy:Monitoring , gr:QuantitativeValue ; - rdfs:comment "As métricas de monitoramento básico (com frequência de cinco minutos) para instâncias do Amazon EC2 são gratuitas, assim como todas as métricas para os volumes do Amazon EBS, Elastic Load Balancers e as instâncias do banco de dados do Amazon RDS." ; - rdfs:label "Basic" . + gr:hasValue "4.0"^^xsd:double . - +:QuantitativeValue_24 a gr:QuantitativeValue ; gr:hasUnitOfMeasurement "USD" ; gr:hasValue "0.12"^^xsd:double . - +:price100TIME22943720143394 a price:Constant ; - rdfs:label "price40TIME507916931523901" ; - price:hasValue . + rdfs:label "price100TIME22943720143394" ; + price:hasValue :QuantitativeValue_28 . - +:QuantitativeValue_11 a cloudtaxonomy:DataINExternal , gr:QuantitativeValue ; gr:hasValue 1.7976931348623157E308 . - - a price:Constant ; - rdfs:label "price100TIME507916931832653" ; - price:hasValue . +:QualitativeValue_6 a cloudtaxonomy:StorageType , gr:QuantitativeValue ; + rdfs:label "SSD" . - +:DataCostPC-PPm3.medium-OD + a price:PriceComponent ; + rdfs:label "DataCostPC-PPm3.medium-OD" ; + price:hasPriceFunction :m3.medium-OD-data_transferrals_cost . + +:m3.medium-OD-data_transferrals_cost a spin:Function ; rdfs:label "m3.medium-OD-data_transferrals_cost" ; spin:body [ a sp:Select ; sp:resultVariables ( [ sp:varName "result"^^xsd:string ] ) ; - sp:where ( [ sp:object [ sp:varName "gboutTIME507916932055022_instance"^^xsd:string ] ; + sp:where ( [ sp:object [ sp:varName "gboutTIME22943720919979_instance"^^xsd:string ] ; sp:predicate price:hasValue ; - sp:subject :gboutTIME507916932055022 - ] [ sp:object [ sp:varName "gboutTIME507916932055022_value"^^xsd:string ] ; + sp:subject :gboutTIME22943720919979 + ] [ sp:object [ sp:varName "gboutTIME22943720919979_value"^^xsd:string ] ; sp:predicate gr:hasValue ; - sp:subject [ sp:varName "gboutTIME507916932055022_instance"^^xsd:string ] - ] [ sp:object [ sp:varName "price10TIME507916931396894_instance"^^xsd:string ] ; + sp:subject [ sp:varName "gboutTIME22943720919979_instance"^^xsd:string ] + ] [ sp:object [ sp:varName "price10TIME22943719605429_instance"^^xsd:string ] ; sp:predicate price:hasValue ; - sp:subject :price10TIME507916931396894 - ] [ sp:object [ sp:varName "price10TIME507916931396894_value"^^xsd:string ] ; + sp:subject :price10TIME22943719605429 + ] [ sp:object [ sp:varName "price10TIME22943719605429_value"^^xsd:string ] ; sp:predicate gr:hasValue ; - sp:subject [ sp:varName "price10TIME507916931396894_instance"^^xsd:string ] - ] [ sp:object [ sp:varName "price40TIME507916931523901_instance"^^xsd:string ] ; + sp:subject [ sp:varName "price10TIME22943719605429_instance"^^xsd:string ] + ] [ sp:object [ sp:varName "price40TIME22943719757240_instance"^^xsd:string ] ; sp:predicate price:hasValue ; - sp:subject :price40TIME507916931523901 - ] [ sp:object [ sp:varName "price40TIME507916931523901_value"^^xsd:string ] ; + sp:subject :price40TIME22943719757240 + ] [ sp:object [ sp:varName "price40TIME22943719757240_value"^^xsd:string ] ; sp:predicate gr:hasValue ; - sp:subject [ sp:varName "price40TIME507916931523901_instance"^^xsd:string ] - ] [ sp:object [ sp:varName "price100TIME507916931832653_instance"^^xsd:string ] ; + sp:subject [ sp:varName "price40TIME22943719757240_instance"^^xsd:string ] + ] [ sp:object [ sp:varName "price100TIME22943720143394_instance"^^xsd:string ] ; sp:predicate price:hasValue ; - sp:subject :price100TIME507916931832653 - ] [ sp:object [ sp:varName "price100TIME507916931832653_value"^^xsd:string ] ; + sp:subject :price100TIME22943720143394 + ] [ sp:object [ sp:varName "price100TIME22943720143394_value"^^xsd:string ] ; sp:predicate gr:hasValue ; - sp:subject [ sp:varName "price100TIME507916931832653_instance"^^xsd:string ] - ] [ sp:object [ sp:varName "price350TIME507916931942555_instance"^^xsd:string ] ; + sp:subject [ sp:varName "price100TIME22943720143394_instance"^^xsd:string ] + ] [ sp:object [ sp:varName "price350TIME22943720417508_instance"^^xsd:string ] ; sp:predicate price:hasValue ; - sp:subject :price350TIME507916931942555 - ] [ sp:object [ sp:varName "price350TIME507916931942555_value"^^xsd:string ] ; + sp:subject :price350TIME22943720417508 + ] [ sp:object [ sp:varName "price350TIME22943720417508_value"^^xsd:string ] ; sp:predicate gr:hasValue ; - sp:subject [ sp:varName "price350TIME507916931942555_instance"^^xsd:string ] + sp:subject [ sp:varName "price350TIME22943720417508_instance"^^xsd:string ] ] [ a sp:Bind ; sp:expression [ a sp:if ; sp:arg1 [ a sp:le ; - sp:arg1 [ sp:varName "gboutTIME507916932055022_value"^^xsd:string ] ; + sp:arg1 [ sp:varName "gboutTIME22943720919979_value"^^xsd:string ] ; sp:arg2 1 ] ; sp:arg2 [ a sp:mul ; @@ -115,11 +102,11 @@ sp:expression [ a sp:if ; sp:arg1 [ a sp:and ; sp:arg1 [ a sp:gt ; - sp:arg1 [ sp:varName "gboutTIME507916932055022_value"^^xsd:string ] ; + sp:arg1 [ sp:varName "gboutTIME22943720919979_value"^^xsd:string ] ; sp:arg2 1 ] ; sp:arg2 [ a sp:le ; - sp:arg1 [ sp:varName "gboutTIME507916932055022_value"^^xsd:string ] ; + sp:arg1 [ sp:varName "gboutTIME22943720919979_value"^^xsd:string ] ; sp:arg2 [ a sp:mul ; sp:arg1 10 ; sp:arg2 1024 @@ -133,13 +120,13 @@ ] ; sp:arg2 [ a sp:mul ; sp:arg1 [ a sp:add ; - sp:arg1 [ sp:varName "gboutTIME507916932055022_value"^^xsd:string ] ; + sp:arg1 [ sp:varName "gboutTIME22943720919979_value"^^xsd:string ] ; sp:arg2 [ a sp:mul ; sp:arg1 -1 ; sp:arg2 1 ] ] ; - sp:arg2 [ sp:varName "price10TIME507916931396894_value"^^xsd:string ] + sp:arg2 [ sp:varName "price10TIME22943719605429_value"^^xsd:string ] ] ] ; sp:arg3 0 @@ -149,14 +136,14 @@ sp:expression [ a sp:if ; sp:arg1 [ a sp:and ; sp:arg1 [ a sp:gt ; - sp:arg1 [ sp:varName "gboutTIME507916932055022_value"^^xsd:string ] ; + sp:arg1 [ sp:varName "gboutTIME22943720919979_value"^^xsd:string ] ; sp:arg2 [ a sp:mul ; sp:arg1 10 ; sp:arg2 1024 ] ] ; sp:arg2 [ a sp:le ; - sp:arg1 [ sp:varName "gboutTIME507916932055022_value"^^xsd:string ] ; + sp:arg1 [ sp:varName "gboutTIME22943720919979_value"^^xsd:string ] ; sp:arg2 [ a sp:mul ; sp:arg1 40 ; sp:arg2 1024 @@ -174,13 +161,13 @@ sp:arg1 10 ; sp:arg2 1024 ] ; - sp:arg2 [ sp:varName "price10TIME507916931396894_value"^^xsd:string ] + sp:arg2 [ sp:varName "price10TIME22943719605429_value"^^xsd:string ] ] ] ; sp:arg2 [ a sp:mul ; sp:arg1 [ a sp:add ; sp:arg1 [ a sp:add ; - sp:arg1 [ sp:varName "gboutTIME507916932055022_value"^^xsd:string ] ; + sp:arg1 [ sp:varName "gboutTIME22943720919979_value"^^xsd:string ] ; sp:arg2 [ a sp:mul ; sp:arg1 -1 ; sp:arg2 [ a sp:mul ; @@ -194,7 +181,7 @@ sp:arg2 1 ] ] ; - sp:arg2 [ sp:varName "price40TIME507916931523901_value"^^xsd:string ] + sp:arg2 [ sp:varName "price40TIME22943719757240_value"^^xsd:string ] ] ] ; sp:arg3 0 @@ -204,14 +191,14 @@ sp:expression [ a sp:if ; sp:arg1 [ a sp:and ; sp:arg1 [ a sp:ge ; - sp:arg1 [ sp:varName "gboutTIME507916932055022_value"^^xsd:string ] ; + sp:arg1 [ sp:varName "gboutTIME22943720919979_value"^^xsd:string ] ; sp:arg2 [ a sp:mul ; sp:arg1 40 ; sp:arg2 1024 ] ] ; sp:arg2 [ a sp:lt ; - sp:arg1 [ sp:varName "gboutTIME507916932055022_value"^^xsd:string ] ; + sp:arg1 [ sp:varName "gboutTIME22943720919979_value"^^xsd:string ] ; sp:arg2 [ a sp:mul ; sp:arg1 100 ; sp:arg2 1024 @@ -230,7 +217,7 @@ sp:arg1 10 ; sp:arg2 1024 ] ; - sp:arg2 [ sp:varName "price10TIME507916931396894_value"^^xsd:string ] + sp:arg2 [ sp:varName "price10TIME22943719605429_value"^^xsd:string ] ] ] ; sp:arg2 [ a sp:mul ; @@ -238,14 +225,14 @@ sp:arg1 40 ; sp:arg2 1024 ] ; - sp:arg2 [ sp:varName "price40TIME507916931523901_value"^^xsd:string ] + sp:arg2 [ sp:varName "price40TIME22943719757240_value"^^xsd:string ] ] ] ; sp:arg2 [ a sp:mul ; sp:arg1 [ a sp:add ; sp:arg1 [ a sp:add ; sp:arg1 [ a sp:add ; - sp:arg1 [ sp:varName "gboutTIME507916932055022_value"^^xsd:string ] ; + sp:arg1 [ sp:varName "gboutTIME22943720919979_value"^^xsd:string ] ; sp:arg2 [ a sp:mul ; sp:arg1 -1 ; sp:arg2 1 @@ -267,7 +254,7 @@ ] ] ] ; - sp:arg2 [ sp:varName "price100TIME507916931832653_value"^^xsd:string ] + sp:arg2 [ sp:varName "price100TIME22943720143394_value"^^xsd:string ] ] ] ; sp:arg3 0 @@ -277,14 +264,14 @@ sp:expression [ a sp:if ; sp:arg1 [ a sp:and ; sp:arg1 [ a sp:ge ; - sp:arg1 [ sp:varName "gboutTIME507916932055022_value"^^xsd:string ] ; + sp:arg1 [ sp:varName "gboutTIME22943720919979_value"^^xsd:string ] ; sp:arg2 [ a sp:mul ; sp:arg1 100 ; sp:arg2 1024 ] ] ; sp:arg2 [ a sp:lt ; - sp:arg1 [ sp:varName "gboutTIME507916932055022_value"^^xsd:string ] ; + sp:arg1 [ sp:varName "gboutTIME22943720919979_value"^^xsd:string ] ; sp:arg2 [ a sp:mul ; sp:arg1 350 ; sp:arg2 1024 @@ -304,7 +291,7 @@ sp:arg1 10 ; sp:arg2 1024 ] ; - sp:arg2 [ sp:varName "price10TIME507916931396894_value"^^xsd:string ] + sp:arg2 [ sp:varName "price10TIME22943719605429_value"^^xsd:string ] ] ] ; sp:arg2 [ a sp:mul ; @@ -312,7 +299,7 @@ sp:arg1 40 ; sp:arg2 1024 ] ; - sp:arg2 [ sp:varName "price40TIME507916931523901_value"^^xsd:string ] + sp:arg2 [ sp:varName "price40TIME22943719757240_value"^^xsd:string ] ] ] ; sp:arg2 [ a sp:mul ; @@ -320,7 +307,7 @@ sp:arg1 100 ; sp:arg2 1024 ] ; - sp:arg2 [ sp:varName "price100TIME507916931832653_value"^^xsd:string ] + sp:arg2 [ sp:varName "price100TIME22943720143394_value"^^xsd:string ] ] ] ; sp:arg2 [ a sp:mul ; @@ -328,7 +315,7 @@ sp:arg1 [ a sp:add ; sp:arg1 [ a sp:add ; sp:arg1 [ a sp:add ; - sp:arg1 [ sp:varName "gboutTIME507916932055022_value"^^xsd:string ] ; + sp:arg1 [ sp:varName "gboutTIME22943720919979_value"^^xsd:string ] ; sp:arg2 [ a sp:mul ; sp:arg1 -1 ; sp:arg2 1 @@ -358,7 +345,7 @@ ] ] ] ; - sp:arg2 [ sp:varName "price350TIME507916931942555_value"^^xsd:string ] + sp:arg2 [ sp:varName "price350TIME22943720417508_value"^^xsd:string ] ] ] ; sp:arg3 0 @@ -381,125 +368,129 @@ sp:variable [ sp:varName "result"^^xsd:string ] ] ) ] ; - price:hasVariable , , , , . + price:hasVariable :price350TIME22943720417508 , :price100TIME22943720143394 , :price40TIME22943719757240 , :price10TIME22943719605429 , :gboutTIME22943720919979 . - - a cloudtaxonomy:CPUCores , gr:QuantitativeValue ; - gr:hasValue "1.0"^^xsd:double . +:price10TIME22943719605429 + a price:Constant ; + rdfs:label "price10TIME22943719605429" ; + price:hasValue :QuantitativeValue_24 . - - a price:PriceComponent ; - rdfs:label "DataCostPC-PPm3.medium-OD" ; - price:hasPriceFunction . +:QuantitativeValue_3 a cloudtaxonomy:CPUSpeed , gr:QuantitativeValue ; + gr:hasUnitOfMeasurement "ECU" ; + gr:hasValue "3.0"^^xsd:double . - - a core:ServiceOffering ; - rdfs:label "m3.medium-OD Offering" ; - core:includes ; - price:hasPricePlan . +:NumberOfHoursTIME22943712232150 + a price:Usage ; + rdfs:comment "The number of hours that you'll be using the instance." ; + rdfs:label "NumberOfHoursTIME22943712232150" . - - a price:Constant ; - rdfs:label "price350TIME507916931942555" ; - price:hasValue . +:QualitativeValue_1 a cloudtaxonomy:Arch64bit , gr:QuantitativeValue ; + rdfs:label "64Bits" . - - a price:Constant ; - rdfs:comment "Total GB of data that you expect to send out from Amazon EC2 to the internet." ; - rdfs:label "gboutTIME507916932055022" . +:price350TIME22943720417508 + a price:Constant ; + rdfs:label "price350TIME22943720417508" ; + price:hasValue :QuantitativeValue_30 . - - a cloudtaxonomy:DiskSize , gr:QuantitativeValue ; - gr:hasUnitOfMeasurement "E34" ; - gr:hasValue "4.0"^^xsd:double . +:QualitativeValue_9 a cloudtaxonomy:Unix , gr:QuantitativeValue ; + rdfs:label "Linux" . - +:QuantitativeValue_30 a gr:QuantitativeValue ; gr:hasUnitOfMeasurement "USD" ; gr:hasValue "0.05"^^xsd:double . - +:m3.medium-OD-hourly_cost a spin:Function ; rdfs:label "m3.medium-OD-hourly_cost" ; spin:body [ a sp:Select ; sp:resultVariables ( [ sp:varName "result"^^xsd:string ] ) ; - sp:where ( [ sp:object [ sp:varName "CostPerHourTIME507916929363497_instance"^^xsd:string ] ; + sp:where ( [ sp:object [ sp:varName "CostPerHourTIME22943714096210_instance"^^xsd:string ] ; sp:predicate price:hasValue ; - sp:subject :CostPerHourTIME507916929363497 - ] [ sp:object [ sp:varName "CostPerHourTIME507916929363497_value"^^xsd:string ] ; + sp:subject :CostPerHourTIME22943714096210 + ] [ sp:object [ sp:varName "CostPerHourTIME22943714096210_value"^^xsd:string ] ; sp:predicate gr:hasValue ; - sp:subject [ sp:varName "CostPerHourTIME507916929363497_instance"^^xsd:string ] - ] [ sp:object [ sp:varName "NumberOfHoursTIME507916921524120_instance"^^xsd:string ] ; + sp:subject [ sp:varName "CostPerHourTIME22943714096210_instance"^^xsd:string ] + ] [ sp:object [ sp:varName "NumberOfHoursTIME22943712232150_instance"^^xsd:string ] ; sp:predicate price:hasValue ; - sp:subject :NumberOfHoursTIME507916921524120 - ] [ sp:object [ sp:varName "NumberOfHoursTIME507916921524120_value"^^xsd:string ] ; + sp:subject :NumberOfHoursTIME22943712232150 + ] [ sp:object [ sp:varName "NumberOfHoursTIME22943712232150_value"^^xsd:string ] ; sp:predicate gr:hasValue ; - sp:subject [ sp:varName "NumberOfHoursTIME507916921524120_instance"^^xsd:string ] + sp:subject [ sp:varName "NumberOfHoursTIME22943712232150_instance"^^xsd:string ] ] [ a sp:Bind ; sp:expression [ a sp:mul ; - sp:arg1 [ sp:varName "CostPerHourTIME507916929363497_value"^^xsd:string ] ; - sp:arg2 [ sp:varName "NumberOfHoursTIME507916921524120_value"^^xsd:string ] + sp:arg1 [ sp:varName "CostPerHourTIME22943714096210_value"^^xsd:string ] ; + sp:arg2 [ sp:varName "NumberOfHoursTIME22943712232150_value"^^xsd:string ] ] ; sp:variable [ sp:varName "result"^^xsd:string ] ] ) ] ; - price:hasVariable , . + price:hasVariable :CostPerHourTIME22943714096210 , :NumberOfHoursTIME22943712232150 . - +:QuantitativeValue_12 a cloudtaxonomy:DataINInternal , gr:QuantitativeValue ; gr:hasValue 1.7976931348623157E308 . - - a price:PricePlan ; - rdfs:label "PricePlan-m3.medium-OD" ; - price:hasPriceComponent , . +:QuantitativeValue_20 + a gr:QuantitativeValue ; + gr:hasUnitOfMeasurement "USD" ; + gr:hasValue "0.113"^^xsd:double . + +:QualitativeValue_7 a cloudtaxonomy:Monitoring , gr:QuantitativeValue ; + rdfs:comment "As métricas de monitoramento básico (com frequência de cinco minutos) para instâncias do Amazon EC2 são gratuitas, assim como todas as métricas para os volumes do Amazon EBS, Elastic Load Balancers e as instâncias do banco de dados do Amazon RDS." ; + rdfs:label "Basic" . + +:QuantitativeValue_28 + a gr:QuantitativeValue ; + gr:hasUnitOfMeasurement "USD" ; + gr:hasValue "0.07"^^xsd:double . - +:QuantitativeValue_4 a cloudtaxonomy:MemorySize , gr:QuantitativeValue ; + gr:hasUnitOfMeasurement "E34" ; + gr:hasValue "3.75"^^xsd:double . + +:price40TIME22943719757240 a price:Constant ; - rdfs:label "price10TIME507916931396894" ; - price:hasValue . + rdfs:label "price40TIME22943719757240" ; + price:hasValue :QuantitativeValue_26 . + +:m3.medium-OD_Offering + a core:ServiceOffering ; + rdfs:label "m3.medium-OD Offering" ; + core:includes :m3.medium-OD ; + price:hasPricePlan :PricePlan-m3.medium-OD . - +:CostPerHourTIME22943714096210 a price:Constant ; - rdfs:label "CostPerHourTIME507916929363497" ; - price:hasValue . + rdfs:label "CostPerHourTIME22943714096210" ; + price:hasValue :QuantitativeValue_20 . - - a core:Service ; - rdfs:label "m3.medium-OD" ; - gr:qualitativeProductOrServiceProperty - , , , ; - gr:quantitativeProductOrServiceProperty - , , , , , , . +:gboutTIME22943720919979 + a price:Usage ; + rdfs:comment "Total GB of data that you expect to send out from Amazon EC2 to the internet." ; + rdfs:label "gboutTIME22943720919979" . - +:QuantitativeValue_26 a gr:QuantitativeValue ; gr:hasUnitOfMeasurement "USD" ; - gr:hasValue "0.113"^^xsd:double . + gr:hasValue "0.09"^^xsd:double . - - a cloudtaxonomy:CPUSpeed , gr:QuantitativeValue ; - gr:hasUnitOfMeasurement "ECU" ; - gr:hasValue "3.0"^^xsd:double . +:m3.medium-OD a core:Service ; + rdfs:label "m3.medium-OD" ; + gr:qualitativeProductOrServiceProperty + :QualitativeValue_6 , :QualitativeValue_1 , :QualitativeValue_7 , :QualitativeValue_9 ; + gr:quantitativeProductOrServiceProperty + :QuantitativeValue_12 , :QuantitativeValue_11 , :QuantitativeValue_4 , :QuantitativeValue_13 , :QuantitativeValue_3 , :QuantitativeValue_2 , :QuantitativeValue_5 . - - a cloudtaxonomy:StorageType , gr:QuantitativeValue ; - rdfs:label "SSD" . +:QuantitativeValue_2 a cloudtaxonomy:CPUCores , gr:QuantitativeValue ; + gr:hasValue "1.0"^^xsd:double . - - a gr:QuantitativeValue ; - gr:hasUnitOfMeasurement "USD" ; - gr:hasValue "0.07"^^xsd:double . +:QuantitativeValue_13 + a cloudtaxonomy:DataOUTExternal , gr:QuantitativeValue ; + gr:hasMaxValue "358400.0"^^xsd:double ; + gr:hasUnitOfMeasurement "E34" . - +:HourlyPC-PPm3.medium-OD a price:PriceComponent ; rdfs:label "HourlyPC-PPm3.medium-OD" ; - price:hasPriceFunction . - - - a cloudtaxonomy:Arch64bit , gr:QuantitativeValue ; - rdfs:label "64Bits" . - - - a cloudtaxonomy:Unix , gr:QuantitativeValue ; - rdfs:label "Linux" . + price:hasPriceFunction :m3.medium-OD-hourly_cost . diff --git a/SPIN_API/DebuggingFiles/amazonRI.ttl b/SPIN_API/DebuggingFiles/amazonRI.ttl index e4107ec..53a285f 100644 --- a/SPIN_API/DebuggingFiles/amazonRI.ttl +++ b/SPIN_API/DebuggingFiles/amazonRI.ttl @@ -1,68 +1,185 @@ -@prefix dc: . @prefix legal: . +@prefix dc: . @prefix : . @prefix foaf: . @prefix sp: . @prefix vann: . +@prefix cloudtaxonomy: . +@prefix org: . @prefix rdfs: . +@prefix pf: . @prefix price: . @prefix spl: . +@prefix usdk: . @prefix xsd: . @prefix owl: . -@prefix rdf: . @prefix spin: . -@prefix cloud: . +@prefix rdf: . @prefix core: . @prefix gr: . @prefix skos: . -:m3.medium-RI-1YEAR-LIGHT_TIME55462381636514 +:UpFrontPC-PPm3.medium-RI-1YEAR-LIGHT + a price:PriceComponent ; + rdfs:label "UpFrontPC-PPm3.medium-RI-1YEAR-LIGHT" ; + gr:hasPriceSpecification :PriceSpecification_22 . + +:QuantitativeValue_32 + a gr:QuantitativeValue ; + gr:hasUnitOfMeasurement "USD" ; + gr:hasValue "0.05"^^xsd:double . + +:price100TIME22994766498150 + a price:Constant ; + rdfs:label "price100TIME22994766498150" ; + price:hasValue :QuantitativeValue_30 . + +:QuantitativeValue_11 + a cloudtaxonomy:DataINExternal , gr:QuantitativeValue ; + gr:hasValue 1.7976931348623157E308 . + +:PriceSpecification_22 + a gr:PriceSpecification ; + rdfs:label "PriceSpecification 22" ; + gr:hasCurrency "USD" ; + gr:hasCurrencyValue "110.0"^^xsd:double ; + gr:valueAddedTaxIncluded false . + +:QualitativeValue_7 a cloudtaxonomy:Monitoring , gr:QuantitativeValue ; + rdfs:comment "As métricas de monitoramento básico (com frequência de cinco minutos) para instâncias do Amazon EC2 são gratuitas, assim como todas as métricas para os volumes do Amazon EBS, Elastic Load Balancers e as instâncias do banco de dados do Amazon RDS." ; + rdfs:label "Basic" . + +:HourlyPC-PPm3.medium-RI-1YEAR-LIGHT + a price:PriceComponent ; + rdfs:label "HourlyPC-PPm3.medium-RI-1YEAR-LIGHT" ; + price:hasPriceFunction :m3.medium-RI-1YEAR-LIGHT-hourly_cost . + +:price10TIME22994766292457 + a price:Constant ; + rdfs:label "price10TIME22994766292457" ; + price:hasValue :QuantitativeValue_26 . + +:QuantitativeValue_4 a cloudtaxonomy:MemorySize , gr:QuantitativeValue ; + gr:hasUnitOfMeasurement "E34" ; + gr:hasValue "3.75"^^xsd:double . + +:m3.medium-RI-1YEAR-LIGHT a core:Service ; rdfs:label "m3.medium-RI-1YEAR-LIGHT" ; gr:qualitativeProductOrServiceProperty - :QualitativeValue_TIME55462383258960 , :QualitativeValue_TIME55462383327382 , :QualitativeValue_TIME55462383364586 ; + :QualitativeValue_9 , :QualitativeValue_1 , :QualitativeValue_7 , :QualitativeValue_6 ; gr:quantitativeProductOrServiceProperty - :QuantitativeValue_TIME55462382999813 , :QuantitativeValue_TIME55462383087479 , :QuantitativeValue_TIME55462383048136 , :QuantitativeValue_TIME55462382304052 , :QuantitativeValue_TIME55462383137512 , :QuantitativeValue_TIME55462383203368 , :QuantitativeValue_TIME55462383170440 . + :QuantitativeValue_11 , :QuantitativeValue_2 , :QuantitativeValue_5 , :QuantitativeValue_13 , :QuantitativeValue_12 , :QuantitativeValue_4 , :QuantitativeValue_3 . + +:QuantitativeValue_30 + a gr:QuantitativeValue ; + gr:hasUnitOfMeasurement "USD" ; + gr:hasValue "0.07"^^xsd:double . + +:gboutTIME22994766688875 + a price:Usage ; + rdfs:comment "Total GB of data that you expect to send out from Amazon EC2 to the internet." ; + rdfs:label "gboutTIME22994766688875" . + +:QuantitativeValue_12 + a cloudtaxonomy:DataINInternal , gr:QuantitativeValue ; + gr:hasValue 1.7976931348623157E308 . + +:DataCostPC-PPm3.medium-RI-1YEAR-LIGHT + a price:PriceComponent ; + rdfs:label "DataCostPC-PPm3.medium-RI-1YEAR-LIGHT" ; + price:hasPriceFunction :m3.medium-RI-1YEAR-LIGHT-data_transferrals_cost . + +:QuantitativeValue_20 + a gr:QuantitativeValue ; + gr:hasUnitOfMeasurement "USD" ; + gr:hasValue "0.064"^^xsd:double . + +:PricePlan-m3.medium-RI-1YEAR-LIGHT + a price:PricePlan ; + rdfs:label "PricePlan-m3.medium-RI-1YEAR-LIGHT" ; + price:hasPriceComponent :DataCostPC-PPm3.medium-RI-1YEAR-LIGHT , :UpFrontPC-PPm3.medium-RI-1YEAR-LIGHT , :HourlyPC-PPm3.medium-RI-1YEAR-LIGHT . + +:m3.medium-RI-1YEAR-LIGHT_Offering + a core:ServiceOffering ; + rdfs:label "m3.medium-RI-1YEAR-LIGHT Offering" ; + core:includes :m3.medium-RI-1YEAR-LIGHT ; + price:hasPricePlan :PricePlan-m3.medium-RI-1YEAR-LIGHT . -:m3.medium-RI-1YEAR-LIGHT-data_transferrals_cost_TIME55462441273581 +:m3.medium-RI-1YEAR-LIGHT-hourly_cost + a spin:Function ; + rdfs:label "m3.medium-RI-1YEAR-LIGHT-hourly_cost" ; + spin:body [ a sp:Select ; + sp:resultVariables ( [ sp:varName "result"^^xsd:string ] ) ; + sp:where ( [ sp:object [ sp:varName "CostPerHourTIME22994761883543_instance"^^xsd:string ] ; + sp:predicate price:hasValue ; + sp:subject :CostPerHourTIME22994761883543 + ] [ sp:object [ sp:varName "CostPerHourTIME22994761883543_value"^^xsd:string ] ; + sp:predicate gr:hasValue ; + sp:subject [ sp:varName "CostPerHourTIME22994761883543_instance"^^xsd:string ] + ] [ sp:object [ sp:varName "NumberOfHoursTIME22994754659508_instance"^^xsd:string ] ; + sp:predicate price:hasValue ; + sp:subject :NumberOfHoursTIME22994754659508 + ] [ sp:object [ sp:varName "NumberOfHoursTIME22994754659508_value"^^xsd:string ] ; + sp:predicate gr:hasValue ; + sp:subject [ sp:varName "NumberOfHoursTIME22994754659508_instance"^^xsd:string ] + ] [ a sp:Bind ; + sp:expression [ a sp:mul ; + sp:arg1 [ sp:varName "CostPerHourTIME22994761883543_value"^^xsd:string ] ; + sp:arg2 [ sp:varName "NumberOfHoursTIME22994754659508_value"^^xsd:string ] + ] ; + sp:variable [ sp:varName "result"^^xsd:string ] + ] ) + ] ; + price:hasVariable :CostPerHourTIME22994761883543 , :NumberOfHoursTIME22994754659508 . + +:QuantitativeValue_2 a cloudtaxonomy:CPUCores , gr:QuantitativeValue ; + gr:hasValue "1.0"^^xsd:double . + +:QuantitativeValue_28 + a gr:QuantitativeValue ; + gr:hasUnitOfMeasurement "USD" ; + gr:hasValue "0.09"^^xsd:double . + +:m3.medium-RI-1YEAR-LIGHT-data_transferrals_cost a spin:Function ; rdfs:label "m3.medium-RI-1YEAR-LIGHT-data_transferrals_cost" ; spin:body [ a sp:Select ; sp:resultVariables ( [ sp:varName "result"^^xsd:string ] ) ; - sp:where ( [ sp:object [ sp:varName "gboutTIME55462380306143_instance"^^xsd:string ] ; + sp:where ( [ sp:object [ sp:varName "gboutTIME22994766688875_instance"^^xsd:string ] ; sp:predicate price:hasValue ; - sp:subject :gboutTIME55462380306143 - ] [ sp:object [ sp:varName "gboutTIME55462380306143_value"^^xsd:string ] ; + sp:subject :gboutTIME22994766688875 + ] [ sp:object [ sp:varName "gboutTIME22994766688875_value"^^xsd:string ] ; sp:predicate gr:hasValue ; - sp:subject [ sp:varName "gboutTIME55462380306143_instance"^^xsd:string ] - ] [ sp:object [ sp:varName "price10TIME55462380284761_instance"^^xsd:string ] ; + sp:subject [ sp:varName "gboutTIME22994766688875_instance"^^xsd:string ] + ] [ sp:object [ sp:varName "price10TIME22994766292457_instance"^^xsd:string ] ; sp:predicate price:hasValue ; - sp:subject :price10TIME55462380284761 - ] [ sp:object [ sp:varName "price10TIME55462380284761_value"^^xsd:string ] ; + sp:subject :price10TIME22994766292457 + ] [ sp:object [ sp:varName "price10TIME22994766292457_value"^^xsd:string ] ; sp:predicate gr:hasValue ; - sp:subject [ sp:varName "price10TIME55462380284761_instance"^^xsd:string ] - ] [ sp:object [ sp:varName "price40TIME55462380291604_instance"^^xsd:string ] ; + sp:subject [ sp:varName "price10TIME22994766292457_instance"^^xsd:string ] + ] [ sp:object [ sp:varName "price40TIME22994766404498_instance"^^xsd:string ] ; sp:predicate price:hasValue ; - sp:subject :price40TIME55462380291604 - ] [ sp:object [ sp:varName "price40TIME55462380291604_value"^^xsd:string ] ; + sp:subject :price40TIME22994766404498 + ] [ sp:object [ sp:varName "price40TIME22994766404498_value"^^xsd:string ] ; sp:predicate gr:hasValue ; - sp:subject [ sp:varName "price40TIME55462380291604_instance"^^xsd:string ] - ] [ sp:object [ sp:varName "price100TIME55462380295880_instance"^^xsd:string ] ; + sp:subject [ sp:varName "price40TIME22994766404498_instance"^^xsd:string ] + ] [ sp:object [ sp:varName "price100TIME22994766498150_instance"^^xsd:string ] ; sp:predicate price:hasValue ; - sp:subject :price100TIME55462380295880 - ] [ sp:object [ sp:varName "price100TIME55462380295880_value"^^xsd:string ] ; + sp:subject :price100TIME22994766498150 + ] [ sp:object [ sp:varName "price100TIME22994766498150_value"^^xsd:string ] ; sp:predicate gr:hasValue ; - sp:subject [ sp:varName "price100TIME55462380295880_instance"^^xsd:string ] - ] [ sp:object [ sp:varName "price350TIME55462380300156_instance"^^xsd:string ] ; + sp:subject [ sp:varName "price100TIME22994766498150_instance"^^xsd:string ] + ] [ sp:object [ sp:varName "price350TIME22994766591802_instance"^^xsd:string ] ; sp:predicate price:hasValue ; - sp:subject :price350TIME55462380300156 - ] [ sp:object [ sp:varName "price350TIME55462380300156_value"^^xsd:string ] ; + sp:subject :price350TIME22994766591802 + ] [ sp:object [ sp:varName "price350TIME22994766591802_value"^^xsd:string ] ; sp:predicate gr:hasValue ; - sp:subject [ sp:varName "price350TIME55462380300156_instance"^^xsd:string ] + sp:subject [ sp:varName "price350TIME22994766591802_instance"^^xsd:string ] ] [ a sp:Bind ; sp:expression [ a sp:if ; sp:arg1 [ a sp:le ; - sp:arg1 [ sp:varName "gboutTIME55462380306143_value"^^xsd:string ] ; + sp:arg1 [ sp:varName "gboutTIME22994766688875_value"^^xsd:string ] ; sp:arg2 1 ] ; sp:arg2 [ a sp:mul ; @@ -76,11 +193,11 @@ sp:expression [ a sp:if ; sp:arg1 [ a sp:and ; sp:arg1 [ a sp:gt ; - sp:arg1 [ sp:varName "gboutTIME55462380306143_value"^^xsd:string ] ; + sp:arg1 [ sp:varName "gboutTIME22994766688875_value"^^xsd:string ] ; sp:arg2 1 ] ; sp:arg2 [ a sp:le ; - sp:arg1 [ sp:varName "gboutTIME55462380306143_value"^^xsd:string ] ; + sp:arg1 [ sp:varName "gboutTIME22994766688875_value"^^xsd:string ] ; sp:arg2 [ a sp:mul ; sp:arg1 10 ; sp:arg2 1024 @@ -94,13 +211,13 @@ ] ; sp:arg2 [ a sp:mul ; sp:arg1 [ a sp:add ; - sp:arg1 [ sp:varName "gboutTIME55462380306143_value"^^xsd:string ] ; + sp:arg1 [ sp:varName "gboutTIME22994766688875_value"^^xsd:string ] ; sp:arg2 [ a sp:mul ; sp:arg1 -1 ; sp:arg2 1 ] ] ; - sp:arg2 [ sp:varName "price10TIME55462380284761_value"^^xsd:string ] + sp:arg2 [ sp:varName "price10TIME22994766292457_value"^^xsd:string ] ] ] ; sp:arg3 0 @@ -110,14 +227,14 @@ sp:expression [ a sp:if ; sp:arg1 [ a sp:and ; sp:arg1 [ a sp:gt ; - sp:arg1 [ sp:varName "gboutTIME55462380306143_value"^^xsd:string ] ; + sp:arg1 [ sp:varName "gboutTIME22994766688875_value"^^xsd:string ] ; sp:arg2 [ a sp:mul ; sp:arg1 10 ; sp:arg2 1024 ] ] ; sp:arg2 [ a sp:le ; - sp:arg1 [ sp:varName "gboutTIME55462380306143_value"^^xsd:string ] ; + sp:arg1 [ sp:varName "gboutTIME22994766688875_value"^^xsd:string ] ; sp:arg2 [ a sp:mul ; sp:arg1 40 ; sp:arg2 1024 @@ -135,13 +252,13 @@ sp:arg1 10 ; sp:arg2 1024 ] ; - sp:arg2 [ sp:varName "price10TIME55462380284761_value"^^xsd:string ] + sp:arg2 [ sp:varName "price10TIME22994766292457_value"^^xsd:string ] ] ] ; sp:arg2 [ a sp:mul ; sp:arg1 [ a sp:add ; sp:arg1 [ a sp:add ; - sp:arg1 [ sp:varName "gboutTIME55462380306143_value"^^xsd:string ] ; + sp:arg1 [ sp:varName "gboutTIME22994766688875_value"^^xsd:string ] ; sp:arg2 [ a sp:mul ; sp:arg1 -1 ; sp:arg2 [ a sp:mul ; @@ -155,7 +272,7 @@ sp:arg2 1 ] ] ; - sp:arg2 [ sp:varName "price40TIME55462380291604_value"^^xsd:string ] + sp:arg2 [ sp:varName "price40TIME22994766404498_value"^^xsd:string ] ] ] ; sp:arg3 0 @@ -165,14 +282,14 @@ sp:expression [ a sp:if ; sp:arg1 [ a sp:and ; sp:arg1 [ a sp:ge ; - sp:arg1 [ sp:varName "gboutTIME55462380306143_value"^^xsd:string ] ; + sp:arg1 [ sp:varName "gboutTIME22994766688875_value"^^xsd:string ] ; sp:arg2 [ a sp:mul ; sp:arg1 40 ; sp:arg2 1024 ] ] ; sp:arg2 [ a sp:lt ; - sp:arg1 [ sp:varName "gboutTIME55462380306143_value"^^xsd:string ] ; + sp:arg1 [ sp:varName "gboutTIME22994766688875_value"^^xsd:string ] ; sp:arg2 [ a sp:mul ; sp:arg1 100 ; sp:arg2 1024 @@ -191,7 +308,7 @@ sp:arg1 10 ; sp:arg2 1024 ] ; - sp:arg2 [ sp:varName "price10TIME55462380284761_value"^^xsd:string ] + sp:arg2 [ sp:varName "price10TIME22994766292457_value"^^xsd:string ] ] ] ; sp:arg2 [ a sp:mul ; @@ -199,14 +316,14 @@ sp:arg1 40 ; sp:arg2 1024 ] ; - sp:arg2 [ sp:varName "price40TIME55462380291604_value"^^xsd:string ] + sp:arg2 [ sp:varName "price40TIME22994766404498_value"^^xsd:string ] ] ] ; sp:arg2 [ a sp:mul ; sp:arg1 [ a sp:add ; sp:arg1 [ a sp:add ; sp:arg1 [ a sp:add ; - sp:arg1 [ sp:varName "gboutTIME55462380306143_value"^^xsd:string ] ; + sp:arg1 [ sp:varName "gboutTIME22994766688875_value"^^xsd:string ] ; sp:arg2 [ a sp:mul ; sp:arg1 -1 ; sp:arg2 1 @@ -228,7 +345,7 @@ ] ] ] ; - sp:arg2 [ sp:varName "price100TIME55462380295880_value"^^xsd:string ] + sp:arg2 [ sp:varName "price100TIME22994766498150_value"^^xsd:string ] ] ] ; sp:arg3 0 @@ -238,14 +355,14 @@ sp:expression [ a sp:if ; sp:arg1 [ a sp:and ; sp:arg1 [ a sp:ge ; - sp:arg1 [ sp:varName "gboutTIME55462380306143_value"^^xsd:string ] ; + sp:arg1 [ sp:varName "gboutTIME22994766688875_value"^^xsd:string ] ; sp:arg2 [ a sp:mul ; sp:arg1 100 ; sp:arg2 1024 ] ] ; sp:arg2 [ a sp:lt ; - sp:arg1 [ sp:varName "gboutTIME55462380306143_value"^^xsd:string ] ; + sp:arg1 [ sp:varName "gboutTIME22994766688875_value"^^xsd:string ] ; sp:arg2 [ a sp:mul ; sp:arg1 350 ; sp:arg2 1024 @@ -265,7 +382,7 @@ sp:arg1 10 ; sp:arg2 1024 ] ; - sp:arg2 [ sp:varName "price10TIME55462380284761_value"^^xsd:string ] + sp:arg2 [ sp:varName "price10TIME22994766292457_value"^^xsd:string ] ] ] ; sp:arg2 [ a sp:mul ; @@ -273,7 +390,7 @@ sp:arg1 40 ; sp:arg2 1024 ] ; - sp:arg2 [ sp:varName "price40TIME55462380291604_value"^^xsd:string ] + sp:arg2 [ sp:varName "price40TIME22994766404498_value"^^xsd:string ] ] ] ; sp:arg2 [ a sp:mul ; @@ -281,7 +398,7 @@ sp:arg1 100 ; sp:arg2 1024 ] ; - sp:arg2 [ sp:varName "price100TIME55462380295880_value"^^xsd:string ] + sp:arg2 [ sp:varName "price100TIME22994766498150_value"^^xsd:string ] ] ] ; sp:arg2 [ a sp:mul ; @@ -289,7 +406,7 @@ sp:arg1 [ a sp:add ; sp:arg1 [ a sp:add ; sp:arg1 [ a sp:add ; - sp:arg1 [ sp:varName "gboutTIME55462380306143_value"^^xsd:string ] ; + sp:arg1 [ sp:varName "gboutTIME22994766688875_value"^^xsd:string ] ; sp:arg2 [ a sp:mul ; sp:arg1 -1 ; sp:arg2 1 @@ -319,7 +436,7 @@ ] ] ] ; - sp:arg2 [ sp:varName "price350TIME55462380300156_value"^^xsd:string ] + sp:arg2 [ sp:varName "price350TIME22994766591802_value"^^xsd:string ] ] ] ; sp:arg3 0 @@ -342,162 +459,51 @@ sp:variable [ sp:varName "result"^^xsd:string ] ] ) ] ; - price:hasVariable :price350TIME55462380300156 , :price100TIME55462380295880 , :price40TIME55462380291604 , :price10TIME55462380284761 , :gboutTIME55462380306143 . + price:hasVariable :price350TIME22994766591802 , :price100TIME22994766498150 , :price40TIME22994766404498 , :price10TIME22994766292457 , :gboutTIME22994766688875 . -:PricePlan-m3.medium-RI-1YEAR-LIGHT_TIME55462383430014 - a price:PricePlan ; - rdfs:label "PricePlan-m3.medium-RI-1YEAR-LIGHT" ; - price:hasPriceComponent :DataCostPC-PPm3.medium-RI-1YEAR-LIGHT_TIME55462434936464 , :UpFrontPC-PPm3.medium-RI-1YEAR-LIGHT_TIME55462434812877 , :HourlyPC-PPm3.medium-RI-1YEAR-LIGHT_TIME55462383509554 . +:QuantitativeValue_5 a cloudtaxonomy:DiskSize , gr:QuantitativeValue ; + gr:hasUnitOfMeasurement "E34" ; + gr:hasValue "4.0"^^xsd:double . -:price10TIME55462380284761 +:CostPerHourTIME22994761883543 a price:Constant ; - rdfs:label "price10TIME55462380284761" ; - price:hasValue :QuantitativeValue_TIME55462464677167 . + rdfs:label "CostPerHourTIME22994761883543" ; + price:hasValue :QuantitativeValue_20 . -:QuantitativeValue_TIME55462382999813 - a cloud:CPUSpeed , gr:QuantitativeValue ; - gr:hasUnitOfMeasurement "ECU" ; - gr:hasValue "3.0"^^xsd:double . - -:QualitativeValue_TIME55462383364586 - a cloud:Unix , gr:QualitativeValue ; - rdfs:label "Linux" . - -:DataCostPC-PPm3.medium-RI-1YEAR-LIGHT_TIME55462434936464 - a price:PriceComponent ; - rdfs:label "DataCostPC-PPm3.medium-RI-1YEAR-LIGHT" ; - price:hasPriceFunction :m3.medium-RI-1YEAR-LIGHT-data_transferrals_cost_TIME55462441273581 . - -:QuantitativeValue_TIME55462434728633 - a gr:QuantitativeValue ; - gr:hasValue "0.064"^^xsd:double . - -:HourlyPC-PPm3.medium-RI-1YEAR-LIGHT_TIME55462383509554 - a price:PriceComponent ; - rdfs:label "HourlyPC-PPm3.medium-RI-1YEAR-LIGHT" ; - price:hasPriceFunction :m3.medium-RI-1YEAR-LIGHT-hourly_cost_TIME55462389530649 . - -:price40TIME55462380291604 +:price350TIME22994766591802 a price:Constant ; - rdfs:label "price40TIME55462380291604" ; - price:hasValue :QuantitativeValue_TIME55462464764405 . + rdfs:label "price350TIME22994766591802" ; + price:hasValue :QuantitativeValue_32 . -:m3.medium-RI-1YEAR-LIGHT-hourly_cost_TIME55462389530649 - a spin:Function ; - rdfs:label "m3.medium-RI-1YEAR-LIGHT-hourly_cost" ; - spin:body [ a sp:Select ; - sp:resultVariables ( [ sp:varName "result"^^xsd:string ] ) ; - sp:where ( [ sp:object [ sp:varName "CostPerHourTIME55462379457716_instance"^^xsd:string ] ; - sp:predicate price:hasValue ; - sp:subject :CostPerHourTIME55462379457716 - ] [ sp:object [ sp:varName "CostPerHourTIME55462379457716_value"^^xsd:string ] ; - sp:predicate gr:hasValue ; - sp:subject [ sp:varName "CostPerHourTIME55462379457716_instance"^^xsd:string ] - ] [ sp:object [ sp:varName "NumberOfHoursTIME55462378908633_instance"^^xsd:string ] ; - sp:predicate price:hasValue ; - sp:subject :NumberOfHoursTIME55462378908633 - ] [ sp:object [ sp:varName "NumberOfHoursTIME55462378908633_value"^^xsd:string ] ; - sp:predicate gr:hasValue ; - sp:subject [ sp:varName "NumberOfHoursTIME55462378908633_instance"^^xsd:string ] - ] [ a sp:Bind ; - sp:expression [ a sp:mul ; - sp:arg1 [ sp:varName "CostPerHourTIME55462379457716_value"^^xsd:string ] ; - sp:arg2 [ sp:varName "NumberOfHoursTIME55462378908633_value"^^xsd:string ] - ] ; - sp:variable [ sp:varName "result"^^xsd:string ] - ] ) - ] ; - price:hasVariable :CostPerHourTIME55462379457716 , :NumberOfHoursTIME55462378908633 . +:QuantitativeValue_26 + a gr:QuantitativeValue ; + gr:hasUnitOfMeasurement "USD" ; + gr:hasValue "0.12"^^xsd:double . -:QuantitativeValue_TIME55462383048136 - a cloud:MemorySize , gr:QuantitativeValue ; - gr:hasUnitOfMeasurement "B86" ; - gr:hasValue "3.75"^^xsd:double . - -:QuantitativeValue_TIME55462464764405 - a gr:QuantitativeValue ; - gr:hasValue "0.09"^^xsd:double . - -:QuantitativeValue_TIME55462464892695 - a gr:QuantitativeValue ; - gr:hasValue "0.05"^^xsd:double . - -:gboutTIME55462380306143 +:NumberOfHoursTIME22994754659508 a price:Usage ; - rdfs:comment "Total GB of data that you expect to send out from Amazon EC2 to the internet." ; - rdfs:label "gboutTIME55462380306143" . - -:QuantitativeValue_TIME55462382304052 - a cloud:CPUCores , gr:QuantitativeValue ; - gr:hasValue "1.0"^^xsd:double . - -:price350TIME55462380300156 - a price:Constant ; - rdfs:label "price350TIME55462380300156" ; - price:hasValue :QuantitativeValue_TIME55462464892695 . - -:QuantitativeValue_TIME55462383137512 - a cloud:DataINExternal , gr:QuantitativeValue ; - gr:hasValue 1.7976931348623157E308 . - -:QuantitativeValue_TIME55462464827695 - a gr:QuantitativeValue ; - gr:hasValue "0.07"^^xsd:double . - -:UpFrontPC-PPm3.medium-RI-1YEAR-LIGHT_TIME55462434812877 - a price:PriceComponent ; - rdfs:label "UpFrontPC-PPm3.medium-RI-1YEAR-LIGHT" ; - price:hasPrice :PriceSpecification_TIME55462434857351 . - -:CostPerHourTIME55462379457716 - a price:Constant ; - rdfs:label "CostPerHourTIME55462379457716" ; - price:hasValue :QuantitativeValue_TIME55462434728633 . - -:QuantitativeValue_TIME55462464677167 - a gr:QuantitativeValue ; - gr:hasValue "0.12"^^xsd:double . - -:m3.medium-RI-1YEAR-LIGHT_Offering_TIME55462380510552 - a core:ServiceOffering ; - rdfs:label "m3.medium-RI-1YEAR-LIGHT_Offering" ; - core:includes :m3.medium-RI-1YEAR-LIGHT_TIME55462381636514 ; - price:hasPricePlan :PricePlan-m3.medium-RI-1YEAR-LIGHT_TIME55462383430014 . - -:QualitativeValue_TIME55462383258960 - a cloud:StorageType , gr:QualitativeValue ; - rdfs:label "SSD" . + rdfs:comment "The number of hours that you'll be using the instance." ; + rdfs:label "NumberOfHoursTIME22994754659508" . -:QuantitativeValue_TIME55462383203368 - a cloud:DataOUTExternal , gr:QuantitativeValue ; +:QuantitativeValue_13 + a cloudtaxonomy:DataOUTExternal , gr:QuantitativeValue ; gr:hasMaxValue "358400.0"^^xsd:double ; gr:hasUnitOfMeasurement "E34" . -:price100TIME55462380295880 - a price:Constant ; - rdfs:label "price100TIME55462380295880" ; - price:hasValue :QuantitativeValue_TIME55462464827695 . - -:QuantitativeValue_TIME55462383170440 - a cloud:DataINInternal , gr:QuantitativeValue ; - gr:hasValue 1.7976931348623157E308 . +:QualitativeValue_6 a cloudtaxonomy:StorageType , gr:QuantitativeValue ; + rdfs:label "SSD" . -:QualitativeValue_TIME55462383327382 - a cloud:Monitoring , gr:QualitativeValue ; - rdfs:comment "As métricas de monitoramento básico (com frequência de cinco minutos) para instâncias do Amazon EC2 são gratuitas, assim como todas as métricas para os volumes do Amazon EBS, Elastic Load Balancers e as instâncias do banco de dados do Amazon RDS." ; - rdfs:label "Basic" . +:QuantitativeValue_3 a cloudtaxonomy:CPUSpeed , gr:QuantitativeValue ; + gr:hasUnitOfMeasurement "ECU" ; + gr:hasValue "3.0"^^xsd:double . -:NumberOfHoursTIME55462378908633 - a price:Usage ; - rdfs:comment "The number of hours that you'll be using the instance." ; - rdfs:label "NumberOfHoursTIME55462378908633" . +:QualitativeValue_1 a cloudtaxonomy:Arch64bit , gr:QuantitativeValue ; + rdfs:label "64Bits" . -:QuantitativeValue_TIME55462383087479 - a cloud:DiskSize , gr:QuantitativeValue ; - gr:hasUnitOfMeasurement "B86" ; - gr:hasValue "4.0"^^xsd:double . +:price40TIME22994766404498 + a price:Constant ; + rdfs:label "price40TIME22994766404498" ; + price:hasValue :QuantitativeValue_28 . -:PriceSpecification_TIME55462434857351 - a gr:PriceSpecification ; - gr:hasCurrencyValue "110.0"^^xsd:double ; - gr:valueAddedTaxIncluded false . +:QualitativeValue_9 a cloudtaxonomy:Unix , gr:QuantitativeValue ; + rdfs:label "Linux" . diff --git a/SPIN_API/DebuggingFiles/amazonSI.ttl b/SPIN_API/DebuggingFiles/amazonSI.ttl index af71120..89873d7 100644 --- a/SPIN_API/DebuggingFiles/amazonSI.ttl +++ b/SPIN_API/DebuggingFiles/amazonSI.ttl @@ -1,136 +1,139 @@ -@prefix dc: . @prefix legal: . +@prefix dc: . @prefix : . @prefix foaf: . @prefix sp: . @prefix vann: . +@prefix cloudtaxonomy: . +@prefix org: . @prefix rdfs: . +@prefix pf: . @prefix price: . @prefix spl: . +@prefix usdk: . @prefix xsd: . @prefix owl: . -@prefix rdf: . @prefix spin: . -@prefix cloud: . +@prefix rdf: . @prefix core: . @prefix gr: . @prefix skos: . -:NumberOfHoursTIME166247485531001 - a price:Usage ; - rdfs:comment "The number of hours that you'll be using the instance." ; - rdfs:label "NumberOfHoursTIME166247485531001" . +:QuantitativeValue_4 a cloudtaxonomy:MemorySize , gr:QuantitativeValue ; + gr:hasUnitOfMeasurement "E34" ; + gr:hasValue "15.0"^^xsd:double . -:QuantitativeValue_TIME166247495803627 - a cloud:DiskSize , gr:QuantitativeValue ; - gr:hasUnitOfMeasurement "B86" ; - gr:hasValue "80.0"^^xsd:double . +:QuantitativeValue_24 + a gr:QuantitativeValue ; + gr:hasUnitOfMeasurement "USD" ; + gr:hasValue "0.12"^^xsd:double . -:price40TIME166247486911404 +:price350TIME23031353542783 a price:Constant ; - rdfs:label "price40TIME166247486911404" ; - price:hasValue :QuantitativeValue_TIME166247891100422 . - -:QuantitativeValue_TIME166247495984943 - a cloud:DataINExternal , gr:QuantitativeValue ; - gr:hasValue 1.7976931348623157E308 . + rdfs:label "price350TIME23031353542783" ; + price:hasValue :QuantitativeValue_30 . -:CostPerHourTIME166247486838706 - a price:Constant ; - rdfs:label "CostPerHourTIME166247486838706" ; - price:hasValue :QuantitativeValue_TIME166247802562639 . +:DataCostPC-PPm3.xlarge-OD + a price:PriceComponent ; + rdfs:label "DataCostPC-PPm3.xlarge-OD" ; + price:hasPriceFunction :m3.xlarge-SI-data_transferrals_cost . -:QualitativeValue_TIME166247496473301 - a cloud:Arch64bit , gr:QualitativeValue ; - rdfs:label "64Bits" . +:QuantitativeValue_11 + a cloudtaxonomy:DataINExternal , gr:QuantitativeValue ; + gr:hasValue 1.7976931348623157E308 . -:price350TIME166247486933213 +:price10TIME23031353161760 a price:Constant ; - rdfs:label "price350TIME166247486933213" ; - price:hasValue :QuantitativeValue_TIME166247891253515 . + rdfs:label "price10TIME23031353161760" ; + price:hasValue :QuantitativeValue_24 . -:HourlyPC-PPm3.xlarge-SI_TIME166247497659558 - a price:PriceComponent ; - rdfs:label "HourlyPC-PPm3.xlarge-SI" ; - price:hasPriceFunction :m3.xlarge-SI-hourly_cost_TIME166247517222961 . - -:QuantitativeValue_TIME166247495644974 - a cloud:MemorySize , gr:QuantitativeValue ; - gr:hasUnitOfMeasurement "B86" ; - gr:hasValue "15.0"^^xsd:double . +:QualitativeValue_6 a cloudtaxonomy:StorageType , gr:QuantitativeValue ; + rdfs:label "SSD" . -:QuantitativeValue_TIME166247891179534 - a gr:QuantitativeValue ; - gr:hasUnitOfMeasurement "USD" ; - gr:hasValue "0.07"^^xsd:double . +:QuantitativeValue_2 a cloudtaxonomy:CPUCores , gr:QuantitativeValue ; + gr:hasValue "4.0"^^xsd:double . -:QuantitativeValue_TIME166247496247511 - a cloud:DataOUTExternal , gr:QuantitativeValue ; - gr:hasMaxValue "358400.0"^^xsd:double ; - gr:hasUnitOfMeasurement "E34" . +:price100TIME23031353377288 + a price:Constant ; + rdfs:label "price100TIME23031353377288" ; + price:hasValue :QuantitativeValue_28 . -:QuantitativeValue_TIME166247891253515 +:QuantitativeValue_30 a gr:QuantitativeValue ; gr:hasUnitOfMeasurement "USD" ; gr:hasValue "0.05"^^xsd:double . -:price10TIME166247486898575 - a price:Constant ; - rdfs:label "price10TIME166247486898575" ; - price:hasValue :QuantitativeValue_TIME166247890966145 . +:QualitativeValue_1 a cloudtaxonomy:Arch64bit , gr:QuantitativeValue ; + rdfs:label "64Bits" . -:QualitativeValue_TIME166247497036496 - a cloud:Unix , gr:QualitativeValue ; +:QualitativeValue_9 a cloudtaxonomy:Unix , gr:QuantitativeValue ; rdfs:label "Linux" . -:QualitativeValue_TIME166247496771790 - a cloud:StorageType , gr:QualitativeValue ; - rdfs:label "SSD" . +:m3.xlarge-SI-generalCurrentGen + a core:Service ; + rdfs:label "m3.xlarge-SI-generalCurrentGen" ; + gr:qualitativeProductOrServiceProperty + :QualitativeValue_1 , :QualitativeValue_9 , :QualitativeValue_6 , :QualitativeValue_7 ; + gr:quantitativeProductOrServiceProperty + :QuantitativeValue_3 , :QuantitativeValue_13 , :QuantitativeValue_12 , :QuantitativeValue_2 , :QuantitativeValue_5 , :QuantitativeValue_11 , :QuantitativeValue_4 . -:QuantitativeValue_TIME166247495437144 - a cloud:CPUSpeed , gr:QuantitativeValue ; - gr:hasUnitOfMeasurement "ECU" ; - gr:hasValue "13.0"^^xsd:double . +:QuantitativeValue_5 a cloudtaxonomy:DiskSize , gr:QuantitativeValue ; + gr:hasUnitOfMeasurement "E34" ; + gr:hasValue "80.0"^^xsd:double . + +:QuantitativeValue_12 + a cloudtaxonomy:DataINInternal , gr:QuantitativeValue ; + gr:hasValue 1.7976931348623157E308 . + +:QuantitativeValue_20 + a gr:QuantitativeValue ; + gr:hasUnitOfMeasurement "USD" ; + gr:hasValue "0.0575"^^xsd:double . + +:QuantitativeValue_28 + a gr:QuantitativeValue ; + gr:hasUnitOfMeasurement "USD" ; + gr:hasValue "0.07"^^xsd:double . -:m3.xlarge-SI-data_transferrals_cost_TIME166247822846605 +:m3.xlarge-SI-data_transferrals_cost a spin:Function ; rdfs:label "m3.xlarge-SI-data_transferrals_cost" ; spin:body [ a sp:Select ; sp:resultVariables ( [ sp:varName "result"^^xsd:string ] ) ; - sp:where ( [ sp:object [ sp:varName "gboutTIME166247486947325_instance"^^xsd:string ] ; + sp:where ( [ sp:object [ sp:varName "gboutTIME23031353646270_instance"^^xsd:string ] ; sp:predicate price:hasValue ; - sp:subject :gboutTIME166247486947325 - ] [ sp:object [ sp:varName "gboutTIME166247486947325_value"^^xsd:string ] ; + sp:subject :gboutTIME23031353646270 + ] [ sp:object [ sp:varName "gboutTIME23031353646270_value"^^xsd:string ] ; sp:predicate gr:hasValue ; - sp:subject [ sp:varName "gboutTIME166247486947325_instance"^^xsd:string ] - ] [ sp:object [ sp:varName "price10TIME166247486898575_instance"^^xsd:string ] ; + sp:subject [ sp:varName "gboutTIME23031353646270_instance"^^xsd:string ] + ] [ sp:object [ sp:varName "price10TIME23031353161760_instance"^^xsd:string ] ; sp:predicate price:hasValue ; - sp:subject :price10TIME166247486898575 - ] [ sp:object [ sp:varName "price10TIME166247486898575_value"^^xsd:string ] ; + sp:subject :price10TIME23031353161760 + ] [ sp:object [ sp:varName "price10TIME23031353161760_value"^^xsd:string ] ; sp:predicate gr:hasValue ; - sp:subject [ sp:varName "price10TIME166247486898575_instance"^^xsd:string ] - ] [ sp:object [ sp:varName "price40TIME166247486911404_instance"^^xsd:string ] ; + sp:subject [ sp:varName "price10TIME23031353161760_instance"^^xsd:string ] + ] [ sp:object [ sp:varName "price40TIME23031353266531_instance"^^xsd:string ] ; sp:predicate price:hasValue ; - sp:subject :price40TIME166247486911404 - ] [ sp:object [ sp:varName "price40TIME166247486911404_value"^^xsd:string ] ; + sp:subject :price40TIME23031353266531 + ] [ sp:object [ sp:varName "price40TIME23031353266531_value"^^xsd:string ] ; sp:predicate gr:hasValue ; - sp:subject [ sp:varName "price40TIME166247486911404_instance"^^xsd:string ] - ] [ sp:object [ sp:varName "price100TIME166247486922095_instance"^^xsd:string ] ; + sp:subject [ sp:varName "price40TIME23031353266531_instance"^^xsd:string ] + ] [ sp:object [ sp:varName "price100TIME23031353377288_instance"^^xsd:string ] ; sp:predicate price:hasValue ; - sp:subject :price100TIME166247486922095 - ] [ sp:object [ sp:varName "price100TIME166247486922095_value"^^xsd:string ] ; + sp:subject :price100TIME23031353377288 + ] [ sp:object [ sp:varName "price100TIME23031353377288_value"^^xsd:string ] ; sp:predicate gr:hasValue ; - sp:subject [ sp:varName "price100TIME166247486922095_instance"^^xsd:string ] - ] [ sp:object [ sp:varName "price350TIME166247486933213_instance"^^xsd:string ] ; + sp:subject [ sp:varName "price100TIME23031353377288_instance"^^xsd:string ] + ] [ sp:object [ sp:varName "price350TIME23031353542783_instance"^^xsd:string ] ; sp:predicate price:hasValue ; - sp:subject :price350TIME166247486933213 - ] [ sp:object [ sp:varName "price350TIME166247486933213_value"^^xsd:string ] ; + sp:subject :price350TIME23031353542783 + ] [ sp:object [ sp:varName "price350TIME23031353542783_value"^^xsd:string ] ; sp:predicate gr:hasValue ; - sp:subject [ sp:varName "price350TIME166247486933213_instance"^^xsd:string ] + sp:subject [ sp:varName "price350TIME23031353542783_instance"^^xsd:string ] ] [ a sp:Bind ; sp:expression [ a sp:if ; sp:arg1 [ a sp:le ; - sp:arg1 [ sp:varName "gboutTIME166247486947325_value"^^xsd:string ] ; + sp:arg1 [ sp:varName "gboutTIME23031353646270_value"^^xsd:string ] ; sp:arg2 1 ] ; sp:arg2 [ a sp:mul ; @@ -144,11 +147,11 @@ sp:expression [ a sp:if ; sp:arg1 [ a sp:and ; sp:arg1 [ a sp:gt ; - sp:arg1 [ sp:varName "gboutTIME166247486947325_value"^^xsd:string ] ; + sp:arg1 [ sp:varName "gboutTIME23031353646270_value"^^xsd:string ] ; sp:arg2 1 ] ; sp:arg2 [ a sp:le ; - sp:arg1 [ sp:varName "gboutTIME166247486947325_value"^^xsd:string ] ; + sp:arg1 [ sp:varName "gboutTIME23031353646270_value"^^xsd:string ] ; sp:arg2 [ a sp:mul ; sp:arg1 10 ; sp:arg2 1024 @@ -162,13 +165,13 @@ ] ; sp:arg2 [ a sp:mul ; sp:arg1 [ a sp:add ; - sp:arg1 [ sp:varName "gboutTIME166247486947325_value"^^xsd:string ] ; + sp:arg1 [ sp:varName "gboutTIME23031353646270_value"^^xsd:string ] ; sp:arg2 [ a sp:mul ; sp:arg1 -1 ; sp:arg2 1 ] ] ; - sp:arg2 [ sp:varName "price10TIME166247486898575_value"^^xsd:string ] + sp:arg2 [ sp:varName "price10TIME23031353161760_value"^^xsd:string ] ] ] ; sp:arg3 0 @@ -178,14 +181,14 @@ sp:expression [ a sp:if ; sp:arg1 [ a sp:and ; sp:arg1 [ a sp:gt ; - sp:arg1 [ sp:varName "gboutTIME166247486947325_value"^^xsd:string ] ; + sp:arg1 [ sp:varName "gboutTIME23031353646270_value"^^xsd:string ] ; sp:arg2 [ a sp:mul ; sp:arg1 10 ; sp:arg2 1024 ] ] ; sp:arg2 [ a sp:le ; - sp:arg1 [ sp:varName "gboutTIME166247486947325_value"^^xsd:string ] ; + sp:arg1 [ sp:varName "gboutTIME23031353646270_value"^^xsd:string ] ; sp:arg2 [ a sp:mul ; sp:arg1 40 ; sp:arg2 1024 @@ -203,13 +206,13 @@ sp:arg1 10 ; sp:arg2 1024 ] ; - sp:arg2 [ sp:varName "price10TIME166247486898575_value"^^xsd:string ] + sp:arg2 [ sp:varName "price10TIME23031353161760_value"^^xsd:string ] ] ] ; sp:arg2 [ a sp:mul ; sp:arg1 [ a sp:add ; sp:arg1 [ a sp:add ; - sp:arg1 [ sp:varName "gboutTIME166247486947325_value"^^xsd:string ] ; + sp:arg1 [ sp:varName "gboutTIME23031353646270_value"^^xsd:string ] ; sp:arg2 [ a sp:mul ; sp:arg1 -1 ; sp:arg2 [ a sp:mul ; @@ -223,7 +226,7 @@ sp:arg2 1 ] ] ; - sp:arg2 [ sp:varName "price40TIME166247486911404_value"^^xsd:string ] + sp:arg2 [ sp:varName "price40TIME23031353266531_value"^^xsd:string ] ] ] ; sp:arg3 0 @@ -233,14 +236,14 @@ sp:expression [ a sp:if ; sp:arg1 [ a sp:and ; sp:arg1 [ a sp:ge ; - sp:arg1 [ sp:varName "gboutTIME166247486947325_value"^^xsd:string ] ; + sp:arg1 [ sp:varName "gboutTIME23031353646270_value"^^xsd:string ] ; sp:arg2 [ a sp:mul ; sp:arg1 40 ; sp:arg2 1024 ] ] ; sp:arg2 [ a sp:lt ; - sp:arg1 [ sp:varName "gboutTIME166247486947325_value"^^xsd:string ] ; + sp:arg1 [ sp:varName "gboutTIME23031353646270_value"^^xsd:string ] ; sp:arg2 [ a sp:mul ; sp:arg1 100 ; sp:arg2 1024 @@ -259,7 +262,7 @@ sp:arg1 10 ; sp:arg2 1024 ] ; - sp:arg2 [ sp:varName "price10TIME166247486898575_value"^^xsd:string ] + sp:arg2 [ sp:varName "price10TIME23031353161760_value"^^xsd:string ] ] ] ; sp:arg2 [ a sp:mul ; @@ -267,14 +270,14 @@ sp:arg1 40 ; sp:arg2 1024 ] ; - sp:arg2 [ sp:varName "price40TIME166247486911404_value"^^xsd:string ] + sp:arg2 [ sp:varName "price40TIME23031353266531_value"^^xsd:string ] ] ] ; sp:arg2 [ a sp:mul ; sp:arg1 [ a sp:add ; sp:arg1 [ a sp:add ; sp:arg1 [ a sp:add ; - sp:arg1 [ sp:varName "gboutTIME166247486947325_value"^^xsd:string ] ; + sp:arg1 [ sp:varName "gboutTIME23031353646270_value"^^xsd:string ] ; sp:arg2 [ a sp:mul ; sp:arg1 -1 ; sp:arg2 1 @@ -296,7 +299,7 @@ ] ] ] ; - sp:arg2 [ sp:varName "price100TIME166247486922095_value"^^xsd:string ] + sp:arg2 [ sp:varName "price100TIME23031353377288_value"^^xsd:string ] ] ] ; sp:arg3 0 @@ -306,14 +309,14 @@ sp:expression [ a sp:if ; sp:arg1 [ a sp:and ; sp:arg1 [ a sp:ge ; - sp:arg1 [ sp:varName "gboutTIME166247486947325_value"^^xsd:string ] ; + sp:arg1 [ sp:varName "gboutTIME23031353646270_value"^^xsd:string ] ; sp:arg2 [ a sp:mul ; sp:arg1 100 ; sp:arg2 1024 ] ] ; sp:arg2 [ a sp:lt ; - sp:arg1 [ sp:varName "gboutTIME166247486947325_value"^^xsd:string ] ; + sp:arg1 [ sp:varName "gboutTIME23031353646270_value"^^xsd:string ] ; sp:arg2 [ a sp:mul ; sp:arg1 350 ; sp:arg2 1024 @@ -333,7 +336,7 @@ sp:arg1 10 ; sp:arg2 1024 ] ; - sp:arg2 [ sp:varName "price10TIME166247486898575_value"^^xsd:string ] + sp:arg2 [ sp:varName "price10TIME23031353161760_value"^^xsd:string ] ] ] ; sp:arg2 [ a sp:mul ; @@ -341,7 +344,7 @@ sp:arg1 40 ; sp:arg2 1024 ] ; - sp:arg2 [ sp:varName "price40TIME166247486911404_value"^^xsd:string ] + sp:arg2 [ sp:varName "price40TIME23031353266531_value"^^xsd:string ] ] ] ; sp:arg2 [ a sp:mul ; @@ -349,7 +352,7 @@ sp:arg1 100 ; sp:arg2 1024 ] ; - sp:arg2 [ sp:varName "price100TIME166247486922095_value"^^xsd:string ] + sp:arg2 [ sp:varName "price100TIME23031353377288_value"^^xsd:string ] ] ] ; sp:arg2 [ a sp:mul ; @@ -357,7 +360,7 @@ sp:arg1 [ a sp:add ; sp:arg1 [ a sp:add ; sp:arg1 [ a sp:add ; - sp:arg1 [ sp:varName "gboutTIME166247486947325_value"^^xsd:string ] ; + sp:arg1 [ sp:varName "gboutTIME23031353646270_value"^^xsd:string ] ; sp:arg2 [ a sp:mul ; sp:arg1 -1 ; sp:arg2 1 @@ -387,7 +390,7 @@ ] ] ] ; - sp:arg2 [ sp:varName "price350TIME166247486933213_value"^^xsd:string ] + sp:arg2 [ sp:varName "price350TIME23031353542783_value"^^xsd:string ] ] ] ; sp:arg3 0 @@ -410,93 +413,85 @@ sp:variable [ sp:varName "result"^^xsd:string ] ] ) ] ; - price:hasVariable :price350TIME166247486933213 , :price100TIME166247486922095 , :price40TIME166247486911404 , :price10TIME166247486898575 , :gboutTIME166247486947325 . - -:m3.xlarge-SI_Offering_TIME166247487442953 - a core:ServiceOffering ; - rdfs:label "m3.xlarge-SI_Offering" ; - core:includes :m3.xlarge-SI-generalCurrentGen_TIME166247491165080 ; - price:hasPricePlan :PricePlan-m3.xlarge-SI_TIME166247497318306 . + price:hasVariable :price350TIME23031353542783 , :price100TIME23031353377288 , :price40TIME23031353266531 , :price10TIME23031353161760 , :gboutTIME23031353646270 . -:price100TIME166247486922095 +:CostPerHourTIME23031352885508 a price:Constant ; - rdfs:label "price100TIME166247486922095" ; - price:hasValue :QuantitativeValue_TIME166247891179534 . + rdfs:label "CostPerHourTIME23031352885508" ; + price:hasValue :QuantitativeValue_20 . -:QualitativeValue_TIME166247496883830 - a cloud:Monitoring , gr:QualitativeValue ; +:QualitativeValue_7 a cloudtaxonomy:Monitoring , gr:QuantitativeValue ; rdfs:comment "As métricas de monitoramento básico (com frequência de cinco minutos) para instâncias do Amazon EC2 são gratuitas, assim como todas as métricas para os volumes do Amazon EBS, Elastic Load Balancers e as instâncias do banco de dados do Amazon RDS." ; rdfs:label "Basic" . -:QuantitativeValue_TIME166247802562639 - a gr:QuantitativeValue ; - gr:hasUnitOfMeasurement "USD" ; - gr:hasValue "0.0575"^^xsd:double . - -:QuantitativeValue_TIME166247890966145 - a gr:QuantitativeValue ; - gr:hasUnitOfMeasurement "USD" ; - gr:hasValue "0.12"^^xsd:double . - -:m3.xlarge-SI-generalCurrentGen_TIME166247491165080 - a core:Service ; - rdfs:label "m3.xlarge-SI-generalCurrentGen" ; - gr:qualitativeProductOrServiceProperty - :QualitativeValue_TIME166247497036496 , :QualitativeValue_TIME166247496883830 , :QualitativeValue_TIME166247496771790 , :QualitativeValue_TIME166247496473301 ; - gr:quantitativeProductOrServiceProperty - :QuantitativeValue_TIME166247495803627 , :QuantitativeValue_TIME166247495437144 , :QuantitativeValue_TIME166247495984943 , :QuantitativeValue_TIME166247496247511 , :QuantitativeValue_TIME166247496123069 , :QuantitativeValue_TIME166247492938906 , :QuantitativeValue_TIME166247495644974 . - -:QuantitativeValue_TIME166247492938906 - a cloud:CPUCores , gr:QuantitativeValue ; - gr:hasValue "4.0"^^xsd:double . - -:DataCostPC-PPm3.xlarge-OD_TIME166247802793134 - a price:PriceComponent ; - rdfs:label "DataCostPC-PPm3.xlarge-OD" ; - price:hasPriceFunction :m3.xlarge-SI-data_transferrals_cost_TIME166247822846605 . - -:PricePlan-m3.xlarge-SI_TIME166247497318306 - a price:PricePlan ; - rdfs:label "PricePlan-m3.xlarge-SI" ; - price:hasPriceComponent :DataCostPC-PPm3.xlarge-OD_TIME166247802793134 , :HourlyPC-PPm3.xlarge-SI_TIME166247497659558 . +:QuantitativeValue_3 a cloudtaxonomy:CPUSpeed , gr:QuantitativeValue ; + gr:hasUnitOfMeasurement "ECU" ; + gr:hasValue "13.0"^^xsd:double . -:QuantitativeValue_TIME166247891100422 - a gr:QuantitativeValue ; - gr:hasUnitOfMeasurement "USD" ; - gr:hasValue "0.09"^^xsd:double . +:price40TIME23031353266531 + a price:Constant ; + rdfs:label "price40TIME23031353266531" ; + price:hasValue :QuantitativeValue_26 . -:gboutTIME166247486947325 +:gboutTIME23031353646270 a price:Usage ; rdfs:comment "Total GB of data that you expect to send out from Amazon EC2 to the internet." ; - rdfs:label "gboutTIME166247486947325" . + rdfs:label "gboutTIME23031353646270" . -:m3.xlarge-SI-hourly_cost_TIME166247517222961 +:m3.xlarge-SI-hourly_cost a spin:Function ; rdfs:label "m3.xlarge-SI-hourly_cost" ; spin:body [ a sp:Select ; sp:resultVariables ( [ sp:varName "result"^^xsd:string ] ) ; - sp:where ( [ sp:object [ sp:varName "CostPerHourTIME166247486838706_instance"^^xsd:string ] ; + sp:where ( [ sp:object [ sp:varName "CostPerHourTIME23031352885508_instance"^^xsd:string ] ; sp:predicate price:hasValue ; - sp:subject :CostPerHourTIME166247486838706 - ] [ sp:object [ sp:varName "CostPerHourTIME166247486838706_value"^^xsd:string ] ; + sp:subject :CostPerHourTIME23031352885508 + ] [ sp:object [ sp:varName "CostPerHourTIME23031352885508_value"^^xsd:string ] ; sp:predicate gr:hasValue ; - sp:subject [ sp:varName "CostPerHourTIME166247486838706_instance"^^xsd:string ] - ] [ sp:object [ sp:varName "NumberOfHoursTIME166247485531001_instance"^^xsd:string ] ; + sp:subject [ sp:varName "CostPerHourTIME23031352885508_instance"^^xsd:string ] + ] [ sp:object [ sp:varName "NumberOfHoursTIME23031350930362_instance"^^xsd:string ] ; sp:predicate price:hasValue ; - sp:subject :NumberOfHoursTIME166247485531001 - ] [ sp:object [ sp:varName "NumberOfHoursTIME166247485531001_value"^^xsd:string ] ; + sp:subject :NumberOfHoursTIME23031350930362 + ] [ sp:object [ sp:varName "NumberOfHoursTIME23031350930362_value"^^xsd:string ] ; sp:predicate gr:hasValue ; - sp:subject [ sp:varName "NumberOfHoursTIME166247485531001_instance"^^xsd:string ] + sp:subject [ sp:varName "NumberOfHoursTIME23031350930362_instance"^^xsd:string ] ] [ a sp:Bind ; sp:expression [ a sp:mul ; - sp:arg1 [ sp:varName "CostPerHourTIME166247486838706_value"^^xsd:string ] ; - sp:arg2 [ sp:varName "NumberOfHoursTIME166247485531001_value"^^xsd:string ] + sp:arg1 [ sp:varName "CostPerHourTIME23031352885508_value"^^xsd:string ] ; + sp:arg2 [ sp:varName "NumberOfHoursTIME23031350930362_value"^^xsd:string ] ] ; sp:variable [ sp:varName "result"^^xsd:string ] ] ) ] ; - price:hasVariable :CostPerHourTIME166247486838706 , :NumberOfHoursTIME166247485531001 . + price:hasVariable :CostPerHourTIME23031352885508 , :NumberOfHoursTIME23031350930362 . -:QuantitativeValue_TIME166247496123069 - a cloud:DataINInternal , gr:QuantitativeValue ; - gr:hasValue 1.7976931348623157E308 . +:QuantitativeValue_26 + a gr:QuantitativeValue ; + gr:hasUnitOfMeasurement "USD" ; + gr:hasValue "0.09"^^xsd:double . + +:NumberOfHoursTIME23031350930362 + a price:Usage ; + rdfs:comment "The number of hours that you'll be using the instance." ; + rdfs:label "NumberOfHoursTIME23031350930362" . + +:HourlyPC-PPm3.xlarge-SI + a price:PriceComponent ; + rdfs:label "HourlyPC-PPm3.xlarge-SI" ; + price:hasPriceFunction :m3.xlarge-SI-hourly_cost . + +:QuantitativeValue_13 + a cloudtaxonomy:DataOUTExternal , gr:QuantitativeValue ; + gr:hasMaxValue "358400.0"^^xsd:double ; + gr:hasUnitOfMeasurement "E34" . + +:PricePlan-m3.xlarge-SI + a price:PricePlan ; + rdfs:label "PricePlan-m3.xlarge-SI" ; + price:hasPriceComponent :DataCostPC-PPm3.xlarge-OD , :HourlyPC-PPm3.xlarge-SI . + +:m3.xlarge-SI_Offering + a core:ServiceOffering ; + rdfs:label "m3.xlarge-SI Offering" ; + core:includes :m3.xlarge-SI-generalCurrentGen ; + price:hasPricePlan :PricePlan-m3.xlarge-SI . diff --git a/SPIN_API/DebuggingFiles/arsys.ttl b/SPIN_API/DebuggingFiles/arsys.ttl index d37219f..32bc5be 100644 --- a/SPIN_API/DebuggingFiles/arsys.ttl +++ b/SPIN_API/DebuggingFiles/arsys.ttl @@ -1,127 +1,85 @@ -@prefix dc: . @prefix legal: . +@prefix dc: . @prefix : . @prefix foaf: . @prefix sp: . @prefix vann: . +@prefix cloudtaxonomy: . +@prefix org: . @prefix rdfs: . +@prefix pf: . @prefix price: . @prefix spl: . +@prefix usdk: . @prefix xsd: . @prefix owl: . -@prefix rdf: . @prefix spin: . -@prefix cloud: . +@prefix rdf: . @prefix core: . @prefix gr: . @prefix skos: . -:PriceComponent_TIME128641141747550 - a price:PriceComponent ; - rdfs:comment "PriceComponent2_b of the PricePlan2" ; - price:hasPriceFunction :PriceFunction_TIME128641146121408 . +:QuantitativeValue_41 + a gr:QuantitativeValue ; + gr:hasUnitOfMeasurement "EUR" ; + gr:hasValue "125.0"^^xsd:double . :windowswebprice a price:Constant ; rdfs:comment "price of the Windows Server R2 2008 Web Ed. OS per month" ; rdfs:label "windowswebprice" ; - price:hasValue :QuantitativeValue_TIME128641158626331 . + price:hasValue :QuantitativeValue_56 . -:PriceComponent_TIME128641153366412 - a price:PriceComponent ; - rdfs:comment "PriceComponen3_b of the PricePlan3" ; - price:hasPriceFunction :PriceFunction_TIME128641157195462 . - -:PriceComponent_TIME128640735829756 - a price:PriceComponent ; - rdfs:comment "PriceComponent1 of the PricePlan1" ; - price:hasPriceFunction :PriceFunction_TIME128640744075428 . - -:PricePlan3_TIME128641147822115 - a price:PricePlan ; - rdfs:comment "PricePlan of the Service3" ; - rdfs:label "PricePlan3" ; - price:hasPriceComponent :PriceComponent_TIME128641153366412 , :PriceComponent_TIME128641147852050 . - -:QuantitativeValue_TIME128641095316148 - a gr:QuantitativeValue ; - gr:hasUnitOfMeasurement "EUR" ; - gr:hasValue "125.0"^^xsd:double . +:Windows2008WEBServerS2 + a core:ServiceOffering ; + rdfs:comment "Offering of the Service 3 (ServerS2)" ; + rdfs:label "Windows2008WEBServerS2" ; + core:includes :ServerS222 ; + price:hasPricePlan :PricePlan3 . -:PriceFunction_TIME128641157195462 - a spin:Function ; - rdfs:comment "PriceFunction of the PriceComponent3_b" ; +:Function_31 a spin:Function ; + rdfs:comment "PriceFunction of the PriceComponent1" ; + rdfs:label "Function 31" ; spin:body [ a sp:Select ; sp:resultVariables ( [ sp:varName "result"^^xsd:string ] ) ; - sp:where ( [ sp:object [ sp:varName "windowswebprice_instance"^^xsd:string ] ; + sp:where ( [ sp:object [ sp:varName "standards2_instance"^^xsd:string ] ; sp:predicate price:hasValue ; - sp:subject :windowswebprice - ] [ sp:object [ sp:varName "windowswebprice_value"^^xsd:string ] ; + sp:subject :standards2 + ] [ sp:object [ sp:varName "standards2_value"^^xsd:string ] ; sp:predicate gr:hasValue ; - sp:subject [ sp:varName "windowswebprice_instance"^^xsd:string ] - ] [ sp:object [ sp:varName "windowswebs2monthsb_instance"^^xsd:string ] ; + sp:subject [ sp:varName "standards2_instance"^^xsd:string ] + ] [ sp:object [ sp:varName "standards2months_instance"^^xsd:string ] ; sp:predicate price:hasValue ; - sp:subject :windowswebs2monthsb - ] [ sp:object [ sp:varName "windowswebs2monthsb_value"^^xsd:string ] ; + sp:subject :standards2months + ] [ sp:object [ sp:varName "standards2months_value"^^xsd:string ] ; sp:predicate gr:hasValue ; - sp:subject [ sp:varName "windowswebs2monthsb_instance"^^xsd:string ] + sp:subject [ sp:varName "standards2months_instance"^^xsd:string ] ] [ a sp:Bind ; sp:expression [ a sp:mul ; - sp:arg1 [ sp:varName "windowswebprice_value"^^xsd:string ] ; - sp:arg2 [ sp:varName "windowswebs2monthsb_value"^^xsd:string ] + sp:arg1 [ sp:varName "standards2_value"^^xsd:string ] ; + sp:arg2 [ sp:varName "standards2months_value"^^xsd:string ] ] ; sp:variable [ sp:varName "result"^^xsd:string ] ] ) ] ; - price:hasVariable :windowswebprice , :windowswebs2monthsb . - -:REDHATServerS2_TIME128641132334005 - a core:ServiceOffering ; - rdfs:comment "Offering of the Service 2 (ServerS2)" ; - rdfs:label "REDHATServerS2" ; - core:includes :ServerS2_TIME128641132406703 ; - price:hasPricePlan :PricePlan2_TIME128641132468710 . + price:hasVariable :standards2 , :standards2months . -:QuantitativeValue_TIME128641141682549 - a gr:QuantitativeValue ; - gr:hasUnitOfMeasurement "EUR" ; - gr:hasValue "125.0"^^xsd:double . +:PricePlan3 a price:PricePlan ; + rdfs:comment "PricePlan of the Service3" ; + rdfs:label "PricePlan3" ; + price:hasPriceComponent :ServiceOffering_48 , :ServiceOffering_47 . :standards2 a price:Constant ; rdfs:comment "price of the VM per month" ; rdfs:label "standards2" ; - price:hasValue :QuantitativeValue_TIME128641095316148 . + price:hasValue :QuantitativeValue_34 . :standards2months a price:Usage ; rdfs:comment "Number of months that you'll be using the VM." ; rdfs:label "standards2months" . -:QuantitativeValue_TIME128641153300984 - a gr:QuantitativeValue ; - gr:hasUnitOfMeasurement "EUR" ; - gr:hasValue "125.0"^^xsd:double . - -:CentOSServerS2_TIME128640678230221 - a core:ServiceOffering ; - rdfs:comment "Basic Offering of the Service 1 (ServerS2)" ; - rdfs:label "CentOSServerS2" ; - core:includes :ServerS2_TIME128640735072841 ; - price:hasPricePlan :PricePlan1_TIME128640735750216 . - -:windowswebs2monthsb a price:Usage ; - rdfs:comment "Number of months that you'll be using the VM." ; - rdfs:label "windowswebs2monthsb" . - -:ServerS2_TIME128640735072841 - a core:Service ; - rdfs:label "ServerS2" . - -:ServerS2_TIME128641132406703 - a core:Service ; - rdfs:label "ServerS2" . - -:PriceFunction_TIME128641151587020 - a spin:Function ; +:Function_49 a spin:Function ; rdfs:comment "PriceFunction of the PriceComponent3" ; + rdfs:label "Function 49" ; spin:body [ a sp:Select ; sp:resultVariables ( [ sp:varName "result"^^xsd:string ] ) ; sp:where ( [ sp:object [ sp:varName "windowswebs2_instance"^^xsd:string ] ; @@ -146,29 +104,45 @@ ] ; price:hasVariable :windowswebs2 , :windowswebs2months . -:redhats2 a price:Constant ; - rdfs:comment "price of the VM per month" ; - rdfs:label "redhats2" ; - price:hasValue :QuantitativeValue_TIME128641141682549 . +:QuantitativeValue_45 + a gr:QuantitativeValue ; + gr:hasUnitOfMeasurement "EUR" ; + gr:hasValue "25.0"^^xsd:double . + +:windowswebs2monthsb a price:Usage ; + rdfs:comment "Number of months that you'll be using the VM." ; + rdfs:label "windowswebs2monthsb" . -:QuantitativeValue_TIME128641158626331 +:ServiceOffering_37 a price:PriceComponent ; + rdfs:comment "PriceComponent2_b of the PricePlan2" ; + rdfs:label "ServiceOffering 37" ; + price:hasPriceFunction :Function_42 . + +:QuantitativeValue_52 a gr:QuantitativeValue ; gr:hasUnitOfMeasurement "EUR" ; - gr:hasValue "15.0"^^xsd:double . + gr:hasValue "125.0"^^xsd:double . -:PriceComponent_TIME128641132516178 - a price:PriceComponent ; - rdfs:comment "PriceComponent2 of the PricePlan2" ; - price:hasPriceFunction :PriceFunction_TIME128641139429337 . +:PricePlan2 a price:PricePlan ; + rdfs:comment "PricePlan of the Service2" ; + rdfs:label "PricePlan2" ; + price:hasPriceComponent :ServiceOffering_37 , :ServiceOffering_36 . -:redhatprice a price:Constant ; - rdfs:comment "price of the Red Hat Enterprise OS per month" ; - rdfs:label "redhatprice" ; - price:hasValue :QuantitativeValue_TIME128641147693397 . +:ServerS222 a core:Service ; + rdfs:label "ServerS222" . + +:ServerS2 a core:Service ; + rdfs:label "ServerS2" . -:PriceFunction_TIME128641146121408 - a spin:Function ; +:REDHATServerS2 a core:ServiceOffering ; + rdfs:comment "Offering of the Service 2 (ServerS2)" ; + rdfs:label "REDHATServerS2" ; + core:includes :ServerS221 ; + price:hasPricePlan :PricePlan2 . + +:Function_42 a spin:Function ; rdfs:comment "PriceFunction of the PriceComponent2_b" ; + rdfs:label "Function 42" ; spin:body [ a sp:Select ; sp:resultVariables ( [ sp:varName "result"^^xsd:string ] ) ; sp:where ( [ sp:object [ sp:varName "redhatprice_instance"^^xsd:string ] ; @@ -193,43 +167,54 @@ ] ; price:hasVariable :redhatprice , :redhats2monthsb . -:QuantitativeValue_TIME128641147693397 +:ServiceOffering_36 a price:PriceComponent ; + rdfs:comment "PriceComponent2 of the PricePlan2" ; + rdfs:label "ServiceOffering 36" ; + price:hasPriceFunction :Function_38 . + +:PricePlan1 a price:PricePlan ; + rdfs:comment "PricePlan of the Service1" ; + rdfs:label "PricePlan1" ; + price:hasPriceComponent :ServiceOffering_30 . + +:ServiceOffering_30 a price:PriceComponent ; + rdfs:comment "PriceComponent1 of the PricePlan1" ; + rdfs:label "ServiceOffering 30" ; + price:hasPriceFunction :Function_31 . + +:ServerS221 a core:Service ; + rdfs:label "ServerS221" . + +:CentOSServerS2 a core:ServiceOffering ; + rdfs:comment "Basic Offering of the Service 1 (ServerS2)" ; + rdfs:label "CentOSServerS2" ; + core:includes :ServerS2 ; + price:hasPricePlan :PricePlan1 . + +:redhats2 a price:Constant ; + rdfs:comment "price of the VM per month" ; + rdfs:label "redhats2" ; + price:hasValue :QuantitativeValue_41 . + +:redhatprice a price:Constant ; + rdfs:comment "price of the Red Hat Enterprise OS per month" ; + rdfs:label "redhatprice" ; + price:hasValue :QuantitativeValue_45 . + +:QuantitativeValue_56 a gr:QuantitativeValue ; gr:hasUnitOfMeasurement "EUR" ; - gr:hasValue "25.0"^^xsd:double . - -:PricePlan2_TIME128641132468710 - a price:PricePlan ; - rdfs:comment "PricePlan of the Service2" ; - rdfs:label "PricePlan2" ; - price:hasPriceComponent :PriceComponent_TIME128641141747550 , :PriceComponent_TIME128641132516178 . + gr:hasValue "15.0"^^xsd:double . -:Windows2008WEBServerS2_TIME128641147748989 - a core:ServiceOffering ; - rdfs:comment "Offering of the Service 3 (ServerS2)" ; - rdfs:label "Windows2008WEBServerS2" ; - core:includes :ServerS2_TIME128641147786194 ; - price:hasPricePlan :PricePlan3_TIME128641147822115 . +:ServiceOffering_48 a price:PriceComponent ; + rdfs:comment "PriceComponen3_b of the PricePlan3" ; + rdfs:label "ServiceOffering 48" ; + price:hasPriceFunction :Function_53 . :windowswebs2months a price:Usage ; rdfs:comment "Number of months that you'll be using the VM." ; rdfs:label "windowswebs2months" . -:PriceComponent_TIME128641147852050 - a price:PriceComponent ; - rdfs:comment "PriceComponent3 of the PricePlan3" ; - price:hasPriceFunction :PriceFunction_TIME128641151587020 . - -:PricePlan1_TIME128640735750216 - a price:PricePlan ; - rdfs:comment "PricePlan of the Service1" ; - rdfs:label "PricePlan1" ; - price:hasPriceComponent :PriceComponent_TIME128640735829756 . - -:ServerS2_TIME128641147786194 - a core:Service ; - rdfs:label "ServerS2" . - :redhats2monthsb a price:Usage ; rdfs:comment "Number of months that you'll be using the VM." ; rdfs:label "redhats2monthsb" . @@ -238,36 +223,46 @@ rdfs:comment "Number of months that you'll be using the VM." ; rdfs:label "redhats2months" . -:PriceFunction_TIME128640744075428 - a spin:Function ; - rdfs:comment "PriceFunction of the PriceComponent1" ; +:Function_53 a spin:Function ; + rdfs:comment "PriceFunction of the PriceComponent3_b" ; + rdfs:label "Function 53" ; spin:body [ a sp:Select ; sp:resultVariables ( [ sp:varName "result"^^xsd:string ] ) ; - sp:where ( [ sp:object [ sp:varName "standards2_instance"^^xsd:string ] ; + sp:where ( [ sp:object [ sp:varName "windowswebprice_instance"^^xsd:string ] ; sp:predicate price:hasValue ; - sp:subject :standards2 - ] [ sp:object [ sp:varName "standards2_value"^^xsd:string ] ; + sp:subject :windowswebprice + ] [ sp:object [ sp:varName "windowswebprice_value"^^xsd:string ] ; sp:predicate gr:hasValue ; - sp:subject [ sp:varName "standards2_instance"^^xsd:string ] - ] [ sp:object [ sp:varName "standards2months_instance"^^xsd:string ] ; + sp:subject [ sp:varName "windowswebprice_instance"^^xsd:string ] + ] [ sp:object [ sp:varName "windowswebs2monthsb_instance"^^xsd:string ] ; sp:predicate price:hasValue ; - sp:subject :standards2months - ] [ sp:object [ sp:varName "standards2months_value"^^xsd:string ] ; + sp:subject :windowswebs2monthsb + ] [ sp:object [ sp:varName "windowswebs2monthsb_value"^^xsd:string ] ; sp:predicate gr:hasValue ; - sp:subject [ sp:varName "standards2months_instance"^^xsd:string ] + sp:subject [ sp:varName "windowswebs2monthsb_instance"^^xsd:string ] ] [ a sp:Bind ; sp:expression [ a sp:mul ; - sp:arg1 [ sp:varName "standards2_value"^^xsd:string ] ; - sp:arg2 [ sp:varName "standards2months_value"^^xsd:string ] + sp:arg1 [ sp:varName "windowswebprice_value"^^xsd:string ] ; + sp:arg2 [ sp:varName "windowswebs2monthsb_value"^^xsd:string ] ] ; sp:variable [ sp:varName "result"^^xsd:string ] ] ) ] ; - price:hasVariable :standards2 , :standards2months . + price:hasVariable :windowswebprice , :windowswebs2monthsb . + +:windowswebs2 a price:Constant ; + rdfs:comment "price of the VM per month" ; + rdfs:label "windowswebs2" ; + price:hasValue :QuantitativeValue_52 . -:PriceFunction_TIME128641139429337 - a spin:Function ; +:ServiceOffering_47 a price:PriceComponent ; + rdfs:comment "PriceComponent3 of the PricePlan3" ; + rdfs:label "ServiceOffering 47" ; + price:hasPriceFunction :Function_49 . + +:Function_38 a spin:Function ; rdfs:comment "PriceFunction of the PriceComponent2" ; + rdfs:label "Function 38" ; spin:body [ a sp:Select ; sp:resultVariables ( [ sp:varName "result"^^xsd:string ] ) ; sp:where ( [ sp:object [ sp:varName "redhats2_instance"^^xsd:string ] ; @@ -292,7 +287,7 @@ ] ; price:hasVariable :redhats2 , :redhats2months . -:windowswebs2 a price:Constant ; - rdfs:comment "price of the VM per month" ; - rdfs:label "windowswebs2" ; - price:hasValue :QuantitativeValue_TIME128641153300984 . +:QuantitativeValue_34 + a gr:QuantitativeValue ; + gr:hasUnitOfMeasurement "EUR" ; + gr:hasValue "125.0"^^xsd:double . diff --git a/SPIN_API/src/priceModelValidation/AmazonODReader.java b/SPIN_API/src/priceModelValidation/AmazonODReader.java index 621ae82..3a9303e 100644 --- a/SPIN_API/src/priceModelValidation/AmazonODReader.java +++ b/SPIN_API/src/priceModelValidation/AmazonODReader.java @@ -2,12 +2,16 @@ package priceModelValidation; +import java.io.File; +import java.io.FileOutputStream; import java.io.IOException; import java.util.Collections; import java.util.Comparator; import java.util.List; import java.util.Scanner; +import com.hp.hpl.jena.rdf.model.Model; + import usdl.servicemodel.LinkedUSDLModel; import usdl.servicemodel.LinkedUSDLModelFactory; import usdl.servicemodel.Offering; @@ -16,9 +20,6 @@ import usdl.servicemodel.PricePlan; import usdl.servicemodel.QuantitativeValue; import usdl.servicemodel.Usage; - -import com.hp.hpl.jena.rdf.model.Model; - import exceptions.InvalidLinkedUSDLModelException; import exceptions.ReadModelException; @@ -76,14 +77,14 @@ public int compare(Usage s1, Usage s2) { jmodel.setBaseURI("http://PricingAPIAmazonODInstance.com"); Model instance = jmodel.WriteToModel();//after we've done our changes in the jmodels, we transform them into a new Semantic model //write model to file - /*File outputFile = new File("your_directory/amazonRIInstance.ttl"); + File outputFile = new File("./amazonODInstance.ttl"); if (!outputFile.exists()) { outputFile.createNewFile(); } FileOutputStream out = new FileOutputStream(outputFile); instance.write(out, "Turtle"); - out.close();*/ + out.close(); //after applying the changes to the jmodels and transforming them to a semantic web representation, we can calculate the prices of every offerings. for(Offering off : myOfferings) diff --git a/SPIN_API/src/priceModelValidation/AmazonOnDemand.java b/SPIN_API/src/priceModelValidation/AmazonOnDemand.java index 2279bfc..0878a44 100644 --- a/SPIN_API/src/priceModelValidation/AmazonOnDemand.java +++ b/SPIN_API/src/priceModelValidation/AmazonOnDemand.java @@ -41,7 +41,7 @@ public static void main(String[] args) throws IOException, InvalidLinkedUSDLMode AmazonOnDemandOffering(jmodel); -// jmodel.setBaseURI("http://PricingAPIAmazonOnDemandOfferings.com"); + // // for (Offering of : jmodel.getOfferings()) // { @@ -54,6 +54,7 @@ public static void main(String[] args) throws IOException, InvalidLinkedUSDLMode // } // } // } +// jmodel.setBaseURI("http://PricingAPIAmazonOnDemandOfferings.com"); Model instance = jmodel.WriteToModel();//transform the java models to a semantic representation File outputFile = new File("./DebuggingFiles/amazonOD.ttl"); diff --git a/SPIN_API/src/priceModelValidation/Arsys.java b/SPIN_API/src/priceModelValidation/Arsys.java index 545b6e4..c3ada5c 100644 --- a/SPIN_API/src/priceModelValidation/Arsys.java +++ b/SPIN_API/src/priceModelValidation/Arsys.java @@ -165,10 +165,10 @@ private static void ArsysOffering(LinkedUSDLModel jmodel) throws IOException, In //since there's another 4 possible OS system, means that the created server actually gives birth to 5 possible offerings instead of one: //s1 includes CentOS - Service s2 = s1;//s2 includes Red Hat Enterprise Linux 6 + Service s2 = new Service(s1);//s2 includes Red Hat Enterprise Linux 6 ArrayList s2QuantFeat = (ArrayList) s1QuantFeat.clone();//container for the Quantitative Features ArrayList s2QualFeat = (ArrayList) s1QualFeat.clone();//container for the Qualitative Features - Service s3 = s1;//s3 includes Windows Server R2 2008 Web Ed. + Service s3 =new Service( s1);//s3 includes Windows Server R2 2008 Web Ed. ArrayList s3QuantFeat = (ArrayList) s1QuantFeat.clone();//container for the Quantitative Features ArrayList s3QualFeat = (ArrayList) s1QualFeat.clone();//container for the Qualitative Features //every new service is the same as the s1 but with the difference that each possesses a different OS diff --git a/SPIN_API/src/priceModelValidation/CloudSigmaReader.java b/SPIN_API/src/priceModelValidation/CloudSigmaReader.java index aa06ee0..992c1a5 100644 --- a/SPIN_API/src/priceModelValidation/CloudSigmaReader.java +++ b/SPIN_API/src/priceModelValidation/CloudSigmaReader.java @@ -71,7 +71,7 @@ public int compare(Usage s1, Usage s2) { } else { - var.setValue(definedVariables.get(var.getName().replaceAll("TIME\\d+.*", "")).getValue()); + var.setValue( new QuantitativeValue((QuantitativeValue)definedVariables.get(var.getName().replaceAll("TIME\\d+.*", "")).getValue())); } } } diff --git a/SPIN_API/src/priceModelValidation/MicrosoftAzureReader.java b/SPIN_API/src/priceModelValidation/MicrosoftAzureReader.java index 1d2bce8..5aa6655 100644 --- a/SPIN_API/src/priceModelValidation/MicrosoftAzureReader.java +++ b/SPIN_API/src/priceModelValidation/MicrosoftAzureReader.java @@ -73,7 +73,7 @@ public int compare(Usage s1, Usage s2) { } else { - var.setValue(definedVariables.get(var.getName().replaceAll("TIME\\d+.*", "")).getValue()); + var.setValue( new QuantitativeValue((QuantitativeValue)definedVariables.get(var.getName().replaceAll("TIME\\d+.*", "")).getValue())); } } } diff --git a/SPIN_API/src/priceModelValidation/VMWareVPCloudReader.java b/SPIN_API/src/priceModelValidation/VMWareVPCloudReader.java index 763f38c..b50b2fe 100644 --- a/SPIN_API/src/priceModelValidation/VMWareVPCloudReader.java +++ b/SPIN_API/src/priceModelValidation/VMWareVPCloudReader.java @@ -73,7 +73,7 @@ public int compare(Usage s1, Usage s2) { } else { - var.setValue(definedVariables.get(var.getName().replaceAll("TIME\\d+.*", "")).getValue()); + var.setValue( new QuantitativeValue((QuantitativeValue)definedVariables.get(var.getName().replaceAll("TIME\\d+.*", "")).getValue())); } } } diff --git a/SPIN_API/src/usdl/constants/enums/ResourceNameEnum.java b/SPIN_API/src/usdl/constants/enums/ResourceNameEnum.java index 4a64ff3..ac19fba 100644 --- a/SPIN_API/src/usdl/constants/enums/ResourceNameEnum.java +++ b/SPIN_API/src/usdl/constants/enums/ResourceNameEnum.java @@ -4,17 +4,17 @@ public enum ResourceNameEnum { - OFFERING("Service Offering"), + OFFERING("ServiceOffering"), SERVICE("Service"), - PRICEPLAN("Price Plan"), - PRICECOMPONENT("Price Component"), - PRICEFUNCTION("Price Function"), - PRICESPEC("Price Specification"), - QUANTVALUE("Quantitative Value"), - QUALVALUE("Qualitative Value"), - CLOUDPROVIDER("Business Entity"), - USAGE("Usage Variable"), - PROVIDER("Provider Variable"); + PRICEPLAN("PricePlan"), + PRICECOMPONENT("PriceComponent"), + PRICEFUNCTION("Function"), + PRICESPEC("PriceSpecification"), + QUANTVALUE("QuantitativeValue"), + QUALVALUE("QualitativeValue"), + CLOUDPROVIDER("BusinessEntity"), + USAGE("Usage"), + PROVIDER("Constant"); private String name; diff --git a/SPIN_API/src/usdl/constants/enums/USDLCoreEnum.java b/SPIN_API/src/usdl/constants/enums/USDLCoreEnum.java index 524f52c..2060781 100644 --- a/SPIN_API/src/usdl/constants/enums/USDLCoreEnum.java +++ b/SPIN_API/src/usdl/constants/enums/USDLCoreEnum.java @@ -64,4 +64,6 @@ public Resource getResource(Model model) { return null; } } + + } diff --git a/SPIN_API/src/usdl/queries/QueryUtils.java b/SPIN_API/src/usdl/queries/QueryUtils.java index 685ea7d..32dd576 100644 --- a/SPIN_API/src/usdl/queries/QueryUtils.java +++ b/SPIN_API/src/usdl/queries/QueryUtils.java @@ -13,7 +13,9 @@ public static String startQueryWithBasicPrefixes(){ " PREFIX "+Prefixes.RDFS.getName()+": <"+Prefixes.RDFS.getPrefix()+"> " + " PREFIX "+Prefixes.GR.getName()+": <"+Prefixes.GR.getPrefix()+"> " + " PREFIX "+Prefixes.XSD.getName()+": <"+Prefixes.XSD.getPrefix()+"> "+ - " PREFIX "+Prefixes.CLOUD.getName()+": <"+ Prefixes.CLOUD.getPrefix()+">"; + " PREFIX "+Prefixes.CLOUD.getName()+": <"+ Prefixes.CLOUD.getPrefix()+">" + + " PREFIX "+Prefixes.SPIN.getName()+": <"+ Prefixes.SPIN.getPrefix()+">"; + return query; } diff --git a/SPIN_API/src/usdl/queries/ReaderQueries.java b/SPIN_API/src/usdl/queries/ReaderQueries.java index afe450a..cfc16ae 100644 --- a/SPIN_API/src/usdl/queries/ReaderQueries.java +++ b/SPIN_API/src/usdl/queries/ReaderQueries.java @@ -5,7 +5,6 @@ import usdl.constants.enums.RDFEnum; import usdl.constants.enums.USDLCoreEnum; -import usdl.constants.enums.USDLPriceEnum; public class ReaderQueries { @@ -20,17 +19,13 @@ public static String readAllOfferings(String variableName){ return query; } - public static String readAllUsageVariables(String variableName){ + public static String findResource(String uri, String classType){ String query = QueryUtils.startQueryWithBasicPrefixes(); query = query + - " SELECT REDUCED ?pv" + + " SELECT REDUCED ?r" + " WHERE { " + - " ?"+variableName+" "+RDFEnum.RDF_TYPE.getPropertyString()+" "+USDLCoreEnum.OFFERING.getPropertyString()+" . " + - " ?"+variableName+" "+USDLPriceEnum.HAS_PRICE_PLAN.getPropertyString()+" "+"?pp"+" . " + - " ?"+"pp"+" "+USDLPriceEnum.HAS_PRICE_COMPONENT.getPropertyString()+" "+"?pc"+" . " + - " ?"+"pc"+" "+USDLPriceEnum.HAS_PRICE_FUNCTION.getPropertyString()+" "+"?pf"+" . " + - " ?"+"pf"+" "+USDLPriceEnum.HAS_VARIABLE.getPropertyString()+" "+"?pv"+" . " + - " ?"+"pv"+" "+RDFEnum.RDF_TYPE.getPropertyString()+" "+USDLPriceEnum.USAGE.getPropertyString()+" . " + + " ?r"+" a"+" "+classType+" . " + + " FILTER(str(?r) = \""+uri+"\" ) . " + " }"; return query; diff --git a/SPIN_API/src/usdl/servicemodel/CloudProvider.java b/SPIN_API/src/usdl/servicemodel/CloudProvider.java index 50bd80b..aed1420 100644 --- a/SPIN_API/src/usdl/servicemodel/CloudProvider.java +++ b/SPIN_API/src/usdl/servicemodel/CloudProvider.java @@ -5,6 +5,7 @@ import usdl.constants.enums.FOAFEnum; import usdl.constants.enums.GREnum; +import usdl.constants.enums.Prefixes; import usdl.constants.enums.RDFEnum; import usdl.constants.enums.RDFSEnum; import usdl.constants.enums.ResourceNameEnum; @@ -26,7 +27,6 @@ public class CloudProvider { private List providedServices; private String localName = null; private String namespace = null; - @SuppressWarnings("unused") private final String resourceType = ResourceNameEnum.OFFERING.getResourceType(); @@ -48,7 +48,7 @@ public CloudProvider(CloudProvider source) {//copy constructor super(); if(source.getName() != null) - this.setName(source.getName()); + this.setName(source.getName() + PricingAPIProperties.resourceCounter++); if(source.getComment() != null) this.setComment(source.getComment()); @@ -171,20 +171,21 @@ protected static CloudProvider readFromModel(Resource resource, Model model){ * @param model Model to where the object is to be written on. * @throws InvalidLinkedUSDLModelException */ + @SuppressWarnings("null") protected void writeToModel(Resource owner,Model model,String baseURI) throws InvalidLinkedUSDLModelException{ Resource provider = null; - if(this.namespace == null){ //no namespace defined for this resource, we need to define one - if(baseURI != null || !baseURI.equalsIgnoreCase("")) // the baseURI argument is valid - this.namespace = baseURI; - else //use the default baseURI - this.namespace = PricingAPIProperties.defaultBaseURI; - } + + if(baseURI != null || !baseURI.equalsIgnoreCase("")) // the baseURI argument is valid + this.namespace = baseURI; + else if(this.getNamespace() == null) //use the default baseURI + this.namespace = PricingAPIProperties.defaultBaseURI; + if(this.localName != null){ LinkedUSDLValidator validator = new LinkedUSDLValidator(); - validator.checkDuplicateURI(model, ResourceFactory.createResource(this.namespace + this.localName)); + validator.checkDuplicateURI(model, ResourceFactory.createResource(this.namespace + this.localName),Prefixes.GR.getName()+":"+this.resourceType); provider = model.createResource(this.namespace + this.localName); if(this.name != null){ provider.addProperty(FOAFEnum.NAME.getProperty(model),model.createLiteral(this.name)); diff --git a/SPIN_API/src/usdl/servicemodel/LinkedUSDLModel.java b/SPIN_API/src/usdl/servicemodel/LinkedUSDLModel.java index ae0cf6b..8e68316 100644 --- a/SPIN_API/src/usdl/servicemodel/LinkedUSDLModel.java +++ b/SPIN_API/src/usdl/servicemodel/LinkedUSDLModel.java @@ -81,10 +81,7 @@ public String getBaseURI() { public void setBaseURI(String baseURI) { this.baseURI = baseURI + "#"; - if(prefixes.get("") != null) - prefixes.put(this.baseURI, ""); - else - prefixes.put(this.baseURI, ""); + prefixes.put(this.baseURI, ""); } protected Map getPrefixes() { @@ -146,6 +143,7 @@ private List readAllOfferings(Model model) throws InvalidLinkedUSDLMod return offeringsList; } + @SuppressWarnings("unused") private List readAllServices(Model model){ List servicesList = new ArrayList<>(); @@ -173,15 +171,14 @@ public Model WriteToModel() throws InvalidLinkedUSDLModelException private Model setModelPrefixes(Model model){ - if(this.prefixes.get("") == null) - this.prefixes.put(this.baseURI, ""); + this.prefixes.put(this.baseURI, ""); Iterator> it = this.prefixes.entrySet().iterator(); while (it.hasNext()) { Map.Entry pairs = (Map.Entry)it.next(); String key = (String)pairs.getKey(); //URI String value = (String)pairs.getValue(); //preffix name - System.out.println(key + " -> " +value); +// System.out.println(key + " -> " +value); model.setNsPrefix(value, key); } return model; diff --git a/SPIN_API/src/usdl/servicemodel/LinkedUSDLModelFactory.java b/SPIN_API/src/usdl/servicemodel/LinkedUSDLModelFactory.java index b1ba32c..cc9de89 100644 --- a/SPIN_API/src/usdl/servicemodel/LinkedUSDLModelFactory.java +++ b/SPIN_API/src/usdl/servicemodel/LinkedUSDLModelFactory.java @@ -101,16 +101,15 @@ public static LinkedUSDLModel createFromModel(String path, String baseURI, boole Model model = new LinkedUSDLModelFactory().importModel(path); - //checks of the imported model already has a baseURI to use. String uri = model.getNsPrefixURI(""); if(uri != null){ - System.out.println("HAS BASE URI " + baseURI); - baseURI = uri+"#"; + System.out.println("HAS BASE URI " + uri); + baseURI = uri; } LinkedUSDLModel linkedUSDL = new LinkedUSDLModel(baseURI); - System.out.println("BASE URI: " + baseURI); +// System.out.println("BASE URI: " + baseURI); //TESTS @@ -245,6 +244,7 @@ private Map processPrefixes(Model model, Map pre String key = (String)pairs.getKey(); if(key.equalsIgnoreCase("")) key = name; + result.put((String)pairs.getValue(), key); diff --git a/SPIN_API/src/usdl/servicemodel/Offering.java b/SPIN_API/src/usdl/servicemodel/Offering.java index 96e2709..32a3e9d 100644 --- a/SPIN_API/src/usdl/servicemodel/Offering.java +++ b/SPIN_API/src/usdl/servicemodel/Offering.java @@ -2,6 +2,7 @@ import java.util.ArrayList; +import usdl.constants.enums.Prefixes; import usdl.constants.enums.RDFEnum; import usdl.constants.enums.RDFSEnum; import usdl.constants.enums.ResourceNameEnum; @@ -25,7 +26,6 @@ public class Offering { private String comment = null; private String localName = null; private String namespace = null; - @SuppressWarnings("unused") private final String resourceType = ResourceNameEnum.OFFERING.getResourceType(); public Offering(){ @@ -46,7 +46,7 @@ public Offering(Offering source) {//copy constructor super(); if(source.getName() != null) - this.setName(source.getName()); + this.setName(source.getName() + PricingAPIProperties.resourceCounter++); if(source.getComment() != null) this.setComment(source.getComment()); @@ -167,20 +167,19 @@ public static Offering readFromModel(Resource resource, Model model){ * @param model Model to where the object is to be written on. * @throws InvalidLinkedUSDLModelException */ + @SuppressWarnings("null") public void writeToModel(Model model, String baseURI) throws InvalidLinkedUSDLModelException { Resource offering = null; - if(this.namespace == null){ //no namespace defined for this resource, we need to define one - if(baseURI != null || !baseURI.equalsIgnoreCase("")) // the baseURI argument is valid - this.namespace = baseURI; - else //use the default baseURI - this.namespace = PricingAPIProperties.defaultBaseURI; - } + if (baseURI != null || !baseURI.equalsIgnoreCase("")) // the baseURIargument is valid + this.namespace = baseURI; + else if(this.getNamespace() == null) // use the default baseURI + this.namespace = PricingAPIProperties.defaultBaseURI; if(this.localName != null){ LinkedUSDLValidator validator = new LinkedUSDLValidator(); - validator.checkDuplicateURI(model, ResourceFactory.createResource(this.namespace + this.localName)); + validator.checkDuplicateURI(model, ResourceFactory.createResource(this.namespace + this.localName),Prefixes.USDL_CORE.getName()+":"+this.resourceType); offering = model.createResource(this.namespace + this.localName); offering.addProperty(RDFEnum.RDF_TYPE.getProperty(model), USDLCoreEnum.OFFERING.getResource(model));//rdf type diff --git a/SPIN_API/src/usdl/servicemodel/PriceComponent.java b/SPIN_API/src/usdl/servicemodel/PriceComponent.java index f3d9285..9f68cd5 100644 --- a/SPIN_API/src/usdl/servicemodel/PriceComponent.java +++ b/SPIN_API/src/usdl/servicemodel/PriceComponent.java @@ -3,6 +3,7 @@ import java.util.ArrayList; +import usdl.constants.enums.Prefixes; import usdl.constants.enums.RDFEnum; import usdl.constants.enums.RDFSEnum; import usdl.constants.enums.ResourceNameEnum; @@ -35,7 +36,6 @@ public class PriceComponent { private String comment = null; private String localName = null; private String namespace = null; - @SuppressWarnings("unused") private final String resourceType = ResourceNameEnum.PRICECOMPONENT.getResourceType(); @@ -57,7 +57,7 @@ public PriceComponent(PriceComponent source) {//copy construct metrics = new ArrayList(); if(source.getName() != null) - this.setName(source.getName()); + this.setName(source.getName() + PricingAPIProperties.resourceCounter++); if(source.getComment() != null) this.setComment(source.getComment()); @@ -208,20 +208,20 @@ public PriceSpec calculatePrice() * @param model Model to where the object is to be written on. * @throws InvalidLinkedUSDLModelException */ + @SuppressWarnings("null") protected void writeToModel(Resource owner, Model model,String baseURI) throws InvalidLinkedUSDLModelException { Resource pc = null; - if(this.namespace == null){ //no namespace defined for this resource, we need to define one - if(baseURI != null || !baseURI.equalsIgnoreCase("")) // the baseURI argument is valid - this.namespace = baseURI; - else //use the default baseURI - this.namespace = PricingAPIProperties.defaultBaseURI; - } + + if(baseURI != null || !baseURI.equalsIgnoreCase("")) // the baseURI argument is valid + this.namespace = baseURI; + else if(this.getNamespace() == null) //use the default baseURI + this.namespace = PricingAPIProperties.defaultBaseURI; if(this.localName != null){ LinkedUSDLValidator validator = new LinkedUSDLValidator(); - validator.checkDuplicateURI(model, ResourceFactory.createResource(this.namespace + this.localName)); + validator.checkDuplicateURI(model, ResourceFactory.createResource(this.namespace + this.localName),Prefixes.USDL_PRICE.getName()+":"+this.resourceType); pc = model.createResource(this.namespace + this.localName); if(this.isDeduction) diff --git a/SPIN_API/src/usdl/servicemodel/PriceFunction.java b/SPIN_API/src/usdl/servicemodel/PriceFunction.java index 62fa002..bba3fff 100644 --- a/SPIN_API/src/usdl/servicemodel/PriceFunction.java +++ b/SPIN_API/src/usdl/servicemodel/PriceFunction.java @@ -11,6 +11,7 @@ import org.topbraid.spin.system.SPINModuleRegistry; import org.topbraid.spin.vocabulary.SPIN; +import usdl.constants.enums.Prefixes; import usdl.constants.enums.RDFEnum; import usdl.constants.enums.RDFSEnum; import usdl.constants.enums.ResourceNameEnum; @@ -44,7 +45,6 @@ public class PriceFunction { private String comment = null; private String localName = null; private String namespace = null; - @SuppressWarnings("unused") private final String resourceType = ResourceNameEnum.PRICEFUNCTION.getResourceType(); @@ -71,7 +71,7 @@ public PriceFunction(PriceFunction source) {//copy constructor constraints = new ArrayList(); if(source.getName() != null) - this.setName(source.getName()); + this.setName(source.getName() + PricingAPIProperties.resourceCounter++); if(source.getComment() != null) this.setComment(source.getComment()); @@ -221,20 +221,20 @@ public void removeConstraintAtIndex(int index) * @param model Model to where the object is to be written on. * @throws InvalidLinkedUSDLModelException */ + @SuppressWarnings("null") protected void writeToModel(Resource owner,Model model,String baseURI) throws InvalidLinkedUSDLModelException { Function func = null; - if(this.namespace == null){ //no namespace defined for this resource, we need to define one - if(baseURI != null || !baseURI.equalsIgnoreCase("")) // the baseURI argument is valid - this.namespace = baseURI; - else //use the default baseURI - this.namespace = PricingAPIProperties.defaultBaseURI; - } + String oldURI = this.namespace; + if(baseURI != null || !baseURI.equalsIgnoreCase("")) // the baseURI argument is valid + this.namespace = baseURI; + else if(this.getNamespace() == null) //use the default baseURI + this.namespace = PricingAPIProperties.defaultBaseURI; if(this.localName != null){ LinkedUSDLValidator validator = new LinkedUSDLValidator(); - validator.checkDuplicateURI(model, ResourceFactory.createResource(this.namespace + this.localName)); + validator.checkDuplicateURI(model, ResourceFactory.createResource(this.namespace + this.localName),Prefixes.SPIN.getName()+":"+this.resourceType); func = model.createResource(this.namespace + this.localName, SPIN.Function).as(Function.class); if(this.name != null){ @@ -256,7 +256,7 @@ else if(this.SPARQLFunction != null && stringFunction == null) // this.setSPARQLFunction(this.getSPARQLFunction().replaceAll(this.getOldBaseURI(), this.namespace)); // } if(this.getNamespace() != null) - this.setSPARQLFunction(this.getSPARQLFunction().replaceAll(this.getNamespace(), baseURI+"#")); + this.setSPARQLFunction(this.getSPARQLFunction().replaceAll(oldURI, baseURI)); com.hp.hpl.jena.query.Query arqQuery = ARQFactory.get().createQuery(model,this.getSPARQLFunction()); Query spinQuery = new ARQ2SPIN(model).createQuery(arqQuery, null); @@ -312,9 +312,9 @@ protected static PriceFunction readFromModel(Resource resource,Model model) StmtIterator iter = resource.listProperties(USDLPriceEnum.HAS_VARIABLE.getProperty(model)); while (iter.hasNext()) {//while there's price variables left Resource variable = iter.next().getObject().asResource(); - if(variable.getProperty(RDFEnum.RDF_TYPE.getProperty(model)).getResource().getLocalName().equals(USDLPriceEnum.USAGE.getResource(model).getURI())) + if(variable.getProperty(RDFEnum.RDF_TYPE.getProperty(model)).getResource().getLocalName().equals(USDLPriceEnum.USAGE.getResource(model).getLocalName())) pf.addUsageVariable(Usage.readFromModel(variable,model)); - else if(variable.getProperty(RDFEnum.RDF_TYPE.getProperty(model)).getResource().getLocalName().equals(USDLPriceEnum.PROVIDER.getResource(model).getURI())) + else if(variable.getProperty(RDFEnum.RDF_TYPE.getProperty(model)).getResource().getLocalName().equals(USDLPriceEnum.PROVIDER.getResource(model).getLocalName())) pf.addProviderVariable(Provider.readFromModel(variable,model)); } } diff --git a/SPIN_API/src/usdl/servicemodel/PricePlan.java b/SPIN_API/src/usdl/servicemodel/PricePlan.java index 9d60d3d..84892a6 100644 --- a/SPIN_API/src/usdl/servicemodel/PricePlan.java +++ b/SPIN_API/src/usdl/servicemodel/PricePlan.java @@ -5,6 +5,7 @@ import org.topbraid.spin.arq.ARQFactory; +import usdl.constants.enums.Prefixes; import usdl.constants.enums.RDFEnum; import usdl.constants.enums.RDFSEnum; import usdl.constants.enums.ResourceNameEnum; @@ -37,7 +38,6 @@ public class PricePlan { private String comment; private String localName = null; private String namespace = null; - @SuppressWarnings("unused") private final String resourceType = ResourceNameEnum.PRICEPLAN.getResourceType(); public PricePlan(){ @@ -59,7 +59,7 @@ public PricePlan(PricePlan source) {//copy construct priceComponents = new ArrayList(); if(source.getName() != null) - this.setName(source.getName()); + this.setName(source.getName() + PricingAPIProperties.resourceCounter++); if(source.getComment() != null) this.setComment(source.getComment()); @@ -156,7 +156,7 @@ public void removePriceComponentAt(int index) * @return A PriceSpec instance that contains the price value of the Price Plan. */ //TODO: review the calculation process - public Double calculatePrice(Model model) + public String calculatePrice(Model model) { //sum each of the price components price value String finalprice = ""; @@ -170,6 +170,7 @@ public Double calculatePrice(Model model) if (pc.getPriceFunction().getSPARQLFunction() != null) { com.hp.hpl.jena.query.Query q = ARQFactory.get().createQuery(pc.getPriceFunction().getSPARQLFunction()); QueryExecution qexecc = ARQFactory.get().createQueryExecution(q, model); + ResultSet rsc = qexecc.execSelect(); //System.out.println(q.toString()); function_price = rsc.nextSolution().getLiteral("result").getDouble();// final result is store in the ?result variable of the query @@ -246,7 +247,7 @@ else if(pc_price < lower_limit && lower_limit >= 0) finalvalue = this.getPriceFloor().getValue(); } - return finalvalue; + return finalprice; } /** @@ -310,20 +311,19 @@ protected static PricePlan readFromModel(Resource resource, Model model) * @param model Model to where the object is to be written on. * @throws InvalidLinkedUSDLModelException */ + @SuppressWarnings("null") protected void writeToModel(Resource owner,Model model,String baseURI) throws InvalidLinkedUSDLModelException { Resource pp = null; - - if(this.namespace == null){ //no namespace defined for this resource, we need to define one - if(baseURI != null || !baseURI.equalsIgnoreCase("")) // the baseURI argument is valid - this.namespace = baseURI; - else //use the default baseURI - this.namespace = PricingAPIProperties.defaultBaseURI; - } + + if(baseURI != null || !baseURI.equalsIgnoreCase("")) // the baseURI argument is valid + this.namespace = baseURI; + else if(this.getNamespace() == null) //use the default baseURI + this.namespace = PricingAPIProperties.defaultBaseURI; if(this.localName != null){ LinkedUSDLValidator validator = new LinkedUSDLValidator(); - validator.checkDuplicateURI(model, ResourceFactory.createResource(this.namespace + this.localName)); + validator.checkDuplicateURI(model, ResourceFactory.createResource(this.namespace + this.localName),Prefixes.USDL_PRICE.getName()+":"+this.resourceType); pp = model.createResource(this.namespace + this.localName); pp.addProperty(RDFSEnum.LABEL.getProperty(model), model.createLiteral(this.name));//label name diff --git a/SPIN_API/src/usdl/servicemodel/PriceSpec.java b/SPIN_API/src/usdl/servicemodel/PriceSpec.java index 4db1b4c..d63ec78 100644 --- a/SPIN_API/src/usdl/servicemodel/PriceSpec.java +++ b/SPIN_API/src/usdl/servicemodel/PriceSpec.java @@ -3,6 +3,7 @@ import java.util.Date; import usdl.constants.enums.GREnum; +import usdl.constants.enums.Prefixes; import usdl.constants.enums.RDFEnum; import usdl.constants.enums.RDFSEnum; import usdl.constants.enums.ResourceNameEnum; @@ -36,7 +37,6 @@ public class PriceSpec { private String comment = null;// private String localName = null; private String namespace = null; - @SuppressWarnings("unused") private final String resourceType = ResourceNameEnum.OFFERING.getResourceType(); @@ -57,7 +57,7 @@ public PriceSpec(String name, String nameSpace) { public PriceSpec(PriceSpec source)//copy constructor { if(source.getName() != null) - this.setName(source.getName()); + this.setName(source.getName() + PricingAPIProperties.resourceCounter++); if(source.getCurrency() != null) this.setCurrency(source.getCurrency()); @@ -195,20 +195,19 @@ public String toString() { * @param model Model to where the object is to be written on. * @throws InvalidLinkedUSDLModelException */ + @SuppressWarnings("null") protected void writeToModel(Resource owner,Model model,String baseURI) throws InvalidLinkedUSDLModelException { Resource ps = null; - - if(this.namespace == null){ //no namespace defined for this resource, we need to define one - if(baseURI != null || !baseURI.equalsIgnoreCase("")) // the baseURI argument is valid - this.namespace = baseURI; - else //use the default baseURI - this.namespace = PricingAPIProperties.defaultBaseURI; - } + + if(baseURI != null || !baseURI.equalsIgnoreCase("")) // the baseURI argument is valid + this.namespace = baseURI; + else if(this.getNamespace() == null) //use the default baseURI + this.namespace = PricingAPIProperties.defaultBaseURI; if(this.localName != null){ LinkedUSDLValidator validator = new LinkedUSDLValidator(); - validator.checkDuplicateURI(model, ResourceFactory.createResource(this.namespace + this.localName)); + validator.checkDuplicateURI(model, ResourceFactory.createResource(this.namespace + this.localName),Prefixes.GR.getName()+":"+this.resourceType); ps = model.createResource(this.namespace + this.localName); ps.addProperty(RDFEnum.RDF_TYPE.getProperty(model), GREnum.PRICE_SPEC.getResource(model));//rdf type diff --git a/SPIN_API/src/usdl/servicemodel/Provider.java b/SPIN_API/src/usdl/servicemodel/Provider.java index a16c61e..3a00993 100644 --- a/SPIN_API/src/usdl/servicemodel/Provider.java +++ b/SPIN_API/src/usdl/servicemodel/Provider.java @@ -2,6 +2,7 @@ import usdl.constants.enums.GREnum; +import usdl.constants.enums.Prefixes; import usdl.constants.enums.RDFEnum; import usdl.constants.enums.RDFSEnum; import usdl.constants.enums.ResourceNameEnum; @@ -45,7 +46,7 @@ public Provider(Provider source) {//copy constructor super(); // TODO Auto-generated constructor stub if(source.getName() != null) - this.setName(source.getName()); + this.setName(source.getName() + PricingAPIProperties.resourceCounter++); if(source.getComment() != null) this.setComment(source.getComment()); @@ -75,21 +76,21 @@ public void setName(String name) { * @param model Model to where the object is to be written on. * @throws InvalidLinkedUSDLModelException */ + @SuppressWarnings("null") public void writeToModel(Resource owner,Model model,String baseURI) throws InvalidLinkedUSDLModelException { // Initialize system functions and templates Resource var = null; - if(this.getNamespace() == null){ //no namespace defined for this resource, we need to define one - if(baseURI != null || !baseURI.equalsIgnoreCase("")) // the baseURI argument is valid - this.setNamespace(baseURI); - else //use the default baseURI - this.setNamespace(PricingAPIProperties.defaultBaseURI); - } + if(baseURI != null || !baseURI.equalsIgnoreCase("")) // the baseURI argument is valid + this.setNamespace(baseURI); + else if(this.getNamespace() == null) //use the default baseURI + this.setNamespace(PricingAPIProperties.defaultBaseURI); + if(this.getLocalName() != null){ LinkedUSDLValidator validator = new LinkedUSDLValidator(); - validator.checkDuplicateURI(model, ResourceFactory.createResource(this.getNamespace() + this.getLocalName())); + validator.checkDuplicateURI(model, ResourceFactory.createResource(this.getNamespace() + this.getLocalName()),Prefixes.USDL_PRICE.getName()+":"+this.resourceType); var = model.createResource(this.getNamespace() + this.getLocalName()); var.addProperty(RDFEnum.RDF_TYPE.getProperty(model), USDLPriceEnum.PROVIDER.getResource(model)); @@ -163,6 +164,7 @@ else if(val.getProperty(RDFEnum.RDF_TYPE.getProperty(model)).getResource().getUR return var; } + @SuppressWarnings("unused") protected void validate() throws InvalidLinkedUSDLModelException{ boolean hasOneService = false; diff --git a/SPIN_API/src/usdl/servicemodel/QualitativeValue.java b/SPIN_API/src/usdl/servicemodel/QualitativeValue.java index 3482d09..d1e0687 100644 --- a/SPIN_API/src/usdl/servicemodel/QualitativeValue.java +++ b/SPIN_API/src/usdl/servicemodel/QualitativeValue.java @@ -1,6 +1,7 @@ package usdl.servicemodel; import usdl.constants.enums.GREnum; +import usdl.constants.enums.Prefixes; import usdl.constants.enums.RDFEnum; import usdl.constants.enums.RDFSEnum; import usdl.constants.enums.ResourceNameEnum; @@ -26,7 +27,6 @@ public class QualitativeValue extends Value { private String hasLabel = null; - @SuppressWarnings("unused") private final String resourceType = ResourceNameEnum.QUALVALUE.getResourceType(); public QualitativeValue(){ @@ -46,7 +46,7 @@ public QualitativeValue(String name, String nameSpace) { public QualitativeValue(QualitativeValue source) {//copy constructor if(source.getName() != null) - this.setName(source.getName()); + this.setName(source.getName() + PricingAPIProperties.resourceCounter++); if(source.getComment() != null) this.setComment(source.getComment()); @@ -90,19 +90,20 @@ public String toString() { * @param model Model to where the object is to be written on. * @throws InvalidLinkedUSDLModelException */ + @SuppressWarnings("null") protected void writeToModel(Resource owner,Model model,int mode,String baseURI) throws InvalidLinkedUSDLModelException { Resource qv = null; - if(this.getNamespace() == null){ //no namespace defined for this resource, we need to define one - if(baseURI != null || !baseURI.equalsIgnoreCase("")) // the baseURI argument is valid - this.setNamespace(baseURI); - else //use the default baseURI - this.setNamespace(PricingAPIProperties.defaultBaseURI); - } + + if(baseURI != null || !baseURI.equalsIgnoreCase("")) // the baseURI argument is valid + this.setNamespace(baseURI); + else if(this.getNamespace() == null) //use the default baseURI + this.setNamespace(PricingAPIProperties.defaultBaseURI); + if(this.getLocalName() != null){ LinkedUSDLValidator validator = new LinkedUSDLValidator(); - validator.checkDuplicateURI(model, ResourceFactory.createResource(this.getNamespace() + this.getLocalName())); + validator.checkDuplicateURI(model, ResourceFactory.createResource(this.getNamespace() + this.getLocalName()),Prefixes.GR.getName()+":"+this.resourceType); qv = model.createResource(this.getNamespace() + this.getLocalName()); qv.addProperty(RDFEnum.RDF_TYPE.getProperty(model), GREnum.QUAL_VALUE.getResource(model));//rdf type diff --git a/SPIN_API/src/usdl/servicemodel/QuantitativeValue.java b/SPIN_API/src/usdl/servicemodel/QuantitativeValue.java index 973a72c..c2aa33e 100644 --- a/SPIN_API/src/usdl/servicemodel/QuantitativeValue.java +++ b/SPIN_API/src/usdl/servicemodel/QuantitativeValue.java @@ -1,6 +1,7 @@ package usdl.servicemodel; import usdl.constants.enums.GREnum; +import usdl.constants.enums.Prefixes; import usdl.constants.enums.RDFEnum; import usdl.constants.enums.RDFSEnum; import usdl.constants.enums.ResourceNameEnum; @@ -29,7 +30,6 @@ public class QuantitativeValue extends Value { private double maxValue = -1; private String unitOfMeasurement = null; - @SuppressWarnings("unused") private final String resourceType = ResourceNameEnum.QUANTVALUE.getResourceType(); public QuantitativeValue(){ @@ -49,7 +49,7 @@ public QuantitativeValue(String name, String nameSpace) { public QuantitativeValue(QuantitativeValue source) {//copy constructor if(source.getName() != null) - this.setName(source.getName()); + this.setName(source.getName() + PricingAPIProperties.resourceCounter++); if(source.getComment() != null) this.setComment(source.getComment()); @@ -128,19 +128,20 @@ public String toString() { * @param model Model to where the object is to be written on. * @throws InvalidLinkedUSDLModelException */ + @SuppressWarnings("null") protected void writeToModel(Resource owner,Model model,int mode,String baseURI) throws InvalidLinkedUSDLModelException { Resource qv = null; - if(this.getNamespace() == null){ //no namespace defined for this resource, we need to define one - if(baseURI != null || !baseURI.equalsIgnoreCase("")) // the baseURI argument is valid - this.setNamespace(baseURI); - else //use the default baseURI - this.setNamespace(PricingAPIProperties.defaultBaseURI); - } + + if(baseURI != null || !baseURI.equalsIgnoreCase("")) // the baseURI argument is valid + this.setNamespace(baseURI); + else //use the default baseURI + this.setNamespace(PricingAPIProperties.defaultBaseURI); + if(this.getLocalName() != null){ LinkedUSDLValidator validator = new LinkedUSDLValidator(); - validator.checkDuplicateURI(model, ResourceFactory.createResource(this.getNamespace() + this.getLocalName())); + validator.checkDuplicateURI(model, ResourceFactory.createResource(this.getNamespace() + this.getLocalName()),Prefixes.GR.getName()+":"+this.resourceType); qv = model.createResource(this.getNamespace() + this.getLocalName()); qv.addProperty(RDFEnum.RDF_TYPE.getProperty(model), GREnum.QUANT_VALUE.getResource(model));//rdf type diff --git a/SPIN_API/src/usdl/servicemodel/Service.java b/SPIN_API/src/usdl/servicemodel/Service.java index e30adfd..84a9d16 100644 --- a/SPIN_API/src/usdl/servicemodel/Service.java +++ b/SPIN_API/src/usdl/servicemodel/Service.java @@ -10,6 +10,7 @@ import exceptions.ErrorEnum; import exceptions.InvalidLinkedUSDLModelException; import usdl.constants.enums.GREnum; +import usdl.constants.enums.Prefixes; import usdl.constants.enums.RDFEnum; import usdl.constants.enums.RDFSEnum; import usdl.constants.enums.ResourceNameEnum; @@ -28,7 +29,6 @@ public class Service{ private CloudProvider provider=null; private String localName = null; private String namespace = null; - @SuppressWarnings("unused") private final String resourceType = ResourceNameEnum.SERVICE.getResourceType(); public Service(){ @@ -50,7 +50,7 @@ public Service(String name, String nameSpace) { public Service(Service source) {//copy constructor if(source.getName() != null) - this.setName(source.getName()); + this.setName(source.getName() + PricingAPIProperties.resourceCounter++); if(source.getComment() != null) this.setComment(source.getComment()); @@ -282,20 +282,21 @@ protected static Service readFromModel(Resource resource, Model model){ * @param model Model to where the object is to be written on. * @throws InvalidLinkedUSDLModelException */ + @SuppressWarnings("null") protected void writeToModel(Resource owner, Model model, String baseURI) throws InvalidLinkedUSDLModelException { Resource service = null; - if(this.namespace == null){ //no namespace defined for this resource, we need to define one - if(baseURI != null || !baseURI.equalsIgnoreCase("")) // the baseURI argument is valid - this.namespace = baseURI; - else //use the default baseURI - this.namespace = PricingAPIProperties.defaultBaseURI; - } + + if(baseURI != null || !baseURI.equalsIgnoreCase("")) // the baseURI argument is valid + this.namespace = baseURI; + else //use the default baseURI + this.namespace = PricingAPIProperties.defaultBaseURI; + if(this.localName != null){ LinkedUSDLValidator validator = new LinkedUSDLValidator(); - validator.checkDuplicateURI(model, ResourceFactory.createResource(this.namespace + this.localName)); + validator.checkDuplicateURI(model, ResourceFactory.createResource(this.namespace + this.localName),Prefixes.USDL_CORE.getName()+":"+this.resourceType); service = model.createResource(this.namespace + this.localName); service.addProperty(RDFEnum.RDF_TYPE.getProperty(model), USDLCoreEnum.SERVICE.getResource(model));//rdf type @@ -305,14 +306,18 @@ protected void writeToModel(Resource owner, Model model, String baseURI) throws if(this.comment != null) service.addProperty(RDFSEnum.COMMENT.getProperty(model), model.createLiteral(this.comment)); // a comment - if(!this.includes.isEmpty()) + if(this.includes != null) { - for(Service sv : includes) + if(!this.includes.isEmpty()) { - sv.writeToModel(service,model,baseURI); + for(Service sv : includes) + { + sv.writeToModel(service,model,baseURI); + } } } + if(!this.quantfeatures.isEmpty()) { for(QuantitativeValue qv : this.quantfeatures) diff --git a/SPIN_API/src/usdl/servicemodel/Usage.java b/SPIN_API/src/usdl/servicemodel/Usage.java index 22dadc0..ab41813 100644 --- a/SPIN_API/src/usdl/servicemodel/Usage.java +++ b/SPIN_API/src/usdl/servicemodel/Usage.java @@ -2,6 +2,7 @@ import usdl.constants.enums.GREnum; +import usdl.constants.enums.Prefixes; import usdl.constants.enums.RDFEnum; import usdl.constants.enums.RDFSEnum; import usdl.constants.enums.ResourceNameEnum; @@ -25,7 +26,6 @@ */ public class Usage extends PriceVariable { - @SuppressWarnings("unused") private final String resourceType = ResourceNameEnum.USAGE.getResourceType(); public Usage(){ @@ -45,7 +45,7 @@ public Usage(String name, String nameSpace) { public Usage(Usage source) {//copy constructor super(); if(source.getName() != null) - this.setName(source.getName()); + this.setName(source.getName() + PricingAPIProperties.resourceCounter++); if(source.getComment() != null) this.setComment(source.getComment()); @@ -121,21 +121,21 @@ else if(val.getProperty(RDFEnum.RDF_TYPE.getProperty(model)).getResource().getUR * @param model Model to where the object is to be written on. * @throws InvalidLinkedUSDLModelException */ + @SuppressWarnings("null") public void writeToModel(Resource owner,Model model,String baseURI) throws InvalidLinkedUSDLModelException { // Initialize system functions and templates Resource var = null; - System.out.println("Writing "+ this.getName() + " LocalName: " + this.getLocalName()); - if(this.getNamespace() == null){ //no namespace defined for this resource, we need to define one - if(baseURI != null || !baseURI.equalsIgnoreCase("")) // the baseURI argument is valid - this.setNamespace(baseURI); - else //use the default baseURI - this.setNamespace(PricingAPIProperties.defaultBaseURI); - } + + if(baseURI != null || !baseURI.equalsIgnoreCase("")) // the baseURI argument is valid + this.setNamespace(baseURI); + else if(this.getNamespace() == null) //use the default baseURI + this.setNamespace(PricingAPIProperties.defaultBaseURI); + if(this.getLocalName() != null){ LinkedUSDLValidator validator = new LinkedUSDLValidator(); - validator.checkDuplicateURI(model, ResourceFactory.createResource(this.getNamespace() + this.getLocalName())); + validator.checkDuplicateURI(model, ResourceFactory.createResource(this.getNamespace() + this.getLocalName()),Prefixes.USDL_PRICE.getName()+":"+this.resourceType); var = model.createResource(this.getNamespace() + this.getLocalName()); var.addProperty(RDFEnum.RDF_TYPE.getProperty(model), USDLPriceEnum.USAGE.getResource(model)); diff --git a/SPIN_API/src/usdl/servicemodel/validations/LinkedUSDLValidator.java b/SPIN_API/src/usdl/servicemodel/validations/LinkedUSDLValidator.java index adb6aaf..a7dbd2d 100644 --- a/SPIN_API/src/usdl/servicemodel/validations/LinkedUSDLValidator.java +++ b/SPIN_API/src/usdl/servicemodel/validations/LinkedUSDLValidator.java @@ -2,19 +2,13 @@ import usdl.constants.properties.PricingAPIProperties; import usdl.queries.ReaderQueries; -import usdl.servicemodel.Offering; -import usdl.servicemodel.Usage; - import com.hp.hpl.jena.query.Query; import com.hp.hpl.jena.query.QueryExecution; import com.hp.hpl.jena.query.QueryExecutionFactory; import com.hp.hpl.jena.query.QueryFactory; -import com.hp.hpl.jena.query.QuerySolution; import com.hp.hpl.jena.query.ResultSet; import com.hp.hpl.jena.rdf.model.Model; import com.hp.hpl.jena.rdf.model.Resource; -import com.hp.hpl.jena.rdf.model.ResourceFactory; - import exceptions.ErrorEnum; import exceptions.InvalidLinkedUSDLModelException; @@ -48,27 +42,17 @@ public void validateModel(Model model) throws InvalidLinkedUSDLModelException{ } } - public void checkDuplicateURI(Model model, Resource resource) throws InvalidLinkedUSDLModelException{ + public void checkDuplicateURI(Model model, Resource resource,String classType) throws InvalidLinkedUSDLModelException{ - String variableName = "offering"; - - String queryString = ReaderQueries.readAllUsageVariables(variableName); - System.out.println(queryString); - //System.out.println(queryString); + + String queryString = ReaderQueries.findResource(resource.getNameSpace()+resource.getLocalName(), classType); +// System.out.println(queryString); Query query = QueryFactory.create(queryString); QueryExecution exec = QueryExecutionFactory.create(query, model); ResultSet results = exec.execSelect(); - - while(results.hasNext()){ - QuerySolution row = results.next(); - Usage pv = Usage.readFromModel(row.getResource(variableName), model); - System.out.println(pv.getName() + " ----- " + pv.getLocalName()); - } - - - if(model.containsResource(resource)) + if(results.hasNext()) throw new InvalidLinkedUSDLModelException(ErrorEnum.DUPLICATE_RESOURCE, new String[]{resource.getLocalName(), resource.getNameSpace()}); }