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

Package inconsistency between versions. Error: 'str' object has no attribute 'get' in yatter 1.1.4 #83

Closed
TheRazorace opened this issue Jul 17, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@TheRazorace
Copy link
Contributor

The following YARRRML excerpt does work with Yatter v1.1.0 (Python 3.9), but does not work with Yatter v1.1.4 (tested with Python 3.9 and Python 3.12), even though the syntax is the same and seems correct, according to documentation.

Error: The YARRRML mapping has not been translated. 'str' object has no attribute 'get'

prefixes:
    mlso: http://w3id.org/mlso/
    mls: http://www.w3.org/ns/mls#
    rdfs: http://www.w3.org/2000/01/rdf-schema#

sources:
  evaluations_meta: ['/evaluations_meta.json~jsonpath', '$.*']

mappings:
    evaluationMeasureDatatype:
      sources:
        - evaluations_meta
      s: http://w3id.org/rexpek-kg/thermal_uc_v1/evaluationMeasure/$(name)/characteristic/datatype
      po:
        - [a, mlso:EvaluationMeasureCharacteristic]
        - [rdfs:label, Datatype, rdfs:Literal]
        - [mls:hasValue, $(datatype), rdfs:Literal]
dachafra added a commit that referenced this issue Jul 17, 2024
@dachafra
Copy link
Member

Hi @TheRazorace, I think I found the problem and fixed it in dev branch, could you test it?

@dachafra dachafra added the bug Something isn't working label Jul 17, 2024
@TheRazorace
Copy link
Contributor Author

Thanks for the reply @dachafra! I can confirm that the problem is solved using the fix in the dev branch :)

dachafra added a commit that referenced this issue Aug 29, 2024
Solving #83 and inverse non-constant predicates
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