Showing
4 changed files
with
129 additions
and
78 deletions
| 1 | # baseURI: http://www.reportinghub.no/ep/schema/1.0/geography | 1 | # baseURI: http://www.reportinghub.no/ep/schema/1.0/geography |
| 2 | # imports: http://www.reportinghub.no/ep/schema/1.0/core | 2 | # imports: http://www.reportinghub.no/ep/schema/1.0/core |
| 3 | # imports: http://www.reportinghub.no/ep/schema/1.0/facility | 3 | # imports: http://www.reportinghub.no/ep/schema/1.0/facility |
| 4 | +# imports: http://www.reportinghub.no/ep/schema/1.0/production-core | ||
| 4 | 5 | ||
| 5 | @prefix ep-fac: <http://www.reportinghub.no/ep/schema/facility#> . | 6 | @prefix ep-fac: <http://www.reportinghub.no/ep/schema/facility#> . |
| 6 | @prefix ep-geo: <http://www.reportinghub.no/ep/schema/geography#> . | 7 | @prefix ep-geo: <http://www.reportinghub.no/ep/schema/geography#> . |
| ... | @@ -11,48 +12,78 @@ | ... | @@ -11,48 +12,78 @@ |
| 11 | 12 | ||
| 12 | <http://www.reportinghub.no/ep/schema/1.0/geography> | 13 | <http://www.reportinghub.no/ep/schema/1.0/geography> |
| 13 | rdf:type owl:Ontology ; | 14 | rdf:type owl:Ontology ; |
| 14 | - owl:imports <http://www.reportinghub.no/ep/schema/1.0/facility> , <http://www.reportinghub.no/ep/schema/1.0/core> ; | 15 | + owl:imports <http://www.reportinghub.no/ep/schema/1.0/production-core> , <http://www.reportinghub.no/ep/schema/1.0/core> , <http://www.reportinghub.no/ep/schema/1.0/facility> ; |
| 15 | owl:versionInfo "Created with TopBraid Composer"^^xsd:string . | 16 | owl:versionInfo "Created with TopBraid Composer"^^xsd:string . |
| 16 | 17 | ||
| 17 | ep-geo:AreaCoveredByBusinessArrangement | 18 | ep-geo:AreaCoveredByBusinessArrangement |
| 18 | - rdf:type ep-fac:ProductionFacilityType , owl:Class ; | 19 | + rdf:type owl:Class , ep-fac:ProductionFacilityType ; |
| 19 | rdfs:label "NPD Block"^^xsd:string ; | 20 | rdfs:label "NPD Block"^^xsd:string ; |
| 20 | rdfs:subClassOf ep-geo:PartOfTheSurfaceOfTheEarth ; | 21 | rdfs:subClassOf ep-geo:PartOfTheSurfaceOfTheEarth ; |
| 21 | - owl:disjointWith ep-geo:NpdPolygon , ep-geo:NpdBlock , ep-geo:Country , ep-geo:State , ep-geo:County . | 22 | + owl:disjointWith ep-geo:County , ep-geo:State , ep-geo:Country , ep-geo:NpdBlock , ep-geo:NpdPolygon . |
| 22 | 23 | ||
| 23 | ep-geo:Country | 24 | ep-geo:Country |
| 24 | - rdf:type ep-fac:ProductionFacilityType , owl:Class ; | 25 | + rdf:type owl:Class , ep-fac:ProductionFacilityType ; |
| 25 | rdfs:label "country"^^xsd:string ; | 26 | rdfs:label "country"^^xsd:string ; |
| 26 | rdfs:subClassOf ep-geo:PartOfTheSurfaceOfTheEarth ; | 27 | rdfs:subClassOf ep-geo:PartOfTheSurfaceOfTheEarth ; |
| 27 | - owl:disjointWith ep-geo:NpdBlock , ep-geo:NpdPolygon , ep-geo:County , ep-geo:State . | 28 | + owl:disjointWith ep-geo:State , ep-geo:County , ep-geo:NpdPolygon , ep-geo:NpdBlock . |
| 28 | 29 | ||
| 29 | ep-geo:County | 30 | ep-geo:County |
| 30 | - rdf:type ep-fac:ProductionFacilityType , owl:Class ; | 31 | + rdf:type owl:Class , ep-fac:ProductionFacilityType ; |
| 31 | rdfs:label "county"^^xsd:string ; | 32 | rdfs:label "county"^^xsd:string ; |
| 32 | rdfs:subClassOf ep-geo:PartOfTheSurfaceOfTheEarth ; | 33 | rdfs:subClassOf ep-geo:PartOfTheSurfaceOfTheEarth ; |
| 33 | - owl:disjointWith ep-geo:NpdBlock , ep-geo:NpdPolygon , ep-geo:State , ep-geo:Country . | 34 | + owl:disjointWith ep-geo:Country , ep-geo:State , ep-geo:NpdPolygon , ep-geo:NpdBlock . |
| 34 | 35 | ||
| 35 | ep-geo:NpdBlock | 36 | ep-geo:NpdBlock |
| 36 | - rdf:type ep-fac:ProductionFacilityType , owl:Class ; | 37 | + rdf:type owl:Class , ep-fac:ProductionFacilityType ; |
| 37 | rdfs:label "NPD Block"^^xsd:string ; | 38 | rdfs:label "NPD Block"^^xsd:string ; |
| 38 | rdfs:subClassOf ep-geo:PartOfTheSurfaceOfTheEarth ; | 39 | rdfs:subClassOf ep-geo:PartOfTheSurfaceOfTheEarth ; |
| 39 | - owl:disjointWith ep-geo:Country , ep-geo:State , ep-geo:County . | 40 | + owl:disjointWith ep-geo:County , ep-geo:State , ep-geo:Country . |
| 40 | 41 | ||
| 41 | ep-geo:NpdPolygon | 42 | ep-geo:NpdPolygon |
| 42 | rdf:type owl:Class ; | 43 | rdf:type owl:Class ; |
| 43 | rdfs:subClassOf ep-geo:PartOfTheSurfaceOfTheEarth ; | 44 | rdfs:subClassOf ep-geo:PartOfTheSurfaceOfTheEarth ; |
| 44 | - owl:disjointWith ep-geo:State , ep-geo:NpdBlock , ep-geo:County , ep-geo:Country . | 45 | + owl:disjointWith ep-geo:Country , ep-geo:County , ep-geo:NpdBlock , ep-geo:State . |
| 46 | + | ||
| 47 | +ep-geo:OffshoreLocation | ||
| 48 | + rdf:type owl:Class ; | ||
| 49 | + rdfs:label "offshore location"^^xsd:string ; | ||
| 50 | + rdfs:subClassOf ep-geo:PartOfTheSurfaceOfTheEarth . | ||
| 45 | 51 | ||
| 46 | ep-geo:PartOfTheSurfaceOfTheEarth | 52 | ep-geo:PartOfTheSurfaceOfTheEarth |
| 47 | rdf:type owl:Class ; | 53 | rdf:type owl:Class ; |
| 48 | rdfs:label "part of the surface of the earth"^^xsd:string ; | 54 | rdfs:label "part of the surface of the earth"^^xsd:string ; |
| 49 | - rdfs:subClassOf <http://www.reportinghub.no/ep/schema/core#PhysicalObject> . | 55 | + rdfs:subClassOf <http://www.reportinghub.no/ep/schema/production-core#TemporalPartOfARegionOfSpace> . |
| 50 | 56 | ||
| 51 | ep-geo:State | 57 | ep-geo:State |
| 52 | - rdf:type ep-fac:ProductionFacilityType , owl:Class ; | 58 | + rdf:type owl:Class , ep-fac:ProductionFacilityType ; |
| 53 | rdfs:label "state"^^xsd:string ; | 59 | rdfs:label "state"^^xsd:string ; |
| 54 | rdfs:subClassOf ep-geo:PartOfTheSurfaceOfTheEarth ; | 60 | rdfs:subClassOf ep-geo:PartOfTheSurfaceOfTheEarth ; |
| 55 | - owl:disjointWith ep-geo:NpdBlock , ep-geo:NpdPolygon , ep-geo:County , ep-geo:Country . | 61 | + owl:disjointWith ep-geo:Country , ep-geo:County , ep-geo:NpdPolygon , ep-geo:NpdBlock . |
| 62 | + | ||
| 63 | +ep-geo:hasAreaName | ||
| 64 | + rdf:type owl:DatatypeProperty ; | ||
| 65 | + rdfs:domain ep-geo:OffshoreLocation ; | ||
| 66 | + rdfs:label "has area name"^^xsd:string . | ||
| 67 | + | ||
| 68 | +ep-geo:hasNorthSeaAreaName | ||
| 69 | + rdf:type owl:DatatypeProperty ; | ||
| 70 | + rdfs:domain ep-geo:OffshoreLocation ; | ||
| 71 | + rdfs:label "has North Sea area name"^^xsd:string . | ||
| 72 | + | ||
| 73 | +ep-geo:hasNorthSeaBlockSuffixId | ||
| 74 | + rdf:type owl:DatatypeProperty ; | ||
| 75 | + rdfs:domain ep-geo:OffshoreLocation ; | ||
| 76 | + rdfs:label "has North Sea block suffix ID"^^xsd:string . | ||
| 77 | + | ||
| 78 | +ep-geo:hasNorthSeaQuadrantId | ||
| 79 | + rdf:type owl:DatatypeProperty ; | ||
| 80 | + rdfs:domain ep-geo:OffshoreLocation ; | ||
| 81 | + rdfs:label "has North Sea quadrant ID"^^xsd:string . | ||
| 82 | + | ||
| 83 | +ep-geo:hasOffshoreLocationComment | ||
| 84 | + rdf:type owl:DatatypeProperty ; | ||
| 85 | + rdfs:domain ep-geo:OffshoreLocation ; | ||
| 86 | + rdfs:label "has offshore location comment"^^xsd:string . | ||
| 56 | 87 | ||
| 57 | ep-geo:locatedWithin | 88 | ep-geo:locatedWithin |
| 58 | rdf:type owl:ObjectProperty ; | 89 | rdf:type owl:ObjectProperty ; | ... | ... |
| ... | @@ -48,7 +48,7 @@ sp:if | ... | @@ -48,7 +48,7 @@ sp:if |
| 48 | 48 | ||
| 49 | <http://www.reportinghub.no/ep/dpr/spin/1.1/lib> | 49 | <http://www.reportinghub.no/ep/dpr/spin/1.1/lib> |
| 50 | rdf:type owl:Ontology ; | 50 | rdf:type owl:Ontology ; |
| 51 | - owl:imports <http://www.reportinghub.no/ep/spin/1.1/lib> , <http://www.reportinghub.no/ep/schema/1.0/production-core> , <http://www.witsml.org/schemas/131/addendum/combo> , <http://www.reportinghub.no/ep/schema/1.0/production> , <http://spinrdf.org/spin> ; | 51 | + owl:imports <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/schema/1.0/production> , <http://www.witsml.org/schemas/131/addendum/combo> , <http://www.reportinghub.no/ep/schema/1.0/production-core> , <http://www.reportinghub.no/ep/spin/1.1/lib> ; |
| 52 | owl:versionInfo "Created with TopBraid Composer"^^xsd:string . | 52 | owl:versionInfo "Created with TopBraid Composer"^^xsd:string . |
| 53 | 53 | ||
| 54 | ep-dpr-spin-lib:BuildDailyProductionReportURI | 54 | ep-dpr-spin-lib:BuildDailyProductionReportURI |
| ... | @@ -152,6 +152,26 @@ arg2 is report end date"""^^xsd:string ; | ... | @@ -152,6 +152,26 @@ arg2 is report end date"""^^xsd:string ; |
| 152 | ]) | 152 | ]) |
| 153 | ] . | 153 | ] . |
| 154 | 154 | ||
| 155 | +ep-dpr-spin-lib:buildBlockURI | ||
| 156 | + rdf:type spin:Function ; | ||
| 157 | + rdfs:subClassOf ep-dpr-spin-lib:Function ; | ||
| 158 | + spin:body | ||
| 159 | + [ rdf:type sp:Select ; | ||
| 160 | + rdfs:comment "arg1 is the block ID"^^xsd:string ; | ||
| 161 | + sp:resultVariables ([ sp:varName "uri"^^xsd:string | ||
| 162 | + ]) ; | ||
| 163 | + sp:where ([ rdf:type sp:Bind ; | ||
| 164 | + sp:expression | ||
| 165 | + [ rdf:type ep-spin-lib:buildURI ; | ||
| 166 | + sp:arg1 "https://www.reportinghub.no/ep/data/block/" ; | ||
| 167 | + sp:arg2 spin:_arg1 | ||
| 168 | + ] ; | ||
| 169 | + sp:variable | ||
| 170 | + [ sp:varName "uri"^^xsd:string | ||
| 171 | + ] | ||
| 172 | + ]) | ||
| 173 | + ] . | ||
| 174 | + | ||
| 155 | ep-dpr-spin-lib:buildCountryURI | 175 | ep-dpr-spin-lib:buildCountryURI |
| 156 | rdf:type spin:Function ; | 176 | rdf:type spin:Function ; |
| 157 | rdfs:label "build Country URI"^^xsd:string ; | 177 | rdfs:label "build Country URI"^^xsd:string ; |
| ... | @@ -5470,6 +5490,22 @@ ep-dpr-spin-lib:selectSpecificVolumeScale_MASS_CONCENTRATION | ... | @@ -5470,6 +5490,22 @@ ep-dpr-spin-lib:selectSpecificVolumeScale_MASS_CONCENTRATION |
| 5470 | rdfs:subClassOf ep-dpr-spin-lib:Function ; | 5490 | rdfs:subClassOf ep-dpr-spin-lib:Function ; |
| 5471 | spin:body | 5491 | spin:body |
| 5472 | [ rdf:type sp:Select ; | 5492 | [ rdf:type sp:Select ; |
| 5493 | + sp:resultVariables (_:b29) ; | ||
| 5494 | + sp:where ([ rdf:type sp:Bind ; | ||
| 5495 | + sp:expression | ||
| 5496 | + [ rdf:type sp:if ; | ||
| 5497 | + sp:arg1 [ rdf:type sp:eq ; | ||
| 5498 | + sp:arg1 spin:_arg1 ; | ||
| 5499 | + sp:arg2 <http://www.witsml.org/schemas/131/addendum/combo#VPVU_m3m3> | ||
| 5500 | + ] ; | ||
| 5501 | + sp:arg2 <http://www.reportinghub.no/ep/schema/core#fractionByVolume> ; | ||
| 5502 | + sp:arg3 <http://www.reportinghub.no/ep/schema/core#undefinedScale> | ||
| 5503 | + ] ; | ||
| 5504 | + sp:variable _:b29 | ||
| 5505 | + ]) | ||
| 5506 | + ] ; | ||
| 5507 | + spin:body | ||
| 5508 | + [ rdf:type sp:Select ; | ||
| 5473 | sp:resultVariables ([ sp:varName "myVar"^^xsd:string | 5509 | sp:resultVariables ([ sp:varName "myVar"^^xsd:string |
| 5474 | ]) ; | 5510 | ]) ; |
| 5475 | sp:where ([ rdf:type sp:Bind ; | 5511 | sp:where ([ rdf:type sp:Bind ; |
| ... | @@ -5549,22 +5585,6 @@ ep-dpr-spin-lib:selectSpecificVolumeScale_MASS_CONCENTRATION | ... | @@ -5549,22 +5585,6 @@ ep-dpr-spin-lib:selectSpecificVolumeScale_MASS_CONCENTRATION |
| 5549 | [ sp:varName "myVar"^^xsd:string | 5585 | [ sp:varName "myVar"^^xsd:string |
| 5550 | ] | 5586 | ] |
| 5551 | ]) | 5587 | ]) |
| 5552 | - ] ; | ||
| 5553 | - spin:body | ||
| 5554 | - [ rdf:type sp:Select ; | ||
| 5555 | - sp:resultVariables (_:b29) ; | ||
| 5556 | - sp:where ([ rdf:type sp:Bind ; | ||
| 5557 | - sp:expression | ||
| 5558 | - [ rdf:type sp:if ; | ||
| 5559 | - sp:arg1 [ rdf:type sp:eq ; | ||
| 5560 | - sp:arg1 spin:_arg1 ; | ||
| 5561 | - sp:arg2 <http://www.witsml.org/schemas/131/addendum/combo#VPVU_m3m3> | ||
| 5562 | - ] ; | ||
| 5563 | - sp:arg2 <http://www.reportinghub.no/ep/schema/core#fractionByVolume> ; | ||
| 5564 | - sp:arg3 <http://www.reportinghub.no/ep/schema/core#undefinedScale> | ||
| 5565 | - ] ; | ||
| 5566 | - sp:variable _:b29 | ||
| 5567 | - ]) | ||
| 5568 | ] . | 5588 | ] . |
| 5569 | 5589 | ||
| 5570 | ep-dpr-spin-lib:selectTemperatureScale | 5590 | ep-dpr-spin-lib:selectTemperatureScale |
| ... | @@ -7093,89 +7113,89 @@ ep-dpr-spin-lib:selectWorkScale | ... | @@ -7093,89 +7113,89 @@ ep-dpr-spin-lib:selectWorkScale |
| 7093 | ]) | 7113 | ]) |
| 7094 | ] . | 7114 | ] . |
| 7095 | 7115 | ||
| 7096 | -_:b32 | 7116 | +_:b1 sp:varName "uri"^^xsd:string . |
| 7097 | - sp:varName "volumeFlowRateAtStdType"^^xsd:string . | ||
| 7098 | - | ||
| 7099 | -_:b31 | ||
| 7100 | - sp:varName "volumeAtStdType"^^xsd:string . | ||
| 7101 | - | ||
| 7102 | -_:b30 | ||
| 7103 | - sp:varName "temporalPartOfAFlowDurationType"^^xsd:string . | ||
| 7104 | - | ||
| 7105 | -_:b29 | ||
| 7106 | - sp:varName "specificVolumeScale"^^xsd:string . | ||
| 7107 | 7117 | ||
| 7108 | -_:b28 | 7118 | +_:b2 sp:varName "uri"^^xsd:string . |
| 7109 | - sp:varName "safetyActivityType"^^xsd:string . | ||
| 7110 | 7119 | ||
| 7111 | -_:b27 | 7120 | +_:b3 sp:varName "UUID"^^xsd:string . |
| 7112 | - sp:varName "relationshipToMeasure"^^xsd:string . | ||
| 7113 | 7121 | ||
| 7114 | -_:b26 | 7122 | +_:b4 sp:varName "uri"^^xsd:string . |
| 7115 | - sp:varName "productionFlowPurposeType"^^xsd:string . | ||
| 7116 | 7123 | ||
| 7117 | -_:b25 | 7124 | +_:b5 sp:varName "uri"^^xsd:string . |
| 7118 | - sp:varName "productionFlowDirectionRelationshipType"^^xsd:string . | ||
| 7119 | 7125 | ||
| 7120 | -_:b24 | 7126 | +_:b6 sp:varName "uri"^^xsd:string . |
| 7121 | - sp:varName "productionFlowDirectionRelationshipType"^^xsd:string . | ||
| 7122 | 7127 | ||
| 7123 | -_:b23 | 7128 | +_:b7 sp:varName "uri"^^xsd:string . |
| 7124 | - sp:varName "productionFlowDefinitionType"^^xsd:string . | ||
| 7125 | 7129 | ||
| 7126 | -_:b22 | 7130 | +_:b8 sp:varName "uri"^^xsd:string . |
| 7127 | - sp:varName "productionFacilityType"^^xsd:string . | ||
| 7128 | 7131 | ||
| 7129 | -_:b21 | 7132 | +_:b9 sp:varName "uri"^^xsd:string . |
| 7130 | - sp:varName "productType"^^xsd:string . | ||
| 7131 | 7133 | ||
| 7132 | -_:b20 | 7134 | +_:b10 |
| 7133 | - sp:varName "densityScale"^^xsd:string . | 7135 | + sp:varName "uri"^^xsd:string . |
| 7134 | 7136 | ||
| 7135 | -_:b19 | 7137 | +_:b11 |
| 7136 | sp:varName "uri"^^xsd:string . | 7138 | sp:varName "uri"^^xsd:string . |
| 7137 | 7139 | ||
| 7138 | -_:b18 | 7140 | +_:b12 |
| 7139 | sp:varName "uri"^^xsd:string . | 7141 | sp:varName "uri"^^xsd:string . |
| 7140 | 7142 | ||
| 7141 | -_:b17 | 7143 | +_:b13 |
| 7142 | sp:varName "uri"^^xsd:string . | 7144 | sp:varName "uri"^^xsd:string . |
| 7143 | 7145 | ||
| 7144 | -_:b16 | 7146 | +_:b14 |
| 7145 | sp:varName "uri"^^xsd:string . | 7147 | sp:varName "uri"^^xsd:string . |
| 7146 | 7148 | ||
| 7147 | _:b15 | 7149 | _:b15 |
| 7148 | sp:varName "uri"^^xsd:string . | 7150 | sp:varName "uri"^^xsd:string . |
| 7149 | 7151 | ||
| 7150 | -_:b14 | 7152 | +_:b16 |
| 7151 | sp:varName "uri"^^xsd:string . | 7153 | sp:varName "uri"^^xsd:string . |
| 7152 | 7154 | ||
| 7153 | -_:b13 | 7155 | +_:b17 |
| 7154 | sp:varName "uri"^^xsd:string . | 7156 | sp:varName "uri"^^xsd:string . |
| 7155 | 7157 | ||
| 7156 | -_:b12 | 7158 | +_:b18 |
| 7157 | sp:varName "uri"^^xsd:string . | 7159 | sp:varName "uri"^^xsd:string . |
| 7158 | 7160 | ||
| 7159 | -_:b11 | 7161 | +_:b19 |
| 7160 | sp:varName "uri"^^xsd:string . | 7162 | sp:varName "uri"^^xsd:string . |
| 7161 | 7163 | ||
| 7162 | -_:b10 | 7164 | +_:b20 |
| 7163 | - sp:varName "uri"^^xsd:string . | 7165 | + sp:varName "densityScale"^^xsd:string . |
| 7164 | 7166 | ||
| 7165 | -_:b9 sp:varName "uri"^^xsd:string . | 7167 | +_:b21 |
| 7168 | + sp:varName "productType"^^xsd:string . | ||
| 7166 | 7169 | ||
| 7167 | -_:b8 sp:varName "uri"^^xsd:string . | 7170 | +_:b22 |
| 7171 | + sp:varName "productionFacilityType"^^xsd:string . | ||
| 7168 | 7172 | ||
| 7169 | -_:b7 sp:varName "uri"^^xsd:string . | 7173 | +_:b23 |
| 7174 | + sp:varName "productionFlowDefinitionType"^^xsd:string . | ||
| 7170 | 7175 | ||
| 7171 | -_:b6 sp:varName "uri"^^xsd:string . | 7176 | +_:b24 |
| 7177 | + sp:varName "productionFlowDirectionRelationshipType"^^xsd:string . | ||
| 7172 | 7178 | ||
| 7173 | -_:b5 sp:varName "uri"^^xsd:string . | 7179 | +_:b25 |
| 7180 | + sp:varName "productionFlowDirectionRelationshipType"^^xsd:string . | ||
| 7174 | 7181 | ||
| 7175 | -_:b4 sp:varName "uri"^^xsd:string . | 7182 | +_:b26 |
| 7183 | + sp:varName "productionFlowPurposeType"^^xsd:string . | ||
| 7176 | 7184 | ||
| 7177 | -_:b3 sp:varName "UUID"^^xsd:string . | 7185 | +_:b27 |
| 7186 | + sp:varName "relationshipToMeasure"^^xsd:string . | ||
| 7178 | 7187 | ||
| 7179 | -_:b2 sp:varName "uri"^^xsd:string . | 7188 | +_:b28 |
| 7189 | + sp:varName "safetyActivityType"^^xsd:string . | ||
| 7180 | 7190 | ||
| 7181 | -_:b1 sp:varName "uri"^^xsd:string . | 7191 | +_:b29 |
| 7192 | + sp:varName "specificVolumeScale"^^xsd:string . | ||
| 7193 | + | ||
| 7194 | +_:b30 | ||
| 7195 | + sp:varName "temporalPartOfAFlowDurationType"^^xsd:string . | ||
| 7196 | + | ||
| 7197 | +_:b31 | ||
| 7198 | + sp:varName "volumeAtStdType"^^xsd:string . | ||
| 7199 | + | ||
| 7200 | +_:b32 | ||
| 7201 | + sp:varName "volumeFlowRateAtStdType"^^xsd:string . | ... | ... |
www.reportinghub.no/ep/transform/TRANSFORM_dpr-dailyProductionActivity-v1.1.1.ttl
deleted
100644 → 0
This diff is collapsed. Click to expand it.
This diff could not be displayed because it is too large.
-
Please register or login to post a comment