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

Unexpected error when no template values are used in predicateobject #239

Open
smessie opened this issue Aug 8, 2024 · 0 comments
Open

Comments

@smessie
Copy link

smessie commented Aug 8, 2024

Pipeline:
Y2R → IncRMLTransformer → RMLMapperReader

Relevant YARRRML mapping rules:

prefixes:
  sosa: "http://www.w3.org/ns/sosa/"
  gsp: "http://www.opengis.net/ont/geosparql#"
  ssn: "http://www.w3.org/ns/ssn/"
  dcterms: "http://purl.org/dc/terms/"
  xsd: "http://www.w3.org/2001/XMLSchema#"
  cdt: "https://w3id.org/cdt/"
  ex: "http://example.org/"

sources:
  buienradar:
    access: https://data.buienradar.nl/2.0/feed/json
    referenceFormulation: jsonpath
    iterator: $.actual.stationmeasurements[*]

mappings:
  observables-ground-temperature:
    sources:
      - buienradar
    s: ex:$(stationid)#GroundTemperature
    po:
      - [ a, sosa:ObservableProperty ]

Then I get the following unexpected error:

[main] ERROR b.u.k.idlabFunctions.IDLabFunctions .implicitUpdate(682) - Watched value template is a required parameter but was not provided

But when I add an extra predicate object definition to po where a template value is being used, the error disappears.
Eg changing to:

    po:
      - [ a, sosa:ObservableProperty ]
      - [ sosa:isObservedBy, ex:$(stationid) ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant