-
Notifications
You must be signed in to change notification settings - Fork 2
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
MI wave buoy summary datacube - Cubiql exception #114
Comments
@robthomas-marine it seems to be an error with the cube measures. Can you share your data to have a look and see what is the problem? |
@zeginis example of an observation in turtle: eg:IWaveBN_Daily_o349489 a qb:Observation; I have uploaded the full set of turtle files to the folder set up by NUIG. |
@robthomas-marine I have checked the data you uploaded. There are some issues that need to be fixed to make the data compatible with CubiQL:
We are currently working on some ASK queries to test the compatibility of a data cube with Cubiql #127. |
@zeginis I have updated the RDF following the four points above. I'll upload the files to the shared folder. Our endpoint is still internal but hope we will have something to query external next week. When I run CubiQL against the internal endpoint graph I'm still getting the following error: C:\Users\rthomas\Downloads>java -jar graphql-qb-0.2.0-standalone.jar --port 9000 --endpoint http://virtuoso.dm.marine.ie/sparql?default-graph-uri=wave-cubiql |
We were able to run CubiQL on top of the data, but getting the following error after initial run:
Would you be able to point which elements of dimension definition are not compatible with CubiQL? Results: |
update: looks like usage of ComponentSpecification / ComponentProperty needs to be documented in CubiQL, we managed to adjust it in test data |
@arekstasiewicz what is the status of this issue? |
@zeginis On Friday I was able to get the MI SPARQL endpoint data working with: A basic dataset query (query={datasets{uri%20title%20description%20}%20}) is working. Where can I get some additional queries to further test CubiQL functionality? |
@robthomas-marine at the readme file you can find many example queries. Open the links and copy the queries to try them locally. How did you managed to run CubiQL at your endpoit? What changes or configuration did you used? It will of great help to have your feedback on the issues you encountered and how you fixed them. Note that there is a minor change at the CubiQL schema at the latest versions It uses e.g.
|
@zeginis Thanks. I didn't change anything in the CubiQL configuration. From trial and error in the generation of the DataCube and in order to get the Data Cube integrity checks from the standard to work the following resulted in CubiQL running: qb:measure and qb:dimension had to be replaced with qb:componentProperty in the Data Structure Definition: eg:dsd-IWaveBN_Daily a qb:DataStructureDefinition;
Each qb:ComponentProperty is then typed as qb:MeasureProperty or qb_DimensionProperty as appropriate: eg:station_id a rdf:Property , qb:ComponentProperty , qb:DimensionProperty , qb:CodedProperty ; eg:statistic a rdf:Property , qb:ComponentProperty , qb:DimensionProperty , qb:CodedProperty ; eg:Date a rdf:Property , qb:ComponentProperty , qb:DimensionProperty , qb:CodedProperty ; qb:measureType a rdf:Property , qb:ComponentProperty , qb:DimensionProperty , qb:CodedProperty ; eg:Hmax a rdf:Property , qb:ComponentProperty , qb:MeasureProperty , skos:Concept ; However the querying for measures and dimensions returns no results or an internal error respectively: I'm trying the following but with little success: returns an empty list of measures: {"data":{"datasets":[{"uri":"http://data.marine.ie/datacube#IWaveBN_Daily","title":"Irish Wave Buoy Network - Daily Summary Statistics","description":"Summary statistics (daily mean, standard deviation, minimun and maximum) by day of year for the Irish Wave Buoy network measurements.","measures":[]}]}} returns an error message: Internal server error: exception |
@robthomas-marine CubiQL requires |
@zeginis I tried different combinations yesterday and when adding qb:dimension and qb:measure in place of qb:componentProperty CubiQL failed to run. I'm meeting NUIG this afternoon and we'll investigate further. |
@robthomas-marine most probably CubiQL fails when using |
Hi,
At the Marine Institute we have generated daily summary data for the wave buoy network and converted the data to a DataCube available from an (at present internal) Virtuoso SPARQL endpoint. We hope to have an externally accessible endpoint in place later this week.
I have followed the guidelines to create a variant of a DataCube which meets the criteria for Cubiql (no multi-measures, rdfs:label not skos:prefLabel etc) but when I try to run Cubiql (0.2.0) against the endpoint I get the following error message (reformatted to make more readable):
Exception in thread "main" clojure.lang.
ExceptionInfo: Argument
measure' of field
dataset_irish_wave_buoy_network_daily_summary_statistics_observations_aggregations/max' references unknown type `dataset_irish_wave_buoy_network_daily_summary_statistics_aggregation_measures'.{:field-name :dataset_irish_wave_buoy_network_daily_summary_statistics_observations_aggregations/max,
:arg-name :measure,
:schema-types {
:scalar [:Boolean :DateTime :Float :ID :Int :SparqlCursor :String :uri],
:object [:MutationRoot
:QueryRoot
:SubscriptionRoot
:dataset
:dataset_irish_wave_buoy_network_daily_summary_statistics :dataset_irish_wave_buoy_network_daily_summary_statistics_observations :dataset_irish_wave_buoy_network_daily_summary_statistics_observations_aggregations
:dataset_irish_wave_buoy_network_daily_summary_statistics_observations_page :dataset_irish_wave_buoy_network_daily_summary_statistics_observations_page_observations
:dim
:enum_dim_value
:measure
:ref_area
:ref_period
:unmapped_dim_value],
:union [:dim_value],
:input-object [
:dataset_irish_wave_buoy_network_daily_summary_statistics_observations_dimensions
:dataset_irish_wave_buoy_network_daily_summary_statistics_observations_order_spec
:filter
:page_selector :ref_period_filter],
:interface [:dataset_meta :resource],
:enum [:sort_direction]}}
My interpretation is something in the DataCube is not what Cubiql is expecting. Please could someone translate and explain what is causing the error? Then I'll correct the local DataCube.
Cheers
Rob
The text was updated successfully, but these errors were encountered: