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

problem translating functions? #71

Closed
andimou opened this issue Dec 18, 2023 · 1 comment
Closed

problem translating functions? #71

andimou opened this issue Dec 18, 2023 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@andimou
Copy link

andimou commented Dec 18, 2023

For the following YARRRML document:

prefixes:
 ex: "http://www.semanticweb.org/tijnd/"
 ontology: "http://www.semanticweb.org/tijnd/ontology/"
 schema: "https://schema.org/"
 idlab-fn: "http://example.com/idlab/function/"
 grel: "http://users.ugent.be/~bjdmeest/function/grel.ttl#"
 owl: "http://www.w3.org/2002/07/owl#"
 rdf: "http://www.w3.org/1999/02/22-rdf-syntax-ns#"
 rdfs: "http://www.w3.org/2000/01/rdf-schema#"
 xsd: "http://www.w3.org/2001/XMLSchema#"
sources:
  imdb:
   access: imdb_video_game_rating_modified.csv
   referenceFormulation: csv
   
mappings:
  director:
    sources:
      - imdb
    s: ex:Person/$(title) #Not really the correct subject, only used to simply test it
    po:
      - [a, schema:Person]
      - p: schema:name
        o:  
            function: grel:string_split
            parameters:
              - [grel:p_string_sep, ", "]
              - [grel:valueParameter, $(directors)]

Yatter has problems using the function, mainly with the ", " it gives an error "objectlist expected."

The same YARRRML document is properly translated with Matey.

The dataset considered for this task is this: https://www.kaggle.com/datasets/nyagami/video-game-ratings-from-imdb (if it matters)

@dachafra dachafra self-assigned this Dec 19, 2023
@dachafra dachafra added the bug Something isn't working label Dec 19, 2023
@dachafra
Copy link
Member

This is already solved! Thanks :)

dachafra added a commit that referenced this issue Dec 19, 2023
dachafra added a commit that referenced this issue Dec 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants