Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EO-QB updates and some QB4ST fixes #742

Merged
merged 4 commits into from
May 17, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
104 changes: 58 additions & 46 deletions eo-qb/ANU-LED-example.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
@prefix qb4st: <http://www.w3.org/ns/qb4st/> .
@prefix ogc: <http://www.opengis.net/ont/geosparql#> .
@prefix qb: <http://purl.org/linked-data/cube#> .
@prefix ssn: <http://purl.oclc.org/NET/ssnx/ssn#> .
@prefix ssn: <http://www.w3.org/ns/ssn/> .
@prefix sosa: <http://www.w3.org/ns/sosa/> .
@prefix geo: <http://www.w3.org/2003/01/geo/wgs84_pos#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
Expand Down Expand Up @@ -35,8 +36,7 @@
:band "4" ;
:coverageSpatialDomain "POLYGON((90 41.87, 93.33 41.87, 93.33 38.18, 90 38.18, 90 41.87))"^^ogc:wktLiteral ;
:coverageTemporalDomain :timeDomain ;
prov:wasGeneratedBy :ANU-led-resampling ;
prov:wasDerivedFrom :AGDC .
prov:wasGeneratedBy :ANU-led-resampling .

###################################################################
# #
Expand All @@ -47,7 +47,7 @@
:timeDomain a time:Interval ;
time:hasBeginning :timeBeginning ;
time:hasEnd :timeEnd .

:timeBeginning a time:Instant ;
time:inXSDDateTime "2001-10-26T21:32:52"^^xsd:dateTime .

Expand All @@ -60,16 +60,16 @@
# #
###################################################################

:landsat-8 a ssn:Platform ;
:landsat-8 a sosa:Platform ;
owl:sameAs cci-platform:plat_landsat_8 .

:OLI a ssn:Sensor ;
ssn:onPlatform :landsat-8 ;
ssn:hasMeasurementCapability :oli-capability ;
ssn:observes :reflectance ;
:OLI a sosa:Sensor ;
sosa:isHostedBy :landsat-8 ;
ssn:hasSystemCapability :oli-capability ;
sosa:observes :reflectance ;
owl:sameAs cci-sensor:sens_oli .

:oli-capability a ssn:MeasurementCapability ;
:oli-capability a ssn:SystemCapability ;
ssn:forProperty :reflectance .

:reflectance a ssn:Property, skos:Concept ;
Expand All @@ -91,14 +91,22 @@
foaf:mbox <mailto:dmitry.brizhinev@anu.edu.au> .

:AGDC a prov:Collection ;
prov:wasAssociatedWith :GeoscienceAustralia ;
prov:wasAttributedTo :GeoscienceAustralia ;
prov:hadMember :example-tile .

:example-tile a prov:Entity ;
prov:alternateOf <http://dapds00.nci.org.au/thredds/catalog/rs0/tiles/EPSG4326_1deg_0.00025pixel/LS8_OLI_TIRS/148_-035/2016/catalog.html?dataset=rs0/tiles/EPSG4326_1deg_0.00025pixel/LS8_OLI_TIRS/148_-035/2016/LS8_OLI_TIRS_FC_148_-035_2016-01-12T23-55-57.tif> .

:GeoscienceAustralia a prov:Agent, prov:Organization .

###################################################################
# #
# Define our CRS
# #
# #################################################################

:rHEALPix a qb4st:CRS .

###################################################################
# #
# Dimensions and attributes
Expand All @@ -114,7 +122,8 @@
:satelliteComponent ,
:instrumentComponent ,
:bandComponent ,
:dataComponent ,
:dataImageComponent ,
:dataPixelComponent ,
:dggsCellComponent ,
:dggsLevelSquareComponent ,
:dggsLevelPixelComponent ,
Expand All @@ -123,7 +132,7 @@

:spatialDomainComponent a qb4st:SpatialComponentSpecification ;
qb:attribute :coverageSpatialDomain .

:temporalDomainComponent a qb4st:TemporalComponentSpecification ;
qb:attribute :coverageTemporalDomain .

Expand All @@ -145,8 +154,11 @@
:bandComponent a qb:ComponentSpecification ;
qb:attribute :band .

:dataComponent a qb:ComponentSpecification ;
qb:measure :dataValue .
:dataImageComponent a qb:ComponentSpecification ;
qb:measure :dataImageValue .

:dataPixelComponent a qb:ComponentSpecification ;
qb:measure :dataPixelValue .

:dggsCellComponent a qb4st:SpatialComponentSpecification ;
qb:dimension :dggsCell .
Expand All @@ -171,41 +183,49 @@

:coverageSpatialDomain a qb:AttributeProperty, qb4st:SpatialProperty ;
rdfs:subPropertyOf :bounds .

:coverageTemporalDomain a qb:AttributeProperty, qb4st:TemporalProperty ;
rdfs:range time:DateTimeInterval ;
qb:concept sdmx-concept:timePeriod .

:lat a qb4st:SpatialDimension ;
rdfs:subPropertyOf geo:lat ;
qb4st:crs <http://www.opengis.net/def/crs/EPSG/0/4326> .
qb4st:crs <http://epsg.io/4326> ;
qb4st:crslabel "WGS84" .

:long a qb4st:SpatialDimension ;
rdfs:subPropertyOf geo:long ;
qb4st:crs <http://www.opengis.net/def/crs/EPSG/0/4326> .
qb4st:crs <http://epsg.io/4326> ;
qb4st:crslabel "WGS84" .

:time a qb:DimensionProperty, qb4st:TemporalProperty ;
rdfs:range xsd:dateTime ;
qb:concept sdmx-concept:timePeriod .

:satellite a qb:AttributeProperty ;
rdfs:range ssn:Platform ;
rdfs:range sosa:Platform ;
qb:concept sdmx-concept:collMethod .

:instrument a qb:AttributeProperty ;
rdfs:range ssn:Sensor ;
rdfs:range sosa:Sensor ;
qb:concept sdmx-concept:collMethod .

:band a qb:AttributeProperty ;
rdfs:range xsd:integer .

:dataValue a qb:MeasureProperty ;
rdfs:range [owl:unionOf(xsd:anyURI xsd:integer)] ;
:dataImageValue a qb:MeasureProperty ;
rdfs:range xsd:anyURI ;
qb:concept :reflectance ;
qb:concept sdmx-concept:obsValue .

:dataPixelValue a qb:MeasureProperty ;
rdfs:range xsd:integer ;
qb:concept :reflectance ;
qb:concept sdmx-concept:obsValue .

:dggsCell a qb4st:SpatialDimension ;
qb4st:crs "rHEALPix WGS84 Ellipsoid" ;
qb4st:crs :rHEALPix ;
qb4st:crslabel "rHEALPix WGS84 Ellipsoid" ;
rdfs:range xsd:string ;
qb:concept sdmx-concept:refArea .

Expand All @@ -215,24 +235,17 @@
:dggsLevelPixel a qb:DimensionProperty ;
rdfs:range xsd:integer .

# in pixels per degree
:resolution a qb:AttributeProperty ;
rdfs:range :pixelsPerDegree .
rdfs:range xsd:double .

:bounds a qb:AttributeProperty, qb4st:SpatialProperty ;
rdfs:subPropertyOf ogc:asWKT ;
rdfs:domain :GridSquare ;
qb4st:crs <http://www.opengis.net/def/crs/EPSG/0/4326> ;
qb4st:crs <http://epsg.io/4326> ;
qb4st:crslabel "WGS84" ;
qb:concept sdmx-concept:refArea .

# #################################################################
# #
# # Custom datatype definition
# #
# #################################################################

:pixelsPerDegree rdf:type rdfs:Datatype ;
owl:equivalentClass xsd:double .

# #################################################################
# #
# # Custom class definition
Expand Down Expand Up @@ -268,45 +281,44 @@
# #
# #################################################################

:s1 a :GridSquare ;
:R000 a :GridSquare ;
qb:dataSet :exampleDataset ;
:lat "91.6667";
:long "40.0270";
:time "2001-10-26T21:32:52"^^xsd:dateTime ;
:dataValue "http://www.example.org/led-example-image-R000" ;
:resolution "0.9"^^:pixelsPerDegree ;
:dataImageValue "http://www.example.org/led-example-image-R000" ;
:resolution "0.9"^^xsd:double ;
:dggsCell "R000" ;
:dggsLevelSquare "3" ;
:dggsLevelPixel "4" ;
:bounds "POLYGON((90 41.87, 93.33 41.87, 93.33 38.18, 90 38.18, 90 41.87))"^^ogc:wktLiteral ;
prov:wasDerivedFrom :example-tile .

:s2 a :GridSquare ;
:R0000 a :GridSquare ;
qb:dataSet :exampleDataset ;
:lat "90.5556";
:long "41.2471";
:time "2001-10-26T21:32:52"^^xsd:dateTime ;
:dataValue "http://www.example.org/led-example-image-R0000" ;
:resolution "2.7"^^:pixelsPerDegree ;
:dataImageValue "http://www.example.org/led-example-image-R0000" ;
:resolution "2.7"^^xsd:double ;
:dggsCell "R0000" ;
:dggsLevelSquare "4" ;
:dggsLevelPixel "5" ;
:bounds "POLYGON((90 41.87, 91.11 41.87, 91.11 40.62, 90 40.62, 90 41.87))"^^ogc:wktLiteral ;
prov:wasDerivedFrom :example-tile ;
:containedInSquare :s1 .
:containedInSquare :R000 .

:p1 a :Pixel ;
qb:dataSet :exampleDataset ;
:lat "90.5556";
:long "41.2444";
:time "2001-10-26T21:32:52"^^xsd:dateTime ;
:dataValue "15"^^xsd:integer ;
:resolution "2.7"^^:pixelsPerDegree ;
:dataPixelValue "15"^^xsd:integer ;
:resolution "2.7"^^xsd:double ;
:dggsCell "R00004" ;
:dggsLevelSquare "5" ;
:dggsLevelPixel "5" ;
:bounds "POLYGON((90.37 41.45, 90.74 41.45, 90.74 41.04, 90.37 41.04, 90.37 41.45))"^^ogc:wktLiteral ;
prov:wasDerivedFrom :example-tile ;
:containedInSquare :s1 ;
:containedInSquare :s2 .

:containedInSquare :R000 ;
:containedInSquare :R0000 .
Binary file added eo-qb/images/client-app.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading