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

Datatype for constant value triggers error (yatter v1.1.2) #75

Closed
TijnDeWever opened this issue Dec 20, 2023 · 3 comments
Closed

Datatype for constant value triggers error (yatter v1.1.2) #75

TijnDeWever opened this issue Dec 20, 2023 · 3 comments
Assignees
Labels
bug Something isn't working solved

Comments

@TijnDeWever
Copy link

Describe the bug
Version 1.1.2 of yatter can't translate the following code (version 1.1.0 had no problem with it):

prefixes:
 ex: "http://www.semanticweb.org/tijnd/"
 schema: "https://schema.org/"
 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:
  Rating:
    sources:
      - imdb
    s: ex:$(title)
    po:
      - [a, schema:Rating]
      - [schema:author, ImDB, rdfs:Literal] 

Error:

2023-12-20 16:19:57,157 | INFO: Translating YARRRML mapping to [R2]RML
2023-12-20 16:19:57,158 | INFO: RML content is created!
2023-12-20 16:19:57,163 | ERROR: ERROR: There is a syntactic error in the generated mapping
2023-12-20 16:19:57,163 | ERROR: at line 49 of <>:
Bad syntax (']' expected) at ^ in:
"...b';\n\t\t];\n\t\trr:objectMap [\n\t\t\ta rr:ObjectMap;\n\t\t\trr:constant ""'^b'ImDB"";\n\t\t\trr:datatype rdfs:Literal\n\t\t];\n\t].\n\n\n'"

When the datatype is removed (like this - [schema:author, ImDB] ) the code can be translated successfully by yatter (v.1.1.2).
The same YARRRML document (including the datatype) can be translated with Matey.

@dachafra dachafra added the bug Something isn't working label Dec 20, 2023
@dachafra
Copy link
Member

I'll look into it! Thanks for the issue :-)

dachafra added a commit that referenced this issue Dec 20, 2023
@dachafra
Copy link
Member

dachafra commented Dec 20, 2023

I think it's solved, we are having some problems with the publication in PyPI so if you want to use it, you'll need to install the engine from the source code.

cd src
python3 setup.py install

@TijnDeWever
Copy link
Author

Yes, it works.
Thanks (for the quick response)!

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

No branches or pull requests

2 participants