Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
ENERSHARE
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OPEN
ENERSHARE
Commits
52108549
Commit
52108549
authored
3 months ago
by
Lejarazu Marquina, Adelaida
Browse files
Options
Downloads
Patches
Plain Diff
Edit constructEnershareToEumed.rqg - included XSD types
parent
e42a6920
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
mappings/EDSCP/Enershare-Eumed/constructEnershareToEumed.rqg
+16
-7
16 additions, 7 deletions
mappings/EDSCP/Enershare-Eumed/constructEnershareToEumed.rqg
with
16 additions
and
7 deletions
mappings/EDSCP/Enershare-Eumed/constructEnershareToEumed.rqg
+
16
−
7
View file @
52108549
...
@@ -18,6 +18,7 @@ PREFIX sch:<https:schema.org/>
...
@@ -18,6 +18,7 @@ PREFIX sch:<https:schema.org/>
PREFIX ex: <http://www.example.com>
PREFIX ex: <http://www.example.com>
PREFIX dcterms: <http://purl.org/dc/terms/>
PREFIX dcterms: <http://purl.org/dc/terms/>
# On the Repository Enershare Energy 500
CONSTRUCT {
CONSTRUCT {
?MeterReadingSet rdf:type owl:NamedIndividual, eme:MeterReadingSet .
?MeterReadingSet rdf:type owl:NamedIndividual, eme:MeterReadingSet .
...
@@ -27,14 +28,14 @@ CONSTRUCT {
...
@@ -27,14 +28,14 @@ CONSTRUCT {
eme:isMeterReadingAsPartOfMeterReadingSet ?MeterReadingSet.
eme:isMeterReadingAsPartOfMeterReadingSet ?MeterReadingSet.
?DateTimeInterval_1 rdf:type owl:NamedIndividual, time:DateTimeInterval;
?DateTimeInterval_1 rdf:type owl:NamedIndividual, time:DateTimeInterval;
time:hasBeginning ?minDateTime;
time:hasBeginning ?minDateTime
XSD
;
time:hasEnd ?maxDateTime.
time:hasEnd ?maxDateTime
XSD
.
?intervalReadingURI rdf:type owl:NamedIndividual, eme:IntervalReading ;
?intervalReadingURI rdf:type owl:NamedIndividual, eme:IntervalReading ;
eme:isPartOfIntervalBlock ?intervalBlockURI ;
eme:isPartOfIntervalBlock ?intervalBlockURI ;
eme:value ?new
v
alue ;
eme:value ?new
V
alue
XSD
;
eme:timeStamp ?dateTime.
eme:timeStamp ?dateTime
XSD
.
?intervalBlockURI a owl:NamedIndividual, eme:IntervalBlock;
?intervalBlockURI a owl:NamedIndividual, eme:IntervalBlock;
...
@@ -46,7 +47,7 @@ CONSTRUCT {
...
@@ -46,7 +47,7 @@ CONSTRUCT {
eme:hasNameAsUsagePoint ?usagePointName_1.
eme:hasNameAsUsagePoint ?usagePointName_1.
?usagePointName_1 rdf:type owl:NamedIndividual, eme:Name ;
?usagePointName_1 rdf:type owl:NamedIndividual, eme:Name ;
eme:name ?HouseHoldLabel ;
eme:name ?HouseHoldLabel
XSD
;
eme:hasNameType sample:NameType_1. #-- EUMED UsagePoint
eme:hasNameType sample:NameType_1. #-- EUMED UsagePoint
sample:NameType_1 rdf:type owl:NamedIndividual, eme:NameType ;
sample:NameType_1 rdf:type owl:NamedIndividual, eme:NameType ;
...
@@ -62,7 +63,7 @@ CONSTRUCT {
...
@@ -62,7 +63,7 @@ CONSTRUCT {
eme:multiplier ?newUnitMultiplier.
eme:multiplier ?newUnitMultiplier.
?ReadingTypeName_2 rdf:type owl:NamedIndividual, eme:Name ;
?ReadingTypeName_2 rdf:type owl:NamedIndividual, eme:Name ;
eme:name ?ElectricEnergyConsumptionPropertyLabel ;
eme:name ?ElectricEnergyConsumptionPropertyLabel
XSD
;
eme:hasNameType sample:NameType_2.
eme:hasNameType sample:NameType_2.
sample:NameType_2 rdf:type owl:NamedIndividual, eme:NameType ;
sample:NameType_2 rdf:type owl:NamedIndividual, eme:NameType ;
...
@@ -109,7 +110,7 @@ CONSTRUCT {
...
@@ -109,7 +110,7 @@ CONSTRUCT {
?timeSeriesURI rdf:type ic-data:TimeSeries, owl:NamedIndividual ;
?timeSeriesURI rdf:type ic-data:TimeSeries, owl:NamedIndividual ;
ic-data:hasDataPoint ?ElectricEnergyConsumptionEvaluation;
ic-data:hasDataPoint ?ElectricEnergyConsumptionEvaluation;
ic-data:hasTemporalResolution ?duration ;
ic-data:hasTemporalResolution ?duration ;
ic-data:hasUpdateRate ?duration
n
;
ic-data:hasUpdateRate ?duration ;
ic-data:hasUsage ?usage;
ic-data:hasUsage ?usage;
qudt:hasQuantityKind ?quantityKind;
qudt:hasQuantityKind ?quantityKind;
qudt:hasUnit ?unit.
qudt:hasUnit ?unit.
...
@@ -141,6 +142,7 @@ CONSTRUCT {
...
@@ -141,6 +142,7 @@ CONSTRUCT {
BIND(IF( ?quantityKind = <http://qudt.org/vocab/quantitykind/Energy> , eme:energy , ?empty) AS ?measureKind)
BIND(IF( ?quantityKind = <http://qudt.org/vocab/quantitykind/Energy> , eme:energy , ?empty) AS ?measureKind)
BIND(IF( ?unit = qudt-unit:KiloW-HR, eme:Wh, ?empty) AS ?newUnit)
BIND(IF( ?unit = qudt-unit:KiloW-HR, eme:Wh, ?empty) AS ?newUnit)
BIND(IF( ?unit = qudt-unit:KiloW-HR, eme:k, ?empty) AS ?newUnitMultiplier)
BIND(IF( ?unit = qudt-unit:KiloW-HR, eme:k, ?empty) AS ?newUnitMultiplier)
BIND(IF( ?usage = ic-data:consumption, eme:forward, ?empty) AS ?flowDirection)
BIND(IF( ?usage = ic-data:consumption, eme:forward, ?empty) AS ?flowDirection)
...
@@ -149,4 +151,11 @@ CONSTRUCT {
...
@@ -149,4 +151,11 @@ CONSTRUCT {
BIND(IF( ?duration ="PT15M"^^xsd:duration ,eme:fifteenMinute , ?empty) AS ?durationyTarget)
BIND(IF( ?duration ="PT15M"^^xsd:duration ,eme:fifteenMinute , ?empty) AS ?durationyTarget)
BIND(STRBEFORE(str(?value), " ") AS ?newvalue)
BIND(STRBEFORE(str(?value), " ") AS ?newvalue)
BIND (xsd:dateTime(?minDateTime) as ?minDateTimeXSD)
BIND (xsd:dateTime(?maxDateTime) as ?maxDateTimeXSD)
BIND (xsd:dateTime(?dateTime) as ?dateTimeXSD)
BIND (xsd:float(?newvalue) as ?newValueXSD)
BIND (xsd:string(?HouseHoldLabel) as ?HouseHoldLabelXSD)
BIND (xsd:string(?ElectricEnergyConsumptionPropertyLabel) as ?ElectricEnergyConsumptionPropertyLabelXSD)
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment